/* Rang Weaves — palette taken from the logo: indigo, madder red, ochre on unbleached cotton */
:root {
  --indigo: #1b3557;
  --indigo-deep: #12243d;
  --madder: #a8432e;
  --ochre: #8a5a2c;
  --ochre-soft: #c49a63;
  --cotton: #ffffff;   /* page background */
  --cotton-2: #f1f0ec; /* image placeholders, chips, bands */
  --paper: #ffffff;    /* cards, header */
  --surface-alt: #f6f6f4; /* alternate section bands */
  --ink: #1f1c19;
  --ink-soft: #5c5853;
  --line: #e4e2dc;
  --ok: #2f6b45;
  --warn: #9a6a12;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(31, 28, 25, .06), 0 8px 24px rgba(31, 28, 25, .06);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--indigo-deep); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ochre); font-weight: 500; margin-bottom: .75rem; display: block; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--madder); outline-offset: 2px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--indigo-deep); color: var(--cotton); text-align: center; font-size: .8rem; letter-spacing: .06em; padding: 8px 16px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--serif); font-size: 1.65rem; letter-spacing: .08em; color: var(--indigo); font-weight: 600; }
.brand-text small { font-family: var(--serif); font-size: .72rem; letter-spacing: .5em; color: var(--ochre); margin-top: 3px; padding-left: 2px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: .92rem; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--madder); color: var(--madder); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--cotton-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--madder); color: #fff; font-size: .68rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .header-row { height: 64px; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text b { font-size: 1.35rem; }
  .main-nav { position: fixed; inset: 64px 0 auto 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s ease; z-index: -1; box-shadow: var(--shadow); }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1px solid var(--indigo); background: var(--indigo); color: var(--cotton); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; font-weight: 500; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.btn-madder { background: var(--madder); border-color: var(--madder); }
.btn-madder:hover { background: #8d3624; border-color: #8d3624; }
.btn-ghost { background: transparent; color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: var(--cotton); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--madder); text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--indigo-deep); color: var(--cotton); overflow: hidden; }
.hero-art { position: absolute; inset: 0; opacity: .55; }
.hero-art svg { width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,36,61,.96) 0%, rgba(18,36,61,.82) 45%, rgba(18,36,61,.25) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 110px 20px 120px; }
.hero h1 { color: var(--cotton); max-width: 13em; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--ochre-soft); }
.hero p { max-width: 34em; color: #e4dccd; font-size: 1.08rem; }
.hero .eyebrow { color: var(--ochre-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { color: var(--cotton); border-color: rgba(248,243,234,.6); }
.hero .btn-ghost:hover { background: var(--cotton); color: var(--indigo-deep); }
@media (max-width: 640px) { .hero-inner { padding: 72px 20px 80px; } .hero::after { background: rgba(18,36,61,.85); } }

/* ---------- Border band (Ajrakh-style divider) ---------- */
.band { height: 14px; background:
  radial-gradient(circle at 7px 7px, var(--madder) 3px, transparent 3.5px) 0 0/28px 14px,
  linear-gradient(var(--ochre), var(--ochre)) 0 0/100% 2px no-repeat,
  linear-gradient(var(--ochre), var(--ochre)) 0 100%/100% 2px no-repeat,
  var(--cotton-2); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-alt { background: var(--surface-alt); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: var(--indigo); }
.cat-card .art, .cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover .art, .cat-card:hover img { transform: scale(1.04); }
.cat-card .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(18,36,61,.9)); color: var(--cotton); }
.cat-card .label b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.cat-card .label span { font-size: .82rem; opacity: .85; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.craft-carousel { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--cotton-2); touch-action: pan-y; user-select: none; }
.craft-carousel:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; }
.cc-track, .cc-slide { position: absolute; inset: 0; margin: 0; }
.cc-slide { opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.cc-slide.is-active { opacity: 1; pointer-events: auto; }
.cc-slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.cc-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 44px; color: #fff; font-size: .92rem; letter-spacing: .02em; background: linear-gradient(transparent, rgba(18,36,61,.78)); }
.cc-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--indigo); font-size: 1.1rem; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.15); transition: background .2s; }
.cc-btn:hover { background: #fff; }
.cc-prev { left: 12px; } .cc-next { right: 12px; }
.cc-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.cc-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .25s, background .25s; }
.cc-dots button[aria-selected="true"] { width: 22px; border-radius: 4px; background: #fff; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps b { font-family: var(--serif); font-size: 1.15rem; color: var(--indigo); display: block; }
.steps .num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ochre); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.2rem; color: var(--ochre); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 32px; } .craft-carousel { aspect-ratio: 4/5; } }

