/* ============================================================
       01. GLOBAL TOKENS & BASE
       ============================================================ */
:root {
    --c-primary: #FF4300;
    --c-primary-dark: #D63700;
    --c-primary-soft: #FFF0EA;
    --c-accent: #FFB800;
    --c-accent-dark: #E5A500;
    --rose : #FF4300;
    --rose-deep : #D63700;
    --white : #fff;
    --c-ink: #1C1B22;
    --c-muted: #6B6B78;
    --c-line: #EFEFF2;
    --c-bg: #F7F7FA;
    --c-white: #FFFFFF;
    --c-green: #12A150;
    --c-green-soft: #E6F7EE;
    --c-yellow: #FFC107;
    --c-violet: #6C3DF5;
    --c-blue: #0B8BFF;
    --c-pink: #F27C9E;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-xs: 0 1px 3px rgba(28,27,34,.06);
    --shadow-sm: 0 2px 6px rgba(28,27,34,.07);
    --shadow-md: 0 4px 12px rgba(28,27,34,.09);
    --gap: 16px;
    --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, p {
    margin: 0;
}

input, button {
    font: inherit;
}

.u-container {
    width: min(1280px, 100% - 32px);
    margin-inline: auto; }

.u-hide-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.u-section {
    padding: 24px 0;
}

/* ============================================================
       02. SHARED COMPONENTS: BUTTON
       ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 0;
    border-radius: 40px;
    background: var(--c-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
    font-size: 0.92rem;
}

.btn:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn--light {
    background: #fff;
    color: var(--c-primary);
    box-shadow: var(--shadow-xs);
}

.btn--light:hover {
    background: var(--c-primary-soft);
}

.btn--sm {
    padding: 7px 16px;
    font-size: 0.82rem;
}

@media (max-width: 600px) {
    .btn {
        padding: 9px 18px;
        font-size: 0.88rem;
    }
}

/* ============================================================
       03. SHARED COMPONENTS: BADGE
       ============================================================ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    background: var(--c-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge--green {
    background: var(--c-green);
}

.badge--accent {
    background: var(--c-accent);
    color: var(--c-ink);
}

.badge--violet {
    background: var(--c-violet);
}

.badge--blue {
    background: var(--c-blue);
}

/* ============================================================
       04. SHARED COMPONENTS: SECTION HEAD
       ============================================================ */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head__title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 14px;
}

.section-head__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 5px;
    border-radius: 4px;
    background: var(--c-primary);
}

.section-head__link {
    color: var(--c-primary);
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.section-head__link:hover {
    gap: 8px;
}

@media (max-width: 600px) {
    .section-head__title {
        font-size: 1.2rem;
    }

    .section-head__link {
        font-size: 0.8rem;
    }
}

/* ============================================================
       06. COMPONENT: HEADER (logo, search, actions)
       ============================================================ */
.header {
    background: var(--c-primary);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(255,67,0,.25);
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.03em;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--c-primary);
    font-size: 1.3rem;
}

