@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --ink: #101828;
    --ink-soft: #5b6673;
    --ink-faint: #94a0ac;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --surface: #ffffff;
    --blue: #1857d6;
    --blue-deep: #068064;
    --blue-tint: #eaf1fe;
    --amber: #f0961a;
    --amber-deep: #b9700a;
    --amber-tint: #fdf1e1;
    --danger: #dc3545;
    --danger-tint: #fbe9ea;
    --line: #e4e9f1;
    --line-soft: #eef2f8;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow-sm:
        0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 1px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, 0.14);
    --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, 0.22);
    --ease: cubic-bezier(0.22, 0.9, 0.32, 1);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    /* padding-bottom: 60px; */
    -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.disp {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
input,
select,
textarea {
    font-family: inherit;
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}
.hide {
    display: none !important;
}
.eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--blue);
    display: inline-block;
}
::selection {
    background: var(--blue-tint);
    color: var(--blue-deep);
}

.hscroll {
    overflow-x: auto;
    scrollbar-width: none;
}
.hscroll::-webkit-scrollbar {
    display: none;
}

/* ---- topbar ---- */
.topbar {
    background: var(--surface);
    color: rgba(0, 0, 0, 0.88);
    font-size: 12.5px;
    letter-spacing: 0.01em;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
}
.topbar-left {
    display: flex;
    gap: 24px;
}
.topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- header ---- */
header.main {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 16px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-mark svg {
    width: 22px;
    height: 22px;
}
.brand-text {
    line-height: 1.05;
}
.brand-text .t1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand-text .t2 {
    font-size: 9.5px;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 2px;
}
.search-wrap {
    flex: 1;
    position: relative;
    max-width: 750px;
}
.search-wrap input {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 0 50px 0 20px;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s var(--ease),
        box-shadow 0.2s var(--ease),
        background 0.2s;
}
.search-wrap input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px var(--blue-tint);
}
.search-wrap button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-wrap button:hover {
    background: var(--blue-deep);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    margin-left: auto;
}
.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-soft);
    cursor: pointer;
}
.header-action strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
}
.icon-circle {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--ink);
}
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--blue-deep);
    color: #fff;
    padding: 10px 20px 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13.5px;
    transition:
        transform 0.2s var(--ease),
        background 0.2s;
}
.cart-btn:hover {
    background: var(--blue-deep);
}
.cart-btn.bump {
    transform: scale(1.06);
}
.cart-count {
    background: var(--amber);
    color: #4a2e04;
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    font-size: 10.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- hamburger ---- */
.hamburger {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-alt);
}
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
}
.hamburger span::before,
.hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s;
}
.hamburger span::before {
    top: -6px;
}
.hamburger span::after {
    top: 6px;
}
.mobile-search {
    display: none;
    padding: 0 0 14px;
}
.mobile-search input {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 0 18px;
    font-size: 14px;
    outline: none;
}

/* button design start*/

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 13px 24px;
    border-radius: 999px;
    transition:
        transform 0.18s var(--ease),
        background 0.2s;
}
.btn:hover {
    background: var(--blue-deep);
    transform: translateY(-1px);
}
.btn.outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn.outline:hover {
    border-color: var(--blue);
    background: var(--bg-alt);
}
.btn.amber {
    background: var(--amber);
    color: #4a2e04;
}
.btn.deepblue {
    background: var(--blue-deep);
    color: #fff;
}
.btn.deepoutline {
    background: transparent;
    color: var(--blue-deep);
    border: 1px solid var(--blue-deep);
}
.btn.amber:hover {
    background: var(--amber-deep);
    color: #fff;
}
.btn.danger {
    background: var(--danger);
    color: #fff;
}
.btn.danger:hover {
    background: #b3212f;
}
.btn.block {
    width: 100%;
    justify-content: center;
}
.btn.sm {
    padding: 9px 16px;
    font-size: 12.5px;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.link-arrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.link-arrow:hover {
    gap: 10px;
}

/* button design end */

/* ---- category nav ---- */
.catnav {
    background: var(--blue-deep);
    border-bottom: 1px solid var(--line-soft);
}
.catnav .container {
    display: flex;
    gap: 2px;
}
.catnav a {
    white-space: nowrap;
    color: var(--bg);
    font-size: 13.5px;
    font-weight: 600;
    padding: 13px 16px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}
.catnav a:hover,
.catnav a.active {
    color: var(--blue-tint);
    border-color: var(--amber);
}

/* ---- mobile menu drawer ---- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 35, 0.45);
    z-index: 170;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.mobile-menu-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 88vw;
    height: 100%;
    background: #fff;
    z-index: 171;
    transition: left 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.show {
    left: 0;
}
.mobile-menu-head {
    padding: 20px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
}
.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
}
.mobile-menu a:hover {
    background: var(--bg-alt);
}
.mobile-menu .divider {
    height: 1px;
    background: var(--line-soft);
    margin: 10px 4px;
}
/* ---- Hero Slider Styles ---- */
.hero {
    padding: 10px 0 8px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 52px;
    align-items: center;
    margin-bottom: 48px;
}

.hero-copy .eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--blue);
    background: var(--blue-tint);
    display: inline-block;
    padding: 6px 18px 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: 44px;
    line-height: 1.15;
    max-width: 560px;
    color: var(--ink);
}

