/* ==========================================================================
   NESTKART — storefront styles (light + dark)
   ========================================================================== */

:root {
    color-scheme: light;

    --bg:          #ffffff;
    --bg-alt:      #f5f7fb;
    --surface:     #ffffff;
    --surface-2:   #f3f5f9;
    --surface-3:   #e7ebf2;
    --line:        #dfe3ea;
    --line-soft:   #edf0f5;

    --text:        #111827;
    --text-dim:    #4b5563;
    --text-faint:  #8a93a3;

    /* Brand blue - solid fills (white text sits on this) */
    --accent:      #3452e1;
    --accent-hi:   #2741c4;
    --accent-ink:  #ffffff;
    --accent-rgb:  52, 82, 225;
    /* Brand colour for TEXT and icons on the page background */
    --accent-soft: #2f4bd6;

    --danger:      #d92d20;
    --success:     #15803d;
    --warning:     #b45309;
    --good:        #15803d;
    --good-rgb:    21, 128, 61;
    --star:        #f5a300;
    --glass:       rgba(255, 255, 255, .88);
    --glass-dark:  rgba(17, 24, 39, .86);
    --invert-bg:   #111827;
    --invert-text: #ffffff;
    --art-bg:      #eef2ff;

    --radius:      10px;
    --radius-lg:   16px;
    --shadow:      0 12px 36px rgba(17, 24, 39, .10);

    --font-head:   'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap:        1280px;
    --header-h:    68px;
}

/* Dark mode: picked with the moon button, or follows the phone when not picked */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg:          #0b0f17;
    --bg-alt:      #111622;
    --surface:     #141a26;
    --surface-2:   #1b2230;
    --surface-3:   #262f40;
    --line:        #2c3547;
    --line-soft:   #1f2736;

    --text:        #f3f5f9;
    --text-dim:    #b3bccb;
    --text-faint:  #7d8799;

    --accent:      #4a66f0;
    --accent-hi:   #5d77ff;
    --accent-ink:  #ffffff;
    --accent-rgb:  74, 102, 240;
    --accent-soft: #8fa3ff;

    --danger:      #ff6b6b;
    --success:     var(--good);
    --warning:     #ffb86b;
    --good:        var(--good);
    --good-rgb:    106, 208, 137;
    --glass:       rgba(11, 15, 23, .86);
    --invert-bg:   #f3f5f9;
    --invert-text: #0b0f17;
    --art-bg:      #1b2233;

    --shadow:      0 12px 40px rgba(0, 0, 0, .5);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding-block: 64px; }
.section--tight { padding-block: 40px; }
.section--alt { background: var(--bg-alt); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-head h2 { margin: 0; }

.eyebrow {
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin: 0 0 10px;
}

.text-dim  { color: var(--text-dim); }
.text-sm   { font-size: .85rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: transform .12s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hi); }

.btn--dark { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn--dark:hover { background: var(--surface-3); border-color: var(--text-faint); }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

.btn--danger { background: rgba(var(--accent-rgb), .14); color: var(--danger); border-color: rgba(var(--accent-rgb), .45); }
.btn--danger:hover { background: rgba(var(--accent-rgb), .24); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: .9rem; }
.btn--sm { padding: 9px 16px; font-size: .72rem; }

.btn[disabled], .btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.link-arrow {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.link-arrow:hover { border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */

.announce {
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    padding: 9px 20px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--glass);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.logo__mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-size: .95rem;
    font-weight: 900;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav__link {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .18s, border-color .18s;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text);
    border-color: var(--accent);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--text-dim);
    position: relative;
    transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .66rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
}

.nav-toggle { display: none; }

/* Search drawer */
.searchbar {
    display: none;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-alt);
    padding: 16px 0;
}
.searchbar.is-open { display: block; }

.searchbar form { display: flex; gap: 10px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: 16px; }

.label {
    display: block;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 7px;
}

.input, .select, .textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color .18s, background .18s;
}

.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-2);
}

.textarea { min-height: 100px; resize: vertical; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9a9b4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px;
    padding-right: 36px;
}

.field__error {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
    color: var(--danger);
}

.input.has-error, .select.has-error { border-color: var(--danger); }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.form-grid .field--full { grid-column: 1 / -1; }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
}
.checkbox input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Alerts / flash
   -------------------------------------------------------------------------- */

.flash-stack {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.alert {
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: .88rem;
    box-shadow: var(--shadow);
    animation: slide-in .3s ease;
}

.alert--success { border-color: rgba(var(--good-rgb), .35); background: rgba(var(--good-rgb), .08); color: var(--good); }
.alert--error   { border-color: rgba(var(--accent-rgb), .55);  background: rgba(var(--accent-rgb), .08);  color: var(--text); }
.alert--info    { border-color: rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .06); color: var(--text); }

@keyframes slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: none; }
}

.alert--inline {
    position: static;
    box-shadow: none;
    animation: none;
    margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: min(78vh, 620px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(900px 500px at 78% 20%, rgba(var(--accent-rgb), .13), transparent 62%),
        radial-gradient(700px 400px at 12% 85%, rgba(var(--accent-rgb), .05), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    width: 100%;
    padding-block: 56px;
}

.hero h1 {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -.035em;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent-soft);
    display: block;
}

.hero__sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 46ch;
    margin-bottom: 28px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__stats {
    display: flex;
    gap: 34px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.hero__stat b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.hero__stat span {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.hero__art {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

.hero__tag {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hero__tag strong { font-family: var(--font-head); text-transform: uppercase; font-size: .9rem; }
.hero__tag span { font-size: .78rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Marquee strip
   -------------------------------------------------------------------------- */

.strip {
    background: var(--accent);
    color: var(--accent-ink);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.strip__track {
    display: inline-flex;
    gap: 40px;
    animation: marquee 26s linear infinite;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding-right: 40px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .strip__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.cat-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 22px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}

.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(260px 180px at 90% 0%, rgba(var(--accent-rgb), .16), transparent 70%);
    opacity: 0;
    transition: opacity .25s;
}

.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat-card:hover::after { opacity: 1; }

.cat-card__count {
    position: absolute;
    top: 18px;
    left: 22px;
    text-transform: uppercase;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text-faint);
    z-index: 1;
}

.cat-card h3 {
    margin: 0 0 4px;
    text-transform: uppercase;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.cat-card p {
    margin: 0;
    font-size: .84rem;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 20px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}

.product-card:hover { border-color: var(--line); transform: translateY(-4px); }

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--surface-2);
    overflow: hidden;
    display: block;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}

.product-card:hover .product-card__media img { transform: scale(1.05); }

.badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    font-family: var(--font-head);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--surface-3);
    color: var(--text);
    width: fit-content;
}

.badge--sale   { background: var(--danger); color: #fff; }
.badge--new    { background: var(--accent); color: var(--accent-ink); }
.badge--out    { background: var(--surface-3); color: var(--text-dim); }
.badge--stock  { background: rgba(245, 158, 11, .14); color: var(--warning); }

.product-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__cat {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 5px;
}

.product-card__title {
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.product-card__title a:hover { color: var(--accent-soft); }

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.rating .stars { color: var(--accent-soft); letter-spacing: 1px; }

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.price__now {
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 800;
}

.price__was {
    font-size: .85rem;
    color: var(--text-faint);
    text-decoration: line-through;
}

.price__off {
    font-size: .76rem;
    font-weight: 700;
    color: var(--accent-soft);
}

.product-card__sizes {
    display: flex;
    gap: 5px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.size-chip {
    font-size: .68rem;
    font-weight: 600;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text-dim);
}
.size-chip.is-out { opacity: .35; text-decoration: line-through; }

/* --------------------------------------------------------------------------
   Shop layout
   -------------------------------------------------------------------------- */

.shop-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.filters {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 20px;
}

.filters__group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.filters__group:last-of-type { border-bottom: 0; margin-bottom: 10px; }

.filters__title {
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 12px;
}

.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }

.filter-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius);
    font-size: .88rem;
    color: var(--text-dim);
    transition: background .16s, color .16s;
}
.filter-list a:hover { background: var(--surface-2); color: var(--text); }
.filter-list a.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.filter-list a.is-active small { color: var(--accent-ink); opacity: .7; }
.filter-list small { color: var(--text-faint); }

.size-filter { display: flex; flex-wrap: wrap; gap: 6px; }

.size-filter a {
    min-width: 40px;
    padding: 7px 10px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: .16s;
}
.size-filter a:hover { border-color: var(--text-faint); color: var(--text); }
.size-filter a.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs .input { padding: 9px 10px; font-size: .85rem; }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.shop-toolbar__count { font-size: .88rem; color: var(--text-dim); }
.shop-toolbar__sort { display: flex; align-items: center; gap: 10px; }
.shop-toolbar__sort .select { width: auto; min-width: 180px; padding-block: 9px; font-size: .85rem; }

.filters-toggle { display: none; }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--text-dim);
    background: var(--surface);
}
.chip a { color: var(--text-faint); font-weight: 700; }
.chip a:hover { color: var(--danger); }

