/* ============================================================
   AwwFis AF — responsive.css
   Mobile-first breakpoints
   ============================================================ */

/* ── Tablet: 768px ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .awwfis-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .awwfis-product-grid { grid-template-columns: repeat(3, 1fr); }
    /* --4 variant (e.g. New Arrivals) unintentionally inherited the 3-col rule above via
       selector-order collision (both single-class, equal specificity) - a 4-item row was
       landing on an orphaned single card in this 769-1024px range. Step it to 2 cols here,
       consistent with the --4 variant's explicit overrides at the narrower breakpoints below. */
    .awwfis-product-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .awwfis-hero__inner { grid-template-columns: 1fr 340px; gap: var(--space-8); }
    .awwfis-custom-cta__inner { grid-template-columns: 1fr; gap: var(--space-8); text-align: center; }
    .awwfis-custom-cta__title { text-align: center; }
    .awwfis-custom-cta__sub { text-align: center; margin-left: auto; margin-right: auto; }
    .awwfis-custom-cta__features { align-items: center; }
    .awwfis-custom-cta__visual { display: none; }
    .awwfis-footer__top { grid-template-columns: 1fr; text-align: center; }
    .awwfis-footer__brand { display: flex; flex-direction: column; align-items: center; }
    .awwfis-footer__desc { text-align: center; margin-left: auto; margin-right: auto; }
    .awwfis-footer__social { justify-content: center; }
    .awwfis-instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .awwfis-reviews-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}

/* ── Mobile: 768px ───────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --container-pad: 16px;
        --header-height: 56px;
    }

    /* Nav — hide desktop, show hamburger */
    .awwfis-header__nav { display: none; }
    .awwfis-mobile-menu-toggle { display: flex; }
    .awwfis-mobile-menu { display: block; }

    /* Hero */
    .awwfis-hero { min-height: auto; padding: var(--space-10) 0; }
    .awwfis-hero__headline { font-size: clamp(3.5rem, 16vw, 6rem); letter-spacing: -2px; }
    .awwfis-hero__watermark { display: none; }
    .awwfis-hero__cta-group { flex-direction: column; align-items: center; }
    .awwfis-hero__cta-group .awwfis-btn { width: 100%; max-width: 300px; }
    .awwfis-hero__stats { flex-direction: column; width: 100%; max-width: 320px; }
    .awwfis-hero__stat { border-right: none; border-bottom: 1px solid var(--border); padding: var(--space-3) var(--space-6); min-width: auto; flex-direction: row; justify-content: space-between; }
    .awwfis-hero__stat:last-child { border-bottom: none; }
    .awwfis-gender-toggle:not(.awwfis-gender-toggle--mobile) { display: none; }
    .awwfis-header__shop-btn { display: none; }

    /* Trust strip — horizontal scroll */
    .awwfis-trust-strip__inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .awwfis-trust-strip__inner::-webkit-scrollbar { display: none; }
    .awwfis-trust-sep { flex-shrink: 0; }

    /* Coupon banner */
    .awwfis-coupon-banner__inner { flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
    .awwfis-coupon-banner__note { display: none; }

    /* Categories */
    .awwfis-cat-grid { grid-template-columns: repeat(2, 1fr); }

    /* Products — 2 cols */
    .awwfis-product-grid,
    .awwfis-product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }

    /* Show mobile CTA on product card */
    .awwfis-product-card__hover-actions { display: none !important; }
    .awwfis-product-card__mobile-cta { display: block; }

    /* Sections */
    .awwfis-section { padding: var(--space-10) 0; }
    .awwfis-section__head { flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); }

    /* Reviews */
    .awwfis-reviews-grid { grid-template-columns: 1fr; }

    /* Stats */
    .awwfis-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .awwfis-stats-bar .awwfis-stat:nth-child(2) { border-right: none; }

    /* Instagram */
    .awwfis-instagram-grid { grid-template-columns: repeat(3, 1fr); }

    /* Footer */
    .awwfis-footer__top { gap: var(--space-8); }
    .awwfis-footer__links { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
    .awwfis-footer__bottom { flex-direction: column; align-items: flex-start; }

    /* Cart drawer */
    .awwfis-cart-drawer { width: 100%; }

    /* Announcement — shorter text ok, close button visible */
    .awwfis-announcement { font-size: 12px; }
}

