/* Leonmarte storefront */
:root {
  --ivory: #f7f1e8;
  --ivory-2: #efe6d8;
  --paper: #ffffff;
  --ink: #231b17;
  --ink-2: #5b4f47;
  --muted: #8a7d72;
  --line: #e2d6c4;
  --sindoor: #8e1b24;
  --sindoor-2: #6f141b;
  --gold: #b68a3e;
  --gold-soft: #e9d8b4;
  --ok: #2f6b3a;
  --warn: #a5541a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 27, 23, .06), 0 8px 24px -12px rgba(35, 27, 23, .18);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.announce { background: var(--sindoor); color: #f6e7cf; text-align: center; font-size: 13px; letter-spacing: .04em; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 241, 232, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .22em; text-decoration: none; color: var(--sindoor); line-height: 1; }
.logo small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .32em; color: var(--gold); font-weight: 600; margin-top: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.cart-link svg { width: 18px; height: 18px; }
.cart-count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--sindoor); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; padding: 0 6px; }
.cart-count[data-n="0"] { background: var(--ivory-2); color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 26px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .1s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sindoor); color: #fff; }
.btn-primary:hover { background: var(--sindoor-2); }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-gold { background: var(--gold); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- type ---------- */
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 5.4vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.section { padding: 84px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 36em; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--sindoor); }
.hero .lede { margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: 13.5px; color: var(--ink-2); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); font-weight: 600; }
.arch { background: var(--paper); border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; position: relative; }
.arch::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-soft); border-radius: inherit; pointer-events: none; }
.hero-art { position: relative; }
.hero-art .arch { aspect-ratio: 4 / 4.6; display: grid; place-items: center; padding: 18% 8% 8%; box-shadow: var(--shadow); }
.hero-art .arch img { width: 100%; height: 100%; object-fit: contain; }
.hero-badge { position: absolute; left: -18px; bottom: 34px; background: var(--ink); color: var(--ivory); border-radius: 12px; padding: 14px 18px; font-size: 13px; max-width: 220px; box-shadow: var(--shadow); }
.hero-badge b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold-soft); }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat { text-decoration: none; display: block; }
.cat .arch { aspect-ratio: 3 / 3.7; display: grid; place-items: center; padding: 22% 10% 10%; transition: transform .2s; }
.cat:hover .arch { transform: translateY(-4px); }
.cat .arch img { width: 100%; height: 100%; object-fit: contain; }
.cat h3 { margin-top: 16px; }
.cat p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card-img { position: relative; background: var(--paper); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.badge.low { background: var(--warn); }
.badge.soldout { background: var(--ivory-2); color: var(--ink-2); }
.card h3 { font-size: 20px; margin-top: 14px; }
.card p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; font-size: 16px; margin-top: 10px; }
.price small { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- value strip ---------- */
.values { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.value h3 { font-size: 24px; margin-bottom: 8px; }
.value p { margin: 0; color: var(--ink-2); font-size: 15px; }
.value .num { font-family: var(--serif); color: var(--gold); font-size: 15px; letter-spacing: .1em; display: block; margin-bottom: 10px; }

/* ---------- yarn band ---------- */
.band { background: #1f2a3a; color: #eef1f5; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.band-copy { padding: 56px; align-self: center; }
.band-copy .eyebrow { color: #e7c98d; }
.band-copy p { color: #c8d0db; font-size: 17px; margin: 16px 0 28px; }
.band-copy .btn-primary { background: #e7c98d; color: #1f2a3a; }
.band-art { background: #f3f1ec; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.band-art img { width: 100%; height: 100%; object-fit: contain; background: #fff; aspect-ratio: 1; padding: 6%; }

/* ---------- shop ---------- */
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-2); margin: 12px 0 0; max-width: 40em; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 22px 0 30px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.toolbar select { margin-left: auto; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-2); }

/* ---------- product page ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 24px 0 64px; align-items: start; }
.pdp > *, .cart-layout > *, .hero .wrap > * { min-width: 0; }
.gallery { position: sticky; top: 92px; }
.gallery-main { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 76px; height: 76px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); padding: 4px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--sindoor); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: clamp(32px, 3.6vw, 46px); }
.pdp-tagline { font-size: 17px; color: var(--ink-2); margin: 14px 0 0; }
.pdp-price { font-size: 28px; font-weight: 700; margin: 22px 0 4px; }
.pdp-price small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.stock { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--muted); }
.opt { margin-top: 26px; }
.opt-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.opt-label span { text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; margin-left: 6px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-values button { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 9px 15px; font-size: 14px; font-weight: 600; cursor: pointer; }
.opt-values button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-values button.na { color: var(--muted); text-decoration: line-through; }
.buy { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn { flex: 1 1 180px; }
.assure { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; font-size: 13.5px; color: var(--ink-2); }
.assure div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.assure b { display: block; color: var(--ink); font-size: 14px; }
.details { margin-top: 36px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.details summary { cursor: pointer; font-family: var(--serif); font-size: 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--gold); }
.details details[open] summary::after { content: "–"; }
.details ul { padding-left: 0; list-style: none; margin: 14px 0 0; }
.details li { padding: 8px 0 8px 22px; position: relative; color: var(--ink-2); font-size: 15px; }
.details li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.details li b { color: var(--ink); }
.details p { color: var(--ink-2); font-size: 15px; margin: 14px 0 0; }
.specs { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.specs th { text-align: left; font-weight: 600; width: 40%; padding: 9px 0; color: var(--ink); vertical-align: top; }
.specs td { padding: 9px 0; color: var(--ink-2); }
.specs tr + tr { border-top: 1px dashed var(--line); }

/* ---------- cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding: 36px 0 80px; align-items: start; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 96px; height: 96px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.line h3 { font-size: 19px; }
.line h3 a { text-decoration: none; }
.line .meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.line .row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.line .qty button { width: 34px; height: 36px; }
.line .qty input { width: 32px; }
.remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.line-total { font-weight: 700; text-align: right; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: sticky; top: 92px; }
.summary h2 { font-size: 26px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; color: var(--ink); font-weight: 700; }
.summary .btn { margin-top: 18px; }
.summary .note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.mini-lines { max-height: 280px; overflow: auto; margin-bottom: 10px; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.mini-line img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; }
.mini-line .q { color: var(--muted); font-size: 12.5px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form h2 { grid-column: 1 / -1; font-size: 28px; margin-top: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182, 138, 62, .18); }
.field .err { color: var(--sindoor); font-size: 12.5px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--sindoor); }
.field.invalid .err { display: block; }
.pay-opts { grid-column: 1 / -1; display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 16px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input { margin-top: 4px; accent-color: var(--sindoor); }
.pay-opt b { display: block; }
.pay-opt span { font-size: 13.5px; color: var(--ink-2); }
.notice { grid-column: 1 / -1; background: #fbf3e2; border: 1px solid var(--gold-soft); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.notice.error { background: #fbe9ea; border-color: #f0c4c7; color: var(--sindoor-2); }

/* ---------- prose / policies ---------- */
.prose { max-width: 760px; padding: 40px 0 80px; }
.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose .fill { background: #fbf3e2; border-bottom: 1px dashed var(--gold); padding: 0 4px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--ivory); padding: 14px 18px; border-radius: 14px; display: flex; gap: 16px; align-items: center; font-size: 14.5px; z-index: 50; transition: transform .25s ease; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--gold-soft); font-weight: 700; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc4b8; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer .logo { color: var(--gold-soft); }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 14.5px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14.5px; max-width: 26em; }
.legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px; text-align: center; font-size: 13px; color: #9c9087; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ivory); flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .site-header .wrap { gap: 12px; }
  .menu-btn + .cart-link { margin-left: 4px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { gap: 14px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .pdp, .cart-layout, .band { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat .arch { aspect-ratio: 1 / 1.05; }
  .hero { padding-top: 32px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-badge { left: 8px; }
  .gallery { position: static; }
  .values .wrap { grid-template-columns: 1fr; gap: 28px; }
  .summary { position: static; }
  .band-copy { padding: 36px 28px; }
  .section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card h3 { font-size: 17px; }
  .card p { display: none; }
  .form { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .toolbar select { margin-left: 0; }
  .line { grid-template-columns: 72px 1fr; }
  .line img { width: 72px; height: 72px; }
  .line-total { grid-column: 2; text-align: left; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .logo { font-size: 23px; }
  .cart-link .label { display: none; }
  .assure { grid-template-columns: 1fr; }
}
