/* ================================================
   BUZZIMART — Comprehensive Responsive Stylesheet
   ================================================
   Mobile-first enhancements for 320px–1024px.
   Works alongside style.css & ae-header.css.
   ================================================ */

/* ───── 0. ROOT OVERFLOW GUARD ───── */
html {
    overflow-x: clip;
    width: 100%;
}
html, body {
    max-width: 100%;
}

/* ───── 1. GLOBAL RESPONSIVE RESETS ───── */
html {
    width: 100%;
}
body {
    width: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Hide mobile drawer on desktop by default — only visible via JS on mobile */
.ae-mobile-drawer,
.ae-drawer-overlay {
    display: none;
}

/* All interactive elements — minimum touch target */
a, button, input, select, textarea, label,
.ae-action-btn, .ae-top-link, .ae-nav-links a,
.ae-nav-trigger, .ae-nav-col a, .ae-feature-item,
.affiliate-promo-btn, .bz-hero-dot, .bz-hero-arrow,
.page-num, .page-prev, .page-next, .filter-toggle-mobile,
.btn, .btn-primary, .btn-outline, .btn-sm, .btn-lg,
.pc-hover-cart, .wishlist-heart, .badge-cj-shop,
.variant-btn, .qty-btn, .tab-btn, .review-submit,
.sidebar-close-btn,
.shop-sidebar .sidebar-cat-list a,
.price-range-form input, .price-range-form button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ───── 2. CONTAINER — Fluid on small screens ───── */
@media (hover: none) and (pointer: coarse) {
    .pc-hover-cart { transform: none !important; display: block !important; }
    .rainy-slide-card .pc-hover-cart { opacity: 1 !important; }
}
@media (max-width: 576px) {
    /* ═══ DISABLE HOVER EFFECTS ON MOBILE ═══ */
    /* These cause "stuck" transforms on touch devices */
    .product-card-v2:hover { transform: none !important; }
    .product-card-v2:hover .pc-image-wrap img { transform: none !important; }
    .pc-hover-cart { transform: none !important; display: block !important; }
    .product-card:hover { transform: none !important; }
    .product-card:hover .image-wrap img { transform: none !important; }
    .product-card .image-wrap img { padding: 8px !important; }
    .wishlist-heart:hover { transform: none !important; }
    .category-card-v2:hover { transform: none !important; box-shadow: none !important; border-color: var(--border-color, #eee) !important; }
    .category-card-v2:hover .cat-icon-v2 { transform: none !important; }
    .why-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--border-color, #eee) !important; }
    .hero-cta:hover { transform: none !important; box-shadow: none !important; }
    .container {
        padding: 0 12px !important;
        max-width: 100% !important;
    }
}
@media (min-width: 577px) and (max-width: 768px) {
    .container {
        padding: 0 16px !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

/* ───── 3. TOP UTILITY BAR ───── */
@media (max-width: 768px) {
    .ae-top-bar {
        padding: 4px 0;
        font-size: 0.7rem;
    }
    .ae-top-bar .container {
        gap: 2px;
    }
    .ae-top-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .ae-top-left a {
        padding: 4px 6px;
        font-size: 0.68rem;
    }
    .ae-top-source { display: none; }
    .ae-top-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    .ae-top-link {
        padding: 4px 6px;
        font-size: 0.68rem;
        gap: 2px;
    }
    .ae-top-link i { font-size: 0.75rem; }
}
@media (max-width: 480px) {
    .ae-top-bar { font-size: 0.65rem; }
    .ae-top-left a, .ae-top-link { font-size: 0.62rem; padding: 3px 5px; }
    .ae-top-left { gap: 2px; }
    .ae-top-right { gap: 1px; }
}
@media (max-width: 400px) {
    .ae-top-left a { display: none; }
    .ae-top-source { display: none; }
    .ae-top-left { display: none; }
    .ae-top-bar .container {
        justify-content: center;
    }
    .ae-top-right {
        justify-content: center;
        gap: 4px;
    }
    .ae-top-link {
        padding: 2px 8px;
        font-size: 0.7rem;
    }
}

/* ───── 4. MAIN HEADER (STICKY) ───── */
@media (max-width: 768px) {
    .ae-header-inner {
        padding: 6px 0 !important;
        gap: 6px;
    }
    .ae-logo {
        gap: 4px;
    }
    .ae-logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
    .ae-logo-text {
        font-size: 1rem !important;
    }
    .ae-logo img {
        height: 36px !important;
        width: auto !important;
        max-width: 160px !important;
    }
    /* Search — always visible in main header on mobile, compact */
    .ae-search {
        display: block !important;
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    .ae-search-wrap input {
        padding: 6px 6px 6px 34px !important;
        font-size: 0.8rem !important;
    }
    .ae-search-icon {
        left: 10px !important;
        width: 14px !important;
        height: 14px !important;
    }
    .ae-search-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        min-height: 34px !important;
    }

    /* Action buttons — labels hidden, compact */
    .ae-action-btn {
        padding: 6px 6px !important;
        gap: 0;
        min-width: 38px;
        min-height: 38px;
    }
    .ae-action-icon {
        font-size: 1.2rem !important;
    }
    .ae-action-label {
        display: none !important;
    }
    .ae-badge {
        top: 0 !important;
        right: 0 !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.58rem !important;
    }

    /* Hamburger toggle */
    .ae-mobile-toggle {
        display: flex !important;
        padding: 6px 8px;
        min-width: 38px;
        min-height: 38px;
        font-size: 1.3rem;
    }
}

/* Extra tight — very small screens */
@media (max-width: 380px) {
    .ae-header-inner {
        gap: 4px !important;
    }
    .ae-action-btn {
        padding: 4px 4px !important;
        min-width: 32px;
        min-height: 32px;
    }
    .ae-action-icon {
        font-size: 1rem !important;
    }
    .ae-mobile-toggle {
        padding: 4px 6px;
        min-width: 32px;
        min-height: 32px;
        font-size: 1.1rem;
    }
    .ae-logo-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
    .ae-logo-text {
        font-size: 0.85rem !important;
    }
    .ae-search-wrap input {
        padding: 4px 4px 4px 28px !important;
        font-size: 0.72rem !important;
    }
    .ae-search-btn {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
        min-height: 30px !important;
    }
    .ae-search-icon {
        left: 8px !important;
        width: 12px !important;
        height: 12px !important;
    }
}

/* ───── 5. MOBILE NAV DRAWER ───── */
@media (max-width: 768px) {
    /* Keep nav bar but hide trigger label + category links */
    .ae-nav-bar {
        display: none;  /* hide entire nav bar on mobile — moved to drawer */
    }

    /* === Mobile Drawer (slide-in from left) === */
    .ae-mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        z-index: 2000;
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    .ae-mobile-drawer.open {
        transform: translateX(0);
    }

    /* Drawer overlay */
    .ae-drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
        backdrop-filter: blur(2px);
    }
    .ae-drawer-overlay.show {
        display: block;
    }

    /* Drawer header (logo + close) */
    .ae-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
        background: linear-gradient(135deg, #7c1d22 0%, #c0392b 100%);
        color: #fff;
    }
    .ae-drawer-header .ae-drawer-logo {
        display: flex;
        align-items: center;
    }
    .ae-drawer-header .ae-drawer-logo img {
        filter: brightness(0) invert(1); /* Make logo white on red background */
        height: 32px;
        width: auto;
    }
    .ae-drawer-header .ae-logo-text {
        color: #fff !important;
        font-size: 1.2rem !important;
    }
    .ae-drawer-header .ae-logo-text span {
        color: rgba(255,255,255,0.85) !important;
    }
    .ae-drawer-close {
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        font-size: 1.4rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .ae-drawer-close:hover {
        background: rgba(255,255,255,0.25);
    }

    /* Mobile search inside drawer (fallback) */
    .ae-drawer-search {
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
    }
    .ae-drawer-search .ae-search-wrap {
        border-radius: 25px;
        border-color: #ddd;
    }
    .ae-drawer-search .ae-search-wrap input {
        font-size: 0.9rem;
        padding: 10px 12px 10px 38px;
    }
    .ae-drawer-search .ae-search-btn {
        padding: 10px 16px;
        min-height: 40px;
    }

    /* Drawer user info */
    .ae-drawer-user {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 8px solid #f5f5f5;
    }
    .ae-drawer-user-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary-light, #fff0f0);
        color: var(--primary, #FF4747);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .ae-drawer-user-info {
        flex: 1;
        min-width: 0;
    }
    .ae-drawer-user-info strong {
        display: block;
        font-size: 0.9rem;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ae-drawer-user-info span {
        font-size: 0.75rem;
        color: #888;
    }

    /* Drawer nav links */
    .ae-drawer-nav {
        flex: 1;
        padding: 8px 0;
        overflow-y: auto;
    }
    .ae-drawer-nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        color: #444;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        border-bottom: 1px solid #f5f5f5;
        transition: background 0.15s;
        min-height: 50px;
    }
    .ae-drawer-nav a:active {
        background: var(--primary-light, #fff0f0);
        color: var(--primary, #FF4747);
    }
    .ae-drawer-nav a .drawer-icon {
        width: 28px;
        text-align: center;
        font-size: 1.1rem;
        color: var(--primary, #FF4747);
        flex-shrink: 0;
    }
    .ae-drawer-nav a .drawer-arrow {
        margin-left: auto;
        color: #bbb;
        font-size: 0.8rem;
    }

    /* Drawer section title */
    .ae-drawer-section-title {
        padding: 10px 20px 6px;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #999;
    }

    /* Drawer category links */
    .ae-drawer-cats {
        border-top: 8px solid #f5f5f5;
    }

    /* Premium drawer category grid */
    .ae-drawer-cat-grid {
        padding: 8px 16px 16px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .ae-drawer-cat-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        text-decoration: none;
        background: #fafafa;
        border: 1px solid #f0f0f0;
        transition: all 0.2s;
    }
    .ae-drawer-cat-card:active {
        background: #fef2f2;
        border-color: #fecaca;
        transform: scale(0.98);
    }
    .ae-drawer-cat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        flex-shrink: 0;
    }
    .ae-drawer-cat-info {
        flex: 1;
        min-width: 0;
    }
    .ae-drawer-cat-name {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: #111;
        margin-bottom: 1px;
    }
    .ae-drawer-cat-count {
        display: block;
        font-size: 0.7rem;
        color: #aaa;
    }
    .ae-drawer-cat-arrow {
        color: #ddd;
        font-size: 0.85rem;
    }
    .ae-drawer-cat-card:active .ae-drawer-cat-arrow {
        color: #e74c3c;
    }
    .ae-drawer-cats a {
        font-size: 0.82rem;
        color: #666;
        padding: 10px 20px 10px 48px;
        min-height: 40px;
    }

    /* Drawer footer */
    .ae-drawer-footer {
        padding: 12px 20px;
        border-top: 1px solid #eee;
        font-size: 0.72rem;
        color: #999;
        text-align: center;
    }
}

/* ───── 6. FEATURE STRIPS ───── */
@media (max-width: 768px) {
    .ae-features {
        padding: 10px 0;
    }
    .ae-features-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    .ae-feature-item {
        padding: 6px 8px;
        gap: 6px;
    }
    .ae-feature-icon {
        font-size: 1.1rem !important;
    }
    .ae-feature-item strong {
        font-size: 0.72rem !important;
    }
    .ae-feature-item span {
        font-size: 0.62rem !important;
    }
}
@media (max-width: 480px) {
    .ae-features-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px;
    }
    .ae-feature-item {
        padding: 4px 6px;
        gap: 4px;
    }
}

/* ───── 7. HERO SLIDER ───── */
@media (max-width: 768px) {
    .bz-hero {
        min-height: auto;
    }
    .bz-hero-slider {
        height: auto !important;
        min-height: 320px !important;
        overflow: visible !important;
        position: relative !important;
    }
    .bz-hero-slide {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none !important;
    }
    .bz-hero-slide.active {
        display: flex !important;
    }
    .bz-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 4px !important;
        padding: 8px 10px 12px !important;
    }
    .bz-hero-text {
        max-width: 100%;
    }
    .bz-hero-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        margin-bottom: 4px;
    }
    .bz-hero-title {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 1;
        margin-bottom: 4px;
    }
    .bz-hero-price {
        justify-content: center;
        margin-bottom: 6px;
        gap: 4px;
    }
    .bz-price-main {
        font-size: 1rem !important;
    }
    .bz-hero-cta {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        min-height: 30px !important;
        animation: none !important;
    }
    .bz-hero-image {
        flex: 0 0 200px !important;
        height: 200px !important;
    }
    .bz-hero-image::before {
        display: none !important;
    }
    .bz-hero-img {
        max-width: 90% !important;
        max-height: 90% !important;
    }
    .bz-hero-arrow {
        display: none !important;
    }
    .bz-hero-dots {
        bottom: 8px !important;
        gap: 6px;
    }
    .bz-hero-dot {
        width: 20px !important;
        height: 4px !important;
        min-width: 20px !important;
        min-height: 4px !important;
    }
    .bz-hero-dot.active {
        width: 32px !important;
    }
}
@media (max-width: 480px) {
    .bz-hero-slider {
        height: auto !important;
        min-height: 280px !important;
        overflow: visible !important;
        position: relative !important;
    }
    .bz-hero-slide {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none !important;
    }
    .bz-hero-slide.active {
        display: flex !important;
    }
    .bz-hero-inner {
        padding: 16px 14px;
        gap: 8px;
    }
    .bz-hero-title {
        font-size: 0.9rem !important;
    }
    .bz-price-main {
        font-size: 1.1rem !important;
    }
    .bz-hero-image {
        flex: 0 0 170px !important;
        height: 160px !important;
    }
    .bz-hero-cta {
        padding: 8px 18px !important;
        font-size: 0.78rem !important;
    }
    .bz-hero-dots {
        bottom: 6px;
        gap: 4px;
    }
    .bz-hero-dot { width: 16px !important; }
    .bz-hero-dot.active { width: 24px !important; }
}

/* ───── 8. PRODUCT GRID ───── */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px;
    }
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .product-card .info {
        padding: 10px !important;
    }
    .product-card .name {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2;
        min-height: calc(0.8rem * 1.4 * 2);
    }
    .price-now {
        font-size: 0.9rem !important;
    }
    .price-was {
        font-size: 0.72rem !important;
    }
    .product-card .actions .btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        min-height: 36px;
    }
    .product-card .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}
@media (max-width: 480px) {
    .product-grid {
        gap: 8px !important;
    }
    .product-card .info {
        padding: 8px !important;
    }
    .product-card .name {
        font-size: 0.72rem !important;
        -webkit-line-clamp: 2;
        min-height: calc(0.72rem * 1.4 * 2);
    }
    .price-now {
        font-size: 0.82rem !important;
    }
    .product-card .actions .btn {
        padding: 4px 8px !important;
        font-size: 0.62rem !important;
        min-height: 32px;
    }
}

/* ───── 9. SHOP LAYOUT (Sidebar + Products) ───── */
@media (max-width: 1024px) {
    .shop-layout-v2 {
        grid-template-columns: 1fr;
        padding: 16px 0;
    }
    .filter-toggle-mobile {
        display: inline-flex !important;
    }
}
@media (max-width: 768px) {
    .shop-layout-v2 {
        padding: 12px 0;
        gap: 16px;
    }
    .shop-top-bar {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }
    .shop-top-controls {
        width: 100%;
        justify-content: space-between;
    }
    .result-count {
        font-size: 0.75rem;
    }

    /* Sidebar overlay */
    .shop-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        z-index: 2000;
        border-radius: 0 !important;
        overflow-y: auto;
        padding: 20px !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.2) !important;
    }
    .shop-sidebar.mobile-show {
        transform: translateX(0);
        display: block !important;
    }
    .shop-sidebar.mobile-hidden {
        display: block !important;
        transform: translateX(-100%);
    }
    .shop-sidebar-overlay.show {
        z-index: 1999 !important;
    }

    /* Sidebar close button */
    .sidebar-close-btn {
        display: inline-flex !important;
    }
}

