/* =========================================================
   Kinjal's Handmade Accessories — main stylesheet
   Mobile-first. Tokens live in :root so a re-brand is one edit.
   ========================================================= */
:root {
  --ivory: #F7F1EA;
  --paper: #FFFCF8;
  --blush: #EFD9D2;
  --rose: #D99A93;
  --plum: #5B2A3E;
  --plum-2: #7A3A55;
  --ink: #2B1E22;
  --muted: #7C655C;
  --line: #E6D9CC;
  --gold-1: #E4C27A;
  --gold-2: #B8893A;
  --sage: #A9B89A;
  --ok: #2F6B4F;
  --err: #A33A3A;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(43,30,34,.05), 0 8px 28px rgba(91,42,62,.08);
  --shadow-lg: 0 20px 50px rgba(91,42,62,.16);
  --wrap: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-2); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; color: var(--plum); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: .9em; display: inline-flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.6em; border-radius: 999px; border: 1.5px solid var(--plum);
  background: var(--plum); color: #fff; text-decoration: none; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { background: var(--plum-2); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--plum); color: #F6E7DC; text-align: center; font-size: .82rem; padding: 8px 16px; letter-spacing: .03em; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,241,234,.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(91,42,62,.06); }
.header-inner { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 72px; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); justify-self: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; }
.brand-sub { font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.nav-toggle span:not(.sr) { width: 22px; height: 1.6px; background: var(--plum); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Mobile drawer. Header uses backdrop-filter, which makes it the containing
   block for fixed children, so the drawer gets an explicit viewport height. */
.site-nav { position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh; width: min(84vw, 340px); overflow-y: auto; background: var(--paper); box-shadow: var(--shadow-lg); padding: 96px 28px 28px; transform: translateX(-105%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; z-index: -1; }
.site-nav.is-open { visibility: visible; transition: transform .4s var(--ease); }
.site-nav.is-open { transform: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 14px 0; font-family: var(--f-display); font-size: 1.6rem; color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--gold-2); }

.cart-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--plum); justify-self: end; border-radius: 50%; transition: background .2s; }
.cart-link:hover { background: var(--blush); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold-2); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); }
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }

@media (min-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 84px; }
  .nav-toggle { display: none; }
  .brand { justify-self: start; }
  .site-nav { position: static; transform: none; visibility: visible; height: auto; overflow: visible; width: auto; background: none; box-shadow: none; padding: 0; z-index: auto; justify-self: center; transition: none; }
  .site-nav ul { display: flex; gap: 6px; }
  .site-nav a { font-family: var(--f-body); font-size: .95rem; padding: 10px 16px; border: 0; position: relative; color: var(--ink); }
  .site-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1.5px; background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"] { color: var(--plum); }
}

/* ---------- Animated logo ---------- */
.logo-mark { width: 44px; height: 44px; color: var(--plum); overflow: visible; flex: none; }
.logo-lg { width: 64px; height: 64px; }
.logo-thread { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s .15s var(--ease) forwards; }
.logo-k { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .7s var(--ease) forwards; }
.logo-k1 { animation-delay: .9s; }
.logo-k2 { animation-delay: 1.2s; }
.logo-bead { transform-box: fill-box; transform-origin: center; opacity: 0; animation: bead .7s 1.75s var(--ease) forwards; }
.brand:hover .logo-bead { animation: bead .7s var(--ease) forwards, swing 1.4s .7s ease-in-out; }
.brand:hover .logo-thread { animation: draw 1.2s var(--ease) forwards; stroke-dashoffset: 100; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bead { 0% { opacity: 0; transform: translateY(-14px) scale(.4); } 70% { opacity: 1; transform: translateY(2px) scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes swing { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .88rem; color: var(--muted); list-style: none; padding: 0; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto; width: 100%; }
.hero-blob { position: absolute; inset: 6%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: radial-gradient(circle at 35% 30%, #fff 0, var(--blush) 55%, #E7C5BC 100%); animation: morph 14s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 56% 44% 40% 60% / 44% 58% 42% 56%; transform: rotate(8deg); } }
.hero-thread { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-thread path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawLong 3.4s .4s var(--ease) forwards; }
@keyframes drawLong { to { stroke-dashoffset: 0; } }
.hero-thread .b { opacity: 0; animation: pop .6s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.hero-photo { position: absolute; width: 46%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper); animation: float 7s ease-in-out infinite; }
.hero-photo.p1 { left: 4%; top: 12%; }
.hero-photo.p2 { right: 4%; bottom: 8%; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 36em; margin: 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* categories strip */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 150px; padding: 18px; border-radius: var(--r); background: var(--blush); text-decoration: none; color: var(--plum); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.cat:nth-child(2) { background: #E3E7DD; } .cat:nth-child(3) { background: #F1E2CF; } .cat:nth-child(4) { background: #E9DDE3; } .cat:nth-child(5) { background: #ECE3D8; }
.cat h3 { margin: 0; font-size: 1.5rem; }
.cat span { font-size: .85rem; color: var(--muted); }
.cat::after { content: "→"; position: absolute; top: 16px; right: 18px; font-size: 1.2rem; transition: transform .35s var(--ease); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--plum); }
.cat:hover::after { transform: translateX(4px); }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(5, 1fr); } .cat { min-height: 200px; } }

/* product grid + card */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--blush); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--paper); color: var(--plum); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.card-title { font-size: 1.15rem; margin: 0 0 10px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 600; color: var(--plum); font-size: 1.05rem; }
.card-add { border: 1.5px solid var(--plum); background: transparent; color: var(--plum); border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; min-height: 36px; }
.card-add:hover { background: var(--plum); color: #fff; }
.card-add.is-disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.card-add.added { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 420px) { .card-foot { flex-direction: column; align-items: stretch; } .card-add { width: 100%; } }

/* story band */
.story { display: grid; gap: 32px; align-items: center; }
.story-art { border-radius: var(--r-lg); background: var(--plum); color: #F6E7DC; padding: 40px 32px; position: relative; overflow: hidden; }
.story-art blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; font-style: italic; }
.story-art cite { display: block; margin-top: 18px; font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-1); }
.story-art svg { position: absolute; right: -40px; bottom: -40px; width: 220px; opacity: .18; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 64px; } }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feature svg { width: 34px; height: 34px; color: var(--gold-2); margin-bottom: 12px; }
.feature h3 { font-size: 1.3rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(4, 1fr); } }

