/* Shravi theme: beige + green, light only */
:root {
  color-scheme: light;
  --bg: #faf6ee;          /* cream page */
  --surface: #ffffff;
  --beige: #f2ead9;       /* soft beige panels */
  --sand: #e4d6bb;
  --line: #e7ddcb;
  --green: #3f6045;       /* main brand green */
  --green-dark: #2e4833;
  --sage: #9db497;
  --sage-soft: #e9efe3;
  --gold: #a8864f;
  --ink: #273229;
  --muted: #6b7468;
  --danger: #b3412e;
  --ok: #3f6045;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(63, 96, 69, 0.10);
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-variant-numeric: lining-nums; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .logo { font-family: var(--font-head); font-weight: 600; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 .5rem; line-height: 1.15; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.topbar { background: var(--green); color: #f4efe3; text-align: center; font-size: .78rem; padding: 8px 12px; letter-spacing: .08em; text-transform: uppercase; }

.header { position: sticky; top: 0; z-index: 30; background: rgba(250, 246, 238, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-size: 2.1rem; color: var(--green); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--green); border-color: var(--gold); }
.icon-btn, .cart-btn { background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 1.4rem; }
.menu-btn { display: none; }
.account-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; cursor: pointer; color: var(--ink); font: 500 .76rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: border-color .2s, color .2s; }
.account-btn:hover { border-color: var(--green); color: var(--green); }
.cart-btn { position: relative; padding: 8px; }
.cart-btn:hover { color: var(--green); }
.cart-count { position: absolute; top: 0; right: -2px; background: var(--green); color: #fff; font-size: .68rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-body); }

.btn { display: inline-block; background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 6px; padding: 13px 28px; font: 500 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s, transform .1s; text-align: center; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: var(--sand); border-color: var(--sand); color: var(--muted); cursor: default; }
.btn-ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn-ghost:hover { background: var(--sage-soft); border-color: var(--green); }
.btn-block { width: 100%; }

.hero { background: radial-gradient(circle at 82% 22%, var(--sage-soft) 0, transparent 46%), linear-gradient(180deg, var(--beige), var(--bg)); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 76px 20px 86px; }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .74rem; color: var(--gold); font-weight: 500; margin: 0; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.4rem); line-height: 1.05; margin: 14px 0 18px; font-weight: 500; }
.hero h1 em { color: var(--green); font-style: italic; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.hero-art { position: relative; height: 420px; }
.hero-img { position: absolute; border-radius: 18px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 5; border: 6px solid var(--surface); }
.hero-img.a { width: 62%; left: 6%; top: 0; transform: rotate(-3deg); }
.hero-img.b { width: 42%; right: 0; top: 30px; transform: rotate(5deg); }
.hero-img.c { width: 44%; right: 12%; bottom: 0; transform: rotate(-2deg); }


.section { padding: 64px 20px 10px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-head a { color: var(--green); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.toolbar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 20px; cursor: pointer; font: .82rem var(--font-body); letter-spacing: .06em; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--sage); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
input, select, textarea { font: .92rem var(--font-body); padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
input::placeholder, textarea::placeholder { color: #9aa196; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage-soft); border-color: var(--green); }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 1; cursor: pointer; background: var(--beige); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--green); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.badge.off { left: auto; right: 12px; background: var(--gold); color: #fff; }
.badge.sold { background: var(--ink); color: #fff; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-type { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.card-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
.card-name:hover { color: var(--green); }
.price { display: flex; gap: 8px; align-items: baseline; margin: 4px 0 10px; }
.price strong { font-size: 1.05rem; font-weight: 500; color: var(--green); }
.price s { color: var(--muted); font-size: .85rem; }
.card .btn { margin-top: auto; padding: 11px; }
.empty { text-align: center; color: var(--muted); padding: 30px; font-family: var(--font-head); font-size: 1.3rem; }

.about { background: var(--beige); margin-top: 76px; padding: 76px 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-in { max-width: 760px; }
.about p { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 76px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.three { grid-template-columns: 1.2fr 1fr .8fr; }
.result { font-size: .9rem; }
.result.ok { color: var(--ok); }
.result.err { color: var(--danger); }
.status-pill { display: inline-block; background: var(--sage-soft); color: var(--green); border-radius: 999px; padding: 2px 12px; font-weight: 500; text-transform: capitalize; font-size: .8rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.socials a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .88rem; background: var(--surface); }
.socials a:hover { border-color: var(--green); color: var(--green); }

.footer { background: var(--sage-soft); color: var(--ink); padding: 56px 0 22px; border-top: 1px solid var(--line); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer .logo { color: var(--green); }
.footer p { color: var(--muted); }
.footer h4 { margin: 0 0 12px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.footer a { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.footer a:hover { color: var(--green); }
.copy { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 32px; letter-spacing: .04em; }

/* Modals */
.modal { border: 0; border-radius: 16px; padding: 30px; width: min(780px, calc(100% - 32px)); max-height: calc(100% - 40px); box-shadow: 0 30px 80px rgba(39, 50, 41, .22); color: var(--ink); background: var(--surface); }
.modal::backdrop { background: rgba(39, 50, 41, .35); }
#checkoutModal, #policyModal, .action-modal { width: min(560px, calc(100% - 32px)); }
.modal h2 { margin-top: 0; }
.close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.close:hover { color: var(--green); }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.gallery #pdMain { border-radius: 14px; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--beige); }
.pd-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 6px; font-weight: 500; line-height: 1.1; }
.pd .price strong { font-size: 1.6rem; }
.pd p { color: var(--muted); }
.pd .desc { white-space: pre-line; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .6; background: none; }
.thumbs button img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumbs button.on { opacity: 1; border-color: var(--green); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty button { background: var(--surface); border: 0; width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty button:hover { background: var(--sage-soft); }
.qty span { min-width: 30px; text-align: center; }
.pd-actions { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.stock-note { font-size: .82rem; color: var(--gold); }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(39, 50, 41, .3); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); background: var(--surface); z-index: 50; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg); }
.drawer-head h3 { margin: 0; font-size: 1.6rem; }
.drawer-head .close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--beige); }
.line-name { font-size: .92rem; font-weight: 500; }
.line .qty button { width: 28px; height: 28px; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.remove:hover { color: var(--danger); }
.sum-row { display: flex; justify-content: space-between; font-size: .92rem; margin: 4px 0; }
.sum-row.total { font-weight: 600; font-size: 1.05rem; border-top: 1px dashed var(--sand); padding-top: 8px; margin-top: 8px; color: var(--green); }
.free-note { font-size: .8rem; color: var(--gold); margin: 6px 0 12px; }
.empty-bag { text-align: center; padding: 50px 10px; color: var(--muted); }
.pay-box { background: var(--sage-soft); border-radius: 10px; padding: 12px 14px; }
.pay-box small { display: block; color: var(--muted); }
.summary { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

/* Privacy & terms pages */
.legal-nav { margin-left: auto; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav a:hover { color: var(--green); }
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 8px 0 4px; font-weight: 500; }
.legal h2 { font-size: 1.6rem; margin: 34px 0 8px; }
.legal p, .legal li { color: #3d4a3f; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.footer .copy a { color: var(--green); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px; }
.story-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin: 18px 0 8px; }

/* Customer account */
.account-modal { width: min(560px, calc(100% - 32px)); }
.account-modal h2 { margin: 6px 0 4px; }
.account-modal .form { margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.switch { text-align: center; margin: 18px 0 4px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid var(--sand); border-radius: 6px; background: var(--surface); color: var(--ink); font: 500 .9rem var(--font-body); transition: border-color .2s, background .2s; }
.btn-google:hover { border-color: var(--green); background: var(--bg); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 18px 0 -6px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.fine { text-align: center; font-size: .8rem; color: var(--muted); }
.acc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.acc-order { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.acc-items { color: var(--muted); }
.acc-total { color: var(--green); }
.verify-note { background: var(--beige); border: 1px solid var(--sand); border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: .88rem; }
.danger-zone { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-size: .88rem; }
.logout { margin-top: 22px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--green); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: .9rem; transition: transform .3s; z-index: 60; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); border-bottom: 0; }
  .account-btn { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; padding: 44px 20px 64px; }
  .hero-art { height: 360px; width: 100%; max-width: 440px; margin: 0 auto; }
  .two-col, .pd, .order-grid { grid-template-columns: 1fr; }
  .pd { gap: 24px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 1.7rem; }
  .section { padding: 48px 16px 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 1.1rem; }
  .card .btn { padding: 10px 6px; letter-spacing: .08em; }
  .toolbar input, .toolbar select { min-width: 0; flex: 1; }
  .toolbar-right { width: 100%; }
  .row, .row.three { grid-template-columns: 1fr; }
    .header-in { gap: 12px; }
  .account-btn { padding: 6px 10px 6px 8px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
  .acc-order { grid-template-columns: 1fr auto; }
  .acc-items { grid-column: 1 / -1; grid-row: 2; }
  .modal { padding: 22px 18px; }
}

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.trust-in > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.trust svg { grid-row: span 2; width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust strong { font-size: .9rem; font-weight: 500; }
.trust span { font-size: .78rem; color: var(--muted); }

/* ---------- Shop by style ---------- */
.styles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.style-tile { background: none; border: 0; padding: 0; cursor: pointer; text-align: center; color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.style-img { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--beige); border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s, border-color .25s, box-shadow .25s; }
.style-img img { width: 100%; height: 100%; object-fit: cover; }
.style-img svg { width: 42%; height: 42%; fill: none; stroke: var(--green); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.style-tile:hover .style-img { transform: translateY(-3px); border-color: var(--sage); box-shadow: var(--shadow); }
.style-tile strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; margin-top: 6px; }
.style-tile span:last-child { font-size: .74rem; color: var(--muted); }
.style-tile.soon span:last-child { color: var(--gold); letter-spacing: .04em; }

/* ---------- Cards: wishlist heart & rating ---------- */
.heart { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #c9c2b4; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(39, 50, 41, .12); transition: transform .15s, color .2s; }
.heart:hover { transform: scale(1.1); color: var(--green); }
.heart.on { color: #c4566b; }
.heart.big { position: static; width: 46px; height: 46px; font-size: 1.3rem; border: 1px solid var(--line); box-shadow: none; }
.card-rating { font-size: .8rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 1px; }
a.card-name { display: block; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: .95rem; line-height: 1.6; }
.review img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.review figcaption { font-size: .8rem; color: var(--muted); }
.review figcaption a { color: var(--green); }

/* ---------- Inner pages ---------- */
.page { padding-top: 34px; padding-bottom: 70px; min-height: 60vh; }
.page h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 500; margin: 6px 0 10px; line-height: 1.1; }
.narrow { max-width: 520px; margin: 0 auto; }
.center { text-align: center; }
.hero-cta.center { justify-content: center; }
.small { font-size: .82rem; }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--green); }
.back-link { display: inline-block; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.back-link:hover { color: var(--green); }
.section-sm { padding-top: 52px; }
.empty-state { text-align: center; padding: 50px 10px; color: var(--muted); }
.big-heart { font-size: 3rem; color: #e3c7cd; margin: 0; }
.share-link { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Product page */
.pd-rating { font-size: .85rem; color: var(--muted); }
.pin-check { margin: 6px 0 14px; }
.pin-check label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pin-check > div { display: flex; gap: 8px; margin-top: 6px; }
.pin-check input { max-width: 200px; }
.pin-check .btn { padding: 10px 18px; }
.pd-perks { list-style: none; padding: 14px 0; margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 12px; }
.specs th, .specs td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 400; }

/* Order tracking */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.status-pill.big { font-size: .9rem; padding: 6px 16px; }
.status-pill.ended { background: #f3e3dc; color: var(--danger); }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card-box h3 { margin: 0 0 10px; font-size: 1.4rem; }
.card-box p { margin: 0 0 8px; line-height: 1.6; }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.order-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.courier { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
.courier div span { display: block; font-size: .78rem; }
.courier .btn { margin-left: auto; }
.note-box { border-left: 3px solid var(--gold); background: var(--beige); border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 18px; }
.note-box p { margin: 4px 0; }
.note-box.rejected { border-left-color: var(--danger); }
.note-box.approved { border-left-color: var(--green); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); position: relative; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.timeline li::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before { background: var(--green); }
.timeline .dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: #fff; font-size: .95rem; }
.timeline li.done .dot { background: var(--green); border-color: var(--green); }
.timeline li.current .dot { box-shadow: 0 0 0 6px var(--sage-soft); animation: pulse 1.8s ease-in-out infinite; }
.timeline li.stop .dot { background: var(--danger); border-color: var(--danger); }
.timeline li.stop::before { background: var(--danger); }
.step-label { font-size: .82rem; font-weight: 500; }
.timeline li:not(.done) .step-label { color: var(--muted); font-weight: 400; }
.step-time { font-size: .72rem; color: var(--muted); }
.timeline.compact { margin: 18px 0 10px; }
.timeline.compact .dot { width: 26px; height: 26px; font-size: .75rem; }
.timeline.compact li::before { top: 12px; }
.timeline.compact .step-label { font-size: .7rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(233, 239, 227, .4); } }

/* My account order rows are links */
a.acc-order { color: inherit; border-radius: 8px; transition: background .2s; }
a.acc-order:hover { background: var(--bg); }

/* Pop-up forms */
.action-modal h2 { margin: 6px 0 6px; }
.action-modal .form { margin-top: 16px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; font-size: 2rem; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; color: var(--sand); transition: color .15s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: var(--gold); }
.star-pick input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }
.photo-pick { cursor: pointer; color: var(--green); font-size: .9rem; }

/* ---------- 🎉 Order placed ---------- */
.no-scroll { overflow: hidden; }
.celebrate { position: fixed; inset: 0; z-index: 70; background: rgba(250, 246, 238, .96); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 71; }
.celebrate-card { position: relative; z-index: 72; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px 30px 28px; max-width: 560px; width: 100%; text-align: center; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.celebrate-card h2 { font-size: clamp(2.4rem, 7vw, 3.4rem); margin: 4px 0 8px; font-weight: 500; color: var(--green); }
.celebrate-card .lead { margin: 0 auto 18px; }
.burst { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.4rem; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--sage-soft); animation: pop .6s .1s cubic-bezier(.2, 1.6, .4, 1) both; }
.celebrate-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 8px; }
.celebrate-facts div { background: var(--beige); border-radius: 10px; padding: 10px; }
.celebrate-facts span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.celebrate-facts strong { color: var(--green); font-weight: 500; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .celebrate-card, .burst, .timeline li.current .dot { animation: none; } }

@media (max-width: 860px) {
  .trust-in { grid-template-columns: 1fr 1fr; }
  .styles { grid-template-columns: repeat(3, 1fr); }
  .courier .btn { margin-left: 0; }
}
@media (max-width: 520px) {
  .styles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .style-tile strong { font-size: 1rem; }
  .trust-in { gap: 14px 10px; }
  .trust-in > div { grid-template-columns: 30px 1fr; column-gap: 8px; }
  .trust svg { width: 26px; height: 26px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { flex-direction: row; text-align: left; gap: 12px; padding: 0 0 18px; }
  .timeline li::before { top: auto; bottom: 100%; right: auto; left: 16px; width: 3px; height: 100%; transform: translateY(18px); }
  .timeline li:first-child::before { display: none; }
  .timeline .step-time { margin-left: auto; }
  .timeline.compact { grid-template-columns: repeat(6, 1fr); }
  .timeline.compact li { flex-direction: column; text-align: center; gap: 4px; padding: 0; }
  .timeline.compact li::before { top: 12px; bottom: auto; left: auto; right: 50%; width: 100%; height: 3px; transform: none; }
  .timeline.compact .step-label { font-size: .58rem; }
  .celebrate-card { padding: 28px 18px 22px; }
  .heart { width: 32px; height: 32px; right: 8px; bottom: 8px; }
}