/* Pagination */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .88rem;
    color: var(--text-dim);
    transition: .16s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-soft); }
.pagination .is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pagination .is-gap { border-color: transparent; }

/* Empty state */
.empty {
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--text-dim); max-width: 42ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.crumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--text-faint);
    padding: 20px 0;
}
.crumbs a:hover { color: var(--accent-soft); }
.crumbs span[aria-current] { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.pdp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
    padding-bottom: 20px;
}

.pdp__media {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 4 / 5;
}
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }

.pdp__cat {
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 10px;
}

.pdp h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-transform: uppercase; margin-bottom: 14px; }

.pdp__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 6px;
}
.pdp__price .price__now { font-size: 1.9rem; }
.pdp__price .price__was { font-size: 1.05rem; }
.pdp__price .price__off { font-size: .95rem; }

.pdp__tax { font-size: .8rem; color: var(--text-faint); margin-bottom: 22px; }

.pdp__lead { color: var(--text-dim); font-size: .98rem; }

.size-picker { margin: 26px 0 22px; }

.size-picker__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 11px;
}

.size-options { display: flex; gap: 8px; flex-wrap: wrap; }

.size-option {
    position: relative;
    min-width: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    transition: .16s;
}
.size-option:hover:not(:disabled) { border-color: var(--text-faint); }
.size-option.is-selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.size-option:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.qty-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 18px; }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    flex-shrink: 0;
}

.qty button {
    width: 40px;
    height: 100%;
    min-height: 46px;
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: background .16s, color .16s;
}
.qty button:hover { background: var(--surface-2); color: var(--text); }

.qty input {
    width: 46px;
    text-align: center;
    background: none;
    border: 0;
    font-weight: 700;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stock-note { font-size: .84rem; margin-bottom: 20px; }
.stock-note--low { color: var(--warning); }
.stock-note--ok  { color: var(--success); }
.stock-note--out { color: var(--danger); }

.usp-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line-soft);
    display: grid;
    gap: 12px;
}

.usp-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--text-dim);
}
.usp-list svg { width: 18px; height: 18px; color: var(--accent-soft); flex-shrink: 0; margin-top: 2px; }

/* Accordion */
.accordion { border-top: 1px solid var(--line-soft); margin-top: 26px; }

.accordion__item { border-bottom: 1px solid var(--line-soft); }

.accordion__head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: left;
}
.accordion__head span { color: var(--text-faint); font-size: 1.2rem; transition: transform .2s; }
.accordion__item.is-open .accordion__head span { transform: rotate(45deg); }

.accordion__body { display: none; padding: 0 0 20px; color: var(--text-dim); font-size: .92rem; }
.accordion__item.is-open .accordion__body { display: block; }
.accordion__body ul { margin: 0; padding-left: 18px; }
.accordion__body li { margin-bottom: 6px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 9px 0; text-align: left; border-bottom: 1px solid var(--line-soft); }
.spec-table th { color: var(--text-faint); font-weight: 500; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

.cart-lines {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.cart-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--line-soft);
    align-items: start;
}
.cart-line:last-child { border-bottom: 0; }

.cart-line__img {
    width: 96px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }

.cart-line__name {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 700;
    margin: 0 0 5px;
}
.cart-line__name a:hover { color: var(--accent-soft); }

.cart-line__meta { font-size: .82rem; color: var(--text-faint); margin-bottom: 12px; }

.cart-line__controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.cart-line__remove {
    font-size: .8rem;
    color: var(--text-faint);
    border-bottom: 1px solid transparent;
}
.cart-line__remove:hover { color: var(--danger); border-color: currentColor; }

.cart-line__price { text-align: right; }
.cart-line__price .price__now { font-size: 1.05rem; }
.cart-line__price .price__was { display: block; font-size: .8rem; }

/* Summary */
.summary {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 22px;
}

.summary h3 {
    text-transform: uppercase;
    font-size: .95rem;
    letter-spacing: .1em;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.summary__row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    font-size: .92rem;
    color: var(--text-dim);
}
.summary__row b { color: var(--text); font-weight: 600; }
.summary__row--save b { color: var(--success); }

.summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.summary__total b { font-size: 1.5rem; }

.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form .input { padding: 10px 12px; font-size: .88rem; text-transform: uppercase; }

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin: 16px 0;
    border: 1px dashed rgba(var(--accent-rgb), .45);
    border-radius: var(--radius);
    background: rgba(var(--accent-rgb), .07);
    font-size: .85rem;
}
.coupon-applied b { color: var(--accent-soft); font-family: var(--font-head); letter-spacing: .06em; }

.free-ship-bar { margin: 14px 0 4px; }
.free-ship-bar__track { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.free-ship-bar__fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s ease; }
.free-ship-bar p { font-size: .8rem; color: var(--text-dim); margin: 8px 0 0; }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
    align-items: start;
}

.panel {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 24px;
    margin-bottom: 20px;
}