/* ───── 10. PRODUCT DETAIL PAGE (product-cj.php) ───── */
@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 0 16px;
    }
    .product-gallery-col {
        max-width: 100%;
    }
    .gallery-main {
        aspect-ratio: 1 / 1;
        max-height: 70vw;
    }
    .gallery-main-img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    .gallery-thumbs {
        gap: 6px;
        justify-content: center;
    }
    .gallery-thumb {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }
}
@media (max-width: 640px) {
    .product-main {
        gap: 14px;
    }
    .product-info-col {
        padding: 0 4px;
    }
    .info-title {
        font-size: 1.05rem !important;
        line-height: 1.35;
    }
    .info-meta {
        gap: 8px;
        font-size: 0.78rem;
    }
    .info-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .info-price {
        font-size: 1.3rem !important;
    }
    .info-compare-price {
        font-size: 0.85rem;
    }
    .info-discount-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    .info-shipping {
        font-size: 0.8rem;
        padding: 10px 14px;
    }
    .variant-section {
        gap: 6px;
    }
    .variant-group-label {
        font-size: 0.82rem;
    }
    .variant-options {
        gap: 6px;
    }
    .variant-btn {
        padding: 8px 14px !important;
        font-size: 0.78rem !important;
        min-height: 38px;
    }

    /* Action buttons — stack vertically */
    .product-actions,
    .info-actions {
        flex-direction: column !important;
        gap: 8px;
    }
    .btn-add-cart,
    .btn-buy-now,
    .btn-wishlist,
    .btn-whatsapp-share {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }
    /* Shipping & meta cards — collapse to 2 cols */
    .info-shipping-cards {
        grid-template-columns: 1fr 1fr !important;
    }
    .info-meta-cards {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Tabs */
    .details-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }
    .details-tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Reviews */
    .reviews-section {
        padding: 0 4px;
    }
    .review-card {
        padding: 12px 14px;
    }
    .review-text {
        font-size: 0.82rem;
    }

    /* Similar products */
    .similar-section .product-grid-4,
    .similar-section .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
}
@media (max-width: 480px) {
    .info-shipping-cards {
        grid-template-columns: 1fr !important;
    }
    .info-meta-cards {
        grid-template-columns: 1fr 1fr !important;
    }
    .info-actions {
        gap: 6px;
    }
}

