/* =============================================
    NOKSHIPOINT — RESPONSIVE STYLESHEET
    Covers: index.html + category.html + product.html + cart.html
    Breakpoints:
        xl   : ≤ 1200px
        lg   : ≤ 1024px
        md   : ≤ 900px
        sm   : ≤ 768px
        xs   : ≤ 600px
        xxs  : ≤ 480px
============================================= */

/* =============================================
    XL — ≤ 1200px
    Slight density reductions, no major layout shifts
============================================= */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
    }

    /* Product grid: 5 → 4 columns on home flash/arrivals/bestsellers */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Category page grid: 4 stays */
    .products-main .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 28px;
    }

    /* Hide contact column at this size — merge into brand */
    .footer-grid > :last-child {
        display: none;
    }
}

/* =============================================
    LG — ≤ 1024px
    Sidebar narrows, grids tighten
============================================= */
@media (max-width: 1024px) {

    /* ---------- GLOBAL ---------- */
    .container {
        padding: 0 16px;
    }

    /* ---------- HEADER ---------- */
    .header-top-inner {
        gap: 14px;
    }

    .logo-text .tagline {
        display: none;
    }

    .cta-btn {
        padding: 9px 12px;
        font-size: 11px;
    }

    /* ---------- MEGA DROPDOWN ---------- */
    .mega-dropdown {
        min-width: 420px;
    }

    /* ---------- HERO ---------- */
    .hero-grid {
        grid-template-columns: 3fr 2fr;
    }

    .hero-main {
        min-height: 300px;
        padding: 28px;
    }

    /* ---------- PRODUCTS (home sections) ---------- */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    /* ---------- CATEGORIES ---------- */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    /* ---------- TRUST STRIP ---------- */
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }

    .trust-item:nth-child(3) {
        border-top: 1px solid var(--cream-dark);
    }

    .trust-item:nth-child(4) {
        border-top: 1px solid var(--cream-dark);
        border-right: none;
    }

    /* ---------- REVIEWS ---------- */
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ---------- FOOTER ---------- */
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* ---------- CATEGORY PAGE ---------- */
    .category-page {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }

    .products-main .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-drawer {
        width: 280px;
    }
}

