/* MANDRELO — storefront styles, written for this site only.
   DNA: nav=top-bar+category-strip · hero=full-band (ing=image+number · h1=large · h=420 · area=30 · align=left · block=band)
   index=card-grid-6 (3:4) · card=image-name-price
   grid=12-col · type=serif-headings+sans-body · color=slate-on-white · image=raw
   footer=grouped · voice=catalog · icon=geometric-mark/sage */

:root {
  --ink: #1c1c1c;
  --ink-soft: #3b3b3b;
  --muted: #6d6d6d;
  --line: #e3e3e3;
  --line-soft: #efefef;
  --accent: #2f4858;
  --accent-deep: #223640;
  --accent-wash: #eef3f5;
  --paper: #ffffff;
  --field: #f7f7f7;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 1340px;
  --r: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }

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

.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--primary { background: var(--accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--accent-wash); color: var(--ink); border-color: var(--accent); }
.link-u { text-decoration: underline; text-underline-offset: 3px; font-size: 13px; color: var(--muted); }
.link-u:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }

.head-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  height: 74px;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.head-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.head-nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.head-nav a:hover { border-color: var(--ink); }

.head-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.tote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}
.tote:hover { border-color: var(--accent); }
.tote svg { width: 17px; height: 17px; }
.tote b { font-weight: 500; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* category strip — the site's solid accent block */
.cat-bar { background: var(--accent); color: #fff; }
.cat-bar .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 42px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-bar .wrap::-webkit-scrollbar { display: none; }
.cat-bar a { font-size: 12.5px; white-space: nowrap; }
.cat-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* mobile drawer */
.drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 26px 24px;
  box-shadow: 0 18px 30px rgba(28, 28, 28, .06);
}
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.drawer .drawer-label {
  margin: 16px 0 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
body.is-nav-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-foot { margin-top: 68px; border-top: 1px solid var(--line); background: var(--paper); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding-top: 44px;
  padding-bottom: 40px;
}
.foot-word { font-family: var(--serif); font-size: 20px; letter-spacing: .18em; margin-bottom: 10px; }
.foot-line { font-size: 13px; color: var(--muted); max-width: 230px; }
.foot-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.foot-col a { display: block; padding: 3px 0; font-size: 13px; color: var(--ink-soft); }
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

/* shared page furniture */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  padding: 44px 0 24px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.02em; }
.page-head p { margin-top: 12px; max-width: 58ch; font-size: 14px; color: var(--ink-soft); }
.page-head .head-aside { font-size: 12.5px; color: var(--muted); text-align: right; max-width: 220px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 90;
  padding: 11px 18px;
  border-radius: var(--r);
  background: var(--accent-deep);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   HOME
   ========================================================= */

.hero { background: var(--accent-wash); border-bottom: 1px solid var(--line-soft); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 48px;
  align-items: end;
  min-height: 420px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.hero-shot { align-self: end; }
.hero-shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #fff; }

.hero-text { padding-bottom: 6px; }

.hero-no {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: .97;
  letter-spacing: -.022em;
  max-width: 15ch;
}

.hero-line {
  margin-top: 22px;
  max-width: 44ch;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.hero-link:hover { color: var(--accent); }

/* index grid: five across, image above, name and price below */
.index-sec { padding-top: 56px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.sec-head h2 { font-size: 27px; letter-spacing: -.01em; }
.sec-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sec-head a { font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.sec-head a:hover { border-color: var(--ink); }

#homeIndex {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 14px;
}
.index-row > a { display: block; }
.idx-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f6f6f6;
}
.idx-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.index-row a:hover .idx-thumb img { transform: scale(1.035); }

.idx-name { display: block; padding-top: 9px; }
.idx-name h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.85em;
}
.idx-name span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.idx-price { display: block; font-size: 13px; margin-top: 5px; color: var(--ink); }

/* reading block */
.reading { padding-top: 66px; }
.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 46px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.reading-grid .side h2 { font-size: 25px; line-height: 1.2; max-width: 12ch; }
.reading-grid .side p { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.reading-body p { font-size: 15.5px; line-height: 1.72; color: var(--ink-soft); margin-bottom: 16px; max-width: 62ch; }
.reading-body p:last-child { margin-bottom: 0; }
.reading-body .pull {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  margin: 24px 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  max-width: 42ch;
}

/* accent note band */
.note-band { margin-top: 66px; background: var(--accent); color: #fff; }
.note-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.note-band p { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
.note-band a { font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.note-band a:hover { border-color: #fff; }

/* =========================================================
   SHOP
   ========================================================= */

.shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12.5px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sort-sel {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 12.5px;
  cursor: pointer;
}

.shop-count { font-size: 12.5px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px; }

#shopGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  padding-bottom: 10px;
}
.p-card { display: block; }
.p-media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f6f6f6; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.p-card:hover .p-media img { transform: scale(1.03); }

.p-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
}
.p-meta h3 { font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.45; }
.p-type { display: block; margin-top: 3px; font-family: var(--serif); font-style: italic; font-size: 11.5px; color: var(--muted); }
.p-price { font-size: 13px; white-space: nowrap; }
.p-price s { margin-left: 6px; font-size: 12px; color: var(--muted); }

.empty-state { padding: 60px 0; text-align: center; }
.empty-state h3 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; }

/* =========================================================
   PRODUCT
   ========================================================= */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 12px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: #c4c4c4; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: start;
  padding: 24px 0 6px;
}

.pdp-stage { aspect-ratio: 4 / 5; overflow: hidden; background: #f6f6f6; }
#pdpMain {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--pz, 1));
  transition: transform .55s ease;
}

#pdpThumbs { display: grid; grid-template-columns: repeat(3, 62px); gap: 10px; margin-top: 12px; }
#pdpThumbs button {
  padding: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: none;
  overflow: hidden;
  cursor: pointer;
  opacity: .75;
}
#pdpThumbs button:hover { opacity: 1; }
#pdpThumbs button.is-active { border-color: var(--accent); opacity: 1; }
#pdpThumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { position: sticky; top: 20px; }
.pdp-info h1 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.08; letter-spacing: -.018em; }
.pdp-price { margin-top: 16px; font-size: 19px; }
.pdp-price s { margin-left: 10px; font-size: 14.5px; color: var(--muted); }
.pdp-desc {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  max-width: 46ch;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.pdp-block { margin-top: 26px; }
.pdp-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
#sizeRow { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 46px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  cursor: pointer;
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
#sizeNote { margin-top: 9px; font-size: 12px; color: var(--muted); }

.pdp-buy { display: flex; gap: 12px; margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 38px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty button:hover { background: var(--field); }
.qty span { min-width: 32px; text-align: center; font-size: 13.5px; }
#addBtn { flex: 1; }

.pdp-note { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.pdp-note span::before { content: "·"; margin-right: 8px; color: #c4c4c4; }
.pdp-note span:first-child::before { content: none; margin: 0; }

.pdp-related { padding-top: 66px; }
#relatedGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }

/* =========================================================
   CART
   ========================================================= */

.cart-page { padding-top: 34px; }

.cart-empty { padding: 76px 0 96px; text-align: center; }
.cart-empty h2 { font-size: 30px; margin-bottom: 10px; }
.cart-empty p { margin-bottom: 24px; font-size: 14px; color: var(--muted); }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 366px;
  gap: 52px;
  align-items: start;
}

.cart-head,
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 104px 66px;
  gap: 16px;
  align-items: center;
}
.cart-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-head span:nth-child(3) { text-align: right; }

.cart-row { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }

.cart-prod { display: flex; align-items: center; gap: 16px; }
.cart-prod img { width: 74px; height: 94px; object-fit: cover; background: #f6f6f6; flex: none; }
.cart-prod h3 { font-family: var(--sans); font-size: 13.5px; font-weight: 400; line-height: 1.42; }
.cart-prod span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

.cart-qty { display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--line); }
.cart-qty button { width: 30px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.cart-qty button:hover { background: var(--field); }
.cart-qty span { min-width: 26px; text-align: center; font-size: 13px; }

.cart-line { text-align: right; font-size: 13.5px; }

.cart-remove {
  justify-self: end;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-remove:hover { color: #a3342f; }

.cart-summary { position: sticky; top: 20px; background: var(--field); padding: 28px 26px 24px; }
.cart-summary h2 { font-size: 20px; margin-bottom: 14px; }

.sum-row { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; font-size: 13.5px; color: var(--ink-soft); }
.sum-row.is-total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.sum-row.is-total span:last-child { font-family: var(--serif); font-size: 19px; }
.sum-note { margin: 14px 0 20px; font-size: 12px; line-height: 1.58; color: var(--muted); }
.cart-summary .link-u { display: inline-block; margin-top: 16px; }

/* =========================================================
   CHECKOUT
   ========================================================= */

.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 402px;
  gap: 56px;
  align-items: start;
  padding-top: 10px;
}

.ck-section { padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 34px; }
.ck-section:first-of-type { padding-top: 0; border-top: 0; }
.ck-section h2 { margin-bottom: 18px; font-size: 18px; letter-spacing: .01em; }

.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ck-grid .is-wide { grid-column: 1 / -1; }

.field { display: block; }
.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  font-size: 14px;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

#shipOpts { display: grid; gap: 10px; }
#shipOpts label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
}
#shipOpts label:hover { border-color: var(--accent); }
#shipOpts label.is-active { border-color: var(--accent); background: var(--accent-wash); }
#shipOpts b { display: block; font-size: 13.5px; font-weight: 500; }
#shipOpts small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
#shipOpts label > span:last-of-type { font-size: 13.5px; }
#ckShipNote { margin-top: 10px; font-size: 12px; color: var(--muted); }

#formErr { margin-top: 14px; font-size: 13px; color: #a3342f; }
#formErr:empty { display: none; }

.ck-aside { background: var(--field); padding: 28px 26px 24px; }
.ck-aside h2 { font-size: 19px; margin-bottom: 16px; }
#ckItems { display: grid; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ck-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ck-item img { width: 48px; height: 62px; object-fit: cover; background: #f6f6f6; }
.ck-item h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.4; }
.ck-item span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ck-item b { font-size: 12.5px; font-weight: 500; }

.ck-submit { width: 100%; margin-top: 18px; }
.ck-legal { margin-top: 12px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }

/* =========================================================
   ORDER COMPLETE
   ========================================================= */

.done-wrap { max-width: 640px; margin: 0 auto; padding: 52px 0 8px; }
.done-head { margin-bottom: 30px; text-align: center; }
.done-head h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.015em; }
.done-head p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

#doneTicket { border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 28px 28px 24px; }

.ticket-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.ticket-head span {
  display: block;
  margin-bottom: 5px;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-head strong { font-family: var(--serif); font-size: 15px; font-weight: 400; }

.ticket-items { display: grid; gap: 9px; padding-top: 18px; }
.ticket-item { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; color: var(--ink-soft); }
.ticket-item span:last-child { white-space: nowrap; }

.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 30px; }

/* =========================================================
   ABOUT / CONTACT / POLICIES
   ========================================================= */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  padding: 20px 0 6px;
}
.about-hero h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.024em; max-width: 14ch; }
.about-hero p { margin-top: 20px; max-width: 44ch; font-size: 15px; color: var(--ink-soft); }
.about-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f6f6f6; }

