/* ==========================================================================
   CUSTOM MOBILE ACCESSIBILITY CSS FOR OLDER USERS
   ========================================================================== */

/* Apply only to mobile screens (under 768px) */
@media screen and (max-width: 767px) {
    
    /* 1. GLOBAL TYPOGRAPHY */
    body, p, span, div, a {
        font-size: 16px !important; /* Increase base font size */
        line-height: 1.6 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.4 !important;
        font-weight: 700 !important;
    }

    /* 2. PRODUCT GRID (1 COLUMN ON MOBILE) */
    .products.row-small .product-small,
    .products.row-small .col {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-bottom: 25px !important;
    }
    
    .box-image img {
        width: 100% !important;
        height: auto !important;
    }

    .product-title {
        font-size: 18px !important;
        margin-top: 10px !important;
    }

    .price-wrapper .amount bdi {
        font-size: 20px !important;
        color: #d26e4b !important;
        font-weight: 800 !important;
    }

    /* 3. TOUCH TARGETS (BUTTONS) */
    .button, button, input[type="submit"], input[type="button"] {
        font-size: 16px !important;
        padding: 15px 20px !important;
        min-height: 48px !important; /* Apple standard touch target */
        border-radius: 8px !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
    }

    /* Add to Cart button on grid */
    .btn-quick-add {
        display: block !important;
        width: 100% !important;
        margin-top: 15px !important;
        background-color: #28a8e1 !important;
        color: #fff !important;
        padding: 12px !important;
        border-radius: 5px !important;
        font-size: 16px !important;
        font-weight: bold !important;
        text-align: center !important;
    }

    .btn-quick-add:active {
        background-color: #1a7fae !important;
    }

    /* 4. FORM FIELDS (CHECKOUT & REVIEWS) */
    input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
        font-size: 16px !important;
        padding: 12px 15px !important;
        min-height: 48px !important;
        border: 1px solid #999 !important; /* Higher contrast border */
        border-radius: 5px !important;
        width: 100% !important;
    }

    /* Stack flex elements vertically on mobile */
    .flex-row-mobile {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .flex-row-mobile > div {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* 5. REVIEW SPECIFIC (STARS) */
    .star-rating-js {
        gap: 15px !important; /* Wider gap to prevent mis-clicks */
        justify-content: center !important;
        width: 100% !important;
        margin: 15px 0 !important;
    }
    
    .star-rating-js .star-icon {
        font-size: 40px !important; /* Huge stars */
    }

    .btn-submit-review {
        width: 100% !important;
        font-size: 18px !important;
        padding: 15px !important;
        margin-top: 15px !important;
    }

    /* 6. HEADER & ICONS */
    .header-cart-icon img {
        width: 32px !important; /* Bigger cart icon */
    }
    
    .nav-icon {
        width: 32px !important; /* Bigger hamburger menu */
        height: 32px !important;
    }
}
