/* =============================================
   TK MOBILITY – Gen X Usability / Accessibility
   Safe, reversible scoped CSS improvements
   Appended to existing theme CSS (not replacing)
   ============================================= */

/* 1. BODY TEXT – increase readability for Gen X */
body, .main-content, .product-item, .product-card, .content-area {
    font-size: 16px !important;
    line-height: 1.7 !important;
    letter-spacing: 0.02em !important;
}

/* Ensure all body text paragraphs are legible */
p, .text-body, .product-description, .description-text, .entry-content p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #222222 !important;
}

/* 2. CONTRAST IMPROVEMENTS */
/* Darken product card text */
.product-title, .product-item .product-info a, .product-info a {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

/* Ensure product prices are high contrast */
.product-price, .price, .product-info .price, .product-price-current {
    color: #d32f2f !important;
    font-weight: 700 !important;
    font-size: 1.15em !important;
}

/* Improve contrast on footer text */
.footer-content, .footer-widget, .footer-bottom,
.site-footer, .widget-area, .bottom-widget-area {
    color: #e0e0e0 !important;
}

.footer-content a, .footer-widget a, .footer-bottom a,
.site-footer a, .widget-area a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-heading, .widget-title, .footer h4, .footer h5 {
    color: #ffffff !important;
}

/* Header text contrast */
.main-header, .header-main, .top-bar, .navbar-header, .header-section {
    color: #ffffff !important;
}

/* 3. NAVIGATION – make links larger and easier to tap */
.navbar-nav .nav-link, .main-menu a, .menu a, .nav-menu a,
.main-navigation a, .header-nav a {
    font-size: 16px !important;
    padding: 10px 14px !important;
    min-height: 44px !important;
    min-width: 44px !important;
}

/* Mobile bottom nav – ensure all icons and labels are readable */
.bottom-mobile-nav, .mobile-nav-bottom, .mobile-menu-bar,
.bottom-nav-bar, .bottom-navigation {
    font-size: 14px !important;
}

.bottom-mobile-nav a, .mobile-nav-bottom a, .mobile-menu-bar a,
.bottom-nav-bar a, .bottom-navigation a,
.bottom-mobile-nav .nav-item, .mobile-nav-bottom .nav-item {
    min-height: 48px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.bottom-mobile-nav .nav-icon, .mobile-nav-bottom .nav-icon,
.bottom-mobile-nav .nav-label, .mobile-nav-bottom .nav-label {
    font-size: 13px !important;
}

/* Desktop header nav padding */
.navbar-nav .nav-item, .main-menu .nav-item, .menu .nav-item {
    padding: 0 10px !important;
}

/* Header menu items */
.main-header .menu-item a, .navbar .nav-link, .header-menu a {
    padding: 12px 16px !important;
    min-height: 44px !important;
}

/* 4. ACTIONABLE BUTTONS – larger tap targets */
.btn, button, .product-add-to-cart, .add-to-cart,
.btn-primary, .btn-success, .button, .cta-button,
.btn-cart, .btn-wishlist, .btn-compare, .btn-quickview {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
}

/* Product "add to cart" / purchase buttons */
.product-item .btn, .product-card .btn,
.product-actions .btn, .product-buttons .btn {
    min-height: 48px !important;
    font-size: 15px !important;
}

/* Search button */
.search-button, .search-submit, .btn-search, .search-icon {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 10px !important;
}

/* 5. PRODUCT CARDS – better spacing and readability */
.product-item, .product-card, .product-wrapper,
.product-thumbnail, .woo-product-item {
    padding: 12px !important;
    margin: 8px !important;
    border-radius: 8px !important;
}

.product-item .product-thumbnail img,
.product-card .product-image img,
.product-thumbnail img,
.product-image img {
    border-radius: 6px !important;
    min-height: 180px;
}

.product-item .product-info,
.product-card .product-content,
.product-info-wrap {
    padding: 10px 8px !important;
}

.product-item .product-title,
.product-card .product-title,
.woocommerce-loop-product__title,
.product-info h3 a, .product-info h4 a {
    font-size: 15px !important;
    line-height: 1.4 !important;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Star rating contrast */
.product-rating, .star-rating, .product-review-stars {
    font-size: 16px !important;
}

/* Out of stock badge */
.out-of-stock, .product-badge.out-of-stock,
.stock-badge, .badge-out-of-stock {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
}

/* 6. CONTACT LINKS – make easy to find */
.contact-info-section, .contact-widget, .cta-contact,
.footer-contact, .contact-details, .contact-links,
.footer-widget-contact, .widget-contact-info,
#contact-info, .contact-section {
    padding: 16px !important;
}

.contact-info-section a, .contact-widget a, .cta-contact a,
.footer-contact a, .contact-details a, .contact-links a {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    display: inline-block;
    padding: 4px 0 !important;
}

.contact-info-section .icon, .contact-widget .icon,
.cta-contact .icon, .footer-contact .icon {
    font-size: 20px !important;
}

.contact-phone, .phone-link, .hotline-link,
.footer-phone, .widget-phone {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ff6b35 !important;
}

/* 7. MOBILE LAYOUT IMPROVEMENTS */
@media (max-width: 768px) {
    /* Increase body text on mobile */
    body, .main-content, .product-item, .content-area {
        font-size: 16px !important;
    }

    /* Full-width product cards on mobile for better readability */
    .product-item, .product-card,
    .woocommerce-product, .product-wrapper {
        width: 100% !important;
        margin-bottom: 12px !important;
        padding: 10px !important;
    }

    /* Ensure mobile nav bar text is readable */
    .bottom-mobile-nav a, .mobile-nav-bottom a,
    .bottom-nav-bar a, .bottom-navigation a {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    .bottom-mobile-nav .nav-label, .mobile-nav-bottom .nav-label,
    .bottom-nav-bar .nav-label, .bottom-navigation .nav-label {
        font-size: 11px !important;
    }

    /* Larger tap targets for mobile buttons */
    .btn, button, .add-to-cart, .btn-primary {
        min-height: 48px !important;
        font-size: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Improve hero banner text on mobile */
    .hero-banner h1, .hero-slider h1, .banner-heading,
    .slideshow h1 {
        font-size: 22px !important;
    }

    .hero-banner p, .hero-slider p, .banner-description,
    .slideshow p {
        font-size: 15px !important;
    }

    /* Contact info more prominent on mobile */
    .footer-contact a, .contact-widget a,
    .cta-contact a {
        font-size: 15px !important;
    }

    .contact-phone, .phone-link, .hotline-link {
        font-size: 16px !important;
    }

    /* Ensure header is not crowded on mobile */
    .navbar-collapse, .header-menu-mobile,
    .mobile-menu-wrapper, .offcanvas-menu {
        font-size: 16px !important;
    }

    .navbar-collapse .nav-link, .header-menu-mobile a,
    .mobile-menu-wrapper a, .offcanvas-menu a {
        padding: 14px 16px !important;
        min-height: 48px !important;
        font-size: 16px !important;
    }
}

/* 8. DESKTOP LAYOUT PRESERVATION */
@media (min-width: 769px) {
    /* Keep desktop grid layout intact */
    .product-item, .product-card,
    .woocommerce-product, .product-wrapper {
        width: auto !important;
    }

    /* Ensure desktop buttons are not full-width */
    .btn, button, .add-to-cart, .btn-primary {
        width: auto !important;
        max-width: none !important;
    }
}

/* 9. LINK UNDERLINE IMPROVEMENTS for readability */
a:not(.btn):not(.button):not(.nav-link):not(.icon):not([class*="icon"]):not(.logo):not([class*="logo"]):not([class*="nav-"]):not(.social-link):not([class*="social"]):not(.breadcrumb-item a) {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* 10. FOCUS VISIBLE for keyboard accessibility */
*:focus-visible {
    outline: 3px solid #ff6b35 !important;
    outline-offset: 2px !important;
}

/* 11. HERO BANNER TEXT IMPROVEMENTS */
.hero-banner-text, .hero-content, .slideshow-content,
.banner-text, .hero-description, .banner-description {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #1a1a1a !important;
}

.hero-banner-text h1, .hero-content h1, .slideshow-content h1,
.banner-text h1, .hero-heading {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
}

/* 12. BREADCRUMB IMPROVEMENTS */
.breadcrumb-item a, .breadcrumb a {
    font-size: 14px !important;
    color: #0066cc !important;
    text-decoration: underline !important;
}

/* 13. FOOTER CONTACT SECTION - ensure phone is prominent */
.footer-contact-phone, .site-info-phone,
.widget-phone-number, .contact-phone-link {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ff6b35 !important;
}