/* =====================================================================
   BGADI Store — global styles
   Palette : ink #1c1b19 · paper #faf8f5 · surface #fff · accent #d6336c
   Type    : Playfair Display (display) · DM Sans (body/UI)
   ===================================================================== */

:root {
    --ink:      #1c1b19;
    --paper:    #faf8f5;
    --surface:  #ffffff;
    --accent:   #d6336c;
    --accent-dark: #b02657;
    --muted:    #6b6862;
    --line:     #e6e2da;
    --ok-bg:    #edf7ef;  --ok-fg:  #1f6b39;
    --err-bg:   #fceef0;  --err-fg: #a11d3b;

    --radius: 4px;
    --wrap: 1180px;
    --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
    --font-display: "Josefin Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}

/* Homepage: header overlays the hero, transparent background */
.is-home .site-header {
    position: absolute; top: 0; left: 0; right: 0;
    background: transparent; backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.is-home .site-header .wordmark,
.is-home .site-header .main-nav a,
.is-home .site-header .header-actions a,
.is-home .site-header .header-actions .who,
.is-home .site-header .cart-link,
.is-home .site-header .wish-link { color: #fff; }
.is-home .site-header .main-nav a:hover,
.is-home .site-header .header-actions a:hover { color: var(--accent); }
.site-header .bar {
    display: flex; align-items: center; gap: 32px;
    height: 72px;
}
.wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: 0.02em;
    color: var(--ink);
    white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mark { color: var(--accent); }

.main-nav { display: flex; gap: 26px; margin-left: 8px; }
.main-nav a {
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--accent); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-actions a { color: var(--ink); font-size: 15px; font-weight: 500; }
.header-actions a:hover { color: var(--accent); }
.header-actions .who { color: var(--muted); font-size: 14px; }

/* ---------- Buttons --------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 15px; font-weight: 600;
    padding: 12px 22px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink); color: #fff;
    cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ------------------------------------------------------ */
.hero { padding: 88px 0 64px; }
.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    max-width: 16ch;
}
.hero p { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 0 0 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Dynamic homepage hero slider ---------------------------- */
.hero-slider {
    position: relative;
    min-height: 650px;
    padding: 0;
    color: #fff;
    overflow: hidden;
    background: #171615;
}
.hero-slides { position: relative; min-height: 650px; }
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background-color: #27231f;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center top;
    transform: scale(1.035);
    transform-origin: center top;
    transition: opacity .8s ease, visibility .8s ease;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: heroImageZoom 7s ease-out both;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: -2%;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.22) 100%),
        linear-gradient(0deg, rgba(0,0,0,.36), rgba(0,0,0,.10));
}
.hero-slide .hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-slider .hero-copy { max-width: 780px; }
.hero-slider .hero-copy .eyebrow,
.hero-slider .hero-note,
.hero-slider .hero-note p { color: #fff; }
.hero-slider .hero-note span { color: #fff; }
.hero-slider .hero-copy h1 {
    color: #fff;
    text-shadow: 0 3px 24px rgba(0,0,0,.25);
}
.hero-slider .hero-copy p { color: rgba(255,255,255,.82); }
.hero-slider .hero-note { border-top-color: rgba(255,255,255,.35); }
.hero-slider .hero-note span { color: #fff; }
.hero-slider .btn-ghost {
    border-color: rgba(255,255,255,.65);
    color: #fff;
    background: rgba(0,0,0,.10);
}
.hero-slider .btn-ghost:hover {
    border-color: #fff;
    background: #fff;
    color: var(--ink);
}
.hero-slide.is-active .hero-copy > * {
    animation: heroContentIn .75s cubic-bezier(.2,.8,.2,1) both;
}
.hero-slide.is-active .hero-copy .eyebrow { animation-delay: .10s; }
.hero-slide.is-active .hero-copy h1 { animation-delay: .18s; }
.hero-slide.is-active .hero-copy p { animation-delay: .26s; }
.hero-slide.is-active .hero-copy .cta-row { animation-delay: .34s; }
.hero-slide.is-active .hero-note { animation: heroContentIn .75s .42s cubic-bezier(.2,.8,.2,1) both; }
.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
}
.hero-dots, .hero-arrows { display: flex; align-items: center; pointer-events: auto; }
.hero-dots { gap: 9px; }
.hero-dot {
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.38);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.hero-dot.is-active { width: 52px; background: #fff; }
.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(0,0,0,.12);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.hero-arrow + .hero-arrow { margin-left: 8px; }
.hero-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.hero-slider:has(.hero-slide:nth-child(1):only-child) .hero-controls { display: none; }

@keyframes heroImageZoom {
    from { transform: scale(1.045); }
    to { transform: scale(1); }
}
@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
    .hero-slider, .hero-slides { min-height: 620px; }
    .hero-slide { background-position: 58% center; }
    .hero-slider .hero-inner { align-items: flex-end; padding-bottom: 105px; }
    .hero-slider .hero-copy h1 { font-size: clamp(42px, 13vw, 64px); }
    .hero-slider .hero-copy p { font-size: 16px; max-width: 38ch; }
    .hero-slider .hero-note { display: none; }
    .hero-controls { bottom: 28px; }
    .hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.42)); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide.is-active, .hero-slide.is-active .hero-copy > *, .hero-slide.is-active .hero-note { animation: none; }
    .hero-slide { transition: opacity .2s ease, visibility .2s ease; transform: none; }
}