.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.promises div { padding: 8px; }
.promises b { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--indigo); }
.promises span { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 760px) { .promises { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Customer reviews ---------- */
.review-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; align-items: flex-start; }
.review-track:focus-visible { outline-offset: 4px; }
.review { flex: 0 0 300px; margin: 0; scroll-snap-align: start; }
.review-shot { background: #0f1115; border-radius: 10px; padding: 14px 10px; box-shadow: var(--shadow); }
.review-shot img { width: 100%; height: auto; border-radius: 4px; }
.review figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; letter-spacing: .04em; }
.carousel-nav { display: flex; gap: 8px; }
.nav-btn { border: 1px solid var(--line); background: var(--paper); font-size: 1.1rem; color: var(--indigo); }
.nav-btn:hover { background: var(--indigo); color: var(--cotton); }
@media (max-width: 640px) { .review { flex-basis: 78%; } .carousel-nav { display: none; } }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 20px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--cotton-2); }
.card-media img, .card-media .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img, .card:hover .card-media .art { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--madder); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; font-weight: 500; }
.badge.sold { color: var(--ink-soft); }
.card-body { padding: 12px 2px 0; }
.card-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); }
.card-name { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; margin: 2px 0 6px; color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-weight: 500; font-size: 1.02rem; }
.price s { color: var(--ink-soft); font-size: .88rem; }
.price .off { color: var(--ok); font-size: .82rem; }
.card-size { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.swatches { display: flex; gap: 5px; margin-top: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* ---------- Wishlist hearts ---------- */
.card-wrap { position: relative; }
.wish-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; cursor: pointer; color: var(--ink); padding: 0; }
.wish-btn svg { width: 20px; height: 20px; transition: transform .15s ease, fill .15s ease; }
.wish-btn[aria-pressed="true"] svg { fill: var(--madder); stroke: var(--madder); }
.wish-btn:active svg { transform: scale(.85); }
.wish-btn.on-card { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.wish-btn.on-card:hover { background: #fff; color: var(--madder); }
.wish-btn.on-pdp { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.wish-btn.on-pdp:hover { border-color: var(--madder); color: var(--madder); }
.wish-actions { display: flex; gap: 8px; margin-top: 10px; }
.wish-actions .btn { flex: 1; min-height: 40px; padding: 0 12px; font-size: .72rem; }

/* ---------- Shop page ---------- */
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.page-head h1 { margin-bottom: .2em; }
.crumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--madder); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: 8px 16px; border-radius: 999px; font-size: .86rem; text-decoration: none; cursor: pointer; }
.chip[aria-pressed="true"], .chip:hover { border-color: var(--indigo); background: var(--indigo); color: var(--cotton); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 24px; }
.toolbar select { border: 1px solid var(--line); background: var(--paper); padding: 10px 12px; border-radius: var(--radius); }
.empty { text-align: center; padding: 64px 20px; color: var(--ink-soft); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 32px 0 80px; }
.gallery-main { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--cotton-2); }
.gallery-main img, .gallery-main .art { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 76px; aspect-ratio: 4/5; flex-shrink: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.pdp-info .price b { font-size: 1.5rem; }
.tax-note { font-size: .82rem; color: var(--ink-soft); margin: 4px 0 20px; }
.colour-line { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .92rem; }
.stock { font-size: .88rem; margin: 6px 0 18px; }
.stock.low { color: var(--warn); }
.stock.out { color: var(--madder); }
.stock.in { color: var(--ok); }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 180px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); height: 48px; }
.qty button { width: 42px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; }
.qty input { width: 52px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-label { font-size: .8rem; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.details { margin-top: 32px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { cursor: pointer; padding: 16px 0; font-family: var(--serif); font-size: 1.2rem; color: var(--indigo); list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: '+'; font-family: var(--sans); font-size: 1.3rem; color: var(--ochre); }
.details details[open] summary::after { content: '–'; }
.details .body { padding: 0 0 18px; color: var(--ink-soft); }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: 7px 12px 7px 0; width: 45%; vertical-align: top; }
.spec td { padding: 7px 0; color: var(--ink); }
.spec tr + tr { border-top: 1px dashed var(--line); }
.handmade-note { margin-top: 20px; padding: 14px 16px; background: var(--cotton-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; } }

/* ---------- Cart & checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding: 40px 0 80px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item .thumb { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--cotton-2); }
.line-item .thumb img, .line-item .thumb .art { width: 100%; height: 100%; object-fit: cover; }
.line-item h3 { font-size: 1.15rem; margin: 0 0 4px; }
.line-item h3 a { text-decoration: none; }
.line-item .meta { font-size: .85rem; color: var(--ink-soft); }
.line-item .actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.line-item .qty { height: 38px; }
.line-item .qty button { width: 34px; }
.line-item .qty input { width: 40px; }
.remove { border: 0; background: none; color: var(--ink-soft); text-decoration: underline; font-size: .82rem; cursor: pointer; padding: 0; }
.line-total { text-align: right; font-weight: 500; white-space: nowrap; }
.item-warn { color: var(--madder); font-size: .82rem; margin-top: 6px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.summary h2 { font-size: 1.6rem; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 600; }
.free-ship { font-size: .82rem; color: var(--ok); background: #eef4ee; padding: 8px 10px; border-radius: var(--radius); margin: 10px 0; }
.free-ship.pending { color: var(--ochre); background: var(--cotton-2); }
.mini-items { margin-bottom: 14px; }
.mini-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: .88rem; }
.mini-item .thumb { aspect-ratio: 4/5; border-radius: 3px; overflow: hidden; }
.mini-item .thumb img, .mini-item .thumb .art { width: 100%; height: 100%; object-fit: cover; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 12px 14px; border-radius: var(--radius); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(27,53,87,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--madder); }
.field .err { display: none; color: var(--madder); font-size: .78rem; margin-top: 4px; }
.field.invalid .err { display: block; }
.form-section { margin-bottom: 36px; }
.form-section h2 { font-size: 1.6rem; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 16px; font-size: .92rem; }
.alert-error { background: #f8e9e5; color: #7a2b1c; border: 1px solid #ecc9c0; }
.alert-info { background: #e9eef5; color: var(--indigo); border: 1px solid #cdd8e8; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .78rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- Order page ---------- */
.order-box { max-width: 720px; margin: 48px auto 80px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
@media (max-width: 560px) { .order-box { padding: 24px 18px; margin-top: 24px; } }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; background: var(--cotton-2); }
.status-paid, .status-packed { background: #e6f0e8; color: var(--ok); }
.status-shipped, .status-delivered { background: #e3eaf4; color: var(--indigo); }
.status-payment_failed, .status-cancelled { background: #f8e9e5; color: var(--madder); }
.status-pending_payment { background: #f6efdc; color: var(--warn); }

/* ---------- Prose / policy pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: #d9d1c3; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--cotton); font-size: 1.15rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ochre-soft); }
.footer-brand .brand-text b { color: var(--cotton); }
.footer-brand .brand-text small { color: var(--ochre-soft); }
.footer-brand p { font-size: .9rem; margin-top: 16px; max-width: 28em; }
.footer-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--cotton); padding: 12px 20px; border-radius: var(--radius); font-size: .92rem; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; display: flex; gap: 16px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--ochre-soft); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(18,36,61,.6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 90; }
.modal { background: var(--paper); border-radius: var(--radius); padding: 28px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.modal .btn { margin-top: 10px; }

.skeleton { background: linear-gradient(90deg, var(--cotton-2), #f5ede0, var(--cotton-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .88rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--cotton-2); font-weight: 500; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table select, .admin-table input { border: 1px solid var(--line); padding: 6px 8px; border-radius: 3px; background: #fff; font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--indigo); }
.stat span { font-size: .8rem; color: var(--ink-soft); }

.policy-list { margin: 0 0 10px; padding-left: 1.1em; }
.policy-list li { margin-bottom: 4px; }

/* ---------- Account ---------- */
.signed-dot { position: absolute; right: 7px; bottom: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid var(--paper); }
.auth-box { max-width: 440px; margin: 48px auto 80px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
@media (max-width: 560px) { .auth-box { padding: 24px 18px; margin-top: 24px; } }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.account-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 36px 0 80px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; gap: 28px; } }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; background: var(--paper); }
.order-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.order-card .items { font-size: .9rem; color: var(--ink-soft); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--madder); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Product photos in orders ---------- */
.order-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.order-line img, .order-line .ph { width: 56px; height: 70px; object-fit: cover; border-radius: 3px; background: var(--cotton-2); display: block; }
.order-line .ol-price { white-space: nowrap; }
.order-thumbs { display: flex; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; }
.order-thumbs img { width: 44px; height: 55px; object-fit: cover; border-radius: 3px; background: var(--cotton-2); }

/* ---------- FAQ ---------- */
.faq-page h2 { font-size: 1.5rem; margin: 1.8em 0 .4em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; font-weight: 500; color: var(--indigo-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--ochre); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Our craft: process steps ---------- */
.craft-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 12px; }
.craft-steps figure { margin: 0; }
.craft-steps img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--cotton-2); }
.craft-steps figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 10px; }
.craft-steps figcaption b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--indigo-deep); margin-bottom: 2px; }
@media (max-width: 560px) { .craft-steps { grid-template-columns: 1fr; } }