.hero-copy h1 em {
    font-style: normal;
    color: var(--blue);
}

.hero-copy p {
    font-size: 15px;
    color: var(--ink-soft);
    max-width: 440px;
    margin: 20px 0 28px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Slider Container */
.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1/1.02;
    background: #1e293b;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    min-height: 400px;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    transition: transform 0.3s ease;
}

.slide-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        120% 90% at 30% 15%,
        rgba(255, 255, 255, 0.12),
        transparent 60%
    );
    pointer-events: none;
}

.slide-emoji {
    font-size: 100px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.slide-label {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev {
    left: 16px;
}

.slider-btn.next {
    right: 16px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 28px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* ===== Category Carousel ===== */
.catstrip {
    margin: 64px 0 0;
    position: relative;
}

.category-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.category-carousel-container {
    overflow: hidden;
    border-radius: var(--radius);
}

.category-carousel-track {
    display: flex;
    gap: 14px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 4px 0;
}

.catcard {
    flex: 0 0 calc(12.5% - 14px); /* 8 items per row */
    min-width: calc(12.5% - 14px);
    background: var(--surface);
    /* border: 1px solid var(--line-soft); */
    border-radius: var(--radius);
    padding: 20px 8px 16px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.catcard:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.catcard .em {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 21px;
    transition: transform 0.3s ease;
}

.catcard:hover .em {
    transform: scale(1.1);
}

.catcard span {
    font-size: 12px;
    font-weight: 600;
    display: block;
    color: var(--ink);
}

/* Category Navigation Buttons */
.category-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-nav:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--blue);
    transform: translateY(-50%) scale(1.05);
}

.category-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.category-nav.prev {
    left: -8px;
}

.category-nav.next {
    right: -8px;
}

.category-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .catcard {
        flex: 0 0 calc(16.666% - 14px);
        min-width: calc(16.666% - 14px);
    } /* 6 items */
}

@media (max-width: 900px) {
    .catcard {
        flex: 0 0 calc(20% - 14px);
        min-width: calc(20% - 14px);
    } /* 5 items */
}

@media (max-width: 760px) {
    .container {
        padding: 0 18px;
    }
    .hero {
        padding: 32px 0 20px;
    }
    .hero-copy h1 {
        font-size: 32px;
    }
    .catcard {
        flex: 0 0 calc(25% - 14px);
        min-width: calc(25% - 14px);
    } /* 4 items */
    .category-carousel-wrapper {
        padding: 0 32px;
    }

    .slide {
        flex: 0 0 100%;
        height: 100%;
        min-height: auto;
    }
    .slide-content {
        padding: 24px;
    }
    .slide-emoji {
        font-size: 72px;
    }
    .slide-label {
        font-size: 18px;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    .slider-btn.prev {
        left: 10px;
    }
    .slider-btn.next {
        right: 10px;
    }
    .hero-grid {
        gap: 28px;
    }
    .category-nav {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .hero-copy h1 {
        font-size: 27px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        justify-content: center;
    }
    .catcard {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    } /* 3 items */
    .category-carousel-wrapper {
        padding: 0 24px;
    }
    .slide-emoji {
        font-size: 56px;
    }
    .slide-label {
        font-size: 16px;
    }
    .slide-content {
        padding: 16px;
    }
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }
    .dot.active {
        width: 24px;
    }
    .category-nav {
        width: 28px;
        height: 28px;
    }
    .category-nav svg {
        width: 16px;
        height: 16px;
    }
}
/* ---- section header ---- */
.section {
    margin: 10px 0;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 14px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: 26px;
    color: var(--ink);
}
.section-head .eyebrow {
    margin-bottom: 8px;
}
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tab {
    background: transparent;
    border: 1px solid var(--line);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all 0.15s;
}
.tab.active,
.tab:hover {
    background: var(--blue-deep);
    color: #fff;
    border-color: var(--blue-deep);
}

/* ---- flash / countdown ---- */
.flash-banner {
    background: var(--blue-deep);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    gap: 16px;
    flex-wrap: wrap;
}
.flash-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        80% 140% at 90% -10%,
        rgba(240, 150, 26, 0.3),
        transparent 60%
    );
}
.flash-banner .left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.flash-banner .left b {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
    font-weight: 800;
    display: block;
}
.flash-banner .left span {
    font-size: 12px;
    opacity: 0.78;
}
.timer {
    display: flex;
    gap: 9px;
    position: relative;
    z-index: 1;
}
.timer div {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 16px;
    min-width: 44px;
    text-align: center;
    font-family: "Plus Jakarta Sans", sans-serif;
}
.timer span {
    display: block;
    font-size: 8px;
    font-weight: 500;
    opacity: 0.72;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ---- product grid ---- */
.pgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.pcard {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition:
        box-shadow 0.25s var(--ease),
        transform 0.25s var(--ease),
        border-color 0.25s;
}
.pcard:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border: 1px solid var(--blue-deep);
    /* border-color: transparent; */
}
.pcard .ribbon {
    position: absolute;
    top: 13px;
    left: -6px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 11px 4px 15px;
    border-radius: 0 20px 20px 0;
    z-index: 2;
    letter-spacing: 0.02em;
}
.pcard .ribbon.new {
    background: var(--blue-deep);
}
.pcard .wish {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--ink-soft);
    font-size: 14px;
    transition:
        color 0.15s,
        transform 0.15s;
    box-shadow: var(--shadow-sm);
}
.pcard .wish:hover {
    color: var(--danger);
    transform: scale(1.08);
}
.pcard .thumb {
    aspect-ratio: 1/0.92;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    cursor: pointer;
    position: relative;
    /* height: 250px; */
}
.pcard .info {
    padding: 15px 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.pcard .cat {
    font-size: 10px;
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pcard .name {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    min-height: 38px;
    color: var(--ink);
}
.pcard .name:hover {
    color: var(--blue-deep);
}
.pcard .unit {
    font-size: 11px;
    color: var(--ink-faint);
}
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--ink-soft);
}
.rating .stars {
    color: var(--amber);
    letter-spacing: 1px;
    font-size: 11px;
}
.fresh-meter {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
}
.fresh-meter .bar {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: var(--line-soft);
    overflow: hidden;
}
.fresh-meter .bar i {
    display: block;
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
}
.fresh-meter span {
    font-size: 9.5px;
    color: var(--ink-faint);
    font-weight: 600;
    white-space: nowrap;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 3px;
}
.price {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--blue-deep);
    font-family: "Plus Jakarta Sans", sans-serif;
}
.old-price {
    font-size: 11.5px;
    color: var(--ink-faint);
    text-decoration: line-through;
}
.addbar {
    margin-top: auto;
    padding-top: 10px;
}
.add-btn {
    width: 100%;
    border: 1.5px solid var(--blue-deep);
    color: var(--blue-deep);
    border-radius: 10px;
    padding: 9px;
    font-weight: 700;
    font-size: 12.5px;
    text-align: center;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.add-btn:hover {
    background: var(--blue-deep);
    color: #fff;
}
.add-btn.loading {
    pointer-events: none;
    opacity: 0.75;
}
.spin {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid rgba(24, 87, 214, 0.25);
    border-top-color: var(--blue-deep);
    animation: spin 0.6s linear infinite;
}
.add-btn:hover .spin {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.qty-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--blue-deep);
    border-radius: 10px;
    overflow: hidden;
    background: var(--blue-deep);
    animation: pop 0.25s var(--ease);
}
@keyframes pop {
    from {
        transform: scale(0.94);
        opacity: 0.5;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.qty-box button {
    flex: 0 0 32px;
    height: 32px;
    background: var(--blue-deep);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    transition: background 0.15s;
}
.qty-box button:hover {
    background: var(--blue);
}
.qty-box .qn {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 13.5px;
    background: var(--surface);
    color: var(--ink);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- editorial / story strip ---- */
.story {
    margin: 80px 0;
    background: var(--blue-deep);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        70% 120% at 100% 0%,
        rgba(240, 150, 26, 0.22),
        transparent 60%
    );
}
.story-copy {
    position: relative;
    z-index: 1;
}
.story-copy .eyebrow {
    color: var(--amber);
}
.story-copy .eyebrow::before {
    background: var(--amber);
}
.story-copy h2 {
    font-size: 27px;
    line-height: 1.3;
    margin: 15px 0 16px;
    max-width: 420px;
}
.story-copy p {
    font-size: 14px;
    opacity: 0.84;
    line-height: 1.85;
    max-width: 440px;
    margin-bottom: 24px;
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.story-tile {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 20px;
}
.story-tile .em {
    font-size: 24px;
    margin-bottom: 11px;
    display: block;
}
.story-tile strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}
.story-tile span {
    font-size: 11.5px;
    opacity: 0.74;
    line-height: 1.6;
}

/* ---- promo strip ---- */
.promostrip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 64px 0;
}
.promostrip .pcard2 {
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 160px;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease);
}
.promostrip .pcard2:hover {
    transform: translateY(-4px);
}
.pc-a {
    background: var(--blue-deep);
}
.pc-b {
    background: var(--danger);
}
.pc-c {
    background: #2e3a55;
}
.pcard2 .icon-lg {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 40px;
    opacity: 0.2;
}
.pcard2 .h {
    font-size: 19px;
    font-weight: 800;
    font-family: "Plus Jakarta Sans", sans-serif;
    position: relative;
    z-index: 1;
}
.pcard2 .s {
    font-size: 12px;
    opacity: 0.82;
    position: relative;
    z-index: 1;
}
.pcard2 .link-arrow {
    color: #fff;
    margin-top: 5px;
}