/* =============================================
    MD — ≤ 900px
    Two-column hero collapses; nav hidden; sidebar hidden
============================================= */
@media (max-width: 900px) {

    /* ---------- GENERAL ---------- */
    :root {
        --header-h: 60px;
    }

    /* ---------- ANNOUNCEMENT BAR ---------- */
    .announcement-bar {
        font-size: 11px;
        padding: 7px 12px;
    }

    /* ---------- HEADER ---------- */
    .header-top-inner {
        gap: 10px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .logo-text .name,
    .logo-name {
        font-size: 18px;
    }

    .search-category {
        display: none;
    }

    .search-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .offers-badge {
        display: none;
    }

    .cta-btn {
        display: none;
    }

    /* Nav collapses (hamburger would be added via JS if needed) */
    .header-nav {
        display: none;
    }

    /* ---------- HERO ---------- */
    .hero {
        padding: 14px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-main {
        min-height: 280px;
        padding: 26px 24px;
        border-radius: var(--radius-md);
    }

    .hero-cards {
        flex-direction: row;
        gap: 12px;
    }

    .promo-card {
        flex: 1;
        min-height: 130px;
        padding: 18px;
        border-radius: var(--radius-md);
    }

    .promo-card-title {
        font-size: 17px;
    }

    .promo-card-icon {
        font-size: 40px;
    }

    /* ---------- PRODUCTS (home) ---------- */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    /* ---------- CATEGORIES ---------- */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* ---------- BANNER STRIP ---------- */
    .banner-strip {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 28px 24px;
    }

    .banner-strip::before {
        display: none;
    }

    .banner-sub {
        max-width: 100%;
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    /* ---------- FOOTER ---------- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-main {
        padding: 36px 0 28px;
    }

    /* ---------- FLOATING WIDGETS ---------- */
    .float-stack {
        bottom: 84px;
        right: 16px;
        gap: 10px;
    }

    .chat-panel {
        width: calc(100vw - 28px);
        right: 14px;
        bottom: 152px;
    }

    /* ---------- MOBILE NAV ---------- */
    .mobile-bottom-nav {
        display: block;
    }

    /* ---------- CATEGORY PAGE ---------- */
    .category-page {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 0 40px;
    }

    /* Hide desktop sidebar; show mobile filter button */
    .filters-sidebar {
        display: none;
    }

    .mobile-filter-btn {
        display: flex;
    }

    .products-main .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .cat-hero {
        padding: 28px 0;
    }

    .cat-hero-title {
        font-size: clamp(24px, 4vw, 32px);
    }

    /* Sub-cats pill: allow horizontal scroll */
    .sub-cats-list {
        padding-bottom: 2px;
    }

    /* List view on tablet */
    .products-grid.list-view .product-img-wrap {
        width: 130px;
        min-width: 130px;
    }

}

/* =============================================
    SM — ≤ 768px
    Further collapse, 2-column products
============================================= */
@media (max-width: 768px) {

    /* ---------- SECTION SPACING ---------- */
    .section {
        padding: 28px 0;
    }

    .section-header {
        margin-bottom: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    /* ---------- HERO ---------- */
    .hero-main {
        min-height: 260px;
        padding: 22px 20px;
    }

    .hero-title {
        font-size: clamp(24px, 5vw, 34px);
    }

    .hero-sub {
        font-size: 12px;
    }

    .btn-primary {
        padding: 10px 18px;
        font-size: 12px;
    }

    .btn-outline {
        padding: 9px 16px;
        font-size: 12px;
    }

    .hero-cards {
        flex-direction: row;
        gap: 10px;
    }

    .promo-card {
        min-height: 110px;
        padding: 16px;
    }

    .promo-card-title {
        font-size: 15px;
    }

    .promo-card-sub {
        font-size: 11px;
    }

    .promo-card-icon {
        display: none;
    }

    /* ---------- TRUST STRIP ---------- */
    .trust-strip {
        padding: 0;
    }

    .trust-items {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item {
        padding: 14px 14px;
        gap: 10px;
    }

    .trust-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .trust-text h4 {
        font-size: 12px;
    }

    .trust-text p {
        font-size: 10px;
    }

    /* ---------- CATEGORIES ---------- */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .cat-icon-wrap {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .cat-name {
        font-size: 11px;
    }

    /* ---------- FLASH HEADER ---------- */
    .flash-header {
        gap: 10px;
    }

    .flash-title h2 {
        font-size: 20px;
    }

    .countdown {
        margin-left: 0;
    }

    /* ---------- PRODUCTS (home) ---------- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .price-current {
        font-size: 14px;
    }

    /* ---------- BANNER STRIP ---------- */
    .banner-strip {
        border-radius: var(--radius-md);
        padding: 24px 20px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-sub {
        font-size: 12px;
    }

    .banner-cta {
        padding: 11px 20px;
        font-size: 12px;
    }

    /* ---------- REVIEWS ---------- */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* ---------- NEWSLETTER ---------- */
    .newsletter {
        padding: 40px 0;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-sm);
        box-shadow: none;
        gap: 8px;
    }

    .newsletter-input,
    .newsletter-btn {
        border-radius: var(--radius-sm);
        width: 100%;
        text-align: center;
    }

    /* ---------- FOOTER ---------- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* ---------- CATEGORY PAGE ---------- */
    .products-main .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cat-hero {
        padding: 22px 0;
    }

    .cat-hero-meta {
        gap: 10px;
    }

    .cat-hero-stat {
        font-size: 12px;
    }

    .products-toolbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .result-count {
        font-size: 12px;
    }

    /* Pagination: tighten */
    .pagination {
        gap: 4px;
        flex-wrap: wrap;
        margin-top: 24px;
    }

    .page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }

    /* List view on mobile: make compact */
    .products-grid.list-view .product-card {
        min-height: 120px;
    }

    .products-grid.list-view .product-img-wrap {
        width: 110px;
        min-width: 110px;
    }

    .products-grid.list-view .product-info {
        padding: 14px 16px;
    }

    .products-grid.list-view .product-name {
        font-size: 13px;
    }
}

/* =============================================
    XS — ≤ 600px
    Mobile-first full single-column feel
============================================= */
@media (max-width: 600px) {

    /* ---------- GLOBAL ---------- */
    .container {
        padding: 0 12px;
    }

    /* ---------- ANNOUNCEMENT BAR ---------- */
    .announcement-bar {
        display: none;
    }

    /* ---------- HEADER ---------- */
    /* .header-top {
        padding: 10px 0;
    }

    .header-top-inner {
        gap: 8px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .logo-text .name,
    .logo-name {
        font-size: 16px;
    }

    .action-btn > span:not(.badge) {
        display: none;
    } */

    /* Search bar: always visible, full width on mobile */
    /* .search-wrap {
        max-width: 100%;
        flex: 1;
    }

    .search-input {
        font-size: 13px;
        padding: 9px 12px;
    }

    .search-btn {
        padding: 0 14px;
        font-size: 14px;
    } */

    /* Show search icon */
    /* .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 18px;
        color: var(--maroon);
    } */

    /* Hide search by default */
    /* .search-wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px;
        background: #fff;
        z-index: 9999;

        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;

        transition: all .3s ease;
    }

/* ---------- HEADER MOBILE LAYOUT ---------- */
    .header-top {
        padding: 10px 0;
    }

    .header-top-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .logo-text {
        display: none;
    }

    .logo-image {
        height: 38px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

    /* Hide all action buttons except cart on mobile */
    .header-actions .action-btn:not([aria-label*="Cart"]) {
        display: none;
    }

    .header-whatsapp-btn,
    .offers-badge,
    .cta-btn {
        display: none;
    }

/* Show mobile search toggle on right */
    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 16px;
        color: var(--maroon);
        flex-shrink: 0;
    }

    /* Mobile search icon beside cart - shown on mobile */
    .mobile-search-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 16px;
        color: var(--maroon);
        flex-shrink: 0;
    }


/* Hide desktop search trigger on mobile - show search icon instead */
    .action-btn.mobile-search-trigger {
        display: flex !important;
    }

    .action-btn.mobile-search-trigger > span {
        display: none;
    }

/* Hide old search wrap on mobile */
    .search-wrap {
        display: none !important;
    }

    /* ---------- HERO ---------- */
    .hero {
        padding: 10px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-main {
        min-height: 240px;
        padding: 20px 18px 24px;
        border-radius: var(--radius-md);
    }

    .hero-badge {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: clamp(22px, 6vw, 28px);
        margin-bottom: 8px;
    }

    .hero-sub {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .hero-actions {
        gap: 8px;
    }

    .btn-primary {
        padding: 9px 16px;
        font-size: 12px;
    }

    .btn-outline {
        padding: 8px 14px;
        font-size: 11px;
    }

    .hero-dots {
        bottom: 12px;
        right: 14px;
    }

    /* Hero cards stack vertically on narrow screens */
    .hero-cards {
        flex-direction: column;
        gap: 10px;
    }

    .promo-card {
        min-height: 100px;
        padding: 14px 16px;
        border-radius: var(--radius-md);
    }

    .promo-card-label {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .promo-card-title {
        font-size: 15px;
    }

    .promo-card-sub {
        font-size: 11px;
    }

    .promo-card-btn {
        font-size: 11px;
        margin-top: 8px;
    }

    /* ---------- TRUST STRIP ---------- */
    .trust-items {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item {
        padding: 12px;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid var(--cream-dark);
    }

    .trust-item:nth-child(odd) {
        border-right: 1px solid var(--cream-dark);
    }

    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        border-bottom: none;
        border-top: none;
    }

    .trust-item:last-child {
        border-right: none;
    }

    /* ---------- SECTIONS ---------- */
    .section {
        padding: 24px 0;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        margin-bottom: 14px;
    }

    .section-eyebrow {
        font-size: 10px;
    }

    .section-title {
        font-size: 18px;
    }

    .view-all-link {
        font-size: 12px;
    }

    /* ---------- CATEGORIES ---------- */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cat-card {
        padding: 14px 8px 12px;
        border-radius: var(--radius-sm);
    }

    .cat-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cat-name {
        font-size: 10px;
    }

    .cat-count {
        font-size: 9px;
    }

    /* ---------- FLASH DEALS HEADER ---------- */
    .flash-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .flash-title h2 {
        font-size: 18px;
    }

    .flash-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .countdown {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .countdown-box {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 6px;
    }

    /* ---------- PRODUCTS (home) ---------- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        border-radius: var(--radius-sm);
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 12px;
    }

    .price-current {
        font-size: 13px;
    }

    .price-original {
        font-size: 11px;
    }

    /* Hide wishlist & quick-add on very small (touch shows) */
    .product-wishlist {
        opacity: 1;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* ---------- BANNER STRIP ---------- */
    .banner-strip {
        border-radius: var(--radius-sm);
        padding: 20px 16px;
        gap: 14px;
    }

    .banner-title {
        font-size: 18px;
    }

    .banner-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* ---------- REVIEWS ---------- */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 16px;
    }

    .review-text {
        font-size: 12px;
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    /* ---------- NEWSLETTER ---------- */
    .newsletter {
        padding: 32px 0;
    }

    .newsletter h2 {
        font-size: 22px;
    }

    .newsletter p {
        font-size: 13px;
    }

    /* ---------- FOOTER ---------- */
    /* .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    } */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-main {
        padding: 28px 0 20px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .payment-methods {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ---------- FLOATING WIDGETS ---------- */
    .float-stack {
        bottom: 74px;
        right: 12px;
        gap: 8px;
    }

    .whatsapp-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .chat-btn {
        font-size: 12px;
        padding: 10px 16px;
        border-radius: 22px;
    }

    .chat-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 140px;
        border-radius: var(--radius-md);
    }

    /* ---------- BACK TO TOP ---------- */
    .back-to-top {
        bottom: 80px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* ---------- CATEGORY PAGE ---------- */
    .cat-hero {
        padding: 20px 0;
    }

    .cat-hero-title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .cat-hero-sub {
        font-size: 13px;
    }

    .cat-hero-meta {
        gap: 8px;
    }

    .cat-hero-stat {
        font-size: 11px;
    }

    .sub-cats {
        padding: 12px 0;
    }

    .sub-cat-pill {
        font-size: 12px;
        padding: 6px 14px;
    }

    .products-toolbar {
        padding: 8px 10px;
    }

    .result-count {
        font-size: 11px;
    }

    .sort-select {
        font-size: 12px;
        padding: 7px 10px;
    }

    .view-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Active filter tags: wrap nicely */
    .active-filter-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Category products: always 2 cols */
    .products-main .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* List view on mobile */
    .products-grid.list-view .product-card {
        min-height: 100px;
    }

    .products-grid.list-view .product-img-wrap {
        width: 90px;
        min-width: 90px;
    }

    .products-grid.list-view .product-info {
        padding: 10px 12px;
    }

    /* Pagination compact */
    .pagination {
        gap: 3px;
    }

    .page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
        padding: 0 6px;
    }

    /* Filter drawer */
    .filter-drawer {
        width: 100vw;
    }
}

/* =============================================
    XXS — ≤ 480px
    Fine-tuning for very small phones
============================================= */
@media (max-width: 480px) {

    /* ---------- HEADER ---------- */
    .header-top-inner {
        gap: 6px;
    }


    .logo {
        flex-shrink: 0;
        display: flex;
        gap: 1px;
        align-items: center;
        text-decoration: none;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .logo-image {
        height: 42px;
    }

    .logo-mark {
        display: none;
    }

    .logo-text .name,
    .logo-name {
        font-size: 15px;
    }

    /* .logo-text {
        display: none;
    } */

    .action-btn {
        padding: 6px 7px;
    }

    .action-btn i {
        font-size: 16px;
    }

    .action-btn .badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: 3px;
        right: 4px;
    }

    /* ---------- HERO ---------- */
    .hero-main {
        min-height: 220px;
        padding: 18px 14px 20px;
    }

    .hero-title {
        font-size: clamp(19px, 5.5vw, 24px);
    }

    .hero-sub {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* ---------- CATEGORIES ---------- */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .cat-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 15px;
        margin-bottom: 6px;
    }

    .cat-card {
        padding: 10px 6px 8px;
    }

    .cat-name {
        font-size: 10px;
    }

    /* ---------- PRODUCTS ---------- */
    .product-info {
        padding: 8px;
    }

    .product-cat {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .product-name {
        font-size: 11px;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }

    .product-rating {
        margin-bottom: 5px;
    }

    .stars {
        font-size: 10px;
    }

    .rating-count {
        font-size: 10px;
    }

    .price-current {
        font-size: 12px;
    }

    .price-off {
        font-size: 9px;
        padding: 1px 5px;
    }

    /* ---------- FLASH DEALS ---------- */
    .flash-header {
        align-items: flex-start;
    }

    .countdown-box {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-radius: 5px;
    }

    .countdown-sep {
        font-size: 14px;
    }

    /* ---------- REVIEWS ---------- */
    .review-text {
        font-size: 12px;
    }

    /* ---------- NEWSLETTER ---------- */
    .newsletter h2 {
        font-size: 19px;
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    /* ---------- MOBILE BOTTOM NAV ---------- */
    .mobile-nav-item i {
        font-size: 18px;
    }

    .mobile-nav-item > span:not(.mob-badge):not(.mobile-nav-tooltip) {
        font-size: 9px;
    }

    /* ---------- CHAT PANEL ---------- */
    .chat-messages {
        height: 200px;
    }

    .chat-bubble {
        font-size: 12px;
        padding: 9px 12px;
    }

    .chat-input {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* ---------- CATEGORY PAGE ---------- */
    .sub-cat-pill {
        font-size: 11px;
        padding: 6px 12px;
    }

    .cat-hero {
        padding: 16px 0;
    }

    .cat-hero-eyebrow {
        font-size: 9px;
    }

    .cat-hero-title {
        font-size: clamp(20px, 6vw, 26px);
    }

    .cat-hero-sub {
        font-size: 12px;
        display: none;
    }

    .cat-hero-meta {
        gap: 6px;
    }

    .cat-hero-stat {
        font-size: 10px;
    }

    .products-toolbar {
        gap: 6px;
    }

    .toolbar-left {
        gap: 8px;
    }

    /* Hide active filter tags on smallest screens to save space */
    .active-filters {
        display: none;
    }
}

/* =============================================
    PRINT — basic print stylesheet
============================================= */
@media print {

    .announcement-bar,
    .header-nav,
    .float-stack,
    .chat-panel,
    .mobile-bottom-nav,
    .back-to-top,
    .newsletter,
    .filters-sidebar,
    .filter-drawer,
    .filter-overlay,
    .mobile-filter-btn,
    .products-toolbar {
        display: none !important;
    }

    .header {
        position: static;
        box-shadow: none;
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .product-card {
        break-inside: avoid;
    }

    .footer {
        background: var(--white);
        color: var(--charcoal);
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: var(--gray);
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }
}

/* =============================================
    CART PAGE — RESPONSIVE ADDITIONS
============================================= */

/* ---- LG ≤ 1024px ---- */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }

    .cart-item {
        grid-template-columns: 24px 88px 1fr 90px 120px 52px;
        gap: 12px;
        padding: 14px;
    }

    .cart-item-img-wrap {
        width: 88px;
    }
}

/* ---- MD ≤ 900px — Stack layout ---- */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-summary-col {
        position: static;
        order: -1; /* Summary above items on tablet */
    }

    .cart-item {
        grid-template-columns: 24px 88px 1fr 90px 52px;
        gap: 12px;
    }

    /* Hide price col in grid — show inside info instead */
    .cart-item-price-col {
        display: none;
    }

    .cart-item-actions-desktop {
        flex-direction: row;
        gap: 6px;
    }

    .cart-mobile-sticky {
        display: flex;
    }
}

/* ---- SM ≤ 768px ---- */
@media (max-width: 768px) {
    .cart-section {
        padding: 16px 0 48px;
    }

    .cart-page-title {
        font-size: 26px;
    }

    .cart-page-header {
        margin-bottom: 20px;
    }

    .cart-continue-link {
        font-size: 12px;
        padding: 8px 14px;
    }

    .cart-item {
        grid-template-columns: 22px 80px 1fr 48px;
        gap: 10px;
        padding: 12px;
    }

    /* Hide desktop action buttons — show mobile inline ones */
    .cart-item-actions-desktop {
        display: none;
    }

    .cart-item-actions-mobile {
        display: flex;
    }

    /* Show inline price in info col */
    .cart-item-price-col {
        display: none;
    }

    /* Show qty subtotal only */
    .cart-item-qty-col {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .cart-item-img-wrap {
        width: 80px;
    }

    .cart-item-name {
        font-size: 13px;
    }

    .cart-bulk-bar {
        padding: 8px 12px;
    }

    .cart-summary-card {
        border-radius: var(--radius-md);
    }
}

/* ---- XS ≤ 600px ---- */
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 20px 72px 1fr;
        gap: 10px;
        padding: 12px;
        align-items: flex-start;
    }

    /* On small mobile, qty + actions move to a bottom row */
    .cart-item-qty-col {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--cream-dark);
        padding-top: 10px;
        margin-top: 4px;
    }

    .cart-item-subtotal {
        font-size: 16px;
        font-weight: 700;
        color: var(--maroon);
    }

    .cart-item-img-wrap {
        width: 72px;
    }

    .cart-bulk-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .cart-bulk-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .cart-coupon-wrap {
        flex-wrap: wrap;
    }

    .cart-coupon-input {
        flex-basis: 100%;
        border-right: none;
    }

    .cart-coupon-btn {
        width: 100%;
        height: 40px;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .cart-coupon-icon {
        border-radius: var(--radius-sm) 0 0 0;
    }

    .cart-empty-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-empty-btn {
        justify-content: center;
    }

    .cart-mobile-sticky {
        bottom: 56px;
        padding: 8px 12px;
    }

    .cart-delivery-progress {
        padding: 12px 14px;
    }

    .cart-summary-rows {
        padding: 16px;
    }

    .cart-checkout-btn {
        margin: 0 16px 14px;
        padding: 13px 20px;
        font-size: 14px;
    }

    .cart-summary-payment,
    .cart-summary-trust {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* =============================================
    CHECKOUT PAGE — RESPONSIVE ADDITIONS
============================================= */

/* ---- LG ≤ 1024px ---- */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }

    .checkout-summary-col {
        top: calc(100px + 20px);
    }
}

/* ---- MD ≤ 900px — Stack layout ---- */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Summary moves above form on mobile */
    .checkout-summary-col {
        position: static;
        order: -1;
    }

    /* Hide line items by default on mobile (collapsed) */
    .co-summary-items {
        max-height: 260px;
        overflow-y: auto;
    }

    .checkout-logo-center {
        position: static;
        transform: none;
    }

    .checkout-header-inner {
        justify-content: space-between;
    }

    .checkout-header-trust {
        display: none;
    }

    .checkout-steps {
        gap: 0;
    }

    .checkout-step-sep {
        width: 28px;
    }

    .step-label {
        display: none;
    }

    .checkout-step.active .step-label,
    .checkout-step.done .step-label {
        display: none;
    }
}

/* ---- SM ≤ 768px ---- */
@media (max-width: 768px) {
    .checkout-main {
        padding: 16px 0 48px;
    }

    .checkout-card-head {
        padding: 14px 18px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .checkout-card-title {
        font-size: 16px;
    }

    .checkout-card-body {
        padding: 16px 18px;
    }

    .co-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .co-form-row .co-field-group {
        margin-bottom: 16px;
    }

    .co-form-row-3 {
        grid-template-columns: 1fr;
    }

    .co-payment-tabs {
        gap: 6px;
    }

    .co-pay-tab {
        padding: 9px 14px;
        font-size: 12px;
    }

    .co-delivery-option {
        padding: 13px 14px;
    }

    .co-delivery-name {
        font-size: 13px;
    }

    .co-place-order-btn {
        height: 52px;
        font-size: 15px;
    }

    .co-security-strip {
        gap: 12px;
    }

    .co-security-strip span {
        font-size: 10px;
    }

    .co-success-modal {
        padding: 28px 20px 24px;
    }

    .co-success-title {
        font-size: 22px;
    }

    .co-success-detail-row {
        gap: 10px;
    }

    .co-success-detail {
        min-width: 100px;
        padding: 10px 12px;
    }

    .co-saved-addresses {
        gap: 8px;
    }

    .co-saved-addr {
        padding: 12px 14px;
    }

    .co-cod-block {
        flex-direction: column;
        gap: 12px;
    }

    .checkout-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .checkout-footer-links {
        justify-content: center;
    }

    .payment-methods {
        justify-content: center;
    }
}

/* ---- XS ≤ 600px ---- */
@media (max-width: 600px) {
    .checkout-header-inner {
        padding: 10px 0;
        gap: 8px;
    }

    .checkout-back-link span {
        display: none;
    }

    .checkout-back-link {
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .checkout-logo-center .logo-text {
        display: none;
    }

    .checkout-logo-center .logo-image {
        height: 36px;
    }

    .checkout-step-sep {
        width: 20px;
    }

    .step-circle {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .co-summary-head {
        padding: 12px 16px;
    }

    .co-summary-items {
        padding: 12px 16px;
    }

    .co-summary-totals {
        padding: 12px 16px;
    }

    .co-summary-coupon {
        padding: 12px 16px;
    }

    .co-summary-item-img-wrap {
        width: 44px;
        height: 52px;
    }

    .co-summary-item-name {
        font-size: 11px;
    }

    .co-summary-item-price {
        font-size: 12px;
    }

    .co-trust-card {
        padding: 12px 16px;
    }

    .co-delivery-estimate-card {
        padding: 12px 16px;
    }

    .co-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .co-success-btn-primary,
    .co-success-btn-outline {
        justify-content: center;
    }

    .co-success-detail-row {
        justify-content: stretch;
    }

    .co-success-detail {
        flex: 1;
        min-width: 0;
    }

    .co-payment-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .co-pay-tab {
        justify-content: center;
    }
}

/* =============================================
    AUTH PAGES — RESPONSIVE ADDITIONS
============================================= */

/* ---- LG ≤ 1024px ---- */
@media (max-width: 1024px) {
    .auth-layout {
        grid-template-columns: 1fr 1fr;
    }

    .auth-layout-register {
        grid-template-columns: 1fr 1fr;
    }

    .auth-deco-inner {
        padding: 36px 32px;
    }

    .auth-deco-title {
        font-size: clamp(24px, 2.8vw, 34px);
    }

    .auth-card {
        padding: 28px 30px;
    }
}

/* ---- MD ≤ 900px — Hide deco panel, show form full width ---- */
@media (max-width: 900px) {
    .auth-layout,
    .auth-layout-register {
        grid-template-columns: 1fr;
    }

    .auth-deco-panel {
        display: none; /* Hide decorative panel on tablet/mobile */
    }

    .auth-form-panel {
        padding: 32px 16px;
        min-height: calc(100vh - 72px - 60px);
        justify-content: flex-start;
        padding-top: 40px;
    }

    .auth-card {
        max-width: 100%;
        padding: 28px 24px;
    }

    .auth-card-register {
        max-width: 100%;
    }
}

/* ---- SM ≤ 768px ---- */
@media (max-width: 768px) {
    .auth-header {
        height: 60px;
    }

    .auth-header-back span {
        display: none; /* Show only icon on small screens */
    }

    .auth-header-back {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .auth-form-panel {
        padding: 24px 12px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .auth-card-title {
        font-size: 22px;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .auth-form-row .auth-field-group {
        margin-bottom: 16px;
    }

    .auth-trust-row {
        gap: 12px;
    }

    .auth-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .auth-footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ---- XS ≤ 600px ---- */
@media (max-width: 600px) {
    .auth-form-panel {
        padding: 20px 8px;
    }

    .auth-card {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .auth-card::before {
        height: 2px;
    }

    .auth-google-btn {
        font-size: 13px;
        padding: 11px 16px;
    }

    .auth-input {
        font-size: 14px; /* Prevent zoom on iOS */
        padding: 11px 38px 11px 38px;
    }

    .auth-phone-wrap .auth-input {
        padding-left: 82px;
    }

    .auth-submit-btn {
        height: 48px;
        font-size: 13px;
        margin-top: 16px;
    }

    .auth-trust-row {
        gap: 10px;
        margin-top: 14px;
    }

    .auth-trust-badge {
        font-size: 10px;
    }
}

/* ---- XXS ≤ 480px ---- */
@media (max-width: 480px) {
    .auth-card-title {
        font-size: 20px;
    }

    .auth-card-sub {
        font-size: 12px;
    }

    .auth-strength-bar {
        width: 28px;
    }
}

/* =============================================
    WISHLIST PAGE — RESPONSIVE ADDITIONS
============================================= */

/* ---- LG ≤ 1024px ---- */
@media (max-width: 1024px) {
    .wishlist-layout {
        grid-template-columns: 1fr 260px;
        gap: 18px;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- MD ≤ 900px — Stack layout ---- */
@media (max-width: 900px) {
    .wishlist-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Summary sidebar moves above main grid on tablet */
    .wishlist-sidebar-col {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    /* Summary card spans full width */
    .wl-summary-card {
        grid-column: 1 / -1;
    }

    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Show mobile sticky bar */
    .wl-mobile-sticky {
        display: flex;
    }
}

/* ---- SM ≤ 768px ---- */
@media (max-width: 768px) {
    .wishlist-section {
        padding: 16px 0 48px;
    }

    .wishlist-page-header {
        margin-bottom: 18px;
    }

    .wishlist-page-title {
        font-size: 26px;
    }

    .wishlist-header-actions {
        gap: 8px;
    }

    .wishlist-share-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .wishlist-add-all-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .wishlist-sidebar-col {
        grid-template-columns: 1fr;
    }

    .wl-summary-card {
        grid-column: auto;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wl-item-name {
        font-size: 12px;
    }

    .wl-price-current {
        font-size: 14px;
    }

    .wl-add-cart-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    /* Toolbar compact */
    .wishlist-toolbar {
        padding: 9px 12px;
    }

    .wl-sort-select {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ---- XS ≤ 600px ---- */
@media (max-width: 600px) {
    .wishlist-section {
        padding: 14px 0 40px;
    }

    .wishlist-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wishlist-header-actions {
        width: 100%;
    }

    .wishlist-share-btn,
    .wishlist-add-all-btn {
        flex: 1;
        justify-content: center;
    }

    .wishlist-filter-tabs {
        gap: 6px;
        margin-bottom: 14px;
    }

    .wl-filter-tab {
        font-size: 12px;
        padding: 6px 12px;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .wl-item-info {
        padding: 10px;
    }

    .wl-item-actions {
        margin-top: 6px;
        gap: 6px;
    }

    .wl-remove-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* List view on mobile */
    .wishlist-grid.wl-list-view .wl-item-img-wrap {
        width: 80px;
        min-width: 80px;
    }

    .wishlist-grid.wl-list-view .wl-item-info {
        padding: 10px 12px;
    }

    .wl-summary-body {
        padding: 14px 16px 0;
    }

    .wl-summary-actions {
        padding: 14px 16px 16px;
    }

    .wl-summary-head {
        padding: 12px 16px;
    }

    .wishlist-empty-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wishlist-empty-btn {
        justify-content: center;
    }

    .wl-mobile-sticky {
        bottom: 56px;
        padding: 8px 12px;
    }
}

/* ---- XXS ≤ 480px ---- */
@media (max-width: 480px) {
    .wishlist-page-title {
        font-size: 22px;
    }

    .wl-filter-tab {
        font-size: 11px;
        padding: 5px 10px;
    }

    .wl-tab-count {
        display: none;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .wl-item-info {
        padding: 8px;
        gap: 3px;
    }

    .wl-price-current {
        font-size: 13px;
    }

    .wl-price-original {
        font-size: 11px;
    }

    .wl-price-save {
        display: none;
    }

    .wl-item-date {
        display: none;
    }

    .wl-add-cart-btn {
        font-size: 11px;
        padding: 7px 8px;
    }

    .wl-add-cart-btn i {
        display: none;
    }

    .wl-share-card,
    .wl-promo-card {
        padding: 14px 16px;
    }

    .wishlist-empty-title {
        font-size: 22px;
    }

    .wishlist-empty-sub {
        font-size: 13px;
    }
}


/* =============================================
   RESPONSIVE — Dashboard
============================================= */
@media (max-width: 1024px) {
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .dashboard-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 48px;
    }

    .dash-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .dash-profile-card { margin-bottom: 0; }

    .dash-nav { grid-column: 1 / -1; }

    /* ---------- PRODUCT DETAIL GALLERY ---------- */
    .pd-gallery {
        display: flex !important;
        flex-direction: column !important;
    }

    .pd-main-img-wrap {
        position: relative !important;
        order: 1 !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
    }

    .pd-thumbs {
        position: static !important;
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        width: 100% !important;
        gap: 8px;
        margin-top: 10px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .pd-thumb {
        position: static !important;
        flex: 0 0 64px !important;
        width: 64px !important;
        height: 64px !important;
        top: auto !important;
        left: auto !important;
    }
}

@media (max-width: 768px) {
    .dash-welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .dash-welcome-title { font-size: 22px; }

    .dash-welcome-action {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dash-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dash-info-grid  { grid-template-columns: 1fr; }

    .dash-orders-table thead { display: none; }

    .dash-orders-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 14px 0;
        border-bottom: 1.5px solid var(--cream-dark);
    }

    .dash-orders-table td {
        padding: 0;
        border-bottom: none;
    }

    .dash-orders-table td:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .dash-sidebar {
        grid-template-columns: 1fr;
    }

    .dash-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dash-quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .dash-stat-card { padding: 14px; gap: 12px; }
    .dash-stat-icon { width: 40px; height: 40px; font-size: 16px; }
    .dash-stat-value { font-size: 22px; }

    .dash-orders-table tr { grid-template-columns: 1fr; }
    .dash-orders-table td:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
    .pd-thumb {
        flex: 0 0 54px !important;
        width: 54px !important;
        height: 54px !important;
    }
}