.search {
    display: flex;
    width: min(620px, 100%);
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.search:focus-within {
    box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}

.actions {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.actions > button {
    border: none;
    background-color: transparent;
}

.action > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.action > div>span:first-child {
    font-size: 9px;
    font-weight: normal;
}

.action > div>span:last-child {
    font-weight: bold;
    font-size: 12px;
}

.action.action-location {
    border: 1px solid #fff;
    background-color: #fff;
    color: var(--c-primary);
}

.action > div>span {
    display: flex;
    line-height: 12px;
}

.action {
    cursor: pointer;
    position: relative;
    justify-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.68rem;
    color: #fff;
    font-weight: 600;
    transition: background 0.2s;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.action:hover {
    background: rgba(0,0,0,.15);
}

.action__icon {
    font-size: 1.35rem;
    line-height: 1.2;
}

.action__count {
    position: absolute;
    top: -2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--c-primary);
    font-size: 0.66rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.burger {
    display: none;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
    color: #fff;
}

@media (max-width: 1150px) {
    .action__icon + span {
        display: none;
    }
}

@media (max-width: 950px) {
    .burger {
        display: block;
        order: -1;
    }

    .header__inner {
        position: static;
        height: 65px;
    }

    .actions {
        margin-left: auto;
    }

    .header {
        position: relative;
    }

    .action.action-location {
        display: none;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.25rem;
    }
}

/* HEADER SEARCH */
/* ============ SEARCH OVERLAY ============ */
.navbar-search {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s , visibility 0.3s;
}

.navbar-search.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.navbar-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.navbar-search-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 80px 20px 0;
    z-index: 1;
    transform: translateY(-20px);
    transition: transform 0.35s ease;
}

.navbar-search.open .navbar-search-container {
    transform: translateY(0);
}

.navbar-search-input {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 100px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
}

.navbar-search-input span {
    display: flex;
    align-items: center;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.navbar-search-input span svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.navbar-search-input input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans' , sans-serif;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}

.navbar-search-input input::placeholder {
    color: var(--ink-soft);
}

.navbar-search-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--rose-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.navbar-search-input button:hover {
    background: #a06f79;
}

.navbar-search-input button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.navbar-search-results {
    margin-top: 16px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    min-height: 80px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
}

.navbar-search-results {
    margin-top: 16px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    min-height: 80px;
    text-align: center;
    font-size: 0.85rem;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.navbar-search-results>a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.navbar-search-results {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 75dvh;
    gap: 5px;
}

.navbar-search-results>a>div>img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.navbar-search-results>a>div:first-child {
    width: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    flex-shrink: 0;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.navbar-search-results>a>div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-search-results>a>div:last-child>span {
    font-size: 10px;
}

.navbar-search-results>a>div:last-child>strong {
    font-size: 14px;
}

.navbar-search-results>a>div:last-child>p {
    margin: 0px;
    font-size: 12px;
}

/* ============================================================
       07. COMPONENT: NAV + MEGA MENU
       ============================================================ */
.nav {
    flex: 1;
}

.nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1px;
}

.nav__item {
    position: static;
    padding: 10px 0px;
}

.nav__item--end {
    margin-left: auto;
    align-self: center;
}

.nav__link {
    display: block;
    padding: 12px;
    color: #fff;
    font-weight: 500;
    font-size: 0.86rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
}

.nav__item:hover > .nav__link {
    background: rgba(0,0,0,.15);
}

.nav__link--hot {
    background: var(--c-accent);
    color: var(--c-ink);
    border-radius: 40px;
    padding: 9px 18px;
    margin: 11px 0;
}

.nav__item:hover > .nav__link--hot {
    background: var(--c-accent-dark);
}

.mega {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 60;
    width: 100%;
    background: #fff;
    color: var(--c-ink);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 3px solid var(--c-accent);
}

.mega--right {
    left: auto;
    right: 0;
}

.mega__title {
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--c-primary);
    font-size: 0.95rem;
}

.mega__link {
    display: block;
    padding: 5px 0;
    color: var(--c-muted);
    font-size: 0.88rem;
    transition: all 0.15s;
}

.mega__link:hover {
    color: var(--c-primary);
    padding-left: 5px;
}

.mega__promo {
    grid-column: span 1;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, var(--c-primary), #FF7A3D);
    color: #fff;
    padding: 18px;
    display: grid;
    align-content: center;
    gap: 6px;
    text-align: center;
}

.mega__promo-emoji {
    font-size: 2.6rem;
}

.nav__check:checked ~ .mega {
    display: grid;
}

@media (hover: hover) and (min-width: 901px) {
    .nav__item:hover > .mega {
        display: grid;
    }
}

@media (max-width: 1150px) {
    .nav__link {
        padding: 21px 9px;
        font-size: 0.8rem;
    }
}

.mobile-action.mobile-action-location {
    width: 100%;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #ddd;
    box-shadow: 7px 1px 7px 0px #000;
    margin-bottom: 5px;
}

.mobile-action.mobile-action-location > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-action.mobile-action-location > div > span:first-child {
    font-size: 11px;
}

.mobile-action.mobile-action-location > div > span:last-child {
    font-weight: bold;
    font-size: 12px;
}

@media (max-width: 950px) {
    .mobile-action.mobile-action-location {
        display: flex;
    }

    .nav {
        flex: none;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        max-height: 80vh;
        overflow: auto;
        background: var(--c-primary-dark);
        box-shadow: var(--shadow-md);
    }

    #nav-toggle:checked ~ .nav {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
    }

    .nav__link, .nav__link--hot {
        padding: 14px 18px;
        font-size: 0.92rem;
        border-top: 1px solid rgba(255,255,255,.12);
        border-radius: 0;
    }

    .nav__item {
        position: static;
        padding: 0px 0px;
    }

    .nav__item--end {
        margin-left: 0;
        align-self: auto;
    }

    .mega, .mega--right {
        position: static;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        border-radius: 0;
        box-shadow: none;
        border-top: 0;
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .mega, .mega--right {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
       08. COMPONENT: HERO SLIDER
       ============================================================ */
.hero-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: var(--gap);
    padding-top: 20px;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 340px;
    box-shadow: var(--shadow-sm);
}

.slider__track {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slide 16s infinite;
}

.slider:hover .slider__track {
    animation-play-state: paused;
}

.slide {
    width: 33.3333%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 36px 50px;
    color: #fff;
}

.slide--1 {
    background: linear-gradient(120deg, #FF4300, #FF8A3D);
}

.slide--2 {
    background: linear-gradient(120deg, #12A150, #3DC97A);
}

.slide--3 {
    background: linear-gradient(120deg, #6C3DF5, #A86AF0);
}

.slide__tag {
    background: rgba(255,255,255,.25);
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.04em;
}

.slide__title {
    font-size: clamp(1.7rem, 3.6vw, 2.9rem);
    line-height: 1.1;
    font-weight: 900;
    margin: 12px 0;
    letter-spacing: -0.03em;
}

.slide__text {
    margin-bottom: 20px;
    opacity: 0.95;
    font-size: 1rem;
    max-width: 85%;
}

.slide__art {
    font-size: clamp(5rem, 13vw, 11rem);
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.25));
}

.slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 9px;
    background: rgba(255,255,255,.45);
    animation: dot 16s infinite;
}

.slider__dot:nth-child(2) {
    animation-delay: 5.33s;
}

.slider__dot:nth-child(3) {
    animation-delay: 10.66s;
}

@keyframes slide {
    0%, 28% {
        transform: translateX(0);
    }

    33%, 61% {
        transform: translateX(-33.3333%);
    }

    66%, 95% {
        transform: translateX(-66.6666%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes dot {
    0%, 30% {
        background: #fff;
        width: 26px;
        border-radius: 7px;
    }

    33%, 100% {
        background: rgba(255,255,255,.45);
        width: 9px;
    }
}

@media (max-width: 950px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .side-banners {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .slide {
        flex-direction: column-reverse;
        text-align: center;
        padding: 26px 18px 44px;
    }

    .slide__text {
        max-width: 100%;
    }

    .slider {
        min-height: 400px;
    }
}

/* ============================================================
       09. COMPONENT: PROMO TILE (side banners, promo row)
       ============================================================ */
.side-banners {
    display: grid;
    gap: var(--gap);
}

.tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: var(--radius);
    color: var(--c-ink);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-xs);
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
       12. COMPONENT: CATEGORY CHIPS
       ============================================================ */
.chips {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--gap);
}

.chip {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.84rem;
}

.chip__icon {
    display: grid;
    place-items: center;
    width: 100%;
    border-radius: 22px;
    background: #fff;
    font-size: 2.3rem;
    box-shadow: var(--shadow-xs);
    border: 3px solid transparent;
    transition: all 0.25s ease;
    aspect-ratio: 1;
    object-fit: contain;
}

.chip:hover .chip__icon {
    border-color: var(--c-primary);
    transform: scale(1.06) rotate(-4deg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1150px) {
    .chips {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .chips {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .chip__icon {
        width: 62px;
        height: 62px;
        font-size: 1.7rem;
        border-radius: 16px;
    }

    .chip {
        font-size: 0.72rem;
    }
}

/* ============================================================
       PROMO ROW
       ============================================================ */
.promo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

@media (max-width: 950px) {
    .promo-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .promo-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   13. COMPONENT: PRODUCT CARD + GRID
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap);
}

.card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--c-line);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.card__wish {
    position: absolute;
    top: 9px;
    right: 10px;
    font-size: 1.1rem;
    color: #C3C3CC;
    transition: color 0.2s, transform 0.2s;
}

.card__wish:hover {
    color: var(--c-primary);
    transform: scale(1.2);
}

.card__media > img {
    height: 150px;
    object-fit: contain;
}

.card__media {
    display: grid;
    place-items: center;
    height: 150px;
    border-radius: 10px;
    background: var(--c-bg);
    font-size: 4.4rem;
    transition: background 0.3s;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.card:hover .card__media {
    background: #F1EEF5;
}

.card__cat {
    font-size: 0.68rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.card__title {
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.3;
}

.card__rating {
    color: var(--c-yellow);
    font-size: 0.78rem;
}

.card__rating span {
    color: var(--c-muted);
}

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}

.price {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--c-primary);
    letter-spacing: -0.02em;
}

.price del {
    font-weight: 400;
    font-size: 0.76rem;
    color: var(--c-muted);
    margin-left: 4px;
}

.card__add {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.card__add:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    transform: scale(1.05);
}

@media (max-width: 1150px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 950px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {

    .card__media > img {
    height: 110px;
    object-fit: contain;
}
    
    .card__media {
        height: 110px;
        font-size: 3.2rem;
    }

    /* --- Mobile: make product grids scroll horizontally --- */
    .grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        /* must match padding-left */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        margin: 0 -16px;
        /* bleed to container edges */
        padding: 4px 16px 12px;
        /* gap on both sides + shadow room */
    }

    .grid::-webkit-scrollbar {
        display: none;
        /* Chrome / Safari */
    }

    .grid > .card {
        flex: 0 0 auto;
        width: 72vw;
        /* ~1.4 cards visible */
        max-width: 210px;
        scroll-snap-align: start;
    }
}

/* ============================================================
   14. COMPONENT: DEAL PANEL + COUNTDOWN
   ============================================================ */
.deal {
    background: linear-gradient(135deg, #FF4300, #FF7A3D);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.deal__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #fff;
    margin-bottom: 20px;
}

.deal__title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.countdown {
    display: flex;
    gap: 8px;
}

.countdown__box {
    background: #fff;
    color: var(--c-primary);
    font-weight: 900;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    min-width: 56px;
    line-height: 1.2;
    font-size: 1.25rem;
}

.countdown__box small {
    display: block;
    font-size: 0.62rem;
    color: var(--c-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .deal__title {
        font-size: 1.3rem;
    }

    .countdown__box {
        font-size: 1rem;
        min-width: 48px;
        padding: 5px 9px;
    }

    /* --- Make the .grid inside .deal scroll horizontally --- */
    .deal .grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        /* snap leaves a gap on the left */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        margin: 0 -24px;
        /* bleed to panel edges */
        padding: 16px 16px 0px 20px;
        /* gap on both sides of the cards */
    }

    .deal .grid::-webkit-scrollbar {
        display: none;
        /* Chrome / Safari */
    }

    .deal .grid > .card {
        flex: 0 0 auto;
        width: 72vw;
        max-width: 210px;
        scroll-snap-align: start;
    }
}

/* ============================================================
       15. COMPONENT: BRANDS
       ============================================================ */
.brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gap);
}

.brand {
    place-items: center;
    height: 72px;
    background: #fff;
    border-radius: var(--radius-sm);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--c-muted);
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
    border: 1px solid var(--c-line);
    font-size: 0.9rem;
    padding: 10px;
}

.brand > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand:hover {
    color: var(--c-primary);
    transform: translateY(-3px);
    border-color: var(--c-primary-soft);
}

@media (max-width: 1150px) {
    .brands {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .brands {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
       16. COMPONENT: TESTIMONIAL QUOTES
       ============================================================ */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.quote {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    border-top: 4px solid var(--c-accent);
    transition: transform 0.2s;
}

.quote:hover {
    transform: translateY(-3px);
}

.quote__text {
    color: var(--c-muted);
    margin: 10px 0 14px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.quote__who {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.quote__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-primary-soft);
    font-size: 1.1rem;
}

@media (max-width: 950px) {
    .quotes {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .quotes {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
       18. COMPONENT: FOOTER
       ============================================================ */
.footer {
    background: var(--c-ink);
    color: #fff;
    margin-top: 28px;
    border-top: 4px solid var(--c-primary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 32px;
    padding: 40px 0;
}

.footer__title {
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.footer__link {
    display: block;
    color: rgba(255,255,255,.65);
    padding: 4px 0;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--c-accent);
}

.footer__about {
    color: rgba(255,255,255,.65);
    font-size: 0.88rem;
    margin: 10px 0;
    line-height: 1.55;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,.55);
}

.social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.social__item {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.social__item:hover {
    background: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 950px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
       20. COMPONENT: CATEGORY SPOTLIGHT CARDS
       ============================================================ */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.spotlight-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s;
    background-color: #fff;
}

.spotlight-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.spotlight-card__emoji {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 2.6rem;
    opacity: 0.9;
}

.spotlight-card__title {
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.spotlight-card__sub {
    font-size: 0.82rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

@media (max-width: 1150px) {
    .spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 01. BREADCRUMB ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--c-muted);
    padding: 18px 0 10px;
}

.breadcrumb a {
    color: var(--c-muted);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.breadcrumb__sep {
    color: var(--c-line);
    font-weight: 700;
}

.breadcrumb__current {
    color: var(--c-ink);
    font-weight: 700;
}

@media (max-width: 600px) {
    .breadcrumb {
        font-size: 0.78rem;
        gap: 6px;
    }
}

/* ---------- 09. PAGINATION ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.pagination__btn {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--c-line);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--c-ink);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination__btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.pagination__btn--active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.pagination__btn--active:hover {
    background: var(--c-primary-dark);
    color: #fff;
}

.pagination__btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination__ellipsis {
    padding: 0 6px;
    color: var(--c-muted);
}

@media (max-width: 600px) {
    .pagination__btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   STORE THUMBNAIL CARD ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â component-scoped styles
   ============================================================ */
/* ---------- CARD CONTAINER ---------- */
.store-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius, 14px);
    border: 1px solid var(--c-line, #EFEFF2);
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(28,27,34,.06));
    overflow: hidden;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(28,27,34,.09));
    border-color: transparent;
}

/* ---------- BANNER ---------- */
.store-card .store-banner {
    position: relative;
    height: 130px;
    overflow: hidden;
    background: linear-gradient(120deg, #FF4300, #FF8A3D);
}

.store-card .store-banner-image {
    position: absolute;
    inset: 0;
}

.store-card .store-banner-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}

.store-card .store-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- LOGO ---------- */
.store-card .store-logo {
    position: absolute;
    left: 16px;
    bottom: -28px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #fff;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(28,27,34,.06));
    z-index: 2;
}

/* ---------- BODY ---------- */
.store-card .store-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 40px 16px 16px;
    flex: 1;
}

/* name */
.store-card .store-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-ink, #1C1B22);
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.store-card:hover .store-name {
    color: var(--c-primary, #FF4300);
}

/* meta row */
.store-card .store-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--c-muted, #6B6B78);
    font-weight: 600;
}

.store-card .store-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.store-card .store-rating .star {
    color: var(--c-yellow, #FFC107);
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.store-card .store-rating strong {
    color: var(--c-ink, #1C1B22);
    font-weight: 800;
}

/* address */
.store-card .store-body > p {
    font-size: 0.8rem !important;
    color: var(--c-muted, #6B6B78) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .store-card .store-banner {
        height: 110px;
    }

    .store-card .store-logo {
        width: 56px;
        height: 56px;
        bottom: -24px;
        border-width: 3px;
    }

    .store-card .store-body {
        padding: 34px 14px 14px;
    }

    .store-card .store-name {
        font-size: 0.94rem;
    }

    .store-card .store-meta {
        font-size: 0.74rem;
        gap: 6px;
    }

    .store-card .store-body > p {
        font-size: 0.76rem !important;
    }
}

/* ============================================================
   STORE CATEGORIES ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â component-scoped styles
   ============================================================ */
.store-listing .cats {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.store-listing .cats::-webkit-scrollbar {
    display: none;
}

/* ---------- PILL ---------- */
.store-listing .cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: #fff;
    border: 1.5px solid var(--c-line, #EFEFF2);
    border-radius: 40px;
    text-decoration: none;
    color: var(--c-ink, #1C1B22);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(28,27,34,.06));
    scroll-snap-align: start;
}

.store-listing .cat-pill:hover {
    border-color: var(--c-primary, #FF4300);
    color: var(--c-primary, #FF4300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(28,27,34,.07));
}

/* active state */
.store-listing .cat-pill.active {
    background: var(--c-primary, #FF4300);
    border-color: var(--c-primary, #FF4300);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,67,0,.22);
}

.store-listing .cat-pill.active:hover {
    background: var(--c-primary-dark, #D63700);
    border-color: var(--c-primary-dark, #D63700);
    color: #fff;
}

.store-listing .cat-pill.active .cat-name {
    color: #fff;
}

/* ---------- ICON ---------- */
.store-listing .cat-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-bg, #F7F7FA);
    flex-shrink: 0;
    overflow: hidden;
    transition: background 0.2s;
}

.store-listing .cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-listing .cat-pill:hover .cat-icon {
    background: var(--c-primary-soft, #FFF0EA);
}

.store-listing .cat-pill.active .cat-icon {
    background: rgba(255,255,255,.2);
}

/* ---------- LABEL ---------- */
.store-listing .cat-name {
    line-height: 1.2;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .store-listing .cats {
        gap: 8px;
        padding: 14px 0 4px;
    }

    .store-listing .cat-pill {
        padding: 6px 12px 6px 6px;
        font-size: 0.78rem;
        gap: 8px;
    }

    .store-listing .cat-icon {
        width: 30px;
        height: 30px;
    }
}