/* ---------- Department blocks ---------------------------------------- */
.departments { padding: 24px 0 96px; }
.dept-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.dept-card {
    position: relative;
    display: flex; align-items: flex-end;
    min-height: 340px;
    padding: 26px;
    border-radius: var(--radius);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background-color: #393186;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.dept-card::before {
    content: ""; position: absolute; inset: -8px; z-index: -2;
    background: inherit;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.dept-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(160deg, rgba(0,0,0,.12), rgba(0,0,0,.62));
    transition: background .5s ease;
}
.dept-card.no-image { background: linear-gradient(145deg, #393186, #5f59a5); }
.dept-card.no-image::before { display: none; }
.dept-card > span {
    position: relative; z-index: 2;
    transform: translateY(0);
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.dept-card .label {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 500;
}
.dept-card .go {
    display: block; font-size: 14px; color: rgba(255,255,255,.85); margin-top: 4px;
    transition: transform .4s ease, color .3s ease;
}
.dept-card:hover {
    color: #fff; transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.20);
}
.dept-card:hover::before { transform: scale(1.08); filter: brightness(.9); }
.dept-card:hover::after { background: linear-gradient(160deg, rgba(0,0,0,.20), rgba(0,0,0,.72)); }
.dept-card:hover > span { transform: translateY(-6px); }
.dept-card:hover .go { color: #fff; transform: translateX(8px); }
@media (prefers-reduced-motion: reduce) {
    .dept-card, .dept-card::before, .dept-card::after, .dept-card > span, .dept-card .go { transition: none; }
}

/* ---------- Auth card ------------------------------------------------- */
.auth-wrap {
    min-height: calc(100vh - 72px);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 40px 36px;
}
.auth-card .brand {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 600;
    text-align: center; margin-bottom: 4px;
}
.auth-card .brand .mark { color: var(--accent); }
.auth-card h1 {
    font-family: var(--font-display);
    font-weight: 500; font-size: 28px;
    text-align: center; margin: 8px 0 4px;
}
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.auth-card .switch { text-align: center; margin-top: 22px; font-size: 15px; color: var(--muted); }

/* ---------- Forms ----------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field input {
    width: 100%;
    font-family: var(--font-body); font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(214, 51, 108, .12);
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Flash / alerts ------------------------------------------- */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; }
.alert-error   { background: var(--err-bg); color: var(--err-fg); }
.alert-success { background: var(--ok-bg);  color: var(--ok-fg); }

/* ---------- Account panel -------------------------------------------- */
.page { padding: 56px 0 96px; }
.page h1 { font-family: var(--font-display); font-weight: 500; font-size: 40px; margin: 0 0 8px; }
.page .lead { color: var(--muted); margin: 0 0 36px; font-size: 17px; }
.panel {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 8px; padding: 28px 30px; max-width: 640px;
}
.panel dl { display: grid; grid-template-columns: 160px 1fr; gap: 14px 20px; margin: 0; }
.panel dt { color: var(--muted); font-size: 14px; }
.panel dd { margin: 0; font-weight: 500; }
.badge {
    display: inline-block; font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
    background: var(--accent); color: #fff; text-transform: capitalize;
}

/* ---------- Footer ---------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 48px 0 24px;
    color: var(--muted);
    font-size: 14px;
}
.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 40px;
}
.site-footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}
.site-footer-col h3 {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}
.site-footer-col a {
    color: var(--muted);
    text-decoration: none;
    line-height: 1.4;
    transition: color .18s ease;
}
.site-footer-col a:hover { color: var(--ink); }
.site-footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 760px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .site-footer-col:last-child { grid-column: 1 / -1; }
    .site-footer-bottom { flex-direction: column; }
    .main-nav { display: none; }
    .dept-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 40px; }
    .panel dl { grid-template-columns: 1fr; gap: 4px 0; }
    .panel dt { margin-top: 12px; }
}

/* =====================================================================
   Storefront: shop, product detail, cart   (chunk 3)
   ===================================================================== */

/* header cart link */
.header-actions .cart-link { font-weight: 600; }
.cart-count {
    display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; font-size: 11px; font-weight: 700; color: #fff;
    background: var(--accent); border-radius: 999px; padding: 0 5px; vertical-align: 1px;
}
.btn-linky { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.btn-linky:hover { color: var(--ink); text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- Shop layout (rail + grid) -------------------------------- */
.shop-layout { display: grid; grid-template-columns: 210px 1fr; gap: 40px; padding: 34px 0 60px; }
.shop-rail { font-size: 15px; }
.rail-group { margin-bottom: 18px; }
.rail-dept {
    display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600;
    color: var(--ink); margin-bottom: 6px;
}
.rail-link { display: block; color: var(--muted); padding: 4px 0; }
.rail-link:hover, .rail-dept:hover { color: var(--accent); }
.rail-link.active, .rail-dept.active { color: var(--accent); font-weight: 600; }

.shop-head { margin-bottom: 24px; }
.shop-head h1 { font-family: var(--font-display); font-weight: 500; font-size: 40px; margin: 0 0 4px; }
.shop-head p { color: var(--muted); margin: 0; }
.shop-empty { padding: 60px 0; color: var(--muted); }
.shop-empty p { margin: 0 0 6px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 24px; }
.product-card { display: block; color: var(--ink); }
.pc-image {
    position: relative; aspect-ratio: 3/4; background: #f1ede7; border-radius: var(--radius);
    overflow: hidden; margin-bottom: 12px;
}
.pc-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .pc-image img { transform: scale(1.04); }
.pc-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #b7afa4; font-size: 14px; }
.pc-tag {
    position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff;
    font-size: 11px; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px;
}
.pc-body { display: flex; flex-direction: column; gap: 3px; }
.pc-name { font-weight: 500; }
.pc-price { color: var(--ink); }
.pc-price .now { color: var(--accent); font-weight: 600; margin-right: 6px; }
.pc-price .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }

/* ---------- Product detail page -------------------------------------- */
/* ---------- Product detail page -------------------------------------- */
.pdp { padding: 24px 0 64px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .here { color: var(--ink); }

.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pg-main { aspect-ratio: 3/4; background: #f1ede7; border-radius: 6px; overflow: hidden; }
.pg-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-noimg { display: grid; place-items: center; height: 100%; color: #b7afa4; }
.pg-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pg-thumb { width: 66px; height: 84px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: none; cursor: pointer; }
.pg-thumb.active { border-color: var(--accent); }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-info h1 { font-family: var(--font-display); font-weight: 500; font-size: 38px; line-height: 1.1; margin: 4px 0 14px; }
.pdp-brand { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); font-weight: 600; }
.pdp-price { font-size: 24px; margin-bottom: 20px; }
.pdp-price .now { color: var(--accent); font-weight: 600; }
.pdp-price .was { color: var(--muted); text-decoration: line-through; font-size: 18px; margin-left: 10px; }
.pdp-desc { color: #4b4843; line-height: 1.7; margin-bottom: 26px; }
.pdp-lbl { display: block; font-size: 13px; font-weight: 700; margin: 0; letter-spacing: .02em; }
.pdp-size-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.pdp-size-chart { color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.pdp-size-chart span { font-size: 18px; vertical-align: -1px; }
.pdp-size-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pdp-size-option { position: relative; cursor: pointer; }
.pdp-size-option > input { position: absolute; opacity: 0; pointer-events: none; }
.pdp-size-box { min-width: 88px; min-height: 64px; padding: 9px 12px 8px; border: 1px solid #c9c4bd; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; transition: .18s ease; }
.pdp-size-option:hover .pdp-size-box { border-color: var(--accent); }
.pdp-size-option.is-selected .pdp-size-box { border: 2px solid var(--accent); padding: 8px 11px 7px; box-shadow: 0 0 0 1px rgba(214,51,108,.08); }
.pdp-size-name { font-size: 14px; font-weight: 700; line-height: 1.1; }
.pdp-size-price { font-size: 12px; color: var(--muted); line-height: 1.1; }
.pdp-size-stock { min-height: 15px; font-size: 11px; line-height: 1.1; color: #ff8754; font-weight: 600; }
.pdp-size-option.is-out { cursor: not-allowed; }
.pdp-size-option.is-out .pdp-size-box { color: #aaa; border-color: #d7d2cc; background: linear-gradient(135deg, transparent 49%, #ddd8d1 50%, transparent 51%); }
.pdp-size-option.is-out .pdp-size-stock { color: #aaa; }
.pdp-stock { font-size: 13px; color: var(--muted); margin: 0 0 16px; min-height: 16px; }
.pdp-soldout { display: inline-block; background: #f3eaea; color: #9a5b5b; font-weight: 600; padding: 10px 18px; border-radius: var(--radius); }
.pdp-meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.pdp-meta a { color: var(--accent); }
/* ---------- Cart ----------------------------------------------------- */
.cart-page { padding: 30px 0 64px; }
.cart-page h1 { font-family: var(--font-display); font-weight: 500; font-size: 40px; margin: 0 0 24px; }
.cart-empty { padding: 40px 0; color: var(--muted); }
.cart-empty p { margin: 0 0 18px; }

.cart-table { border-top: 1px solid var(--line); margin-bottom: 24px; }
.cart-row { display: grid; grid-template-columns: 1fr 110px 110px 110px 90px; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-head { font-size: 12px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; padding: 12px 0; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-thumb { width: 64px; height: 80px; border-radius: 4px; overflow: hidden; background: #f1ede7; flex-shrink: 0; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .noimg { display: block; width: 100%; height: 100%; }
.cart-meta { display: flex; flex-direction: column; gap: 3px; }
.cart-name { font-weight: 500; color: var(--ink); }
.cart-variant { font-size: 13px; color: var(--muted); }
.cart-note { font-size: 12px; color: #9a5b5b; }
.cart-qty input { width: 66px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.cart-total { font-weight: 600; }

.cart-foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cart-actions-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cart-summary { width: 300px; max-width: 100%; margin-left: auto; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 18px; padding: 8px 0; }
.cart-subtotal strong { font-size: 22px; }
.cart-ship-note { color: var(--muted); font-size: 13px; margin: 2px 0 16px; }

@media (max-width: 860px) {
    .pdp-size-options {
        grid-template-columns: repeat(auto-fill, minmax(76px, 76px));
        gap: 18px 9px;
    }
    .pdp-size-option {
        width: 76px;
        min-height: 60px;
        height: 60px;
    }

    .shop-layout { grid-template-columns: 1fr; gap: 20px; }
    .shop-rail { display: flex; flex-wrap: wrap; gap: 8px 18px; }
    .rail-group { margin-bottom: 0; }
    .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
    .cart-row { grid-template-columns: 1fr auto; grid-auto-rows: min-content; row-gap: 6px; }
    .cart-head { display: none; }
    .cart-price, .cart-qty, .cart-total { }
    .cart-price::before, .cart-qty::before, .cart-total::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
    .cart-item { grid-column: 1 / -1; }
}

/* =====================================================================
   Checkout, orders, account history   (chunk 4)
   ===================================================================== */

/* order status pills (shared by storefront + admin) */
.ostatus { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.os-pending    { background: #f3f0eb; color: #6b6862; }
.os-paid       { background: var(--ok-bg); color: var(--ok-fg); }
.os-processing { background: #eef2fb; color: #34509b; }
.os-shipped    { background: #e9f1fb; color: #245ba0; }
.os-delivered  { background: var(--ok-bg); color: var(--ok-fg); }
.os-cancelled  { background: #f3eaea; color: #9a5b5b; }
.os-refunded   { background: #f3f0eb; color: #6b6862; }

/* ---------- Checkout -------------------------------------------------- */
.checkout { padding: 30px 0 64px; }
.checkout h1 { font-family: var(--font-display); font-weight: 500; font-size: 40px; margin: 0 0 24px; }
.checkout h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 16px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.co-field input {
    width: 100%; font: inherit; font-size: 15px; padding: 11px 12px;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.co-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,51,108,.12); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-pay { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 14px; }
.co-pay input { margin-top: 3px; }

.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; position: sticky; top: 90px; }
.co-lines { margin-bottom: 16px; }
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-line-main { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.co-line-variant { color: var(--muted); font-size: 12px; }

.co-line-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.co-line-qty input,
.co-qty-input {
    width: 58px;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    text-align: center;
}

.co-line-qty input:focus,
.co-qty-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(214,51,108,.12);
}

.co-line-total { font-weight: 600; white-space: nowrap; }
.co-tot { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.co-grand { color: var(--ink); font-size: 18px; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.co-grand strong { font-size: 22px; }
.checkout-summary .btn { margin-top: 16px; }
.co-back { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ---------- Order detail / confirmation ------------------------------ */
.order-page { padding: 30px 0 64px; }
.order-page h1 { font-family: var(--font-display); font-weight: 500; font-size: 36px; margin: 0 0 6px; }
.order-page h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 14px; }
.order-thanks { background: var(--ok-bg); border: 1px solid #cfe6d4; border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.order-thanks h1 { color: var(--ok-fg); }
.order-thanks p { margin: 0; }
.order-meta { display: flex; gap: 40px; flex-wrap: wrap; padding: 18px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; font-size: 15px; }
.order-timeline {
    display: grid; grid-template-columns: repeat(5, 1fr); position: relative;
    margin: 6px 0 30px; padding: 0 12px;
}
.order-timeline::before {
    content: ''; position: absolute; left: 10%; right: 10%; top: 18px; height: 2px;
    background: var(--line); z-index: 0;
}
.order-timeline-step {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    align-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-align: center;
}
.order-timeline-marker {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--line); font-size: 12px; font-weight: 700;
}
.order-timeline-step.is-complete, .order-timeline-step.is-current { color: var(--ink); font-weight: 600; }
.order-timeline-step.is-complete .order-timeline-marker {
    background: var(--ok-fg); border-color: var(--ok-fg); color: #fff;
}
.order-timeline-step.is-current .order-timeline-marker {
    border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(214,51,108,.10);
}
.order-timeline-special {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 6px 0 30px; padding: 14px 16px; background: #faf9f7;
    border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px;
}
.order-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.order-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.oi-name { font-weight: 500; display: block; }
.oi-variant { color: var(--muted); font-size: 13px; display: block; }
.oi-qty { color: var(--muted); font-size: 13px; }
.oi-total { font-weight: 600; white-space: nowrap; }
.order-totals { margin-top: 18px; }
.order-totals > div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.order-totals .ot-grand { color: var(--ink); font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.order-ship address { font-style: normal; line-height: 1.7; color: #4b4843; margin-bottom: 18px; }

/* ---------- Account order list --------------------------------------- */
.acct-h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 34px 0 14px; }
.order-list { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ol-row { display: grid; grid-template-columns: 1.4fr 1fr .6fr .8fr 1fr; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ol-row:last-child { border-bottom: 0; }
.ol-head { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #faf9f7; }
a.ol-row:hover { background: #faf9f7; }
.ol-no { font-weight: 600; }

@media (max-width: 800px) {
    .order-timeline { grid-template-columns: 1fr; gap: 14px; padding: 0; margin: 4px 0 26px; }
    .order-timeline::before { left: 18px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
    .order-timeline-step { flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; }
    .order-timeline-step span { padding-top: 1px; }
    .checkout-grid, .order-cols { grid-template-columns: 1fr; gap: 24px; }
    .checkout-summary { position: static; }
    .ol-row { grid-template-columns: 1fr 1fr; }
    .ol-head { display: none; }
    .ol-row span[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
}
.co-ship-hint { font-size: 12px; color: var(--ok-fg); margin: 2px 0 4px; }

/* =====================================================================
   Homepage expansion
   ===================================================================== */

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-copy { max-width: 780px; }
.hero-note {
    flex: 0 0 170px;
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.hero-note span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 10px;
}
.hero-note p { margin: 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    margin: 7px 0 0;
}
.text-link {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.text-link:hover { color: var(--accent); }

.departments { padding: 24px 0 82px; }

.home-products,
.home-categories,
.home-featured {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.home-product-grid { margin-top: 0; }
.home-product-grid .product-card { transition: transform .3s ease; }
.home-product-grid .product-card:hover { transform: translateY(-4px); }

.home-promo { padding: 20px 0 72px; }
.promo-panel {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 56px clamp(30px, 6vw, 86px);
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.promo-copy { max-width: 600px; position: relative; z-index: 2; }
.promo-panel .eyebrow { color: rgba(255,255,255,.65); }
.promo-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    font-weight: 500;
    margin: 10px 0 18px;
    max-width: 12ch;
}
.promo-panel p {
    color: rgba(255,255,255,.72);
    max-width: 50ch;
    margin: 0 0 28px;
}
.promo-number {
    position: absolute;
    right: -18px;
    bottom: -72px;
    font-family: var(--font-display);
    font-size: 300px;
    line-height: .8;
    color: rgba(255,255,255,.045);
    user-select: none;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.category-link {
    min-height: 150px;
    padding: 22px;
    color: var(--ink);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.category-link:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}
.category-name {
    font-family: var(--font-display);
    font-size: 25px;
}
.category-dept {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.category-link:hover .category-dept { color: rgba(255,255,255,.65); }
.category-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    transition: transform .25s ease;
}
.category-link:hover .category-arrow { transform: translate(4px, -4px); }

.home-benefits {
    padding: 72px 0;
    background: #f1ede7;
}
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(28,27,25,.12);
    border: 1px solid rgba(28,27,25,.12);
}
.benefit-item {
    background: #f1ede7;
    padding: 34px 30px;
}
.benefit-icon {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 32px;
}
.benefit-item h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 8px;
}
.benefit-item p {
    color: var(--muted);
    font-size: 14px;
    max-width: 32ch;
    margin: 0;
}

.home-cta { padding: 80px 0 96px; }
.cta-panel {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.cta-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    font-weight: 500;
    margin: 10px 0 14px;
}
.cta-panel p {
    color: var(--muted);
    margin: 0 auto 26px;
    max-width: 48ch;
}

/* Department card image/hover treatment */
.dept-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.dept-card::before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -2;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.dept-card::after {
    background: linear-gradient(160deg, rgba(0,0,0,.10), rgba(0,0,0,.65));
    transition: background .5s ease;
}
.dept-card > span {
    position: relative;
    z-index: 2;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.dept-card:hover {
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.20);
}
.dept-card:hover::before { transform: scale(1.08); filter: brightness(.9); }
.dept-card:hover::after { background: linear-gradient(160deg, rgba(0,0,0,.20), rgba(0,0,0,.72)); }
.dept-card:hover > span { transform: translateY(-6px); }
.dept-card:hover .go { color: #fff; transform: translateX(8px); }
.dept-card .go { transition: transform .4s ease, color .3s ease; }

@media (max-width: 860px) {
    .hero-inner { align-items: flex-start; flex-direction: column; }
    .hero-note { flex-basis: auto; width: 100%; max-width: 240px; }
    .category-links { grid-template-columns: repeat(2, 1fr); }
    .benefit-grid { grid-template-columns: 1fr; }
    .promo-panel { min-height: 320px; }
    .promo-number { font-size: 220px; }
}

@media (max-width: 760px) {
    .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .departments { padding-bottom: 56px; }
    .home-products, .home-categories, .home-featured { padding: 54px 0; }
    .home-promo { padding: 10px 0 54px; }
    .promo-panel { padding: 40px 28px; }
    .promo-number { font-size: 160px; right: -8px; bottom: -30px; }
    .category-links { grid-template-columns: 1fr 1fr; }
    .home-benefits { padding: 54px 0; }
    .home-cta { padding: 60px 0 72px; }
}

/* =====================================================================
   Wishlist   (chunk: wishlist)
   ===================================================================== */

/* Heart button on product cards (overlaid top-right) */
.product-card-wrap { position: relative; }
.wish-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 36px; height: 36px; display: grid; place-items: center;
    border: none; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.85); color: #b7afa4;
    backdrop-filter: blur(4px); transition: color .2s, transform .2s;
}
.wish-btn:hover { color: var(--accent); transform: scale(1.1); }
.wish-btn.wishlisted { color: var(--accent); }
.wish-btn.wishlisted svg { fill: currentColor; }

/* PDP wishlist button (text + icon, below add-to-cart) */
.wish-btn-pdp {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 12px; padding: 12px 0;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent; font: inherit; font-size: 14px; font-weight: 500;
    color: var(--muted); cursor: pointer; transition: all .2s;
    -webkit-appearance: none; appearance: none; outline: none;
}
.wish-btn-pdp:hover { color: var(--accent); border-color: var(--accent); }
.wish-btn-pdp.wishlisted { color: var(--accent); border-color: var(--accent); }

/* Header wishlist icon link */
.wish-link { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); position: relative; }
.wish-link:hover { color: var(--accent); }
.wish-count {
    display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
    text-align: center; font-size: 10px; font-weight: 700; color: #fff;
    background: var(--accent); border-radius: 999px; padding: 0 4px;
}

/* Wishlist page */
.wishlist-page { padding: 30px 0 64px; }
.wishlist-page h1 { font-family: var(--font-display); font-weight: 500; font-size: 40px; margin: 0 0 6px; }
.wishlist-empty { padding: 40px 0; color: var(--muted); }
.wishlist-empty p { margin: 0 0 12px; }

/* Remove button on wishlist grid cards */
.wish-remove-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.wish-remove-form .wish-btn { position: static; }

/* Unavailable tag */
.pc-tag-muted { background: rgba(0,0,0,.55); }

/* =====================================================================
   Related products section on PDP
   ===================================================================== */
.related-section {
    border-top: 1px solid var(--line);
    padding: 48px 0 64px;
    margin-top: 48px;
    background: #faf8f5;
}
.related-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 28px;
    margin: 0 0 24px;
}
.related-grid {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-section { padding: 36px 0 48px; margin-top: 36px; }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
    .related-title { font-size: 24px; }
}

/* =====================================================================
   Stock badge on PDP
   ===================================================================== */
.stock-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; padding: 6px 14px;
    border-radius: 999px; margin-bottom: 18px;
}
.stock-badge::before {
    content: ""; display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; flex-shrink: 0;
}
.stock-in { background: var(--ok-bg); color: var(--ok-fg); }
.stock-in::before { background: var(--ok-fg); }
.stock-low { background: #fef3e2; color: #92640a; }
.stock-low::before { background: #d4a017; }
.stock-out { background: #f3eaea; color: #9a5b5b; }
.stock-out::before { background: #a11d3b; }

/* No-stock states */
.stock-none { background: #f3f0eb; color: #6b6862; }
.stock-none::before { background: #b7afa4; }
.pdp-nostock { color: var(--muted); font-size: 14px; padding: 14px 0; margin: 0; }

/* =====================================================================
   Address module: address book, account cards, checkout picker
   ===================================================================== */

/* ── Account page (polished) ─────────────────────────────────────── */
.acct-page { padding: 30px 0 64px; }
.acct-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.acct-top h1 { font-family: var(--font-display); font-weight: 500; font-size: 38px; margin: 0; }
.acct-greeting { color: var(--muted); margin: 2px 0 0; }

/* Quick stats */
.acct-stats { display: flex; gap: 12px; margin-bottom: 28px; }
.acct-stat {
    flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 18px 20px; text-align: center;
}
.acct-stat-n { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1; }
.acct-stat-l { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Two-column layout */
.acct-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: start; }
.acct-left > * + * { margin-top: 20px; }

/* Cards */
.acct-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.acct-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.acct-card-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin: 0; }
.acct-card-body { padding: 20px; }
.acct-empty { color: var(--muted); font-size: 14px; margin: 0; }
.acct-limit { font-size: 12px; color: var(--muted); }

/* Profile */
.acct-profile-row { display: flex; align-items: center; gap: 14px; }
.acct-avatar {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; font-family: var(--font-display);
    font-size: 20px; font-weight: 600; flex-shrink: 0;
}
.acct-profile-name { font-weight: 600; font-size: 16px; }
.acct-profile-email { color: var(--muted); font-size: 14px; }

/* ── Address rows (list style) ──────────────────────────────────── */
.addr-rows { }
.addr-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; border-bottom: 1px solid var(--line);
    transition: background .15s;
}
.addr-row:last-child { border-bottom: 0; }
.addr-row:hover { background: #faf8f5; }
.addr-row-default { }

/* Default dot selector */
.addr-dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--line); background: #fff;
    cursor: pointer; padding: 0; display: block; flex-shrink: 0;
    transition: border-color .2s;
}
.addr-dot:hover { border-color: var(--accent); }
.addr-dot.active {
    border-color: var(--accent); background: var(--accent);
    box-shadow: inset 0 0 0 3px #fff;
    cursor: default;
}

.addr-row-body { flex: 1; min-width: 0; }
.addr-row-line1 { font-size: 14px; margin-bottom: 2px; }
.addr-row-line2 { font-size: 13px; color: #6b6862; line-height: 1.5; }
.addr-row-phone { font-size: 13px; color: var(--muted); margin-top: 2px; }
.addr-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 1px 8px; border-radius: 999px;
    background: rgba(214,51,108,.1); color: var(--accent);
    vertical-align: 2px; margin-left: 6px;
}

/* Row actions */
.addr-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.addr-act {
    width: 32px; height: 32px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--muted); cursor: pointer;
    transition: all .15s;
}
.addr-act:hover { border-color: var(--accent); color: var(--accent); }
.addr-act-del:hover { border-color: #a11d3b; color: #a11d3b; }

/* ── Order list on account ──────────────────────────────────────── */
.acct-orders { }
.acct-order-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.acct-order-row:last-child { border-bottom: 0; }
.acct-order-row:hover { background: #faf8f5; }
.acct-order-no { font-weight: 600; font-size: 14px; display: block; }
.acct-order-date { font-size: 13px; color: var(--muted); }
.acct-order-right { text-align: right; }
.acct-order-total { font-weight: 600; font-size: 14px; display: block; }

/* ── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
    background: #fff; border-radius: 12px; width: 520px; max-width: 94vw;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    transform: translateY(20px); transition: transform .25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0; }
.modal-close {
    width: 32px; height: 32px; border: none; background: none;
    font-size: 24px; color: var(--muted); cursor: pointer; display: grid; place-items: center;
    border-radius: 50%; transition: background .15s;
}
.modal-close:hover { background: #f3f0eb; color: var(--ink); }
.modal-body { padding: 20px 24px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-full { grid-column: 1 / -1; }
.modal-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.modal-field input {
    width: 100%; font: inherit; font-size: 14px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--ink);
}
.modal-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,51,108,.12); }
.modal-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.modal-check input { width: auto; accent-color: var(--accent); }
.modal-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid var(--line);
}

/* ── Checkout address picker ────────────────────────────────────── */
.co-addr-picker { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.co-addr-option {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
    cursor: pointer; transition: border-color .2s; font-size: 14px; line-height: 1.6;
}
.co-addr-option:hover { border-color: var(--accent); }
.co-addr-option.selected { border-color: var(--accent); background: rgba(214,51,108,.04); }
.co-addr-option input[type="radio"] { margin-top: 4px; flex-shrink: 0; accent-color: var(--accent); }
.co-addr-detail { flex: 1; color: #4b4843; }
.addr-badge-sm {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 1px 7px; border-radius: 999px;
    background: rgba(214,51,108,.1); color: var(--accent);
    vertical-align: 2px; margin-left: 6px;
}

@media (max-width: 768px) {
    .pdp-size-head { align-items: flex-start; }
    .pdp-size-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px 8px;
    }
    .pdp-size-option {
        width: 100%;
        min-width: 0;
    }

    .checkout-summary { position: static; }
    .co-line { align-items: flex-start; }
    .co-line-qty input,
    .co-qty-input { width: 54px; }

    .acct-grid { grid-template-columns: 1fr; }
    .acct-stats { flex-wrap: wrap; }
    .acct-stat { min-width: 90px; }
    .modal-grid { grid-template-columns: 1fr; }
    .addr-row { flex-wrap: wrap; }
    .addr-row-actions { width: 100%; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
}

/* =====================================================================
   Order cancellation, profile modal, forgot password, auth polish
   ===================================================================== */

/* Cancel button */
.btn-cancel {
    background: #fff; border: 1px solid #a11d3b; color: #a11d3b;
    font-weight: 600; border-radius: var(--radius); cursor: pointer;
    padding: 8px 18px; font-size: 14px; transition: all .2s;
}
.btn-cancel:hover { background: #a11d3b; color: #fff; }
.order-cancel-hint { font-size: 13px; color: var(--muted); margin: -14px 0 20px; }
.order-cancelled-note { font-size: 14px; color: #9a5b5b; font-weight: 600; }

/* Profile modal extras */
.modal-divider { border-top: 1px solid var(--line); margin: 20px 0 16px; }
.modal-section-label { font-size: 14px; font-weight: 600; margin: 0 0 14px; }

/* Auth page extras */
.auth-success h2, .auth-error-box h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 0 0 10px; }
.auth-success p, .auth-error-box p { color: #4b4843; margin: 0; line-height: 1.6; }
.auth-error-box { }

/* Forgot password link on login */
.forgot-link {
    display: block; text-align: right; font-size: 13px;
    color: var(--accent); margin-top: 6px;
}
.forgot-link:hover { text-decoration: underline; }
/* =====================================================================
   Register page redesign + login alert-info
   ===================================================================== */

/* Info alert (blue, for "no account" message) */
.alert-info {
    background: #eef2fb; border: 1px solid #c8d4ed; color: #34509b;
    padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px;
    font-size: 14px; line-height: 1.6;
}
.alert-link {
    display: inline-block; margin-top: 6px;
    font-weight: 600; color: var(--accent);
}
.alert-link:hover { text-decoration: underline; }

/* ── Register two-panel layout ────────────────────────────────────── */
.reg-wrap {
    display: grid; grid-template-columns: 1fr 1.1fr;
    min-height: calc(100vh - 73px);
}

/* Left: benefits panel */
.reg-side {
    background: #f5f0ea; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 40px;
}
.reg-side-inner { max-width: 380px; }
.reg-side h2 {
    font-family: var(--font-display); font-weight: 500;
    font-size: 32px; line-height: 1.2; margin: 0 0 8px; color: var(--ink);
}
.reg-side-sub { color: var(--muted); font-size: 16px; margin: 0 0 36px; }

.reg-perks { display: flex; flex-direction: column; gap: 24px; }
.reg-perk { display: flex; gap: 14px; align-items: flex-start; }
.reg-perk-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center;
    background: #fff; border-radius: 10px;
    color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.reg-perk strong { display: block; font-size: 15px; margin-bottom: 2px; color: var(--ink); }
.reg-perk p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Right: form */
.reg-form-side {
    display: flex; align-items: center; justify-content: center;
    padding: 48px 40px; background: var(--paper);
}
.reg-form-card {
    width: 100%; max-width: 460px;
}
.reg-form-card h1 {
    font-family: var(--font-display); font-weight: 500;
    font-size: 30px; margin: 0 0 4px;
}
.reg-form-card .sub {
    color: var(--muted); margin: 0 0 24px; font-size: 15px;
}
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-terms {
    font-size: 12px; color: var(--muted); margin: 18px 0;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .reg-wrap { grid-template-columns: 1fr; }
    .reg-side { display: none; }
    .reg-form-side { padding: 32px 20px; }
    .reg-row { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================================
   Coupon input at checkout
   ===================================================================== */
.co-coupon { border-top: 1px solid var(--line); padding: 14px 0; margin-bottom: 6px; }
.co-coupon-form { display: flex; gap: 8px; }
.co-coupon-input {
    flex: 1; font: inherit; font-size: 14px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: var(--radius);
    text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
    background: #fff; color: var(--ink);
}
.co-coupon-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,51,108,.12); }
.co-coupon-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #b7afa4; }
.co-coupon-error { font-size: 13px; color: #9a5b5b; margin-top: 8px; }

.co-coupon-applied {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--ok-bg); border-radius: var(--radius); padding: 10px 14px;
}
.co-coupon-tag {
    display: inline-block; background: var(--ok-fg); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    padding: 2px 10px; border-radius: 999px;
}
.co-coupon-saving { font-size: 13px; color: var(--ok-fg); font-weight: 600; margin-left: 8px; }
.co-coupon-desc { font-size: 12px; color: #4b6c50; margin-top: 4px; }
.co-coupon-remove {
    width: 28px; height: 28px; border: none; background: none;
    font-size: 20px; color: var(--muted); cursor: pointer; display: grid; place-items: center;
    border-radius: 50%;
}
.co-coupon-remove:hover { background: rgba(0,0,0,.08); color: var(--ink); }

.co-discount { color: var(--ok-fg); }
.co-discount span:last-child { font-weight: 600; }

/* =====================================================================
   Static pages + contact form
   ===================================================================== */
.static-page { padding: 40px 0 64px; max-width: 780px; }
.static-page h1 { font-family: var(--font-display); font-weight: 500; font-size: 38px; margin: 0 0 24px; }
.static-content { font-size: 16px; line-height: 1.8; color: #4b4843; }
.static-content h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 28px 0 12px; }
.static-content p { margin: 0 0 16px; }
.static-content ul, .static-content ol { margin: 0 0 16px; padding-left: 24px; }
.static-content li { margin-bottom: 6px; }
.static-content a { color: var(--accent); }

/* Contact form */
.contact-form { margin-top: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.contact-full { grid-column: 1 / -1; }
.contact-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.contact-field input, .contact-field textarea {
    width: 100%; font: inherit; font-size: 15px; padding: 11px 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--ink);
}
.contact-field input:focus, .contact-field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,51,108,.12);
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-success {
    background: var(--ok-bg); border: 1px solid #cfe6d4; border-radius: 8px;
    padding: 28px; margin-top: 24px;
}
.contact-success h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 0 0 8px; color: var(--ok-fg); }
.contact-success p { margin: 0; }

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

/* =====================================================================
   Search bar, sorting, social icons
   ===================================================================== */

/* Header search */
.header-search {
    display: flex; align-items: center;
    background: #f3f0eb; border-radius: var(--radius);
    padding: 0 4px 0 10px;
    border: 1px solid var(--line); transition: all .2s;
    width: 200px; flex-shrink: 0;
}
.header-search:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,51,108,.1); }
.hs-icon { background: none; border: none; padding: 5px; cursor: pointer; color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.hs-input {
    border: none; background: transparent; font: inherit; font-size: 13px;
    padding: 7px 6px; width: 100%; color: var(--ink); outline: none;
}
.hs-input::placeholder { color: #b7afa4; }

/* Search results page */
.search-page { padding: 36px 0 64px; }
.search-page h1 { font-family: var(--font-display); font-weight: 500; font-size: 36px; margin: 0 0 6px; }
.search-head { margin-bottom: 24px; }
.search-empty { padding: 40px 0; color: var(--muted); }
.search-empty p { margin: 0 0 8px; }
.search-hero { padding: 80px 0; text-align: center; }
.search-hero h1 { margin-bottom: 24px; }
.search-big-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.search-big-input {
    flex: 1; font: inherit; font-size: 16px; padding: 14px 18px;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.search-big-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,51,108,.12); }
.pc-cat { font-size: 12px; color: var(--muted); display: block; }

/* Shop sort dropdown */
.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.shop-sort { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 8px; }
.shop-sort label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.shop-sort select {
    font: inherit; font-size: 13px; padding: 7px 12px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--ink); cursor: pointer;
}
.shop-sort select:focus { outline: none; border-color: var(--accent); }

/* Footer social */
.footer-social {
    display: flex; gap: 12px; justify-content: center;
    padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 8px;
}
.social-icon {
    width: 38px; height: 38px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
    color: var(--muted); transition: all .2s;
}
.social-icon:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 768px) {
    .header-search { width: 160px; }
    .shop-head { flex-direction: column; gap: 12px; }
    .search-big-form { flex-direction: column; }
}
@media (max-width: 480px) {
    .header-search { width: 42px; overflow: hidden; padding: 0; border-color: transparent; background: transparent; }
    .header-search:focus-within { width: 180px; padding: 0 4px 0 10px; background: #fff; border-color: var(--accent); }
    .header-search .hs-input { padding: 7px 4px; }
}

/* =====================================================================
   Ratings & reviews
   ===================================================================== */

/* PDP rating under title */
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pdp-stars { display: flex; gap: 2px; line-height: 1; }
.pdp-rating-text { font-size: 15px; font-weight: 600; }

/* Reviews section */
.reviews-section { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 20px; }
.rev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.rev-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0; }
.rev-summary { display: flex; align-items: center; gap: 12px; }
.rev-avg { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1; }
.rev-stars-lg { display: flex; gap: 2px; margin-bottom: 2px; }
.rev-stars { display: inline-flex; gap: 1px; }

/* Review form */
.rev-form-card {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 24px; margin-bottom: 28px; max-width: 560px;
}
.rev-form-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0 0 18px; }
.rev-form-rating { margin-bottom: 16px; }
.rev-form-label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.star-picker { display: flex; gap: 4px; }
.star-pick { cursor: pointer; display: grid; place-items: center; }
.star-pick input { display: none; }
.star-pick svg { transition: fill .15s; }
.star-pick:hover svg, .star-pick:hover ~ .star-pick svg { fill: none; }
.star-pick svg { fill: none; }
.star-pick.active svg { fill: #d4a017; }
.rev-form-field { margin-bottom: 14px; }
.rev-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rev-form-field input, .rev-form-field textarea {
    width: 100%; font: inherit; font-size: 14px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--ink);
}
.rev-form-field input:focus, .rev-form-field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,51,108,.12);
}
.rev-form-field textarea { resize: vertical; min-height: 100px; }

.rev-success {
    background: var(--ok-bg); border-radius: var(--radius); padding: 14px 18px;
    font-size: 14px; color: var(--ok-fg); font-weight: 500; margin-bottom: 20px;
}
.rev-note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.rev-note a { color: var(--accent); }

/* Review list */
.rev-list { }
.rev-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rev-item:last-child { border-bottom: 0; }
.rev-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rev-verified {
    font-size: 11px; font-weight: 700; color: var(--ok-fg);
    background: var(--ok-bg); padding: 2px 8px; border-radius: 999px;
}
.rev-date { font-size: 12px; }
.rev-item-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.rev-item-body { font-size: 14px; color: #4b4843; line-height: 1.7; }

@media (max-width: 600px) {
    .rev-head { flex-direction: column; align-items: flex-start; }
    .rev-avg { font-size: 32px; }
}