/* ── Small Mobile: 480px ─────────────────────────────────── */
@media (max-width: 480px) {
    .awwfis-hero__headline { font-size: 2rem; }
    .awwfis-cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
    .awwfis-product-grid,
    .awwfis-product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
    .awwfis-footer__links { grid-template-columns: 1fr 1fr; }
    .awwfis-instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .awwfis-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ── PDP Specific (Single Product) ──────────────────────── */
@media (max-width: 1024px) {
    .awwfis-pdp-layout { grid-template-columns: 1fr !important; }
    .awwfis-pdp-gallery { position: static; }
    .awwfis-pdp-gallery__main { max-width: 560px; margin-left: auto; margin-right: auto; }
    .awwfis-pdp-thumbs { justify-content: center; }
}

@media (max-width: 768px) {
    .awwfis-pdp-trust { grid-template-columns: 1fr; }
    .awwfis-pdp-cta-row { flex-wrap: wrap; }
    .awwfis-pdp-buy-now,
    .awwfis-pdp-atc { flex-basis: 100%; }

    /* Sticky Add to Cart bar */
    .awwfis-pdp-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        padding: var(--space-3) var(--container-pad);
        z-index: 90;
        gap: var(--space-3);
        align-items: center;
        transform: translateY(100%);
        transition: transform var(--transition);
    }
    .awwfis-pdp-sticky-bar.is-visible { transform: translateY(0); }
    .awwfis-pdp-sticky-bar__info { flex: 1; min-width: 0; }
    .awwfis-pdp-sticky-bar__name {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .awwfis-pdp-sticky-bar__price {
        font-size: 15px;
        font-weight: 800;
        color: var(--yellow);
        font-family: 'Space Grotesk', sans-serif;
    }
    .awwfis-pdp-sticky-bar .awwfis-btn { flex-shrink: 0; }
    .awwfis-pdp-sticky-bar__oos {
        font-size: 13px;
        color: var(--text-muted);
        font-weight: 600;
    }
}

/* ── Checkout ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .awwfis-checkout-layout { grid-template-columns: 1fr !important; }
    .awwfis-checkout-layout .awwfis-order-summary-col { order: -1; }
}

/* ── Accessible large touch targets ─────────────────────── */
@media (max-width: 768px) {
    .awwfis-action-btn { width: 44px; height: 44px; }
    .awwfis-btn--sm { padding: 9px 16px; font-size: 13px; }
    .awwfis-size-btn { min-width: 48px; height: 48px; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    .awwfis-header,
    .awwfis-announcement,
    .awwfis-footer,
    .awwfis-cart-drawer,
    .awwfis-mobile-menu,
    .awwfis-overlay { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; }
}

/* ── PLP (Shop / Category) ───────────────────────────────── */
@media (max-width: 1024px) {
    .awwfis-plp-layout { grid-template-columns: 200px 1fr; gap: var(--space-6); }
}

@media (max-width: 768px) {
    .awwfis-plp-layout { grid-template-columns: 1fr; }

    .awwfis-plp-sidebar { position: static; }

    .awwfis-plp-filter-toggle {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        width: 100%;
        padding: var(--space-3) var(--space-4);
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        color: var(--text);
        font-size: 14px;
        font-weight: 700;
        font-family: 'Space Grotesk', sans-serif;
        margin-bottom: var(--space-4);
        cursor: pointer;
        transition: border-color var(--transition);
    }
    .awwfis-plp-filter-toggle:hover { border-color: var(--border-hover); }
    .awwfis-plp-filter-toggle[aria-expanded="true"] { border-color: var(--yellow); }
    .awwfis-plp-filter-toggle__count {
        margin-left: auto;
        background: var(--yellow);
        color: #000;
        font-size: 11px;
        font-weight: 800;
        border-radius: var(--radius-pill);
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .awwfis-plp-sidebar__inner {
        display: none;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: var(--space-5);
        margin-bottom: var(--space-5);
    }
    .awwfis-plp-sidebar__inner.is-open { display: block; }

    .awwfis-plp-toolbar { flex-wrap: wrap; }
}
