/* ============================================
   CSS VARIABLES — LIGHT & DARK THEMES
   ============================================ */
:root {
    --font: 'Inter', sans-serif;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --carousel-duration: 10s;
}

[data-theme="light"] {
    --bg-body: #f0f2f7;
    --bg-header: #ffffff;
    --bg-nav: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-hero: #eef2f6;
    --bg-footer: #0f172a;
    --bg-popup: #ffffff;
    --bg-input: #f1f5f9;
    --bg-category: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --text-inverse: #ffffff;

    --border-color: #e9edf4;
    --border-light: #f1f5f9;

    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-bg: #fef3c7;

    --primary: #1a3a6b;
    --primary-light: #2d4a7a;
    --primary-dark: #0f2640;

    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.10);
}

[data-theme="dark"] {
    --bg-body: #111827;
    --bg-header: #1e293b;
    --bg-nav: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #2d3a4f;
    --bg-hero: #0f172a;
    --bg-footer: #0a0f1a;
    --bg-popup: #1e293b;
    --bg-input: #2d3a4f;
    --bg-category: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #f8fafc;
    --text-inverse: #0f172a;

    --border-color: #334155;
    --border-light: #2d3a4f;

    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-bg: #2d2a1a;

    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;

    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Full-width container — no max-width, just padding for edges */
.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.top-bar a {
    color: var(--text-muted);
    transition: color var(--transition);
}
.top-bar a:hover {
    color: var(--accent);
}
.top-bar .left span {
    margin-right: 14px;
}
.top-bar .left i {
    margin-right: 4px;
    color: var(--accent);
}
.top-bar .right a {
    margin-left: 12px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 14px;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: color var(--transition);
}
.logo span {
    color: var(--accent);
}
.logo i {
    font-size: 1.6rem;
    color: var(--accent);
}

.search-wrap {
    flex: 1;
    min-width: 160px;
    max-width: 480px;
    position: relative;
}
.search-wrap input {
    width: 100%;
    padding: 9px 44px 9px 18px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: border var(--transition), background var(--transition), color var(--transition);
    outline: none;
}
.search-wrap input::placeholder {
    color: var(--text-muted);
}
.search-wrap input:focus {
    border-color: var(--accent);
}
.search-wrap button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition);
    font-size: 0.9rem;
}
.search-wrap button:hover {
    background: var(--accent-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.header-actions .icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-actions .icon-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.header-actions .icon-btn .badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s;
}
.header-actions .icon-btn .badge.pop {
    transform: scale(1.4);
}
.header-actions .icon-btn .label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    display: none;
}

.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.theme-toggle i {
    font-size: 0.9rem;
}

/* ============================================
   NAVIGATION — full width category bar
   ============================================ */
.main-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 68px;
    z-index: 1000;
    transition: background var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
    width: 100%;
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}
.main-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    flex: 1;
}
.main-nav .nav-links::-webkit-scrollbar {
    display: none;
}
.main-nav .nav-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.main-nav .nav-links a i {
    margin-right: 4px;
    font-size: 0.75rem;
}
.main-nav .nav-extra {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.main-nav .nav-extra a {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}
.main-nav .nav-extra a:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.main-nav .nav-extra .highlight {
    color: var(--accent);
    font-weight: 600;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    z-index: 1200;
    position: relative;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 4px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section {
    padding: 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition);
}
.section-header h2 i {
    color: var(--accent);
}
.section-header .see-all {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-header .see-all:hover {
    color: var(--accent);
}

/* ============================================
   CAROUSEL — NEW ARRIVALS & CATEGORIES
   ============================================ */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-popup);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}