.about-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.about-cols h2 { margin-bottom: 10px; font-size: 19px; }
.about-cols p { font-size: 14px; line-height: 1.72; color: var(--ink-soft); }

.about-quote { margin-top: 58px; background: var(--accent-wash); padding: 46px 42px; }
.about-quote p { max-width: 30ch; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.42; }
.about-quote span {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 56px;
  align-items: start;
  padding: 18px 0 6px;
}
.contact-big { max-width: 18ch; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.14; letter-spacing: -.015em; }
.contact-grid p { margin-top: 18px; max-width: 52ch; font-size: 14.5px; color: var(--ink-soft); }
.contact-mail { display: inline-block; margin-top: 24px; font-size: 18px; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.contact-mail:hover { color: var(--accent); }

.contact-side { background: var(--field); padding: 26px 24px; }
.contact-side h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.contact-side ul { margin: 0 0 16px; padding-left: 18px; }
.contact-side li,
.contact-side p { margin-bottom: 7px; font-size: 13.5px; color: var(--ink-soft); }
.contact-side .side-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.prose-wrap {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 34px;
}
.prose-nav { position: sticky; top: 20px; border-top: 1px solid var(--line); }
.prose-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }
.prose-nav a:hover { color: var(--ink); }
.prose-nav a.is-here { color: var(--ink); font-weight: 500; }