/* ---- testimonial ---- */
.testi-wrap {
    margin: 64px 0;
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testi-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 24px;
}
.testi-card .stars {
    color: var(--amber);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 13px;
}
.testi-card p {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 17px;
}
.testi-who {
    display: flex;
    align-items: center;
    gap: 11px;
}
.testi-who .av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--amber-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--amber-deep);
    font-family: "Plus Jakarta Sans", sans-serif;
}
.testi-who strong {
    font-size: 13px;
    display: block;
}
.testi-who span {
    font-size: 11px;
    color: var(--ink-faint);
}

/* ---- trust strip ---- */
.trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 10px 0;
}
.trust .item {
    display: flex;
    gap: 13px;
    align-items: center;
    background: var(--surface);
    padding: 24px 22px;
}
.trust .ic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.trust .item strong {
    display: block;
    font-size: 13.5px;
}
.trust .item span {
    font-size: 11px;
    color: var(--ink-soft);
}

/* ---- newsletter ---- */
.newsletter {
    background: var(--amber-tint);
    border-radius: var(--radius-lg);
    padding: 44px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin: 64px 0;
    flex-wrap: wrap;
}
.newsletter h3 {
    font-size: 20px;
    margin-bottom: 6px;
}
.newsletter p {
    font-size: 13px;
    color: var(--ink-soft);
}
.newsletter form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.newsletter input {
    width: 250px;
    max-width: 60vw;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0 18px;
    font-size: 13.5px;
    outline: none;
    background: var(--surface);
}