/* ───── 11. FOOTER ───── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4 {
        font-size: 0.72rem;
        margin-bottom: 12px;
    }
    .footer-col ul li a {
        font-size: 0.72rem;
        padding: 3px 0;
        justify-content: center;
        min-height: 0;
        display: inline;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding-top: 16px;
    }
    .footer-social {
        gap: 8px;
    }
    .footer-social a {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .feature-item {
        text-align: center;
        padding: 16px 10px;
    }
    .feature-item h4 {
        font-size: 0.82rem;
    }
    .feature-item p {
        font-size: 0.72rem;
    }
}
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .feature-item {
        padding: 12px 8px;
    }
    .feature-item .feat-icon {
        font-size: 1.5rem;
    }
    .feature-item h4 {
        font-size: 0.75rem;
    }
    .feature-item p {
        font-size: 0.65rem;
    }
    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* ───── 12. FORMS (Registration, Login, Checkout, Contact, Wholesale) ───── */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px 16px !important;
        margin: 16px 0;
    }
    .auth-card h2 {
        font-size: 1.1rem;
    }
    .auth-card .form-group {
        margin-bottom: 14px;
    }
    .auth-card label {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }
    .auth-card input,
    .auth-card select,
    .auth-card textarea {
        width: 100% !important;
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
        min-height: 44px;
    }
    .auth-card .btn-primary,
    .auth-card .btn {
        width: 100%;
        justify-content: center;
        padding: 14px !important;
        font-size: 0.95rem !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .form-group {
        margin-bottom: 14px;
    }
    .form-group label {
        display: block;
        margin-bottom: 4px;
        font-size: 0.82rem;
        font-weight: 600;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 14px;
        font-size: 0.9rem;
        min-height: 44px;
        border: 1.5px solid #ddd;
        border-radius: 8px;
        outline: none;
        transition: border-color 0.2s;
        box-sizing: border-box;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary, #FF4747);
    }

    /* Checkout layout */
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Cart page */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .cart-item {
        grid-template-columns: 50px 1fr !important;
        gap: 10px;
        padding: 12px !important;
    }
    .cart-item-img {
        width: 50px !important;
        height: 50px !important;
    }
    .cart-item .item-info {
        min-width: 0;
    }
    .cart-item .item-name {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Account */
    .account-layout {
        grid-template-columns: 1fr !important;
    }
    .account-sidebar {
        position: static !important;
        margin-bottom: 16px;
    }
}

/* ─── Premium Auth Split (Login / Register) Mobile ─── */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column !important;
        max-width: 100% !important;
        min-height: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    .auth-brand {
        display: none !important;
    }
    .auth-form-panel {
        width: 100% !important;
        padding: 28px 16px !important;
        min-height: 100vh !important;
    }
    .auth-form-panel h2 {
        font-size: 1.25rem !important;
    }
    .auth-form-header {
        margin-bottom: 18px;
    }
    .auth-form-header .auth-sub {
        font-size: 0.85rem !important;
    }
    .auth-social {
        margin: 16px 0 !important;
    }
    .auth-social-label {
        font-size: 0.78rem !important;
    }
    .auth-social-btns {
        gap: 8px !important;
        justify-content: center;
    }
    .floating-group .form-control {
        height: 48px !important;
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
    .auth-social-btns {
        gap: 10px !important;
    }
    .auth-social-btn {
        width: 44px !important;
        height: 44px !important;
    }
    .auth-submit-btn {
        padding: 14px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    .auth-terms {
        font-size: 0.82rem !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        line-height: 1.4 !important;
        margin: 16px 0 !important;
    }
    .auth-terms input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        margin-top: 2px !important;
    }
    .auth-terms span {
        flex: 1;
        font-size: 0.78rem;
    }
    .auth-footer-link {
        font-size: 0.88rem !important;
    }
    .password-toggle {
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .password-strength {
        gap: 4px !important;
        margin-top: 6px !important;
    }
    .strength-bar {
        height: 4px !important;
    }
    .password-hint {
        font-size: 0.72rem !important;
        margin-top: 4px !important;
        line-height: 1.3 !important;
    }
    .form-row-auth {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
    }
    .auth-success-card {
        padding: 24px 16px !important;
    }
    .simple-field {
        margin-bottom: 16px !important;
    }
    .simple-field .form-control {
        height: 48px !important;
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
    .simple-label {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
        display: block;
    }
    .password-wrapper {
        display: flex !important;
        align-items: center !important;
        position: relative;
    }
    .password-wrapper .form-control {
        padding-right: 44px !important;
    }
    .remember-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .remember-label {
        font-size: 0.85rem !important;
    }
    .remember-label input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
    }
    .forgot-link {
        font-size: 0.82rem !important;
    }
    .auth-terms-note {
        font-size: 0.75rem !important;
        margin: 12px 0 6px !important;
    }
}

/* ───── 13. TABLES (Orders, Admin) ───── */
@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
        padding: 0 4px;
    }
    table {
        font-size: 0.75rem !important;
        min-width: 600px;
    }
    table th,
    table td {
        padding: 8px 8px !important;
        white-space: nowrap;
    }
}