.panel__title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.panel__step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-size: .8rem;
    flex-shrink: 0;
}

.pay-option {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 11px;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.pay-option:hover { border-color: var(--text-faint); }
.pay-option:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.pay-option input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.pay-option b { display: block; font-size: .95rem; margin-bottom: 3px; }
.pay-option small { color: var(--text-dim); font-size: .83rem; }

.mini-line {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: center;
}
.mini-line:last-of-type { border-bottom: 0; }

.mini-line__img {
    width: 52px;
    aspect-ratio: 4 / 5;
    border-radius: 3px;
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
    position: relative;
}
.mini-line__img img { width: 100%; height: 100%; object-fit: cover; }

.mini-line__qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .68rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.mini-line__info { flex: 1; min-width: 0; }
.mini-line__info b { display: block; font-size: .86rem; font-weight: 600; }
.mini-line__info small { color: var(--text-faint); font-size: .78rem; }
.mini-line__price { font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Order success
   -------------------------------------------------------------------------- */

.success-hero {
    text-align: center;
    padding: 56px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    margin-bottom: 24px;
}

.success-hero__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(var(--good-rgb), .12);
    color: var(--success);
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
}
.success-hero__icon svg { width: 32px; height: 32px; }

.order-no {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 1.3rem;
    letter-spacing: .1em;
    padding: 9px 18px;
    border: 1px dashed var(--accent-soft);
    border-radius: var(--radius);
    color: var(--accent-soft);
    margin: 6px 0 18px;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 30px; }

.step {
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    text-align: left;
}
.step b { display: block; font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.step small { color: var(--text-dim); font-size: .82rem; }

/* --------------------------------------------------------------------------
   Static pages
   -------------------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 20px; color: var(--text-dim); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--text-dim); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .9rem; }
.prose th, .prose td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.page-head {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 44px;
}
.page-head h1 { text-transform: uppercase; margin-bottom: 8px; }
.page-head p { color: var(--text-dim); max-width: 60ch; margin: 0; }

/* --------------------------------------------------------------------------
   Feature row
   -------------------------------------------------------------------------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.feature {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.feature svg { width: 26px; height: 26px; color: var(--accent-soft); margin-bottom: 13px; }
.feature b { display: block; font-family: var(--font-head); font-size: .88rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.feature p { font-size: .86rem; color: var(--text-dim); margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--line-soft);
    background: var(--bg-alt);
    padding: 56px 0 26px;
    margin-top: 72px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line-soft);
}

.footer__about p { color: var(--text-dim); font-size: .88rem; max-width: 34ch; }

.footer h4 {
    font-family: var(--font-head);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 16px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { font-size: .88rem; color: var(--text-dim); }
.footer ul a:hover { color: var(--accent-soft); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 22px;
    font-size: .82rem;
    color: var(--text-faint);
    flex-wrap: wrap;
}

.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #05260f;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 26px rgba(37, 211, 102, .3);
    transition: transform .18s;
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab svg { width: 27px; height: 27px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__art { max-width: 460px; }
    .hero-deal { max-width: 560px; justify-self: start; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 900px) {
    .pdp { grid-template-columns: 1fr; gap: 30px; }
    .pdp__media { position: static; max-width: 520px; }

    .shop-layout { grid-template-columns: 1fr; }
    .filters {
        position: static;
        display: none;
    }
    .filters.is-open { display: block; }
    .filters-toggle { display: inline-flex; }
}

/* The nav carries long category names, so it collapses earlier than the rest */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 18px;
        margin: 0;
        display: none;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav__link { padding: 13px 0; border-bottom: 1px solid var(--line-soft); border-left: 2px solid transparent; }
    .nav__link.is-active { border-bottom-color: var(--line-soft); padding-left: 10px; border-left-color: var(--accent); }

    .nav-toggle { display: grid; order: -1; }
}

@media (max-width: 760px) {
    .logo { font-size: 1.2rem; }

    :root { --header-h: 60px; }

    .section { padding-block: 44px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .product-card__body { padding: 11px 12px 13px; }
    .product-card__title { font-size: .86rem; }
    .price__now { font-size: 1rem; }
    .product-card__sizes { display: none; }

    .cat-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
    .cat-card { padding: 16px; min-height: 170px; }
    .cat-card__count { left: 16px; top: 14px; font-size: .62rem; }
    .cat-card h3 { font-size: .9rem; }
    .cat-card p { display: none; }

    .cart-line { grid-template-columns: 76px minmax(0, 1fr); gap: 13px; padding: 14px; }
    .cart-line__img { width: 76px; }
    .cart-line__price { grid-column: 2; text-align: left; margin-top: 4px; }

    .form-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .flash-stack { left: 14px; right: 14px; max-width: none; }
    .hero__stats { gap: 22px; }
    .panel { padding: 18px; }
}

@media (max-width: 420px) {
    .btn { padding: 12px 18px; font-size: .76rem; }
    .hero__cta .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
    .header, .footer, .announce, .strip, .whatsapp-fab, .flash-stack, .btn { display: none !important; }
    body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   Best seller badge
   -------------------------------------------------------------------------- */

.badge--best { background: var(--invert-bg); color: var(--invert-text); }

/* --------------------------------------------------------------------------
   Signup popup
   -------------------------------------------------------------------------- */

.popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup.is-open { display: flex; }

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(3px);
    animation: popup-fade .25s ease;
}

.popup__dialog {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 40px);
    background: #ffffff;
    color: #111111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    animation: popup-in .32s cubic-bezier(.2, .8, .3, 1);
}

.popup__media { position: relative; background: #111111; min-height: 440px; }
.popup__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.popup__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 30px 26px;
    text-align: center;
    overflow-y: auto;
}

.popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #555555;
    background: rgba(255, 255, 255, .92);
    transition: color .15s, background .15s;
}
.popup__close:hover { color: #111111; background: #ffffff; }
.popup__close svg { width: 22px; height: 22px; }

.popup__title {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #111111;
    margin: 0 0 14px;
}

.popup__text { color: #444444; font-size: .97rem; margin: 0 0 22px; }

.popup__form { display: grid; gap: 12px; text-align: left; }

.popup__input {
    width: 100%;
    padding: 12px 14px;
    background: #f1f1f1;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    color: #111111;
    font-size: .95rem;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.popup__input::placeholder { color: #8a8a8a; }
.popup__input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}
.popup__input.has-error { border-color: var(--accent); background: #fff5f6; }

.popup__phone { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
.popup__phone select {
    border-radius: 8px 0 0 8px;
    border-right: 0;
    padding-right: 8px;
    font-size: .85rem;
    cursor: pointer;
}
.popup__phone input { border-radius: 0 8px 8px 0; }

.popup__error { display: block; margin-top: 5px; font-size: .78rem; color: var(--accent); }
.popup__error:empty { display: none; }

.popup__submit {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    transition: background .15s;
}
.popup__submit:hover { background: var(--accent-hi); }
.popup__submit[disabled] { opacity: .6; cursor: wait; }

.popup__legal { margin: 18px 0 0; font-size: .75rem; line-height: 1.45; color: #666666; }
.popup__legal a { color: #111111; text-decoration: underline; }

/* Honeypot for bots — kept off screen rather than display:none */
.popup__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.popup__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 12px;
    padding: 12px 14px;
    border: 2px dashed var(--accent);
    border-radius: 8px;
    background: #fff5f6;
}
.popup__code b {
    font-family: var(--font-head);
    font-size: 1.45rem;
    letter-spacing: .12em;
    color: var(--accent);
}

.popup__copy {
    padding: 8px 12px;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-size: .8rem;
    font-weight: 700;
}

.popup__note { margin: 0 0 18px; font-size: .88rem; color: #444444; }

@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
    .popup { padding: 12px; }
    .popup__dialog { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; }
    .popup__media { min-height: 0; height: 150px; }
    .popup__body { padding: 24px 20px 20px; }
    .popup__text { margin-bottom: 16px; }
}

/* --------------------------------------------------------------------------
   Live visitor counter
   -------------------------------------------------------------------------- */

.live-pill {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px 9px 12px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
}
.live-pill[hidden] { display: none; }

.live-pill__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    animation: live-pulse 1.8s infinite;
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .65); }
    70%  { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

@media (max-width: 760px) {
    .live-pill { left: 12px; bottom: 14px; padding: 7px 12px 7px 10px; font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
    .popup__overlay, .popup__dialog, .live-pill__dot { animation: none; }
}

/* --------------------------------------------------------------------------
   Homepage deal card
   -------------------------------------------------------------------------- */

.hero-deal {
    width: 100%;
    max-width: 560px;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-deal__timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--accent);
    color: #ffffff;
    flex-wrap: wrap;
}

.hero-deal__flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-deal__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: deal-blink 1.2s ease-in-out infinite;
}

@keyframes deal-blink { 50% { opacity: .25; } }

.hero-deal__clock {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-family: var(--font-head);
    font-variant-numeric: tabular-nums;
}
.hero-deal__ends { font-size: .72rem; font-weight: 600; opacity: .85; margin-right: 6px; }
.hero-deal__clock b {
    min-width: 2.3ch;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .3);
    font-size: 1.02rem;
    font-weight: 800;
    text-align: center;
}
.hero-deal__clock i { margin-right: 4px; font-style: normal; font-size: .68rem; opacity: .85; }
.hero-deal__clock i:last-child { margin-right: 0; }

.hero-deal__main { display: grid; grid-template-columns: 44% minmax(0, 1fr); }

.hero-deal__media {
    position: relative;
    display: block;
    min-height: 100%;
    background: var(--art-bg);
    overflow: hidden;
}
.hero-deal__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.hero-deal:hover .hero-deal__media img { transform: scale(1.05); }

.hero-deal__off {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    border-radius: 3px;
    background: var(--invert-bg);
    color: var(--invert-text);
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.hero-deal__body { padding: 16px 18px 18px; }

.hero-deal__cat {
    margin: 0 0 4px;
    font-family: var(--font-head);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.hero-deal__name {
    margin: 0 0 6px;
    font-size: 1.08rem;
    line-height: 1.2;
    text-transform: uppercase;
}
.hero-deal__name a:hover { color: var(--accent-soft); }

.hero-deal__body .rating { margin-bottom: 8px; }

.hero-deal__points { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.hero-deal__points li {
    position: relative;
    padding-left: 18px;
    font-size: .8rem;
    line-height: 1.35;
    color: var(--text-dim);
}
.hero-deal__points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .42em;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--accent-soft);
    border-bottom: 2px solid var(--accent-soft);
    transform: rotate(-45deg);
}

.hero-deal__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.hero-deal__price .price__now { font-size: 1.5rem; }

.hero-deal__sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.hero-deal__size { position: relative; cursor: pointer; }
.hero-deal__size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hero-deal__size span {
    display: block;
    min-width: 42px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    transition: background .15s, border-color .15s, color .15s;
}
.hero-deal__size:hover span { border-color: var(--text-faint); }
.hero-deal__size input:checked + span { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-text); }
.hero-deal__size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-deal__size input:disabled + span { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

.hero-deal__hint { margin: -2px 0 10px; font-size: .78rem; color: var(--accent-soft); }
.hero-deal__hint:empty { display: none; }

.hero-deal__stock { margin: 10px 0 0; font-size: .76rem; text-align: center; color: var(--warning); }

@media (max-width: 560px) {
    .hero-deal__main { grid-template-columns: 1fr; }
    .hero-deal__media { min-height: 0; aspect-ratio: 1 / 1; }
    .hero-deal__timer { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-deal__pulse { animation: none; }
}

/* --------------------------------------------------------------------------
   Category tile artwork
   -------------------------------------------------------------------------- */

.cat-card__art {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(var(--accent-rgb), .09);
    color: var(--accent-soft);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), background .25s, color .25s;
}
.cat-card__art svg { display: block; width: 44px; height: 44px; }

.cat-card:hover .cat-card__art { transform: translateY(-4px) rotate(-6deg) scale(1.06); background: var(--accent); color: var(--accent-ink); }

/* Uploaded photo instead of the icon */
.cat-card__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}
.cat-card__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, .05) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, .92) 100%);
}
.cat-card--photo:hover .cat-card__photo { transform: scale(1.06); }
.cat-card--photo .cat-card__count {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    color: #ffffff;
}
.cat-card--photo p { color: #dddddd; }

@media (max-width: 760px) {
    .cat-card__art { top: 12px; right: 12px; width: 56px; height: 56px; border-radius: 16px; }
    .cat-card__art svg { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .cat-card__art, .cat-card__photo { transition: none; }
    .cat-card:hover .cat-card__art, .cat-card--photo:hover .cat-card__photo { transform: none; }
}

/* The hidden attribute must win over component display rules (flex rows,
   overlays), otherwise a "hidden" overlay still sits on the page and eats clicks. */
[hidden] { display: none !important; }

/* ===========================================================================
   Bundle & save (product page)
   =========================================================================== */

.bundle { margin: 22px 0 18px; }

.bundle__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.bundle__head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

.bundle__opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.bundle__opt:hover { background: var(--surface-2); }
.bundle__opt.is-picked { border-color: var(--accent); background: var(--surface-2); }
.bundle__opt.is-out { opacity: .45; cursor: not-allowed; }

.bundle__opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bundle__mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    border-radius: 50%;
    transition: border-color .18s, box-shadow .18s;
}
.bundle__opt.is-picked .bundle__mark {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 3px var(--surface-2), inset 0 0 0 20px var(--accent);
}

.bundle__info { flex: 1; min-width: 0; }

.bundle__name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
}