/* ---- footer ---- */
footer {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, 0.88);
    margin-top: 20px;
    padding: 56px 0 24px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
}
footer .brand-text .t1 {
    color: #fff;
}
footer h4 {
    font-size: 13.5px;
    margin-bottom: 16px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    color: #fff;
}
footer li {
    list-style: none;
    font-size: 12.5px;
    opacity: 0.74;
    margin-bottom: 11px;
    transition: opacity 0.15s;
}
footer li:hover {
    opacity: 1;
}
footer p {
    font-size: 12.5px;
    opacity: 0.7;
    line-height: 1.85;
    margin-top: 13px;
    max-width: 280px;
}
.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 36px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    opacity: 0.62;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---- breadcrumb / page head ---- */
.pagehead {
    padding: 24px 0 8px;
    font-size: 12.5px;
    color: var(--ink-soft);
}
.pagehead b {
    color: var(--ink);
    font-weight: 600;
}

/* ---- shop layout ---- */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    margin: 18px 0 46px;
}
.filter-box {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 92px;
}
.filter-box h4 {
    font-size: 13px;
    margin-bottom: 13px;
    font-weight: 700;
}
.filter-box label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    margin-bottom: 11px;
    color: var(--ink-soft);
    cursor: pointer;
}
.filter-box input[type="checkbox"],
.filter-box input[type="radio"] {
    accent-color: var(--blue-deep);
    width: 15px;
    height: 15px;
}
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--ink-soft);
    flex-wrap: wrap;
    gap: 10px;
}
.shop-toolbar select {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 15px;
    background: var(--surface);
}
.pgrid.shop {
    grid-template-columns: repeat(4, 1fr);
}