/* newsletter / CTA band */
.cta-band { background: linear-gradient(135deg, var(--plum), #3E1A2A); color: #F6E7DC; border-radius: var(--r-lg); padding: 44px 26px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #E8D3C8; max-width: 34em; margin: 0 auto 22px; }
.cta-band .btn { background: var(--gold-1); border-color: var(--gold-1); color: var(--ink); }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--plum); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 40px 0 24px; }
.page-head p { color: var(--muted); max-width: 40em; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }

/* shop filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: .9rem; transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip[aria-current="page"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.shop-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.select { min-height: 42px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B2A3E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; -webkit-appearance: none; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 32px; padding: 24px 0 64px; }
.gallery-main { border-radius: var(--r-lg); overflow: hidden; background: var(--blush); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--plum); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.pdp-price { font-size: 1.6rem; font-weight: 600; color: var(--plum); margin-bottom: 16px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 20px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock.low::before { background: var(--gold-2); }
.stock.out::before { background: var(--err); }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin: 22px 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 42px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--plum); }
.qty input { width: 40px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { padding: 16px 0; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.3rem; color: var(--plum); transition: transform .3s; }
.details details[open] summary::after { transform: rotate(45deg); }
.details ul, .details p { margin: 0 0 16px; color: var(--muted); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 32px; } .pdp-media { position: sticky; top: 110px; align-self: start; } }

/* ---------- Cart ---------- */
.cart-layout { display: grid; gap: 28px; padding-bottom: 72px; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 84px; height: 84px; border-radius: var(--r-sm); object-fit: cover; background: var(--blush); }
.cart-item h3 { font-size: 1.15rem; margin: 0 0 4px; }
.cart-item h3 a { color: var(--ink); text-decoration: none; }
.cart-item .qty button { width: 34px; height: 36px; }
.cart-item .qty input { width: 30px; }
.cart-line-total { font-weight: 600; text-align: right; }
.remove { background: none; border: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 4px 0; margin-left: 10px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; align-self: start; }
.summary h2 { font-size: 1.8rem; }
.ship-opts { border: 0; padding: 0; margin: 0 0 18px; }
.ship-opts legend { font-weight: 600; margin-bottom: 10px; }
.ship-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.ship-opt:has(input:checked) { border-color: var(--plum); background: #FBF4F0; }
.ship-opt input { margin-top: 5px; accent-color: var(--plum); }
.ship-opt b { display: block; font-weight: 500; }
.ship-opt small { color: var(--muted); }
.ship-opt .ship-price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.totals { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 1.25rem; font-weight: 600; color: var(--plum); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.free-note { font-size: .88rem; background: #F4EADF; border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; }
.free-bar { height: 5px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.free-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); transition: width .5s var(--ease); }
.pay-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; font-size: .78rem; color: var(--muted); }
.pay-icons span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; background: #fff; }
.empty { text-align: center; padding: 48px 16px 80px; }
.empty svg { width: 120px; margin: 0 auto 18px; }
.notice { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .95rem; }
.notice.demo { background: #FFF6DE; border: 1px solid #EBD69B; }
.notice.ok { background: #E6F2EB; border: 1px solid #BFD9C9; color: var(--ok); }
.notice.err { background: #F8E5E5; border: 1px solid #E7BCBC; color: var(--err); }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.5fr 1fr; gap: 48px; } .cart-item { grid-template-columns: 100px 1fr auto; } .cart-item img { width: 100px; height: 100px; } }

/* ---------- Forms / prose ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); transition: border-color .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--plum); outline: none; }
.hp { position: absolute; left: -9999px; }
.two-col { display: grid; gap: 40px; padding-bottom: 72px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--plum); }
.table-wrap { overflow-x: auto; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 14px; }
.info-card h3 { font-size: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: #2E1620; color: #E8D7CC; padding: 56px 0 0; margin-top: 0; }
.site-footer a { color: #F3E3D7; text-decoration: none; }
.site-footer a:hover { color: var(--gold-1); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: #CDB7AB; max-width: 26em; margin-top: 14px; }
.brand-footer { color: #fff; justify-self: start; }
.brand-footer .logo-mark { color: #fff; }
.brand-footer .brand-sub { color: #CDB7AB; }
.footer-h { font-family: var(--f-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .small { color: #CDB7AB; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--gold-1); border-color: var(--gold-1); color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; color: #BCA59A; }
.footer-base p { margin: 0; }
.credit a { color: var(--gold-1); font-weight: 500; }
.credit a:hover { text-decoration: underline; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .92rem; box-shadow: var(--shadow-lg); z-index: 60; visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .4s var(--ease); }
.toast a { color: var(--gold-1); white-space: nowrap; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Success tick animation ---------- */
.tick { width: 96px; height: 96px; margin: 0 auto 20px; }
.tick circle { stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawLong 1s var(--ease) forwards; }
.tick path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .5s .8s var(--ease) forwards; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .logo-thread, .logo-k, .hero-thread path, .tick circle, .tick path { stroke-dashoffset: 0 !important; }
  .logo-bead, .hero-thread .b { opacity: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}