/* the four policy pages are filled inside #policyMain by render-policies.js,
   so the prose type scale hangs off that id */
.prose,
#policyMain { max-width: 72ch; }
.prose h2,
#policyMain h2 { margin: 34px 0 12px; font-size: 22px; }
.prose h2:first-child,
#policyMain h2:first-child { margin-top: 0; }
.prose h3,
#policyMain h3 { margin: 22px 0 8px; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.prose p,
#policyMain p { margin-bottom: 14px; font-size: 14.5px; line-height: 1.76; color: var(--ink-soft); }
.prose ul,
#policyMain ul { margin: 0 0 16px; padding-left: 20px; }
.prose li,
#policyMain li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.prose a,
#policyMain a { text-decoration: underline; text-underline-offset: 3px; }
.prose .updated,
#policyMain .updated { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
#policyMain > .page-head {
  grid-template-columns: minmax(0, 1fr);
  padding: 0 0 26px;
}
#policyMain > .page-head h1 { font-size: clamp(28px, 3vw, 40px); }

/* =========================================================
   ADMIN
   ========================================================= */

.ad-body { background: var(--paper); }
#adApp { min-height: 100vh; }

.ad-gate { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--accent-wash); }
.ad-gate-card { width: 100%; max-width: 372px; padding: 34px 30px 30px; border: 1px solid var(--line); background: var(--paper); }
.ad-gate-card p { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ad-gate-card .field { margin-bottom: 4px; }
.ad-gate .ad-note { font-size: 12px; color: var(--muted); }
.ad-err { min-height: 17px; margin: 2px 0 10px; font-size: 12px; color: #a3342f; }

.wordmark { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .2em; }

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.ad-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.ad-btn--ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.ad-btn--ghost:hover { background: var(--field); border-color: var(--ink); color: var(--ink); }
.ad-btn--danger { background: #a3342f; border-color: #a3342f; }
.ad-btn--danger:hover { background: #8a2a26; border-color: #8a2a26; }
.ad-btn:disabled { opacity: .45; cursor: default; }

.ad-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }

.ad-side {
  display: flex;
  flex-direction: column;
  padding: 26px 20px 22px;
  background: var(--accent-wash);
  border-right: 1px solid var(--line);
}
.ad-side small { display: block; margin-top: 7px; font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }

.ad-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 32px; }
.ad-nav a,
.ad-nav .is-static {
  padding: 9px 10px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--ink-soft);
}
.ad-nav a:hover { background: var(--paper); color: var(--ink); }
.ad-nav a.is-active { border-left-color: var(--accent); background: var(--paper); color: var(--ink); font-weight: 500; }
.ad-nav .is-static { color: #a6a6a6; cursor: default; }

.ad-side-foot { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding-top: 26px; font-size: 12px; }
.ad-side-foot button { padding: 0; border: 0; background: none; text-align: left; font-size: 12px; color: var(--muted); cursor: pointer; }
.ad-side-foot a { color: var(--muted); }
.ad-side-foot a:hover,
.ad-side-foot button:hover { color: var(--accent); }

.ad-main { min-width: 0; padding: 26px 30px 48px; }

.ad-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ad-top h1 { font-size: 24px; letter-spacing: -.012em; }
.ad-tools { display: flex; align-items: center; gap: 12px; }

.ad-lang { display: inline-flex; border: 1px solid var(--line); }
.ad-lang button { padding: 7px 11px; border: 0; background: var(--paper); font-size: 11.5px; cursor: pointer; }
.ad-lang button:hover { background: var(--field); }
.ad-lang button.is-active { background: var(--ink); color: #fff; }

.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border: 1px solid var(--line); background: var(--line); }
.ad-stat { padding: 15px 16px 14px; background: var(--paper); }
.ad-stat span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ad-stat strong { display: block; margin-top: 9px; font-family: var(--serif); font-size: 23px; font-weight: 400; }

.ad-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0 12px; }
.ad-search input { width: 280px; padding: 9px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.ad-search input:focus { outline: none; border-color: var(--accent); }
.ad-note { font-size: 12px; color: var(--muted); }

.ad-panel { border: 1px solid var(--line); }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th {
  padding: 11px 14px;
  background: var(--field);
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ad-table td { padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.ad-table tbody tr:hover { background: #fbfbfb; }

.o-no { padding-bottom: 1px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.o-no:hover { border-color: var(--ink); }
.o-cust span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.o-actions { width: 68px; text-align: right; }

.ad-more-btn { padding: 5px 10px; border: 1px solid var(--line); background: var(--paper); font-size: 11.5px; cursor: pointer; }
.ad-more-btn:hover { border-color: var(--ink); }

.ad-badge { display: inline-block; padding: 3px 9px; border: 1px solid; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.st-pending { color: #8a6a12; border-color: #e6d9ae; background: #fbf6e7; }
.st-paid { color: #23556e; border-color: #b9d3df; background: #eef6fa; }
.st-shipped { color: #4a3a78; border-color: #cfc6e6; background: #f3f0fb; }
.st-delivered { color: #3a6b45; border-color: #bfd8c5; background: #eef7f0; }
.st-cancelled { color: #8c3a3a; border-color: #e3c3c3; background: #fbf0f0; }

.ad-empty { padding: 56px 20px; text-align: center; }
.ad-empty h3 { margin-bottom: 8px; font-size: 20px; }
.ad-empty p { margin-bottom: 18px; font-size: 13px; color: var(--muted); }

.ad-menu {
  display: none;
  position: fixed;
  z-index: 70;
  min-width: 152px;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(28, 28, 28, .09);
}
.ad-menu.is-on { display: block; }
.ad-menu button { display: block; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; font-size: 12.5px; cursor: pointer; }
.ad-menu button:hover { background: var(--field); }
.ad-menu button.is-danger { color: #a3342f; }

.ad-modal { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(28, 28, 28, .42); padding: 44px 20px; overflow: auto; }
.ad-modal.is-on { display: flex; align-items: flex-start; justify-content: center; }

.ad-modal-card {
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 88px);
  overflow: auto;
  background: var(--paper);
  border-top: 3px solid var(--accent);
}
.ad-modal-card--wide { max-width: 760px; }
.ad-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line-soft); }
.ad-modal-head h2 { font-size: 19px; }
.ad-close { padding: 0 4px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.ad-close:hover { color: var(--ink); }
.ad-modal-body { padding: 20px 24px 8px; }
.ad-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px 22px; }
.ad-modal-foot .right { display: flex; gap: 10px; margin-left: auto; }

.ad-kv { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 20px; }
.ad-kv dt { font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ad-kv dd { margin: 0; font-size: 13px; color: var(--ink-soft); }

.ad-items { display: grid; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.ad-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ad-item img { width: 42px; height: 54px; object-fit: cover; background: #f6f6f6; }
.ad-item h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.4; }
.ad-item span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ad-item b { font-size: 12.5px; font-weight: 500; }

.ad-line { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; font-size: 13px; color: var(--ink-soft); }
.ad-line.is-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }

.ad-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ad-form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  #homeIndex { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pdp { gap: 40px; }
  .cart-layout { gap: 36px; }
  .ck-layout { gap: 40px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 34px; }
  .reading-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 34px; }
  .about-hero { gap: 38px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  .prose-wrap { grid-template-columns: 190px minmax(0, 1fr); gap: 38px; }
  #relatedGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-shell { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .ck-layout { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero img { max-width: 460px; }
  .about-cols { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { max-width: 460px; }
  .prose-wrap { grid-template-columns: 1fr; gap: 22px; }
  .prose-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 0; }
  .prose-nav a { padding: 4px 0; border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }

  .ad-shell { grid-template-columns: 1fr; }
  .ad-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px 14px; }
  .ad-side small { display: none; }
  .ad-nav { flex-direction: row; flex-wrap: wrap; gap: 2px; margin-top: 12px; }
  .ad-nav a,
  .ad-nav .is-static { padding: 6px 9px; border-left: 0; border-bottom: 2px solid transparent; }
  .ad-nav a.is-active { border-left: 0; border-bottom-color: var(--accent); }
  .ad-side-foot { flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .ad-main { padding: 20px 20px 40px; }
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .pdp-info { position: static; }
  .pdp-stage { max-width: 560px; }
  #pdpThumbs { grid-template-columns: repeat(3, 54px); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }

  .head-inner { grid-template-columns: 1fr auto; height: 62px; gap: 12px; }
  .head-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand { font-size: 18px; letter-spacing: .16em; }
  .tote { padding: 6px 11px; }
  .cat-bar .wrap { height: 38px; gap: 18px; }

  .hero-inner { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding-top: 22px; padding-bottom: 26px; }
  .hero-shot { max-width: 62%; }
  .hero-text h1 { max-width: 18ch; }
  .hero-line { font-size: 14px; }

  .page-head { grid-template-columns: 1fr; gap: 10px; padding: 30px 0 18px; }
  .page-head .head-aside { text-align: left; max-width: none; }

  .index-sec { padding-top: 38px; }
  #homeIndex { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .idx-name h3 { font-size: 12.5px; }

  .reading { padding-top: 44px; }
  .reading-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .reading-body .pull { font-size: 18px; }
  .about-quote { padding: 30px 24px; }

  #shopGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .shop-tools { padding: 16px 0 12px; }
  .sort-sel { font-size: 12px; }

  #relatedGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .pdp-related { padding-top: 44px; }

  .cart-head { display: none; }
  .cart-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; padding: 16px 0; }
  .cart-prod { grid-column: 1 / -1; }
  .cart-prod img { width: 62px; height: 80px; }
  .cart-qty { justify-self: start; }
  .cart-remove { grid-column: 1 / -1; justify-self: start; }
  .cart-summary { padding: 22px 20px; }

  .ck-grid { grid-template-columns: 1fr; }
  .ck-aside { padding: 22px 20px; }
  .ticket-head { grid-template-columns: 1fr; gap: 12px; }
  #doneTicket { padding: 22px 20px; }
  .done-wrap { padding-top: 34px; }

  .foot-grid { gap: 22px; padding-top: 32px; }
  .foot-word { font-size: 18px; }
}

@media (max-width: 760px) {
  .ad-top h1 { font-size: 20px; }
  .ad-toolbar { padding-top: 16px; }
  .ad-search { flex: 1; }
  .ad-search input { width: 100%; }

  .ad-panel { border: 0; }
  .ad-table thead { display: none; }
  .ad-table,
  .ad-table tbody,
  .ad-table tr,
  .ad-table td { display: block; width: 100%; }
  .ad-table tr { margin-bottom: 12px; padding: 6px 14px; border: 1px solid var(--line); }
  .ad-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border: 0; text-align: right; }
  .ad-table td::before {
    content: attr(data-th);
    flex: none;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
  }
  .ad-table td.o-actions { justify-content: flex-end; padding-top: 4px; }
  .ad-table td.o-actions::before { content: none; }

  .ad-modal { padding: 16px; }
  .ad-modal-card { max-height: calc(100vh - 32px); }
  .ad-modal-head { padding: 16px 18px 12px; }
  .ad-modal-body { padding: 16px 18px 6px; }
  .ad-modal-foot { flex-wrap: wrap; justify-content: stretch; padding: 12px 18px 18px; }
  .ad-modal-foot > .ad-btn { flex: 1; }
  .ad-form-row,
  .ad-form-row--3 { grid-template-columns: 1fr; }
  .ad-kv { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (max-width: 380px) {
  #homeIndex { gap: 20px 12px; }
  .brand { font-size: 16px; letter-spacing: .12em; }
  .tote { font-size: 11.5px; }
}