.bundle__save {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-3);
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-dim);
}

.bundle__sub {
    display: block;
    margin-top: 3px;
    font-size: .84rem;
    color: var(--text-faint);
}

.bundle__price { text-align: right; line-height: 1.25; }
.bundle__price b { font-family: var(--font-head); font-size: 1.12rem; }
.bundle__price s { display: block; font-size: .82rem; color: var(--text-faint); }

.bundle__badge {
    position: absolute;
    top: -9px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--invert-bg);
    color: var(--invert-text);
    font-family: var(--font-head);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.bundle__badge--pop { background: var(--accent); color: var(--accent-ink); }

.bundle__note {
    margin: 10px 0 0;
    font-size: .82rem;
    color: var(--text-faint);
}

.cart-line__bundle {
    margin: 4px 0 0;
    font-size: .84rem;
    color: var(--accent-soft);
}
.cart-line__bundle--hint { color: var(--text-faint); }

/* ===========================================================================
   Payment nudge (checkout)
   =========================================================================== */

.pay-option__tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-3);
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 600;
    color: var(--text-dim);
}
.pay-option__tag--save { background: var(--accent); color: var(--accent-ink); }

.pay-nudge {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px dashed var(--accent);
    border-radius: var(--radius-lg);
    background: rgba(var(--accent-rgb), .08);
}
.pay-nudge > div { flex: 1; min-width: 200px; }
.pay-nudge b { display: block; font-family: var(--font-head); font-size: 1rem; }
.pay-nudge small { display: block; margin-top: 3px; font-size: .84rem; color: var(--text-dim); }

