:root {
    --primary: #1a73e8;
    --primary-dark: #1558b0;
    --secondary: #ff6b35;
    --accent: #00c9a7;
    --dark: #0d1b2a;
    --light-bg: #f4f7fc;
    --card-bg: #ffffff;
    --text-muted: #6c7a8d;
    --border: #e3e8f0;
    --flash-grad: linear-gradient(135deg, #ff6b35 0%, #f7c59f 100%);
    --hero-grad: linear-gradient(120deg, #0d1b2a 0%, #1a3a5c 60%, #1a73e8 100%);
    --sidebar-w: 260px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    background: var(--light-bg);
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── TOP BANNER ── */
.top-banner {
    background: linear-gradient(90deg, #1a73e8, #6c3fc7);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 8px 0;
    text-align: center;
}

.top-banner .btn-banner {
    background: #fff;
    color: var(--primary);
    border-radius: 20px;
    padding: 2px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: 10px;
    border: none;
    transition: all 0.2s;
}

.top-banner .btn-banner:hover {
    background: #ffe;
    transform: scale(1.05);
}

/* ── NAVBAR ── */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(26, 115, 232, 0.08);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary);
}

.brand-logo .logo-box {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo .logo-box i {
    color: #fff;
    font-size: 1.1rem;
}

.brand-logo span.dot {
    color: var(--secondary);
}

.search-wrap {
    position: relative;
    flex: 1;
}

.search-wrap input {
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 11px 20px;
    font-size: 0.92rem;
    width: 100%;
    outline: none;
    transition: border 0.2s;
}

.search-wrap input:focus {
    border-color: var(--primary);
}

.search-wrap .btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 11px 22px;
    font-size: 1rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-wrap .btn-search:hover {
    background: var(--primary-dark);
}

/* Mobile search icon button in navbar */
.mob-search-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--dark);
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
}

/* Mobile full-screen search overlay */
.mob-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.mob-search-overlay.active {
    display: flex;
}

.mob-search-box {
    background: #fff;
    width: 100%;
    padding: 14px 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: searchDrop 0.2s ease;
}

@keyframes searchDrop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mob-search-box input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 10px 0 0 10px;
    padding: 11px 16px;
    font-size: 0.92rem;
    outline: none;
    border-right: none;
}

.mob-search-box input:focus {
    border-color: var(--primary);
}

.mob-search-box .btn-mob-search {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 11px 18px;
    font-size: 1rem;
}

.mob-search-box .btn-mob-close {
    background: #f4f7fc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
}

.nav-icons {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-icons a {
    font-size: 1.35rem;
    color: var(--dark);
    position: relative;
    transition: color 0.2s;
}

.nav-icons a:hover {
    color: var(--primary);
}

.nav-icons .badge-dot {
    position: absolute;
    top: -5px;
    right: -7px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    /* Hide desktop search bar on mobile */
    .search-wrap {
        display: none !important;
    }

    /* Show mobile search icon */
    .mob-search-btn {
        display: inline-flex;
        align-items: center;
    }
}

/* ── CATEGORY NAV ── */
.cat-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.cat-nav .nav-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
    padding: 10px 16px;
    position: relative;
    transition: color 0.2s;
}

.cat-nav .nav-link.active,
.cat-nav .nav-link:hover {
    color: var(--primary);
}

.cat-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ══════════════════════════════════════════
       SIDEBAR — 3-Level Cascading Hover Menu
    ══════════════════════════════════════════ */
.sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border: none;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(26, 115, 232, 0.08);
    align-self: flex-start;
    position: sticky;
    top: 110px;
    z-index: 500;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1558b0 100%);
    color: #fff;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px 8px 0 0;
}

/* ── Level 1 list ── */
.sb-l1 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-l1 > li {
    position: relative;
}

/* L1 link */
.sb-l1 > li > .sb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #f5f7fc;
    cursor: pointer;
    transition:
        background 0.12s,
        color 0.12s;
    white-space: nowrap;
}

.sb-l1 > li:last-child > .sb-row {
    border-bottom: none;
}

.sb-l1 > li > .sb-row:hover,
.sb-l1 > li:hover > .sb-row {
    background: var(--primary);
    color: #fff;
}

.sb-l1 > li > .sb-row .sb-ico {
    font-size: 0.88rem;
    width: 18px;
    flex-shrink: 0;
}

.sb-l1 > li > .sb-row .sb-lbl {
    flex: 1;
}