/* ───── 14. AFFILIATE BANNER ───── */
@media (max-width: 768px) {
    .affiliate-promo-banner {
        padding: 10px 0;
    }
    .affiliate-promo-content {
        gap: 6px;
    }
    .affiliate-promo-icon {
        display: none;
    }
    .affiliate-promo-text strong {
        font-size: 0.85rem;
    }
    .affiliate-promo-text span {
        font-size: 0.75rem;
    }
    .affiliate-promo-btn {
        padding: 8px 16px;
        font-size: 0.78rem;
        min-height: 36px;
    }
}

/* ───── 15. AFFILIATE DASHBOARD / REGISTER PAGES ───── */
@media (max-width: 768px) {
    .affiliate-card {
        padding: 20px 16px !important;
    }
    .affiliate-card h2 {
        font-size: 1.05rem;
    }
    .affiliate-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .affiliate-stat {
        padding: 14px 10px;
    }
    .affiliate-stat-value {
        font-size: 1.2rem;
    }
    .affiliate-stat-label {
        font-size: 0.7rem;
    }
    .affiliate-link-box {
        flex-direction: column;
        gap: 6px;
    }
    .affiliate-link-box input {
        width: 100% !important;
        font-size: 0.78rem;
    }
    .affiliate-link-box button {
        width: 100%;
    }
}