/* ===========================================================================
   Cart exit offer
   =========================================================================== */

.exit-offer {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .74);
    opacity: 0;
    transition: opacity .25s;
}
.exit-offer.is-open { opacity: 1; }

.exit-offer__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 34px 28px 28px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
    transform: translateY(14px);
    transition: transform .25s;
}
.exit-offer.is-open .exit-offer__box { transform: none; }

.exit-offer__close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-faint);
}
.exit-offer__close:hover { color: var(--text); }

.exit-offer__eyebrow {
    margin: 0 0 6px;
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-soft);
}
.exit-offer__box h2 { margin: 0 0 10px; font-size: 1.5rem; }
.exit-offer__text { margin: 0 0 20px; font-size: .94rem; color: var(--text-dim); }
.exit-offer__no {
    margin-top: 12px;
    font-size: .84rem;
    color: var(--text-faint);
    text-decoration: underline;
}
.exit-offer__no:hover { color: var(--text-dim); }

/* ===========================================================================
   "Someone just ordered" notes
   =========================================================================== */

.proof {
    position: fixed;
    left: 20px;
    bottom: 70px;             /* sits just above the live visitor pill */
    z-index: 240;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    max-width: 330px;
    padding: 10px 12px 10px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s, transform .35s;
}
.proof.is-open { opacity: 1; transform: none; }

.proof__link { display: flex; gap: 12px; align-items: center; }
.proof__img {
    width: 46px;
    height: 58px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--surface-2);
}
.proof__body { min-width: 0; }
.proof__body b {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-dim);
}
.proof__body span {
    display: block;
    margin: 1px 0 2px;
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proof__body small { font-size: .74rem; color: var(--text-faint); }

.proof__close {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-faint);
}
.proof__close:hover { color: var(--text); }

/* ===========================================================================
   Order placed confetti
   =========================================================================== */

.confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.confetti__bit {
    position: absolute;
    top: -14px;
    width: 8px;
    height: 14px;
    border-radius: 1px;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(440px) rotate(520deg); opacity: 0; }
}

@media (max-width: 640px) {
    .proof { left: 10px; right: 76px; bottom: 56px; max-width: none; }   /* clear of the WhatsApp button */
    .bundle__opt { padding: 14px; gap: 10px; }
    .bundle__price b { font-size: 1rem; }
    .pay-nudge { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .proof, .exit-offer, .exit-offer__box { transition: none; }
    .confetti { display: none; }
}

/* ===========================================================================
   UPI payment page
   =========================================================================== */

.upi-layout {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 56px;
}

.upi-card { text-align: center; }
.upi-card__amount small {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.upi-card__amount b {
    display: block;
    margin: 4px 0 18px;
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 900;
}

.upi-qr {
    width: 250px;
    max-width: 100%;
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 8px;
    border-radius: var(--radius-lg);
    background: #ffffff;
}
.upi-qr svg { display: block; width: 100%; height: 100%; }
.upi-qr p, .upi-qr__fallback { margin: 0; padding: 60px 12px; font-size: .86rem; color: #333; }

.upi-card__hint { margin: 12px 0 18px; font-size: .86rem; color: var(--text-dim); }
.upi-card__app { margin-bottom: 18px; }

.upi-id {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    text-align: left;
}
.upi-id span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.upi-id b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .95rem; }

.upi-steps { margin: 0; padding-left: 20px; color: var(--text-dim); line-height: 1.8; font-size: .92rem; }

/* ===========================================================================
   Customer order page
   =========================================================================== */

.order-action {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), .07);
}
.order-action > div { flex: 1; min-width: 220px; }
.order-action b { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.order-action p { margin: 4px 0 0; font-size: .9rem; color: var(--text-dim); }

.order-timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.order-timeline__step { position: relative; padding-top: 22px; text-align: center; }
.order-timeline__step::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--line);
}
.order-timeline__step.is-done::before,
.order-timeline__step.is-now::before { background: var(--accent); }
.order-timeline__dot {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 15px;
    height: 15px;
    margin-left: -7px;
    border: 3px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}
.order-timeline__step.is-done .order-timeline__dot { border-color: var(--accent); background: var(--accent); }
.order-timeline__step.is-now .order-timeline__dot { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25); }
.order-timeline__step b { display: block; margin-top: 6px; font-size: .74rem; color: var(--text-faint); }
.order-timeline__step.is-done b, .order-timeline__step.is-now b { color: var(--text); }
.order-timeline__step small { display: block; font-size: .7rem; color: var(--text-faint); }

.tracking-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}
.tracking-box small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.tracking-box b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.tracking-box__awb { letter-spacing: .06em; }

/* ===========================================================================
   Delivery estimate, pincode check
   =========================================================================== */

.delivery-eta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--surface-2);
    font-size: .88rem;
    color: var(--text-dim);
}
.delivery-eta svg, .pin-check__head svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent-soft); }
.delivery-eta b { color: var(--text); }

.pin-check {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.pin-check__head { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-dim); line-height: 1.5; }
.pin-check__head b { color: var(--text); }
.pin-check__form { display: flex; gap: 8px; margin-top: 12px; }
.pin-check__form .input { max-width: 180px; }
.pin-check__bad { color: var(--accent-soft); }

.pay-option.is-unavailable { opacity: .55; }
.pay-option__warn { display: block; margin-top: 4px; color: var(--accent-soft); }

/* ===========================================================================
   Sticky add to cart (product page, mobile)
   =========================================================================== */

.sticky-atc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--glass);
    backdrop-filter: blur(8px);
}
.sticky-atc img { width: 40px; height: 50px; object-fit: cover; border-radius: var(--radius); }
.sticky-atc__info { flex: 1; min-width: 0; }
.sticky-atc__info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.sticky-atc__info span { font-size: .86rem; color: var(--text-dim); }
.sticky-atc__info s { color: var(--text-faint); }