.sb-l1 > li > .sb-row .sb-chev {
    font-size: 0.6rem;
    color: #bbb;
}

.sb-l1 > li:hover > .sb-row .sb-chev {
    color: rgba(255, 255, 255, 0.7);
}

/* badge */
.sb-badge {
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
}

.sb-badge.hot {
    background: #ffe0de;
    color: #c62828;
}

.sb-badge.new {
    background: #dff5e1;
    color: #1b5e20;
}

.sb-badge.sale {
    background: #fff8e1;
    color: #e65100;
}

/* ── Level 2 panel (appears on L1 hover) ── */
.sb-l2-panel {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    background: #fff;
    border: none;
    border-left: 3px solid var(--primary);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 600;
}

.sb-l1 > li:hover > .sb-l2-panel {
    display: block;
}

/* L2 list */
.sb-l2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-l2 > li {
    position: relative;
}

.sb-l2 > li > .sb-row {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #222;
    border-bottom: 1px solid #f5f7fc;
    cursor: pointer;
    transition:
        background 0.1s,
        color 0.1s;
}

.sb-l2 > li:last-child > .sb-row {
    border-bottom: none;
}

.sb-l2 > li > .sb-row .sb-lbl {
    flex: 1;
}

.sb-l2 > li > .sb-row .sb-chev {
    font-size: 0.6rem;
    color: #ccc;
}

.sb-l2 > li:hover > .sb-row,
.sb-l2 > li.l2-active > .sb-row {
    background: var(--primary);
    color: #fff;
}

.sb-l2 > li:hover > .sb-row .sb-chev {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Level 3 panel (appears on L2 hover) ── */
.sb-l3-panel {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 185px;
    background: #fff;
    border: none;
    border-left: 3px solid var(--primary);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 700;
}

.sb-l2 > li:hover > .sb-l3-panel {
    display: block;
}

/* L3 list */
.sb-l3 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-l3 li a {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    font-size: 0.81rem;
    font-weight: 600;
    color: #222;
    border-bottom: 1px solid #f5f7fc;
    transition:
        background 0.1s,
        color 0.1s;
}

.sb-l3 li:last-child a {
    border-bottom: none;
}

.sb-l3 li a:hover,
.sb-l3 li a.active {
    background: var(--primary);
    color: #fff;
}

/* Sidebar app download */
.sb-app {
    background: linear-gradient(135deg, #eef4ff, #f8faff);
    border-top: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: 0 0 10px 10px;
}

/* ── HERO SLIDER ── */
.hero-slider-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
}

/* Each slide is a stacking container */
.hero-slide {
    display: none;
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.hero-slide.active {
    display: block;
}

/* Full-cover background image */
.hero-slide-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradient overlay ON TOP of image */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Text content sits above overlay */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 32px 44px 16px 36px;
    flex: 1;
}

/* Overlay content: badge + title centered on image */
.hero-overlay-content {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 36px 32px;
}

/* Tag pill above title */
.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    line-height: 1.6;
}

/* Badge */
.hero-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 3;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    animation: pulse 2s infinite;
}

