/* Shadow-work palette: indigo thread and rani-pink shadow on white mul. Large type and big targets for older eyes and hands. */
:root {
  --mul: #ffffff;
  --voile: #eef1f7;
  --indigo: #1e2a5e;
  --indigo-dk: #141d44;
  --rani: #b5175a;
  --zari: #c9a227;
  --ink: #1b1f2e;
  --muted: #4d5470;
  --line: #d5dae8;
  --green: #1e7b45;
  --green-dk: #155c33;
  --red: #a3261c;
  --display: 'Martel', Georgia, serif;
  --body: 'Mukta', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { font-size: 112.5%; scroll-behavior: smooth; } /* 18px base */
body { font-family: var(--body); color: var(--ink); background: var(--mul); line-height: 1.6; padding-bottom: 5rem; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.15; color: var(--indigo); letter-spacing: -0.01em; }
h1 { font-size: 2.67rem; margin-bottom: 1rem; }  /* 48px */
h2 { font-size: 2rem; margin-bottom: 1.25rem; }  /* 36px */
:focus-visible { outline: 3px solid var(--rani); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* running stitch: the one ornament, always marking a boundary */
.stitch { height: 3px; background: repeating-linear-gradient(90deg, var(--indigo) 0 12px, transparent 12px 19px); }
#site-footer .stitch { background: repeating-linear-gradient(90deg, var(--zari) 0 12px, transparent 12px 19px); }

/* ---------- header ---------- */
.bar { display: flex; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; padding: 1rem 5%; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand svg { width: 2.2rem; height: 2.6rem; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--indigo); }
.nav { display: flex; gap: .25rem; }
.nav a { padding: .55rem .9rem; text-decoration: none; font-weight: 600; font-size: 1.1rem; color: var(--ink); border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--indigo); border-bottom-color: var(--line); }
.nav a[aria-current] { color: var(--indigo); border-bottom-color: var(--rani); }
.bag-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: 0 1.1rem; border-radius: 6px;
  background: var(--indigo); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.bag-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; }