@media (min-width: 900px) {
    .sticky-atc { left: auto; right: 24px; bottom: 24px; width: 420px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 12px; }
}

/* ===========================================================================
   Recently viewed
   =========================================================================== */

.recent { padding-top: 40px; }
.recent__row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.recent__item {
    flex: 0 0 150px;
    scroll-snap-align: start;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.recent__item:hover { border-color: var(--line); }
.recent__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.recent__item b { display: block; margin-top: 8px; font-size: .82rem; line-height: 1.35; }
.recent__item span { font-size: .8rem; color: var(--text-dim); }

@media (max-width: 900px) {
    .upi-layout { grid-template-columns: 1fr; }
    .order-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
}

/* ===========================================================================
   Checkout (mobile first: number → address → pay)
   =========================================================================== */

.co { padding-block: 24px 56px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.co-main { min-width: 0; max-width: 680px; }

.co-card {
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: var(--surface);
}

.co-link {
    padding: 0;
    border: 0;
    background: none;
    font-weight: 700;
    color: var(--accent-soft);
    cursor: pointer;
}
.co-link:disabled { color: var(--text-faint); cursor: default; }

/* order summary (mobile) */
.co-summary summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
}
.co-summary summary::-webkit-details-marker { display: none; }
.co-summary summary small { font-family: var(--font-body); font-weight: 500; color: var(--text-dim); }
.co-summary summary b::after { content: " \203A"; color: var(--text-faint); display: inline-block; transition: transform .2s; }
.co-summary[open] summary b::after { transform: rotate(90deg); }
.co-summary__body { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.co-summary__totals h3 { display: none; }

/* coupon */
.co-coupon__form, .co-coupon__applied { display: flex; align-items: center; gap: 12px; }
.co-coupon__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    font-size: .9rem;
}
.co-coupon__input {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 1rem;
    text-transform: uppercase;
}
.co-coupon__input::placeholder { text-transform: none; color: var(--text-faint); }
.co-coupon__input:focus { outline: none; }
.co-coupon__applied > span:nth-child(2) { flex: 1; color: var(--text-dim); }
.co-coupon__applied b { color: var(--text); }

/* steps */
.co-step__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-step__title { margin: 0 0 4px; font-size: 1.2rem; }
.co-step__hint { margin: 0 0 14px; font-size: .88rem; color: var(--text-dim); }
.co-step__head + .form-grid, .co-step__head + .co-saved { margin-top: 12px; }

.co-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 4px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}
.co-phone:focus-within { border-color: var(--accent); }
.co-phone.has-error { border-color: var(--danger); }
.co-phone__cc { padding-right: 10px; border-right: 1px solid var(--line); font-weight: 700; color: var(--text-dim); }
.co-phone__input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 1.05rem;
    letter-spacing: .02em;
}
.co-phone__input:focus { outline: none; }
@media (max-width: 420px) {
    .co-phone { gap: 8px; padding-inline: 10px; }
    .co-phone__cc { padding-right: 8px; }
    .co-phone__ok { padding: 2px 7px; font-size: .7rem; }
}
.co-phone__ok {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(var(--good-rgb), .15);
    color: var(--good);
    font-size: .76rem;
    font-weight: 700;
}

.co-otp { margin-top: 4px; }
.co-otp__input { font-size: 1.5rem; letter-spacing: .5em; text-align: center; font-family: var(--font-head); }
.co-otp__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.co-msg { min-height: 1.2em; margin: 10px 0 0; font-size: .86rem; color: var(--text-dim); }
.co-msg.is-bad { color: var(--accent-soft); }

.co-pin-hint { display: block; margin-top: 4px; font-size: .76rem; color: var(--text-faint); }
.co-pin-hint.is-good { color: var(--good); }
.co-device { margin: 0 0 12px; font-size: .84rem; color: var(--text-dim); }

/* sections below the number wait for the OTP */
.co-locked[data-locked] { opacity: .42; pointer-events: none; user-select: none; filter: grayscale(.4); }

.co-saved {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}
.co-saved b { display: block; font-size: 1rem; }
.co-saved p { margin: 4px 0 0; color: var(--text-dim); line-height: 1.6; }

.co-eta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface-2);
}
.co-eta svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent-soft); }
.co-eta b { display: block; font-size: .95rem; }
.co-eta small { display: block; margin-top: 2px; color: var(--text-dim); }
.co-good { color: var(--good) !important; }

/* pay via */
.co-save-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px auto 16px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(var(--good-rgb), .12);
    color: var(--good);
    font-weight: 700;
    text-align: center;
}
.co-save-badge span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1f9d55;
    color: #fff;
    font-size: .74rem;
}

.pay-rows { display: grid; gap: 0; }
.pay-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 4px;
    border: 0;
    border-bottom: 1px dashed var(--line);
    background: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}
.pay-row:last-child { border-bottom: 0; }
.pay-row:hover:not(:disabled) { background: var(--surface-2); }
.pay-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-row__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text-dim);
}
.pay-row__icon svg { width: 22px; height: 22px; }
.pay-row__main { flex: 1; min-width: 0; }
.pay-row__main b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.pay-row__main small { display: block; margin-top: 2px; font-size: .8rem; color: var(--text-faint); }
.pay-row__save {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(var(--good-rgb), .14);
    color: var(--good);
    font-size: .78rem;
    font-weight: 700;
}
.pay-row__fee {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(var(--accent-rgb), .14);
    color: var(--accent-soft);
    font-size: .8rem;
    font-weight: 700;
}
.pay-row__warn:empty { display: none; }
.pay-row__warn { color: var(--accent-soft) !important; }
.pay-row__price { text-align: right; line-height: 1.25; white-space: nowrap; }
.pay-row__price s { display: block; font-size: .82rem; color: var(--text-faint); }
.pay-row__price b { font-family: var(--font-head); font-size: 1.1rem; }
.pay-row__go { font-size: 1.5rem; color: var(--text-faint); }
.pay-row--cod { margin-top: 10px; padding: 16px 14px; border: 0; border-radius: 12px; background: rgba(var(--accent-rgb), .08); }
.pay-row--cod:hover:not(:disabled) { background: rgba(var(--accent-rgb), .14); }
.pay-row.is-unavailable, .pay-row:disabled { opacity: .5; cursor: not-allowed; }
.pay-row.is-busy { opacity: .6; pointer-events: none; }
.pay-row.is-busy .pay-row__go { animation: co-spin .8s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }

.co-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    text-align: center;
    font-size: .76rem;
    color: var(--text-faint);
}
.co-trust span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.co-trust svg { width: 26px; height: 26px; color: var(--text-dim); }

.co-side { position: sticky; top: calc(var(--header-h) + 16px); }