/* ---- product detail ---- */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 52px;
    margin: 18px 0 46px;
}
.pd-image {
    background: var(--blue-tint);
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 140px;
    box-shadow: var(--shadow-sm);
}
.pd-info .eyebrow {
    margin-bottom: 13px;
}
.pd-info h1 {
    font-size: 26px;
    margin-bottom: 9px;
}
.pd-info .cat {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 15px;
}
.pd-price {
    display: flex;
    align-items: baseline;
    gap: 13px;
    margin: 15px 0;
}
.pd-price .price {
    font-size: 30px;
}
.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--blue-tint);
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 17px;
}
.pd-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.9;
    margin: 17px 0;
}
.pd-actions {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
}
.pd-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--blue-deep);
    border-radius: 12px;
    overflow: hidden;
}
.pd-qty button {
    width: 42px;
    height: 46px;
    background: var(--blue-deep);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}
.pd-qty .qn {
    width: 48px;
    text-align: center;
    font-weight: 700;
}
.pd-meta {
    margin-top: 28px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 12.5px;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* ---- cart page ---- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    margin: 18px 0 46px;
    align-items: start;
}
.cart-table {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-row {
    display: grid;
    grid-template-columns: 60px 1fr 122px 104px 38px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
}
.cart-row.head {
    background: var(--bg-alt);
    font-size: 11px;
    color: var(--ink-faint);
    font-weight: 700;
    padding: 13px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cart-row:last-child {
    border-bottom: none;
}
.cart-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.cart-pname {
    font-size: 14px;
    font-weight: 600;
}
.cart-unit {
    font-size: 11.5px;
    color: var(--ink-faint);
}
.cart-remove {
    color: var(--danger);
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cart-remove:hover {
    background: var(--danger-tint);
}
.summary-box {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 22px;
}
.summary-box h3 {
    font-size: 16px;
    margin-bottom: 17px;
}
.sum-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 11px;
}
.sum-line.total {
    color: var(--ink);
    font-weight: 800;
    font-size: 17px;
    border-top: 1px dashed var(--line);
    padding-top: 13px;
    margin-top: 7px;
    font-family: "Plus Jakarta Sans", sans-serif;
}
.coupon {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}
.coupon input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 13px;
}
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
}
.empty-state .em {
    font-size: 56px;
    margin-bottom: 15px;
}
.empty-state h3 {
    margin-bottom: 9px;
    font-size: 18px;
}
.empty-state p {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-bottom: 22px;
}

/* ---- checkout ---- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 24px;
    margin: 18px 0 46px;
    align-items: start;
}
.form-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}
.form-card h3 {
    font-size: 15px;
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: "Plus Jakarta Sans", sans-serif;
}
.form-card h3 .num {
    background: var(--blue-deep);
    color: #fff;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", sans-serif;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-grid.full {
    grid-template-columns: 1fr;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-deep);
}
.pay-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pay-opt {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 15px;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
}
.pay-opt.selected {
    border-color: var(--blue-deep);
    background: var(--blue-tint);
}
.pay-opt input {
    accent-color: var(--blue-deep);
    width: 16px;
    height: 16px;
}
.pay-opt .em {
    font-size: 19px;
}
.pay-opt strong {
    font-size: 13.5px;
    display: block;
}
.pay-opt span {
    font-size: 11px;
    color: var(--ink-soft);
}
.mini-item {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 9px;
    color: var(--ink-soft);
}

/* ---- success ---- */
.success-box {
    max-width: 520px;
    margin: 64px auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 50px 36px;
    box-shadow: var(--shadow-md);
}
.success-box .ic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--blue-tint);
    color: var(--blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 38px;
}
.success-box h2 {
    font-size: 21px;
    margin-bottom: 11px;
}
.success-box p {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-bottom: 6px;
}
.order-id {
    background: var(--bg-alt);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 13px;
    font-weight: 800;
    font-size: 17px;
    color: var(--blue-deep);
    margin: 18px 0;
    letter-spacing: 1px;
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* ---- toast ---- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--ink);
    color: #fff;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    z-index: 200;
    transition: transform 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ---- mini cart drawer ---- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 35, 0.45);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(2px);
}
.drawer-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 92vw;
    height: 100%;
    background: var(--surface);
    z-index: 151;
    transition: right 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}