.hero-badge .big {
    font-size: 1.3rem;
    line-height: 1;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

/* Slide-in animation */
.hero-slide.active .hero-content {
    animation: slideInLeft 0.45s ease;
}

.hero-slide.active .hero-slide-img img {
    animation: zoomIn 5s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* Trust bar — pinned at bottom of slide */
.trust-bar {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    display: flex;
}

.trust-item {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.74rem;
    color: #fff;
}

.trust-item:last-child {
    border-right: none;
}

.trust-item i {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 3px;
    color: #00e5c0;
}

.trust-item strong {
    display: block;
    font-weight: 800;
    font-size: 0.78rem;
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-prev {
    left: 12px;
}

.hero-next {
    right: 12px;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.btn-hero-primary {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 800;
    font-size: 0.9rem;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.45);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: #fff;
}

/* ── FLASH DEALS ── */
.flash-card {
    background: linear-gradient(135deg, #1a73e8, #5a1ed2);
    border-radius: 14px;
    color: #fff;
    padding: 14px 16px 10px;
}

.flash-title {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flash-title i {
    color: #ffd700;
}

.countdown {
    display: flex;
    gap: 6px;
    align-items: center;
}

.count-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 900;
    font-size: 0.95rem;
    font-family: "Poppins", sans-serif;
    min-width: 34px;
    text-align: center;
}

.count-sep {
    font-weight: 900;
    font-size: 1rem;
}

.flash-product {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
}

.flash-product:hover {
    transform: translateY(-3px);
}

.flash-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.flash-product .discount-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e53935;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.flash-product .p-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark);
    margin: 4px 0 2px;
    line-height: 1.2;
}

.flash-product .p-price {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.85rem;
}

.flash-product .p-old {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.7rem;
}

/* ── PROMO CARDS ── */
.promo-card {
    border-radius: 14px;
    padding: 18px;
    color: #fff;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.promo-card.orange {
    background: linear-gradient(135deg, #ff6b35, #ff9a44);
}

.promo-card.blue {
    background: linear-gradient(135deg, #1a73e8, #5a1ed2);
}

.promo-card h5 {
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 2px;
}

.promo-card p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.btn-promo {
    background: #fff;
    color: var(--dark);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 800;
    border: none;
    transition: transform 0.2s;
}

.btn-promo:hover {
    transform: scale(1.05);
}

.promo-icon {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 3rem;
    opacity: 0.15;
}

/* ── TOP RATED ── */
.top-rated-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.top-rated-product:last-child {
    border-bottom: none;
}

.top-rated-product img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #f4f7fc;
    padding: 4px;
}

.top-rated-product .info {
    flex: 1;
}

.top-rated-product .info .name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
}

.stars {
    color: #f5a623;
    font-size: 0.75rem;
}

.top-rated-product .price {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.9rem;
}

.btn-cart-sm {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-cart-sm:hover {
    background: var(--primary-dark);
}

/* ── SHOP BY CATEGORY SLIDER ── */
.shop-cat-slider.ps-slider-outer {
    position: relative;
    padding: 0;
}

.shop-cat-slider .cat-chip {
    flex: 0 0 110px;
    margin-bottom: 0;
}

/* Arrows float directly on top of the edge card images */
.shop-cat-slider .ps-arrow.ps-prev {
    left: 8px;
}

.shop-cat-slider .ps-arrow.ps-next {
    right: 8px;
}

.shop-cat-slider .ps-arrow {
    background: #fff;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.shop-cat-slider .ps-arrow:hover {
    background: #f5f5f5;
    color: #222;
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 767px) {
    .shop-cat-slider .cat-chip {
        flex-basis: 92px;
    }
}

/* ── CATEGORY CHIPS ── */
.cat-chip {
    position: relative;
    display: block;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 14px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.cat-chip:hover {
    transform: translateY(-3px);
}

.cat-chip img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.cat-chip .cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cat-chip .cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-chip .cat-name {
    position: relative;
    display: inline-block;
    margin: -16px auto 0;
    background: #1a73e8;
    color: white;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1.2;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-chip .cat-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── PRODUCT CARD ── */
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.13);
    transform: translateY(-4px);
    border-color: #c5d8f8;
}

.product-card .badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
}

.product-card .wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.product-card .wish-btn:hover {
    color: #e53935;
    border-color: #e53935;
}

.product-card .img-wrap {
    background: #f8faff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 12px;
}

.product-card .img-wrap img {
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .img-wrap img {
    transform: scale(1.07);
}

.product-card .card-body {
    padding: 12px 14px;
}

.product-card .p-brand {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .p-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--dark);
    margin: 3px 0 5px;
    line-height: 1.3;
}

.product-card .p-rating {
    font-size: 0.75rem;
    color: #f5a623;
}

.product-card .p-rating span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.product-card .p-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.product-card .current-price {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--primary);
}

.product-card .old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.78rem;
    margin-left: 5px;
}

.btn-add-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ── STATS BAR ── */
.stats-bar {
    background: linear-gradient(90deg, var(--primary), #6c3fc7);
    color: #fff;
    border-radius: 14px;
    padding: 20px 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    opacity: 0.8;
    font-weight: 600;
}

.stat-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    opacity: 0.8;
}

/* ── SECTION HEADERS ── */
.section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-hdr h5 {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    margin: 0;
}

.section-hdr a {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
}

/* ── SIDEBAR PANEL ── */
.side-panel-title {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f3f8;
}

::-webkit-scrollbar-thumb {
    background: #c5d8f8;
    border-radius: 4px;
}

/* ══════════════════════════════════════
       MOBILE DRAWER OVERLAY
    ══════════════════════════════════════ */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
}

.mob-overlay.active {
    display: block;
}

/* Mobile sidebar drawer */
.mob-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1200;
    overflow-y: auto;
    transition: left 0.28s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}