/* ───── 16. BUZZBOT CHAT ───── */
@media (max-width: 768px) {
    #buzzbot-body {
        width: calc(100vw - 24px) !important;
        right: -4px !important;
        height: 55vh !important;
        max-height: 500px;
        bottom: 60px !important;
    }
    #buzzbot-widget {
        bottom: 16px !important;
        right: 16px !important;
    }
    #buzzbot-toggle {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
    }
    #buzzbot-header {
        padding: 12px 16px !important;
    }
    #buzzbot-messages {
        padding: 12px !important;
    }
    #buzzbot-input-area {
        padding: 8px 12px !important;
    }
}
@media (max-width: 480px) {
    #buzzbot-body {
        width: calc(100vw - 16px) !important;
        right: 0 !important;
        height: 55vh !important;
        bottom: 56px !important;
    }
    #buzzbot-widget {
        bottom: 12px !important;
        right: 12px !important;
    }
    #buzzbot-toggle {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }
}

/* ───── 17. PAGINATION ───── */
@media (max-width: 768px) {
    .pagination-v2 {
        gap: 4px;
        flex-wrap: wrap;
    }
    .pagination-v2 a,
    .pagination-v2 span {
        min-width: 36px;
        height: 36px;
        font-size: 0.78rem;
    }
}

/* ───── 18. CATEGORY GRID ───── */
@media (max-width: 768px) {
    .category-grid,
    .category-grid-3x2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .category-card {
        padding: 20px 14px !important;
    }
    .category-card h3 {
        font-size: 0.85rem;
    }
    .category-card .cat-count {
        font-size: 0.7rem;
    }
}
@media (max-width: 480px) {
    .category-grid,
    .category-grid-3x2 {
        gap: 8px;
    }
    .category-card {
        padding: 14px 10px !important;
    }
}

/* ───── 19. HERO SECTION (Inner pages) ───── */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 0 !important;
    }
    .page-header h1 {
        font-size: 1.2rem !important;
    }
    .page-header p {
        font-size: 0.82rem !important;
    }
    .breadcrumb {
        font-size: 0.72rem;
        flex-wrap: wrap;
        gap: 4px;
    }
    .breadcrumb a,
    .breadcrumb span {
        font-size: 0.72rem;
    }
}

/* ───── 20. SECTION HEADERS & SPACING ───── */
@media (max-width: 768px) {
    .section {
        padding: 24px 0 !important;
    }
    .section-header h2 {
        font-size: 1.1rem !important;
    }
    .section-header p {
        font-size: 0.82rem;
    }
    .section-subtitle {
        font-size: 0.8rem;
    }
}