.count { background: #fff; color: var(--indigo); border-radius: 4px; min-width: 1.6rem; text-align: center; padding: 0 .3rem; }

/* ---------- layout ---------- */
.section { padding: 3rem 5%; max-width: 1240px; margin: 0 auto; }
.narrow { max-width: 820px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head a { font-weight: 600; font-size: 1.1rem; }
.notice { background: var(--voile); border-left: 4px solid var(--indigo); padding: 1rem 1.25rem; border-radius: 4px; grid-column: 1 / -1; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- buttons: indigo = shop, green = WhatsApp ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .5rem 1.5rem; border-radius: 6px;
  font: 700 1.1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-big { min-height: 3.6rem; font-size: 1.17rem; padding: .6rem 1.8rem; }
.btn-main { background: var(--indigo); color: #fff; }
.btn-main:hover { background: var(--indigo-dk); }
.btn-ghost { background: #fff; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--voile); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-dk); }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn:disabled { opacity: .6; cursor: wait; }
.link-btn { background: none; border: 0; padding: .5rem 0; font: 600 1rem var(--body); color: var(--indigo); text-decoration: underline; cursor: pointer; }

/* ---------- home hero: voile panel with the shadow-work paisley ---------- */
.hero-wrap { background:
    repeating-linear-gradient(0deg, rgba(30, 42, 94, .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(30, 42, 94, .035) 0 1px, transparent 1px 4px),
    var(--voile); }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: center; padding: 3.5rem 5%; max-width: 1240px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.33rem, 4.4vw, 3.33rem); max-width: 19ch; }  /* 60px */
.lead { font-size: 1.17rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.ship-note { margin-top: 1.25rem; font-weight: 600; color: var(--rani); }
.motif { width: 100%; max-width: 420px; justify-self: center; overflow: visible; }
.motif .shade { fill: var(--rani); opacity: .28; animation: shade 1.6s ease-out .3s both; }
.motif .sew { fill: none; stroke: var(--indigo); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 7 4; }
.motif .knots { fill: none; stroke: var(--rani); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 15; }
@keyframes shade { from { opacity: 0; } }

/* ---------- shop by type: ledger rows ---------- */
.types { list-style: none; padding: 0; columns: 2 22rem; column-gap: 3rem; }
.types li { break-inside: avoid; }
.types a { display: flex; justify-content: space-between; align-items: center; min-height: 3.6rem; padding: .4rem 0; text-decoration: none;
  font: 600 1.25rem var(--body); color: var(--ink); background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 13px) bottom / 100% 2px no-repeat; }
.types a::after { content: '›'; font-size: 1.6rem; color: var(--rani); }
.types a:hover { color: var(--indigo); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; font-size: 1.05rem; padding-top: 1rem; border-top: 3px solid var(--indigo); }
.steps li::before { content: counter(s); font: 800 2rem/1 var(--display); color: var(--rani); display: block; margin-bottom: .5rem; }
.steps strong { display: block; font-size: 1.33rem; color: var(--indigo); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 250px), 1fr)); gap: 2rem 1.25rem; }
.card { display: flex; flex-direction: column; gap: .1rem; text-decoration: none; color: var(--ink); }
.card-img { position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--voile); margin-bottom: .6rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-name { text-decoration: underline; }
.card-cat { font-size: .9rem; color: var(--muted); }
.card-name { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.card-price { font-weight: 700; font-size: 1.2rem; color: var(--rani); }
.tag { position: absolute; top: 0; left: 0; background: var(--ink); color: #fff; padding: .2rem .7rem; font-size: .9rem; }

/* ---------- shop ---------- */
.search { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; margin-bottom: 1.25rem; max-width: 32rem; }
input, select, textarea { font: 1.1rem var(--body); padding: .75rem 1rem; min-height: 3.2rem; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { min-height: 3rem; padding: .4rem 1rem; border-radius: 6px; border: 2px solid var(--line); background: #fff;
  color: var(--ink); font: 600 1rem var(--body); cursor: pointer; }
.chip:hover { border-color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pd-img { border-radius: 4px; overflow: hidden; background: var(--voile); }
.pd-img img { width: 100%; }
.pd-info { display: flex; flex-direction: column; gap: 1rem; }
.pd-info h1 { margin: 0; }
.crumb { font-size: .95rem; }
.pd-price { font: 800 2rem var(--display); color: var(--rani); }
.pd-desc { white-space: pre-line; padding-top: 1.25rem; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 13px) top / 100% 2px no-repeat; }
.soldout { background: #fbe9ef; color: var(--rani); padding: .8rem 1rem; border-radius: 4px; font-weight: 600; }
.perks { padding-left: 1.2rem; color: var(--muted); }
.sizes { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sizes legend { font-weight: 700; margin-bottom: .5rem; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size span { display: grid; place-items: center; min-width: 3.4rem; min-height: 3.2rem; padding: 0 1rem; border: 2px solid var(--line);
  border-radius: 6px; background: #fff; font-weight: 700; cursor: pointer; }
.size input:checked + span { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--rani); outline-offset: 2px; }
.qty { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.step { width: 3.2rem; height: 3.2rem; border-radius: 6px; border: 2px solid var(--indigo); background: #fff; color: var(--indigo);
  font: 700 1.5rem var(--body); cursor: pointer; }
.qty output { min-width: 2rem; text-align: center; font-size: 1.3rem; }
.added { margin-top: 1.5rem; background: #e7f4ec; border-left: 4px solid var(--green); padding: 1rem 1.25rem; border-radius: 4px; font-size: 1.15rem; font-weight: 600; }

/* ---------- cart ---------- */
.lines { list-style: none; padding: 0; margin-bottom: 2rem; }
.line { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; padding: 1.25rem 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 13px) bottom / 100% 2px no-repeat; }
.line-img { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--voile); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.line-name { font-weight: 700; font-size: 1.15rem; }
.line-price { color: var(--muted); }
.summary { background: var(--voile); border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.summary p:not(.small) { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.15rem; }
.summary .btn { width: 100%; }

/* ---------- help ---------- */
.prose h2 { margin-top: 2.75rem; scroll-margin-top: 1rem; font-size: 1.67rem; }
.prose ul, .prose ol { padding-left: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.prose p { margin-bottom: 1rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { padding: .5rem 1rem; border-radius: 6px; border: 2px solid var(--line); text-decoration: none; font-weight: 600; }
.jump a:hover { border-color: var(--indigo); }

/* ---------- footer ---------- */
#site-footer { background: var(--indigo); color: #fff; margin-top: 3rem; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2rem; padding: 2.5rem 5%; max-width: 1240px; margin: 0 auto; }
.foot h2 { color: #fff; font-size: 1.17rem; margin-bottom: .5rem; }
.foot a { color: #fff; }
.foot p, .foot ul { margin-bottom: .75rem; }
.foot ul { list-style: none; padding: 0; }
.foot li { padding: .2rem 0; }
.foot-name { font: 800 1.4rem var(--display); }
.copy { padding: 1rem 5%; max-width: 1240px; margin: 0 auto; font-size: .9rem; opacity: .85; }

/* WhatsApp button keeps a written label, since an icon alone is easy to miss */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; align-items: center; gap: .5rem; min-height: 3.5rem;
  padding: 0 1.3rem; border-radius: 6px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(20, 29, 68, .3); }
.wa-float svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: #fff; stroke-width: 2; }

/* ---------- admin ---------- */
.panel { background: var(--voile); border-radius: 6px; padding: 1.5rem; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1.1rem; }
.panel label:not(.size):not(.check) { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: 1.1rem; }
.check { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.1rem; }
.check input { width: 1.8rem; height: 1.8rem; min-height: 0; }
#size-boxes { display: flex; flex-wrap: wrap; gap: .5rem; }
.preview { max-width: 220px; border-radius: 4px; }
.form-msg { font-weight: 700; color: var(--rani); }
.admin-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1rem 0; }
.admin-list { list-style: none; padding: 0; }
.admin-item { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 1rem 0; font-size: 1.1rem;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 13px) bottom / 100% 2px no-repeat; }
.admin-item img, .noimg { width: 90px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--voile); }
.noimg { display: grid; place-items: center; font-size: .8rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.admin-actions .btn { min-height: 2.9rem; font-size: 1rem; padding: .3rem 1rem; }
.admin #msg { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; background: #e7f4ec; border-left-color: var(--green); font-weight: 700; z-index: 60; }

@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.67rem; }
  .hero { grid-template-columns: 1fr; padding: 2rem 5% 2.5rem; gap: 1rem; }
  .hero h1 { font-size: 2.33rem; }
  .motif { order: -1; max-width: 170px; justify-self: start; }
  .pd { grid-template-columns: 1fr; gap: 1.5rem; }
  .bar { padding: .75rem 4%; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand svg { width: 1.8rem; flex: none; }
  .brand-name { font-size: 1.1rem; line-height: 1.2; }
  .bag-btn { padding: 0 .8rem; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .section { padding: 2.25rem 5%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .motif .shade { animation: none; } }