.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    opacity: 1;
}
.carousel-btn.prev {
    left: 12px;
}
.carousel-btn.next {
    right: 12px;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-track .product-card {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

/* For page‑by‑page mode (mobile) we keep the slide grouping */
.carousel-slide {
    flex: 0 0 100%;
    display: grid;
    gap: 16px;
    padding: 0 16px;
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive columns for carousel slides */
@media (min-width: 480px) {
    .carousel-slide {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .carousel-slide {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .carousel-slide {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1400px) {
    .carousel-slide {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (min-width: 1600px) {
    .carousel-slide {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Mobile overrides for category carousels */
@media (max-width: 820px) {
    .carousel-slide {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 768px) {
    .category-carousel .carousel-slide {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}
.carousel-dots .dot:hover {
    background: var(--accent-hover);
}

/* ============================================
   PRODUCT CARD — with full name display
   ============================================ */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.product-card .image-wrap {
    background: var(--bg-body);
    aspect-ratio: 1/0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    position: relative;
    transition: background var(--transition);
    overflow: hidden;
}
.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.product-card .image-wrap i {
    font-size: 2.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: color var(--transition);
}
.product-card .image-wrap .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 12px;
    border-radius: 50px;
    color: #fff;
    z-index: 2;
}
.badge-new {
    background: #22c55e;
}
.badge-sale {
    background: #ef4444;
}
.badge-hot {
    background: #f59e0b;
}
/* Private badge – appears top‑right */
.badge-private {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6b7280;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 12px;
    border-radius: 50px;
    z-index: 2;
}

.product-card .info {
    padding: 12px 14px 14px;
}
.product-card .info .name {
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
    transition: color var(--transition);
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}
.product-card .info .sku {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.product-card .info .prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.product-card .info .prices .current {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color var(--transition);
}
.product-card .info .prices .old {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-card .info .prices .discount {
    font-size: 0.65rem;
    font-weight: 700;
    color: #22c55e;
    background: #dcfce7;
    padding: 0 8px;
    border-radius: 50px;
}
[data-theme="dark"] .product-card .info .prices .discount {
    background: #1a3a2a;
    color: #4ade80;
}
.product-card .info .stock {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.product-card .info .stock .in {
    color: #22c55e;
    font-weight: 600;
}
.product-card .info .stock .low {
    color: #ef4444;
    font-weight: 600;
}

.product-card .info .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.product-card .info .card-actions .btn-cart {
    flex: 1;
    padding: 7px 0;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-card .info .card-actions .btn-cart:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}
.product-card .info .card-actions .btn-cart.added {
    background: #22c55e;
}
.product-card .info .card-actions .btn-wish {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .info .card-actions .btn-wish:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}
.product-card .info .card-actions .btn-wish.liked {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* ============================================
   SIDEBARS (Cart & Wishlist)
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(4px);
}
.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 92vw;
    height: 100%;
    background: var(--bg-popup);
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}
.sidebar.open {
    right: 0;
}
.sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar .sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.sidebar .sidebar-header .close-sidebar {
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
    background: none;
    border: none;
}
.sidebar .sidebar-header .close-sidebar:hover {
    color: var(--text-primary);
}

.sidebar .sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}
.sidebar .sidebar-body .empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}
.sidebar .sidebar-body .empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.sidebar-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.sidebar-item .si-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-body);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sidebar-item .si-info {
    flex: 1;
}
.sidebar-item .si-info .si-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.sidebar-item .si-info .si-price {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}
.sidebar-item .si-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--transition);
    background: none;
    border: none;
    padding: 4px 8px;
}
.sidebar-item .si-remove:hover {
    color: #ef4444;
}

.sidebar .sidebar-footer {
    padding: 16px 22px 22px;
    border-top: 1px solid var(--border-color);
}
.sidebar .sidebar-footer .sidebar-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.sidebar .sidebar-footer .btn-primary-action {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sidebar .sidebar-footer .btn-primary-action:hover {
    background: var(--accent-hover);
}

/* ============================================
   FOOTER — Combined: Brand, Quick Links, Support, Contact, Payment
   ============================================ */
.footer-payment {
    background: var(--bg-footer);
    color: var(--text-muted);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}
.footer-payment .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}
.footer-payment h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-payment .brand-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.footer-payment .brand-info .social-icons a {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 12px;
    transition: color var(--transition);
}
.footer-payment .brand-info .social-icons a:hover {
    color: var(--accent);
}
.footer-payment .links-column a {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 6px;
    transition: color var(--transition);
}
.footer-payment .links-column a:hover {
    color: var(--accent);
}
.footer-payment .contact-info p {
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.footer-payment .contact-info i {
    color: var(--accent);
    width: 22px;
    text-align: center;
}
.footer-payment .contact-info a {
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-payment .contact-info a:hover {
    color: var(--accent);
}
.footer-payment .payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.footer-payment .payment-methods span {
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-payment .payment-methods span i {
    color: var(--accent);
}
.footer-payment .copyright {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
}

@media (max-width: 992px) {
    .footer-payment .container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .footer-payment .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   FLOATING WHATSAPP BUTTON — right side, pulse animation
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: whatsapp-pulse 2.5s infinite;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.10);
    box-shadow: 0 6px 35px rgba(37, 211, 102, 0.6);
}
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
@media (max-width: 540px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast i {
    color: #22c55e;
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE OVERRIDES — keep mobile exactly as before
   ============================================ */
@media (max-width: 820px) {
    .header .container {
        flex-wrap: nowrap;
    }
    .search-wrap {
        min-width: 100px;
    }
    .header-actions .icon-btn .label {
        display: none;
    }
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        background: var(--bg-nav);
        border-top: 1px solid var(--border-color);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
        box-shadow: var(--shadow-md);
        flex-wrap: wrap;
        overflow-y: auto;
        max-height: 80vh;
    }
    .main-nav .nav-links.open {
        display: flex;
    }
    .main-nav .nav-links a {
        width: 100%;
        padding: 8px 20px;
        white-space: normal;
    }
    .hamburger {
        display: flex;
    }
    .main-nav .container {
        flex-wrap: wrap;
        position: relative;
    }
    .main-nav .nav-extra {
        display: none;
    }
    .top-bar .left span {
        display: none;
    }
    .sidebar {
        width: 92vw;
        right: -100vw;
    }
}

@media (max-width: 540px) {
    .header .container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .search-wrap {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .header-actions {
        gap: 2px;
    }
    .header-actions .icon-btn {
        padding: 6px 8px;
        font-size: 1rem;
    }
    .section {
        padding: 0;
    }
    .section-header h2 {
        font-size: 1.15rem;
    }
    .product-card .info .card-actions .btn-cart {
        font-size: 0.65rem;
        padding: 6px 0;
    }
    .product-card .info .card-actions .btn-wish {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .product-card .image-wrap i {
        font-size: 2rem;
    }
    .sidebar .sidebar-body {
        padding: 12px 16px;
    }
    .sidebar .sidebar-header {
        padding: 14px 16px;
    }
    .sidebar .sidebar-footer {
        padding: 12px 16px 16px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .carousel-btn.prev {
        left: 6px;
    }
    .carousel-btn.next {
        right: 6px;
    }
}

/* Add this to your existing css/style.css */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-link .image-wrap {
    cursor: pointer;
}
.product-link .name {
    transition: color var(--transition);
}
.product-link:hover .name {
    color: var(--accent);
}

/* ============================================
   MODAL STYLES
============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-popup);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-body .form-group {
    margin-bottom: 16px;
}
.modal-body .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.modal-body .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border var(--transition);
}
.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--accent);
}
.auth-message {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: none;
}
.auth-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}
.auth-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-popup);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 12px 0;
    z-index: 1100;
    margin-top: 4px;
}
.user-dropdown .user-info {
    padding: 0 16px 8px;
}
.user-dropdown .user-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.user-dropdown .user-info span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: capitalize;
}
.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 6px 12px;
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    font-size: 0.9rem;
}
.user-dropdown a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.user-dropdown a i {
    width: 18px;
    text-align: center;
}

/* Account button active state */
.icon-btn .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ============================================
   USER DROPDOWN - Updated
============================================ */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-popup);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: 8px 0;
    z-index: 1100;
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.user-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.user-dropdown-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 12px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    font-size: 0.9rem;
    text-decoration: none !important;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.user-dropdown-item.logout-item {
    color: #ef4444;
}

.user-dropdown-item.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Position the dropdown relative to account button */
.header-actions {
    position: relative;
}

/* Account button active state */
.icon-btn .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 480px) {
    .user-dropdown {
        right: -10px;
        min-width: 200px;
    }
    .user-avatar-large {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .user-dropdown-info strong {
        font-size: 0.85rem;
    }
    .user-dropdown-info span {
        font-size: 0.7rem;
    }
}
/* Ensure dropdown shows when display:block is applied */
.user-dropdown {
    display: none;
}
.user-dropdown[style*="display: block"] {
    display: block !important;
}

/* ============================================
   ACCOUNT SIDEBAR
============================================ */
.account-profile {
    text-align: center;
    padding: 20px 0;
}

.account-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.account-profile h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.account-profile p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.account-role {
    display: inline-block;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 50px;
    text-transform: capitalize;
}

.account-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    font-size: 0.9rem;
    cursor: pointer;
}

.account-menu-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.account-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}
/* Account button - small when logged in */
#accountBtn .fa-user-circle {
    font-size: 1.2rem;
}

#accountBtn .label {
    font-size: 0.7rem;
    font-weight: 500;
}

#accountBtn {
    gap: 4px;
    padding: 6px 10px;
}

/* Hover effect for account button */
#accountBtn:hover .fa-user-circle {
    color: var(--accent-hover);
}

/* ============================================
   ADMIN STYLES
============================================ */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-header .product-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}
.admin-header .back-link {
    color: var(--text-muted);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.admin-header .back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.admin-header .header-actions-admin {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}
.admin-form .form-group {
    margin-bottom: 20px;
}
.admin-form .form-group.full-width {
    grid-column: 1 / -1;
}
.admin-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.admin-form label .required {
    color: #ef4444;
    margin-left: 2px;
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border var(--transition), box-shadow var(--transition);
    font-family: var(--font);
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}
.admin-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    transition: border var(--transition);
}
.admin-form input[type="file"]:hover {
    border-color: var(--accent);
}
.admin-form .help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.admin-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}
.admin-form .checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}
.admin-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.admin-form .btn-submit {
    padding: 12px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.admin-form .btn-submit:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}
.admin-form .btn-reset {
    padding: 12px 30px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.admin-form .btn-reset:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.admin-form .btn-reset.danger {
    color: #ef4444;
    border-color: #ef4444;
}
.admin-form .btn-reset.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.alert i {
    font-size: 1.2rem;
}

.category-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.category-input-group select {
    flex: 1;
}
.category-input-group .btn-add-category {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.category-input-group .btn-add-category:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.category-input-group .btn-add-category.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.category-input-group .btn-add-category.active:hover {
    background: var(--accent-hover);
}
.new-category-input {
    display: none;
    margin-top: 10px;
}
.new-category-input.show {
    display: block;
}
.image-preview {
    margin-top: 10px;
    max-width: 200px;
    display: none;
}
.image-preview.show {
    display: block;
}
.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}
.current-image {
    margin-top: 10px;
    max-width: 150px;
}
.current-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}
.current-image .image-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.badge-preview {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-top: 4px;
}
.badge-preview.badge-new { background: #22c55e; }
.badge-preview.badge-sale { background: #ef4444; }
.badge-preview.badge-hot { background: #f59e0b; }

@media (max-width: 768px) {
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    .category-input-group {
        flex-direction: column;
        width: 100%;
    }
    .category-input-group select {
        width: 100%;
    }
    .category-input-group .btn-add-category {
        width: 100%;
        justify-content: center;
    }
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    .admin-header .header-actions-admin {
        flex-wrap: wrap;
        justify-content: center;
    }
    .admin-form .form-actions {
        flex-direction: column;
    }
    .admin-form .btn-submit,
    .admin-form .btn-reset {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   BANNER CAROUSEL - THREE COLUMNS - UPDATED
============================================ */
.banner-carousel-section {
    padding: 0;
}

.banner-header {
    margin-bottom: 12px;
}

.banner-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-carousel-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0;
    align-items: stretch;
    background: transparent;
}

.banner-column {
    position: relative;
    overflow: hidden;
    background: transparent;
    min-height: 200px;
    border-radius: 0;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    border-radius: 0;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.banner-slide a:hover .banner-overlay {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.banner-overlay .banner-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.banner-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.banner-btn.prev {
    left: 8px;
}
.banner-btn.next {
    right: 8px;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.banner-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.banner-dots .dot:hover {
    background: var(--accent);
}

.banner-center {
    min-height: 300px;
}
.banner-center .banner-carousel {
    min-height: 300px;
}
.banner-center .banner-overlay .banner-title {
    font-size: 1.1rem;
}

@media (min-width: 1024px) {
    .banner-center {
        min-height: 420px;
    }
    .banner-center .banner-carousel {
        min-height: 420px;
    }
    .banner-left,
    .banner-right {
        min-height: 320px;
    }
    .banner-left .banner-carousel,
    .banner-right .banner-carousel {
        min-height: 320px;
    }
}

.banner-slide a {
    -webkit-tap-highlight-color: transparent;
}
.banner-slide a:focus,
.banner-slide a:active {
    outline: none;
}

@media (max-width: 768px) {
    .banner-carousel-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .banner-left,
    .banner-right {
        display: none;
    }
    .banner-center {
        min-height: 200px;
    }
    .banner-center .banner-carousel {
        min-height: 200px;
    }
    .banner-carousel-section {
        padding: 0;
    }
    .banner-header h2 {
        font-size: 1.2rem;
    }
    .banner-overlay {
        padding: 12px 14px;
    }
    .banner-overlay .banner-title {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .banner-carousel-wrapper {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 0;
    }
    .banner-center {
        min-height: 280px;
    }
    .banner-center .banner-carousel {
        min-height: 280px;
    }
    .banner-left,
    .banner-right {
        min-height: 220px;
    }
}

/* ============================================
   SEARCH RESULTS GRID – left alignment
============================================ */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}
.category-grid .product-card {
    flex: 0 0 calc(25% - 16px);
    max-width: calc(25% - 16px);
}
@media (max-width: 1024px) {
    .category-grid .product-card {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}
@media (max-width: 768px) {
    .category-grid .product-card {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}
@media (max-width: 480px) {
    .category-grid .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   ULTIMATE LEFT ALIGNMENT FIX
   ============================================ */
@media (min-width: 769px) {
    .carousel-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left !important;
    }

    .carousel-track .product-card {
        flex: 0 0 auto !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    .carousel-wrapper {
        text-align: left !important;
        padding: 12px 0 !important;
    }
}