.drawer.show {
    right: 0;
}
.drawer-head {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-head strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 22px;
}
.drawer-item {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: center;
}
.drawer-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.drawer-foot {
    padding: 18px 22px;
    border-top: 1px solid var(--line-soft);
}

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 1100px) {
    .filter-box {
        display: none;
    }
    .pgrid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pgrid.shop {
        grid-template-columns: repeat(2, 1fr);
    }
    .catgrid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .story {
        grid-template-columns: 1fr;
    }
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
    .shop-layout,
    .cart-layout,
    .checkout-layout,
    .pd-grid {
        grid-template-columns: 1fr;
    }
    .trust {
        grid-template-columns: 1fr 1fr;
    }
    .promostrip,
    .testi-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    .catnav {
        display: none;
    }
    .header-actions .header-action {
        display: none;
    }
    .header-row {
        gap: 14px;
    }
    .search-wrap {
        display: none;
    }
    .mobile-search {
        display: block;
    }
    .cart-btn {
        padding: 9px 15px 9px 13px;
    }
    .cart-btn span:not(.cart-count) {
        display: none;
    }
}
@media (max-width: 760px) {
    .container {
        padding: 0 18px;
    }
    .catgrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .pgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .pgrid.shop {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-copy h1 {
        font-size: 32px;
    }
    .hero-stats {
        gap: 22px;
    }
    .flash-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-row {
        grid-template-columns: 48px 1fr;
        grid-template-areas: "thumb name" "thumb qty" "thumb price" "thumb remove";
        row-gap: 8px;
    }
    .cart-row.head {
        display: none;
    }
    .cart-thumb {
        grid-area: thumb;
    }
    .story {
        padding: 30px;
    }
    .newsletter {
        padding: 30px;
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter form {
        width: 100%;
    }
    .newsletter input {
        width: 100%;
        max-width: none;
    }
    .trust {
        grid-template-columns: 1fr;
    }
    .pd-image {
        font-size: 100px;
    }
}
@media (max-width: 480px) {
    .catgrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pgrid.shop {
        grid-template-columns: 1fr 1fr;
    }
    .hero-copy h1 {
        font-size: 27px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        justify-content: center;
    }
    .foot-grid {
        grid-template-columns: 1fr;
    }
    .foot-bottom {
        flex-direction: column;
        text-align: center;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .topbar .topbar-left:last-child {
        display: none;
    }
}
/* ===== Chaldal Style Grocery Floating Cart ===== */
.floating-cart-btn {
    position: fixed;
    right: 0;
    top: 50%;
    margin-top: -30px;
    background: #10b981; /* Fresh Grocery Green */
    color: #fff;
    border: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 12px 14px 12px 16px;
    box-shadow: -4px 10px 25px rgba(16, 185, 129, 0.35);
    cursor: pointer;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    flex-direction: column;
}

.floating-cart-btn:hover {
    background: #059669;
    transform: translateY(-4px);
    box-shadow: -6px 14px 35px rgba(16, 185, 129, 0.45);
}

.floating-cart-btn:active {
    transform: scale(0.96);
}

.floating-cart-btn .cart-icon-box {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    padding-right: 0;
}

.floating-cart-btn .cart-icon-box svg {
    stroke: #fff;
    flex-shrink: 0;
}

/* Items count badge text inside green box */
.floating-cart-btn .badge {
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    position: static;
    border: none;
    box-shadow: none;
    min-width: auto;
    height: auto;
    border-radius: 0;
    white-space: nowrap;
}

.floating-cart-btn .badge.pop {
    animation: popBadge 0.3s ease;
}

.floating-cart-btn .cart-price-box {
    background: #047857; /* Darker green container for price */
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

@keyframes popBadge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
        color: #fde047;
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile Responsive - Optimized to stay flush on the right edge and look clean */
@media (max-width: 480px) {
    .floating-cart-btn {
        right: 0; /* Ekdom dan pashe fix kora */
        padding: 5px 5px 5px 5px;
        gap: 6px;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        box-shadow: -2px 6px 15px rgba(16, 185, 129, 0.3);
    }
    .floating-cart-btn .cart-icon-box {
        font-size: 11px;
        gap: 4px;
        display: flex;
        flex-direction: column;
    }
    .floating-cart-btn .cart-icon-box svg {
        width: 18px;
        height: 18px;
    }
    .floating-cart-btn .badge {
        font-size: 11px;
    }
    .floating-cart-btn .cart-price-box {
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 6px;
    }
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: var(--surface);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-panel.open {
    right: 0;
}

.cart-panel-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--surface);
    z-index: 2;
}

.cart-panel-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.cart-panel-header h3 svg {
    color: var(--blue);
}

.cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ink-soft);
}

.cart-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--danger);
    transform: rotate(90deg);
}

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #fafbfc;
}