.mob-drawer.open {
    left: 0;
}

.mob-drawer-header {
    background: linear-gradient(135deg, var(--primary), #1558b0);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.92rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

.mob-drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Mobile accordion L1 */
.mob-l1 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mob-l1 > li {
    border-bottom: 1px solid #f0f4fb;
}

.mob-l1-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    transition: background 0.12s;
}

.mob-l1-row:hover {
    background: #eef4ff;
    color: var(--primary);
}

.mob-l1-row .mob-ico {
    font-size: 0.9rem;
    width: 20px;
}

.mob-l1-row .mob-lbl {
    flex: 1;
}

.mob-l1-row .mob-chev {
    font-size: 0.8rem;
    color: #bbb;
    transition: transform 0.2s;
}

.mob-l1-row .mob-toggle,
.mob-l2-row .mob-toggle {
    padding: 14px 16px 14px 12px;
    margin: -14px -16px -14px -12px;
    cursor: pointer;
}

.mob-l1 > li.open > .mob-l1-row {
    background: var(--primary);
    color: #fff;
}

.mob-l1 > li.open > .mob-l1-row .mob-chev {
    transform: rotate(90deg);
    color: #fff;
}

/* Mobile accordion L2 */
.mob-l2-wrap {
    display: none;
    background: #f8faff;
}

.mob-l1 > li.open > .mob-l2-wrap {
    display: block;
}

.mob-l2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mob-l2 > li {
    border-bottom: 1px solid #edf0f8;
}

.mob-l2-row {
    display: flex;
    align-items: center;
    padding: 9px 16px 9px 32px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.1s;
}

.mob-l2-row .mob-lbl {
    flex: 1;
}

.mob-l2-row .mob-chev {
    font-size: 0.75rem;
    color: #bbb;
    transition: transform 0.2s;
}

.mob-l2 > li.open > .mob-l2-row {
    background: #e3eeff;
    color: var(--primary);
}

.mob-l2 > li.open > .mob-l2-row .mob-chev {
    transform: rotate(90deg);
    color: var(--primary);
}

/* Mobile accordion L3 */
.mob-l3-wrap {
    display: none;
    background: #f0f4ff;
}

.mob-l2 > li.open > .mob-l3-wrap {
    display: block;
}

.mob-l3 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mob-l3 li a {
    display: block;
    padding: 8px 16px 8px 48px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #e8ecf8;
    transition:
        background 0.1s,
        color 0.1s;
}

.mob-l3 li:last-child a {
    border-bottom: none;
}

.mob-l3 li a:hover {
    background: var(--primary);
    color: #fff;
}

/* Mobile hamburger button */
.mob-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--dark);
    cursor: pointer;
    padding: 4px 6px;
}

/* ══════════════════════════════════════
       RESPONSIVE BREAKPOINTS
    ══════════════════════════════════════ */

/* Hide desktop sidebar on < lg */
@media (max-width: 991px) {
    .sidebar {
        display: none !important;
    }

    .mob-menu-btn {
        display: inline-flex;
        align-items: center;
    }
}