@media (min-width: 1025px) {
    .co-summary { display: none; }
}
@media (max-width: 1024px) {
    .co-grid { grid-template-columns: 1fr; }
    .co-main { max-width: none; }
    .co-side { display: none; }
}
@media (max-width: 640px) {
    .co { padding-top: 14px; }
    .co-card { padding: 16px; border-radius: 14px; }
    .pay-row { gap: 10px; }
    .pay-row__icon { width: 38px; height: 38px; }
    .co-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===========================================================================
   Reviews
   =========================================================================== */

.stars-svg { display: inline-flex; gap: 2px; color: var(--star); vertical-align: middle; }
.stars-svg svg { width: 16px; height: 16px; }
a.rating { color: inherit; }
a.rating:hover span { text-decoration: underline; }

.reviews { padding-top: 48px; }
.reviews__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }

.reviews__score { display: grid; gap: 6px; margin-bottom: 18px; }
.reviews__score b { font-family: var(--font-head); font-size: 3rem; line-height: 1; }
.reviews__score .stars-svg svg { width: 22px; height: 22px; }
.reviews__score span:last-child { color: var(--text-dim); font-size: .9rem; }

.reviews__bars { display: grid; gap: 6px; margin-bottom: 20px; }
.reviews__bar { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: .84rem; color: var(--text-dim); }
.reviews__track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.reviews__track span { display: block; height: 100%; background: var(--star); }

.review-write summary { list-style: none; cursor: pointer; }
.review-write summary::-webkit-details-marker { display: none; }
.review-write__form { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }

.reviews__filters { display: flex; gap: 8px; margin-bottom: 16px; }

.review { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.review:first-of-type { padding-top: 0; }
.review__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review__top b { font-family: var(--font-head); }
.review__body { margin: 8px 0 10px; color: var(--text-dim); line-height: 1.65; }
.review__photo img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.review__meta { margin: 8px 0 0; font-size: .82rem; color: var(--text-faint); }
.review__meta b { color: var(--text); }
.review__verified {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(var(--good-rgb), .14);
    color: var(--good);
    font-weight: 700;
}

/* star picker: radios in reverse order so ~ can light the lower stars */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2rem; line-height: 1; color: var(--surface-3); cursor: pointer; transition: color .12s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.review-item { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.review-item summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.review-item summary::-webkit-details-marker { display: none; }
.review-item summary img { width: 44px; height: 55px; object-fit: cover; border-radius: var(--radius); }
.review-item summary b { display: block; }
.review-item summary small { color: var(--text-faint); }

@media (max-width: 900px) {
    .reviews__grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Slide-in cart
   =========================================================================== */

.drawer { position: fixed; inset: 0; z-index: 400; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .28s ease;
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-soft);
}
.drawer__head h2 { margin: 0; font-size: 1.3rem; }
.drawer__close { font-size: 1.8rem; line-height: 1; color: var(--accent-soft); }
.drawer__msg { margin: 0; padding: 10px 22px; background: rgba(var(--good-rgb), .12); color: var(--good); font-size: .88rem; font-weight: 600; }
.drawer__msg.is-bad { background: rgba(var(--accent-rgb), .12); color: var(--accent-soft); }

.drawer__content { display: flex; flex-direction: column; flex: 1; min-height: 0; transition: opacity .15s; }
.drawer__content.is-busy { opacity: .55; pointer-events: none; }
.drawer__scroll { flex: 1; overflow-y: auto; padding: 16px 22px; }

.drawer__empty { padding: 30px 0; text-align: center; color: var(--text-dim); }
.drawer__ship { margin-bottom: 14px; font-size: .86rem; color: var(--text-dim); }
.drawer__ship b { color: var(--text); }
.drawer__ship-bar { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.drawer__ship-bar span { display: block; height: 100%; background: var(--accent); }

.drawer__items { margin: 0; padding: 0; list-style: none; }
.drawer-item { position: relative; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-item__img img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.drawer-item__info { flex: 1; min-width: 0; padding-right: 24px; }
.drawer-item__name { display: block; font-size: .95rem; line-height: 1.35; color: var(--text); }
.drawer-item__price { display: block; margin-top: 4px; font-weight: 700; }
.drawer-item__price s { margin-left: 6px; font-weight: 400; font-size: .82rem; color: var(--text-faint); }
.drawer-item__note { display: block; margin-top: 3px; font-size: .78rem; color: var(--accent-soft); }
.drawer-item__note--hint { color: var(--text-faint); }
.drawer-item__qty { display: inline-flex; align-items: center; gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.drawer-item__qty button { width: 30px; height: 30px; font-size: 1rem; color: var(--text); }
.drawer-item__qty button:disabled { color: var(--text-faint); }
.drawer-item__qty span { min-width: 26px; text-align: center; font-weight: 700; }
.drawer-item__remove { position: absolute; top: 12px; right: 0; }
.drawer-item__remove button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-dim);
    font-size: 1rem;
}
.drawer-item__remove button:hover { background: var(--accent); color: var(--accent-ink); }

.drawer__recs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.drawer__recs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__recs-head b { font-family: var(--font-head); font-size: 1rem; }
.drawer__recs-head button { width: 30px; height: 30px; font-size: 1.4rem; line-height: 1; color: var(--text); }
.drawer__recs-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.drawer__recs-track::-webkit-scrollbar { display: none; }
.rec-card { flex: 0 0 calc(50% - 5px); scroll-snap-align: start; color: var(--text); }
.rec-card__img { position: relative; display: block; }
.rec-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.rec-card__off { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800; }
.rec-card__name { display: block; margin-top: 8px; font-size: .84rem; line-height: 1.3; }
.rec-card__price { display: block; margin-top: 2px; font-weight: 700; font-size: .9rem; }
.rec-card__price s { margin-left: 4px; font-weight: 400; font-size: .78rem; color: var(--text-faint); }
.rec-card:hover .rec-card__name { text-decoration: underline; }

.drawer__foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer__subtotal span { color: var(--text-dim); }
.drawer__subtotal b { font-family: var(--font-head); font-size: 1.3rem; }
.drawer__saving { margin: 0 0 12px; font-size: .82rem; color: var(--good); }
.drawer__view { display: block; margin-top: 12px; text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    .drawer__panel, .drawer__overlay { transition: none; }
}

/* ===========================================================================
   Modern skin: rounded, sentence case, soft shadows
   =========================================================================== */

h1, h2, h3, h4 { letter-spacing: -.025em; }
.btn { letter-spacing: 0; text-transform: none; font-size: .95rem; border-radius: var(--radius); }
.btn--lg { font-size: 1rem; }
.btn--sm { font-size: .82rem; }
.link-arrow { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.eyebrow { letter-spacing: .12em; }
.announce { letter-spacing: .02em; text-transform: none; font-size: .82rem; }
.product-card, .cat-card, .panel, .hero-deal { border-radius: var(--radius-lg); }
.product-card:hover, .cat-card:hover { box-shadow: var(--shadow); }
.input, select.input, textarea.input { border-radius: var(--radius); }

/* Theme switch in the header */
.theme-toggle .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }

/* Headings and names in normal case - friendlier for a home store */
.hero h1, .pdp h1, .page-head h1, .cat-card h3, .hero-deal__name, .nav__link, .strip__track, .summary h3, .panel__title, .footer h4 {
    text-transform: none;
    letter-spacing: -.01em;
}
.hero h1 { letter-spacing: -.035em; }
.nav__link { font-size: .9rem; }

/* Six categories: two tidy rows of three */
@media (min-width: 900px) {
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===========================================================================
   Product page: delivery timeline + perks
   =========================================================================== */

.ship-steps {
    margin: 22px 0 0;
    padding: 18px 16px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.ship-steps__lead { margin: 0 0 16px; font-size: .92rem; color: var(--text-dim); text-align: center; }
.ship-steps__lead b { color: var(--text); }

.ship-steps__list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
/* grey track + coloured fill between the first and last icon */
.ship-steps__list::before,
.ship-steps__list::after {
    content: '';
    position: absolute;
    top: 21px;
    left: 16.666%;
    height: 3px;
    border-radius: 3px;
}
.ship-steps__list::before { right: 16.666%; background: var(--surface-3); }
.ship-steps__list::after {
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--good));
    transition: width 1.4s cubic-bezier(.5, 0, .2, 1) .25s;
}
.ship-steps.is-in .ship-steps__list::after { width: 66.666%; }

.ship-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.ship-step b { margin-top: 8px; font-family: var(--font-head); font-size: .9rem; }
.ship-step > span:last-child { font-size: .8rem; color: var(--text-dim); }

.ship-step__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--surface-3);
    color: var(--text-faint);
    transform: scale(.7);
    opacity: .4;
    transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s, background .3s, border-color .3s, color .3s;
    transition-delay: calc(var(--i) * .55s + .1s);
}
.ship-step__icon svg { width: 21px; height: 21px; }
.ship-steps.is-in .ship-step__icon { transform: none; opacity: 1; border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.ship-steps.is-in .ship-step__icon--done { border-color: var(--good); background: var(--good); }

/* after they appear: the bag breathes, the truck drives, the tick draws itself */
.ship-steps.is-in .ship-step__icon--order { animation: ship-ring 2.4s ease-out 1.8s infinite; }
.ship-steps.is-in .ship-step__icon--ship svg { animation: ship-drive 1.6s ease-in-out 1.3s infinite; }
.ship-step__tick { stroke-dasharray: 12; stroke-dashoffset: 12; }
.ship-steps.is-in .ship-step__tick { animation: ship-tick .5s ease-out 1.6s forwards; }

@keyframes ship-ring {
    0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); }
    70%  { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
@keyframes ship-drive {
    0%, 100% { transform: translateX(-2px); }
    50%      { transform: translateX(2px) translateY(-1px); }
}
@keyframes ship-tick { to { stroke-dashoffset: 0; } }

/* Perks: one per row, icon animates on hover / tap */
.perks {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.perk {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: default;
    outline: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.perk:hover, .perk:focus-visible, .perk:active {
    border-color: rgba(var(--accent-rgb), .45);
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), .12);
    transform: translateX(4px);
}
.perk__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), .1);
    color: var(--accent-soft);
    transition: background .25s, color .25s;
}
.perk__icon svg { width: 22px; height: 22px; }
.perk--cod .perk__icon    { background: rgba(var(--good-rgb), .12); color: var(--good); }
.perk--return .perk__icon { background: rgba(245, 158, 11, .14); color: var(--warning); }
.perk__text { display: flex; flex-direction: column; line-height: 1.35; }
.perk__text b { font-size: .92rem; color: var(--text); }
.perk__text small { font-size: .8rem; color: var(--text-dim); }