.cart-panel-body::-webkit-scrollbar {
    width: 4px;
}

.cart-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-panel-body::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 999px;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-form .qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.quantity-form .qty-value {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    background: var(--surface);
    padding: 16px 18px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--line-soft);
    transition: all 0.2s ease;
    align-items: center;
}

.cart-item:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.cart-item-image {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-top: 2px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--blue-deep);
    color: #fff;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: var(--ink);
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--danger);
    transform: scale(1.1);
}

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.empty-cart h4 {
    font-size: 20px;
    margin: 20px 0 8px;
    color: var(--ink);
}

.empty-cart p {
    color: var(--ink-soft);
    margin-bottom: 24px;
    font-size: 14px;
}

.empty-cart .btn {
    min-width: 160px;
    justify-content: center;
}

/* Cart Footer */
.cart-panel-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    flex-shrink: 0;
}

.cart-summary {
    margin-bottom: 16px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    padding: 6px 0;
}

.cart-total-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue);
}

.cart-shipping {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--ink-soft);
    padding: 4px 0 0;
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cart-actions .btn {
    justify-content: center;
    padding: 14px;
    font-size: 14px;
    border-radius: var(--radius);
}

.cart-actions .btn.outline {
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.cart-actions .btn.outline:hover {
    background: var(--surface);
    border-color: var(--blue);
}

/* Cart Count Badge Animation */
.cart-count {
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cart-count.pop {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}
/* ===== Mobile Responsive Improvements for Cart Panel ===== */
@media (max-width: 480px) {
    .cart-panel {
        right: -100%;
        width: 100%;
        max-width: 100%;
    }

    .cart-panel.open {
        right: 0;
    }

    .cart-panel-header {
        padding: 18px 20px 16px;
    }

    .cart-panel-header h3 {
        font-size: 18px;
    }

    .cart-panel-body {
        padding: 12px 14px;
    }

    .cart-item {
        grid-template-columns: 44px 1fr auto;
        gap: 10px;
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .cart-item:hover {
        transform: none; /* Mobile e hover effect avoid korai bhalo */
    }

    .cart-item-image {
        width: 44px;
        height: 44px;
    }

    .cart-item-image span {
        font-size: 24px !important;
    }

    .cart-item-name {
        font-size: 12px;
    }

    .cart-item-price {
        font-size: 12px;
    }

    .cart-item-actions {
        gap: 6px;
    }

    .quantity-control {
        padding: 1px;
    }

    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .qty-value {
        font-size: 12px;
        min-width: 16px;
    }

    .cart-item-remove {
        width: 28px;
        height: 28px;
    }

    .cart-panel-footer {
        padding: 16px 18px 20px;
    }

    .cart-subtotal {
        font-size: 15px;
    }

    .cart-total-price {
        font-size: 18px;
    }

    .cart-actions {
        gap: 8px;
    }

    .cart-actions .btn {
        padding: 12px 10px;
        font-size: 13px;
    }
}