/* ---------- Added-to-cart panel & suggestions ---------- */
body.no-scroll { overflow: hidden; }
.upsell-overlay { position: fixed; inset: 0; background: rgba(18,36,61,.45); z-index: 80; }
.upsell-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 81; overflow-y: auto; padding: 20px 22px 28px; box-shadow: -8px 0 32px rgba(0,0,0,.15); animation: up-in .25s ease; }
/* Slide only (never start invisible), so the panel shows even if animations are paused or disabled */
@keyframes up-in { from { transform: translateX(16px); } to { transform: none; } }
@media (max-width: 640px) {
  .upsell-panel { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; animation-name: up-in-mobile; }
  @keyframes up-in-mobile { from { transform: translateY(16px); } to { transform: none; } }
}
.up-head { display: flex; justify-content: space-between; align-items: center; }
.up-head h2 { font-size: 1.5rem; margin: 0; color: var(--ok); }
.up-added { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; margin: 14px 0 16px; }
.up-thumb { aspect-ratio: 4/5; border-radius: 3px; overflow: hidden; background: var(--cotton-2); }
.up-thumb img, .up-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.up-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 22px; }
.up-actions .btn { min-height: 44px; padding: 0 10px; font-size: .72rem; }
.up-sub { font-size: 1.25rem; margin: 6px 0 12px; }
.up-continue { display: block; margin: 18px auto 0; color: var(--ink-soft); }
.ship-progress { background: var(--cotton-2); border-radius: var(--radius); padding: 12px 14px; font-size: .9rem; }
.sp-bar { height: 6px; background: #fff; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.sp-bar span { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .4s ease; }
.sg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sg-card { display: flex; flex-direction: column; }
.sg-img { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--cotton-2); display: block; }
.sg-img img, .sg-img svg { width: 100%; height: 100%; object-fit: cover; }
.sg-body { padding-top: 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sg-name { font-family: var(--serif); font-size: 1rem; line-height: 1.25; text-decoration: none; color: var(--ink); }
.sg-price { font-size: .9rem; font-weight: 500; }
.sg-price s { color: var(--ink-soft); font-weight: 400; font-size: .8rem; }
.sg-badge { font-size: .72rem; color: var(--ok); font-weight: 500; }
.sg-add { margin-top: auto; min-height: 36px; font-size: .7rem; }
.cart-suggest { margin-top: 36px; }
.sg-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .sg-row { grid-template-columns: 1fr 1fr; } }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: .74rem; }

/* ---------- WhatsApp ordering ---------- */
.btn-whatsapp { background: #18773f; border-color: #18773f; color: #fff; }
.btn-whatsapp:hover { background: #12602f; border-color: #12602f; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wa-note { font-size: .78rem; margin: 8px 0 0; }
.btn.pulse { animation: wa-pulse 1.6s ease 3; }
@keyframes wa-pulse { 50% { box-shadow: 0 0 0 6px rgba(31,143,78,.25); } }
.status-whatsapp_pending { background: #e6f4ea; color: #18773f; }
.wa-send { background: #f2faf5; border: 1px solid #cfe9d8; border-radius: var(--radius); padding: 16px; margin: 16px 0 8px; }
.wa-send p { margin: 0 0 12px; }
.wa-order { margin-top: 10px; }

/* ---------- Social links ---------- */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; color: var(--cotton); transition: background .2s, border-color .2s, color .2s; }
.social-link svg { width: 19px; height: 19px; }
.social-link:hover, .social-link:focus-visible { background: var(--cotton); border-color: var(--cotton); color: var(--indigo-deep); }