.perk:hover .perk__icon, .perk:focus-visible .perk__icon, .perk:active .perk__icon { background: var(--accent); color: var(--accent-ink); }
.perk--cod:hover .perk__icon, .perk--cod:focus-visible .perk__icon, .perk--cod:active .perk__icon { background: var(--good); }
.perk--return:hover .perk__icon, .perk--return:focus-visible .perk__icon, .perk--return:active .perk__icon { background: var(--warning); }

.perk--cod:hover svg, .perk--cod:focus-visible svg, .perk--cod:active svg          { animation: perk-wiggle .6s ease-in-out; }
.perk--return:hover svg, .perk--return:focus-visible svg, .perk--return:active svg { animation: perk-spin .7s cubic-bezier(.5, 0, .3, 1); }
.perk--ship:hover svg, .perk--ship:focus-visible svg, .perk--ship:active svg       { animation: perk-drive .8s ease-in-out; }

/* on phones there is no hover, so each icon plays once as the list scrolls in */
.perks.is-in .perk--cod svg    { animation: perk-wiggle .6s ease-in-out .2s; }
.perks.is-in .perk--return svg { animation: perk-spin .7s cubic-bezier(.5, 0, .3, 1) .45s; }
.perks.is-in .perk--ship svg   { animation: perk-drive .8s ease-in-out .7s; }

@keyframes perk-wiggle {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-14deg) scale(1.08); }
    60%      { transform: rotate(10deg) scale(1.08); }
}
@keyframes perk-spin {
    from { transform: rotate(0); }
    to   { transform: rotate(-360deg); }
}
@keyframes perk-drive {
    0%   { transform: translateX(0); }
    40%  { transform: translateX(7px); opacity: 0; }
    41%  { transform: translateX(-7px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ship-steps__list::after, .ship-step__icon { transition: none; }
    .ship-steps.is-in .ship-step__icon--order,
    .ship-steps.is-in .ship-step__icon--ship svg,
    .perk svg, .perks.is-in .perk svg { animation: none !important; }
    .ship-step__tick { stroke-dashoffset: 0; }
    .perk:hover, .perk:active { transform: none; }
}

/* Phones: long store names + four header buttons must fit on one row */
@media (max-width: 560px) {
    .header__inner { gap: 10px; }
    .logo { min-width: 0; flex-shrink: 1; gap: 7px; font-size: 1.08rem; }
    .logo > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .logo__mark { width: 26px; height: 26px; flex-shrink: 0; }
    .header__actions { gap: 0; flex-shrink: 0; }
    .header__actions .icon-btn { width: 36px; }
}

/* Perks side by side (one row of three) */
.perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.perk { flex-direction: column; justify-content: flex-start; gap: 10px; padding: 16px 10px 14px; text-align: center; }
.perk__text { align-items: center; }
.perk:hover, .perk:focus-visible, .perk:active { transform: translateY(-4px); }
@media (max-width: 480px) {
    .perks { gap: 8px; }
    .perk { padding: 13px 6px 12px; gap: 8px; }
    .perk__icon { width: 38px; height: 38px; }
    .perk__text b { font-size: .8rem; }
    .perk__text small { font-size: .7rem; }
}

/* Review form extras */
.review-write__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-write__verify { margin: 0 0 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.review-write__verify summary { cursor: pointer; font-size: .86rem; color: var(--text-dim); }
.review-write__verify[open] summary { margin-bottom: 12px; }