/* ───── 21. DEALS BANNER ───── */
@media (max-width: 768px) {
    .deals-banner {
        padding: 20px 16px !important;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .deals-banner h3 {
        font-size: 1rem;
    }
    .deals-banner .countdown-timer {
        margin-left: 0 !important;
    }
}

/* ───── 22. WHOLE PAGE WHOLESALE ───── */
@media (max-width: 768px) {
    .wholesale-form {
        padding: 20px 16px;
    }
    .wholesale-form h2 {
        font-size: 1.1rem;
    }
}

/* ───── 23. PRE-ORDER MODAL RESPONSIVE ───── */
@media (max-width: 640px) {
    .preorder-modal-content {
        width: 90% !important;
        max-width: 340px !important;
        padding: 20px !important;
    }
    .preorder-modal-content h3 {
        font-size: 1rem;
    }
    .preorder-modal-content p {
        font-size: 0.82rem;
    }
    .preorder-modal-content .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

/* ───── 24. WHOLESALE INQUIRY PAGE ───── */
@media (max-width: 768px) {
    .wholesale-inquiry-form input,
    .wholesale-inquiry-form textarea,
    .wholesale-inquiry-form select {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px 14px;
        min-height: 44px;
    }
    .wholesale-inquiry-form .btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* ───── 25. PRODUCT REQUEST PAGE ───── */
@media (max-width: 768px) {
    .request-form input,
    .request-form textarea,
    .request-form select {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px 14px;
        min-height: 44px;
    }
    .request-form .btn {
        width: 100%;
        padding: 14px;
    }
}

/* ───── 26. 404 / ERROR PAGES ───── */
@media (max-width: 768px) {
    .error-page {
        padding: 40px 16px;
    }
    .error-page h1 {
        font-size: 3rem;
    }
    .error-page p {
        font-size: 0.9rem;
    }
}

/* ───── 27. PAGES THAT WRAP ───── */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
    .hide-mobile {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
    .show-mobile-only {
        display: none !important;
    }
}

/* ───── 28. 1024px — TABLET LANDSCAPE ADJUSTMENTS ───── */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
    .shop-layout-v2 {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }
    .shop-sidebar {
        padding: 16px;
    }
    .hero-buzzimart h1 {
        font-size: 2rem;
    }
    .bz-hero-slider {
        height: 360px;
    }
    .bz-hero-image {
        flex: 0 0 280px;
        height: 240px;
    }
    .product-grid-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ════════════════════════════════════════════════════════
   DESKTOP — 1025px and above
   Scale up the mobile-first layout for large screens
   ════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {

    /* ── Wider search bar ── */
    .ae-search {
        max-width: 680px !important;
    }

    /* ── Taller hero slider ── */
    .bz-hero {
        min-height: 460px;
    }
    .bz-hero-slider {
        height: 460px !important;
    }
    .bz-hero-title {
        font-size: 2rem !important;
        -webkit-line-clamp: 3 !important;
    }
    .bz-price-main {
        font-size: 2.4rem !important;
    }
    .bz-hero-image {
        flex: 0 0 440px !important;
        height: 380px !important;
    }
    .bz-hero-cta {
        padding: 14px 40px !important;
        font-size: 1.05rem !important;
    }

    /* ── Bigger product card pricing ── */
    .price-now {
        font-size: 1.2rem !important;
    }
    .pc-name {
        font-size: 0.95rem !important;
    }

    /* ── Spacious category cards ── */
    .category-card-v2 {
        min-height: 200px !important;
        padding: 32px 24px !important;
    }
    .cat-icon-v2 {
        width: 84px !important;
        height: 84px !important;
        font-size: 2rem !important;
    }
    .cat-name-v2 {
        font-size: 1.15rem !important;
    }

    /* ── Footer spacing ── */
    .site-footer {
        padding: 20px 0 40px !important;
    }
    .footer-grid {
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    /* ── Hero dot sizing ── */
    .bz-hero-dot {
        width: 36px !important;
        height: 6px !important;
        min-width: 36px !important;
        min-height: 6px !important;
    }
    .bz-hero-dot.active {
        width: 52px !important;
    }

    /* ── Header spacing ── */
    .ae-header-inner {
        padding: 12px 0 !important;
        gap: 28px !important;
    }

    /* ── Nav bar ── */
    .ae-nav-trigger {
        padding: 12px 22px !important;
        font-size: 0.9rem !important;
    }

    /* ── Better top bar ── */
    .ae-top-bar {
        padding: 6px 0 !important;
        font-size: 0.8rem !important;
    }
}

/* ════════════════════════════════════════════════════════
   29. EXTRA SMALL SCREENS (320px–480px) — Tight mobile
   ════════════════════════════════════════════════════════ */

/* ─── Auth forms: extra compact ─── */
@media (max-width: 480px) {
    .auth-form-panel {
        padding: 20px 12px !important;
    }
    .auth-form-panel h2 {
        font-size: 1.1rem !important;
    }
    .auth-form-header .auth-sub {
        font-size: 0.8rem !important;
    }
    .auth-social-label {
        font-size: 0.72rem !important;
    }
    .auth-social-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.85rem !important;
    }
    .auth-submit-btn {
        font-size: 0.9rem !important;
        padding: 12px !important;
        min-height: 44px !important;
    }
    .auth-terms {
        font-size: 0.75rem !important;
        gap: 6px !important;
        margin: 12px 0 !important;
    }
    .auth-terms input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
    }
    .auth-terms span {
        font-size: 0.72rem;
    }
    .auth-footer-link {
        font-size: 0.82rem !important;
    }
    .simple-field {
        margin-bottom: 12px !important;
    }
    .simple-label {
        font-size: 0.8rem !important;
    }
    .simple-field .form-control {
        height: 44px !important;
        font-size: 15px !important;
        padding: 10px 12px !important;
    }
    .password-toggle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 0.85rem !important;
        right: 8px !important;
    }
    .password-wrapper .form-control {
        padding-right: 38px !important;
    }

    /* Forgot/reset password */
    .auth-success-card {
        padding: 18px 12px !important;
    }
    .auth-success-card h2 {
        font-size: 1.05rem !important;
    }
    .auth-success-card p {
        font-size: 0.82rem !important;
    }

    /* Checkout mobile tweaks */
    .checkout-section {
        padding: 16px !important;
    }
    .checkout-section h3 {
        font-size: 0.92rem !important;
    }
    .form-row {
        gap: 10px !important;
    }
    .form-group label {
        font-size: 0.78rem !important;
    }
    .form-control {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        min-height: 42px !important;
    }
    .btn-lg {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }

    /* Cart page mobile */
    .cart-item-row {
        grid-template-columns: 70px 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .cart-item-img {
        width: 70px !important;
        height: 70px !important;
    }
    .cart-item-name {
        font-size: 0.82rem !important;
    }
    .cart-item-variant {
        font-size: 0.72rem !important;
    }
    .cart-item-subtotal {
        font-size: 0.85rem !important;
    }
    .cart-items-header {
        padding: 12px 16px !important;
    }
    .cart-items-header h3 {
        font-size: 0.92rem !important;
    }
    .cart-summary-panel {
        padding: 16px !important;
    }
    .summary-row {
        font-size: 0.82rem !important;
    }
    .summary-row.total {
        font-size: 0.95rem !important;
    }
    .cart-qty-controls button {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    .cart-qty-controls span {
        width: 32px !important;
        font-size: 0.82rem !important;
    }
    .btn-remove-item {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
    .empty-cart-state {
        padding: 40px 16px !important;
    }
    .empty-cart-state .empty-icon {
        font-size: 3rem !important;
    }
    .empty-cart-state h3 {
        font-size: 1.1rem !important;
    }

    /* Contact page */
    .contact-wrapper {
        padding: 24px 0 !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .contact-info-panel {
        padding: 24px 16px !important;
    }
    .contact-form-panel {
        padding: 24px 16px !important;
    }
    .contact-form-panel h2 {
        font-size: 1rem !important;
    }
    .contact-info-panel h2 {
        font-size: 1rem !important;
    }
    .contact-info-item {
        padding: 10px 0 !important;
    }
    .contact-info-content p {
        font-size: 0.85rem !important;
    }

    /* Product detail page (local) */
    .product-detail {
        padding: 0 !important;
    }
    .product-detail .product-info {
        padding: 0 8px !important;
    }
    .product-detail .product-title {
        font-size: 1.05rem !important;
    }
    .product-detail .product-price {
        font-size: 1.2rem !important;
    }
    .product-detail .product-actions .btn {
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
    }
    .product-detail .qty-selector {
        min-height: 40px !important;
    }
    .product-detail .qty-selector button {
        width: 36px !important;
        height: 36px !important;
    }

    /* Product grid — very small screens */
    .product-grid-4,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .pc-card,
    .product-card {
        border-radius: 8px !important;
    }
    .pc-info {
        padding: 6px 8px 8px !important;
    }
    .pc-name {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px;
    }

    /* Temu-style: simplify cards on mobile */
    .pc-category-label { display: none !important; }
    .pc-stock { display: none !important; }
    .pc-free-ship { display: none !important; }
    .pc-rating { display: none !important; }
    .pc-reviews { display: none !important; }
    .pc-shipping { display: none !important; }
    .pc-hover-cart { transform: none !important; display: block !important; }
    .pc-image-wrap img { padding: 8px !important; }

    .price-now {
        font-size: 0.82rem !important;
    }
    .price-was {
        font-size: 0.65rem !important;
    }
    .pc-badge,
    .badge {
        font-size: 0.55rem !important;
        padding: 2px 5px !important;
    }
    .product-card .actions .btn,
    .pc-actions .btn {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
        min-height: 30px;
    }
    .pc-category-label {
        font-size: 0.6rem !important;
        padding: 1px 6px !important;
    }
    .pc-rating {
        font-size: 0.62rem !important;
    }
    .pc-shipping {
        font-size: 0.6rem !important;
    }
    .pc-reviews {
        font-size: 0.62rem !important;
    }

    /* Flash deals / similar product cards */
    .flash-grid {
        gap: 6px !important;
    }
    .flash-card .info {
        padding: 6px 8px !important;
    }

    /* Shop sidebar mobile */
    .shop-sidebar {
        padding: 16px !important;
    }
    .sidebar-cat-list a {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
    .price-range-form input {
        width: 65px !important;
        padding: 6px 8px !important;
    }

    /* Footer */
    .footer-grid {
        gap: 16px !important;
    }
    .footer-col h4 {
        font-size: 0.7rem !important;
    }
    .footer-col ul li a {
        font-size: 0.7rem !important;
    }
    .footer-bottom {
        font-size: 0.7rem !important;
    }

    /* Page header */
    .page-header {
        padding: 16px 0 !important;
    }
    .page-header h1 {
        font-size: 1.1rem !important;
    }
    .breadcrumb {
        font-size: 0.68rem !important;
    }

    /* Sections */
    .section {
        padding: 16px 0 !important;
    }
    .section-header h2 {
        font-size: 1rem !important;
    }

    /* Hero slider */
    .bz-hero-slider {
        height: auto !important;
        min-height: 260px !important;
        overflow: visible !important;
        position: relative !important;
    }
    .bz-hero-slide {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none !important;
    }
    .bz-hero-slide.active {
        display: flex !important;
    }
    .bz-hero-inner {
        padding: 8px 12px 12px !important;
        gap: 4px !important;
        flex-direction: column-reverse !important;
    }
    .bz-hero-text {
        max-width: 100% !important;
    }
    .bz-hero-badge {
        font-size: 0.6rem !important;
        padding: 2px 8px !important;
        margin-bottom: 4px !important;
    }
    .bz-hero-title {
        font-size: 0.7rem !important;
        -webkit-line-clamp: 1 !important;
        margin-bottom: 2px !important;
    }
    .bz-hero-price {
        justify-content: center !important;
        margin-bottom: 4px !important;
        gap: 4px !important;
    }
    .bz-price-main {
        font-size: 0.85rem !important;
    }
    .bz-price-usd {
        font-size: 0.6rem !important;
        display: none !important;
    }
    .bz-hero-cta {
        padding: 4px 10px !important;
        font-size: 0.65rem !important;
        min-height: 28px !important;
    }
    .bz-hero-image {
        flex: 0 0 150px !important;
        height: 140px !important;
    }
    .bz-hero-img {
        max-width: 88% !important;
        max-height: 88% !important;
    }
    .bz-hero-arrow { display: none !important; }
    .bz-hero-dots { bottom: 2px !important; gap: 3px !important; }
    .bz-hero-dot {
        width: 14px !important;
        height: 3px !important;
        min-width: 14px !important;
        min-height: 3px !important;
    }
    .bz-hero-dot.active {
        width: 20px !important;
    }

    /* Affiliate promo */
    .affiliate-promo-text strong {
        font-size: 0.88rem !important;
    }
    .affiliate-promo-text span {
        font-size: 0.78rem !important;
    }
    .affiliate-promo-btn {
        padding: 6px 14px !important;
        font-size: 0.82rem !important;
    }

    /* Trending section */
    .trending-section h2 {
        font-size: 1rem !important;
    }

    /* Category grid */
    .category-grid,
    .category-grid-3x2 {
        gap: 6px !important;
    }
    .category-card {
        padding: 12px 8px !important;
    }
    .category-card h3 {
        font-size: 0.78rem !important;
    }

    /* Deals banner */
    .deals-banner {
        padding: 14px 12px !important;
    }
    .deals-banner h3 {
        font-size: 0.9rem !important;
    }

    /* Wishlist */
    .wishlist-heart {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.82rem !important;
    }

    /* Filter toggle */
    .filter-toggle-mobile {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
        min-height: 36px !important;
    }

    /* Pagination */
    .pagination-v2 a,
    .pagination-v2 span {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 0.72rem !important;
    }

    /* Search */
    .ae-search-wrap input {
        font-size: 0.75rem !important;
    }
    .ae-search-btn {
        font-size: 0.7rem !important;
        padding: 5px 8px !important;
    }
    .ae-action-icon {
        font-size: 1.1rem !important;
    }
}

/* ─── Tiny screens (320px–380px) ─── */
@media (max-width: 380px) {
    .auth-form-panel {
        padding: 16px 10px !important;
    }
    .simple-field {
        margin-bottom: 10px !important;
    }
    .simple-field .form-control {
        height: 40px !important;
        font-size: 14px !important;
        padding: 8px 10px !important;
    }
    .auth-submit-btn {
        font-size: 0.85rem !important;
        padding: 10px !important;
    }
    .auth-social-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.78rem !important;
    }

    .product-grid-4,
    .product-grid {
        gap: 4px !important;
    }
    .pc-name {
        font-size: 0.65rem !important;
    }
    .price-now {
        font-size: 0.75rem !important;
    }

    .cart-item-row {
        grid-template-columns: 55px 1fr !important;
        padding: 10px !important;
    }
    .cart-item-img {
        width: 55px !important;
        height: 55px !important;
    }

    .checkout-section {
        padding: 12px !important;
    }

    .bz-hero-slider {
        height: auto !important;
        min-height: 240px !important;
        overflow: visible !important;
        position: relative !important;
    }
    .bz-hero-slide {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none !important;
    }
    .bz-hero-slide.active {
        display: flex !important;
    }
    .bz-hero-image {
        flex: 0 0 130px !important;
        height: 120px !important;
    }
    .bz-hero-img {
        max-width: 85% !important;
        max-height: 85% !important;
    }
    .bz-hero-title {
        font-size: 0.6rem !important;
        -webkit-line-clamp: 1 !important;
    }
    .bz-price-main {
        font-size: 0.72rem !important;
    }
    .bz-hero-cta {
        font-size: 0.55rem !important;
        padding: 2px 6px !important;
        min-height: 22px !important;
    }
    .bz-hero-badge {
        font-size: 0.5rem !important;
        padding: 1px 5px !important;
    }
    .bz-hero-dot {
        width: 8px !important;
        height: 2px !important;
        min-width: 8px !important;
        min-height: 2px !important;
    }
    .bz-hero-dot.active {
        width: 14px !important;
    }
}