/* Tablet (md) */
@media (max-width: 991px) {
    .cat-nav {
        overflow-x: auto;
    }

    .cat-nav .nav {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .trust-bar {
        flex-wrap: wrap;
    }

    .trust-item {
        min-width: 50%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .trust-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Mobile (sm and below) */
@media (max-width: 767px) {
    /* Navbar compact */
    .main-nav .container-fluid {
        padding: 0 10px;
    }

    .brand-logo {
        font-size: 1.1rem;
    }

    .brand-logo .logo-box {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .search-wrap {
        max-width: 100%;
    }

    .search-wrap input {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .nav-label {
        display: none;
    }

    .nav-icons {
        gap: 14px !important;
        margin-left: 8px !important;
    }

    /* Hide cat nav on mobile */
    .cat-nav {
        display: none;
    }

    /* Hero */
    .hero-slide {
        min-height: 220px;
    }

    .hero-overlay-content {
        padding: 18px 18px 22px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-badge {
        width: 56px;
        height: 56px;
        font-size: 0.6rem;
        top: 10px;
        right: 12px;
    }

    .hero-badge .big {
        font-size: 0.95rem;
    }

    .hero-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    /* Flash deals scroll */
    .flash-card .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .flash-card .col-3 {
        min-width: 110px;
    }

    /* Product cards: 2 columns */
    .product-card .img-wrap {
        height: 120px;
    }

    .product-card .p-title {
        font-size: 0.8rem;
    }

    .product-card .current-price {
        font-size: 0.9rem;
    }

    /* Category chips: 3 per row */
    .cat-chip .cat-icon {
        width: 50px;
        height: 50px;
    }

    .cat-chip .cat-icon span {
        font-size: 1.6rem;
    }

    .cat-chip .cat-name {
        font-size: 0.68rem;
        padding: 5px 10px;
        margin-top: -12px;
    }

    .cat-chip .cat-count {
        font-size: 0.65rem;
    }

    /* Stats bar: 2 columns */
    .stats-bar .row {
        --bs-gutter-x: 0;
    }

    .stats-bar .col {
        min-width: 50%;
    }

    .stat-item .stat-num {
        font-size: 1.1rem;
    }

    .stat-item .stat-label {
        font-size: 0.72rem;
    }

    /* Promo cards stack */
    .promo-card {
        min-height: 100px;
    }

    /* Top rated compact */
    .top-rated-product img {
        width: 44px;
        height: 44px;
    }

    /* Footer */
    footer {
        padding: 20px 14px 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.1rem;
    }

    .flash-product .p-name {
        font-size: 0.68rem;
    }

    .flash-product .p-price {
        font-size: 0.78rem;
    }
}

/* ══════════════════════════════════
       HOT & TRENDING PRODUCT SLIDER
    ══════════════════════════════════ */
.trending-section {
    background: #fff;
    border-radius: 14px;
    padding: 24px 0 20px;
    margin-bottom: 16px;
    overflow: hidden;
}

.trending-title {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Outer wrapper clips overflow */
.ps-slider-outer {
    position: relative;
    padding: 0 44px;
}

/* Scrollable track */
.ps-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 4px 8px;
}

.ps-track::-webkit-scrollbar {
    display: none;
}

/* Each product card */
.ps-card {
    flex: 0 0 200px;
    background: #fff;
    border: 1.5px solid #e8ecf5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition:
        box-shadow 0.2s,
        transform 0.2s,
        border-color 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ps-card:hover {
    box-shadow: 0 6px 24px rgba(26, 115, 232, 0.13);
    transform: translateY(-3px);
    border-color: #c5d8f8;
}

/* Discount ribbon */
.ps-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: #2b68e0;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 5px 9px 5px 8px;
    border-radius: 0 0 10px 0;
    line-height: 1.2;
    text-align: center;
    z-index: 2;
    min-width: 44px;
}

.ps-ribbon .ramt {
    font-size: 0.85rem;
    font-weight: 900;
    display: block;
}

/* Product image area */
.ps-img {
    background: #f8faff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 12px;
    overflow: hidden;
}

.ps-img img {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.ps-card:hover .ps-img img {
    transform: scale(1.06);
}

/* Card body */
.ps-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ps-delivery {
    font-size: 0.72rem;
    color: #888;
    font-style: italic;
    margin-bottom: 5px;
}

.ps-delivery i {
    color: #00c9a7;
    margin-right: 3px;
}

.ps-name {
    font-weight: 700;
    font-size: 0.84rem;
    color: #111;
    line-height: 1.35;
    margin-bottom: 8px;
    flex: 1;
}

.ps-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}

.ps-price {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: #2b68e0;
}

.ps-old {
    font-size: 0.78rem;
    color: #aaa;
    text-decoration: line-through;
}

.ps-unit {
    font-size: 0.72rem;
    color: #888;
}

/* Add to bag button */
.btn-add-bag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #2a69e2;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    width: 100%;
    transition:
        background 0.2s,
        transform 0.15s;
    cursor: pointer;
}

.btn-add-bag:hover {
    background: #574ccf;
    transform: scale(1.02);
}

.btn-add-bag.added {
    background: #00c9a7;
}

/* Prev / Next arrow buttons */
.ps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #1660c2;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition:
        background 0.2s,
        transform 0.15s;
}

.ps-arrow:hover {
    background: #1660c2;
    transform: translateY(-50%) scale(1.08);
}

.ps-arrow.ps-prev {
    left: 4px;
}

.ps-arrow.ps-next {
    right: 4px;
}

.ps-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 767px) {
    .ps-slider-outer {
        padding: 0 8px;
    }

    .ps-arrow {
        display: none;
    }

    .ps-card {
        flex: 0 0 160px;
    }

    .ps-img {
        height: 130px;
    }
}
