/* Juniper Wash Leatherworks — store styles */
:root {
  --cream: #F8F3EA;
  --sand: #EBDFCB;
  --sand-2: #E2D3BA;
  --deep: #33200F;
  --main: #46270C;
  --saddle: #733C0C;
  --muted: #6b5440;
  --line: #dccdb4;
  --white: #fffdf9;
  --ok: #2f6b3a;
  --err: #a4281f;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--deep); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--saddle); }
a:hover { color: var(--main); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--deep); }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--saddle); font-weight: 600; margin-bottom: 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--main); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.light { background: var(--cream); color: var(--deep); }
.btn.light:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--main); border: 1.5px solid var(--main); }
.btn.ghost:hover { background: var(--main); color: #fff; }
.btn.block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }
.link-arrow::after { content: " →"; }

/* announcement + header */
.announce { background: var(--main); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.announce[hidden] { display: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248,243,234,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--deep); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--saddle); }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--deep); text-decoration: none; padding: 6px; }
.cart-link svg { width: 26px; height: 26px; }
.cart-count { position: absolute; top: -2px; right: -6px; background: var(--saddle); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--deep); cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .site-header .wrap { height: 64px; gap: 12px; }
  .logo img { height: 38px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* hero */
.hero { position: relative; min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,18,8,.35), rgba(30,18,8,.55)); }
.hero .inner { position: relative; z-index: 1; max-width: 760px; padding: 60px 20px; }
.hero h1 { color: #fff; }
.hero p { font-size: 19px; color: #f6efe3; margin-bottom: 28px; }

section.block { padding: 76px 0; }
section.block.sand { background: var(--sand); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; } }
.card { display: block; text-decoration: none; color: inherit; }
.card .ph { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.04); }
.card h3 { font-size: 21px; margin: 14px 0 2px; }
.card .price { font-weight: 600; color: var(--saddle); }
.card .blurb { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 16px; } .card h3 { font-size: 17px; } .card .blurb { display: none; } }

/* features / columns */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.cols .col img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 16px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.verse { font-family: var(--serif); font-style: italic; color: var(--muted); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.quote { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.quote p { font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.quote .who { font-weight: 600; color: var(--saddle); font-size: 15px; letter-spacing: .05em; }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }
.which { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.which .w { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.which h3 { font-size: 20px; margin-bottom: 6px; }
.which p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .which { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .which { grid-template-columns: 1fr; } }

/* product page */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding: 22px 0 70px; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 26px; } }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border-color: var(--saddle); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) { .gallery { position: sticky; top: 96px; } }
.buy h1 { margin-bottom: 6px; }
.buy .price { font-size: 24px; font-weight: 600; color: var(--saddle); margin-bottom: 14px; }
.specs { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { background: var(--sand); border-radius: 999px; padding: 5px 13px; font-size: 14px; }
.opt { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.opt > legend, .opt > .lbl { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; display: flex; gap: 8px; align-items: baseline; }
.opt .chosen { font-weight: 400; color: var(--muted); }
.opt .req { font-size: 12px; color: var(--saddle); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.leather-sw { display: block; width: 64px; height: 64px; border-radius: 12px; background-size: cover; background-position: center; border: 2px solid var(--line); outline: 3px solid transparent; outline-offset: 2px; }
.thread-sw { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); outline: 3px solid transparent; outline-offset: 2px; }
.swatches input:checked + span { outline-color: var(--saddle); }
.swatches input:focus-visible + span { outline-color: var(--main); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-size: 15px; }
.pills span small { color: var(--muted); margin-left: 4px; }
.pills input:checked + span { border-color: var(--saddle); background: #fff; box-shadow: 0 0 0 1px var(--saddle) inset; }
.pills input:focus-visible + span { box-shadow: 0 0 0 3px rgba(115,60,12,.35); }
.sub { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: -8px 0 24px; }
.sub[hidden] { display: none; }
.sub .opt:last-child { margin-bottom: 0; }
.field { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 16px var(--sans); background: #fff; color: var(--deep); }
.field:focus { outline: none; border-color: var(--saddle); box-shadow: 0 0 0 3px rgba(115,60,12,.18); }
textarea.field { min-height: 84px; resize: vertical; }
textarea.field[rows="1"] { min-height: 0; resize: none; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; }
.font-sample { font-size: 13px; color: var(--muted); }
.locs { display: grid; gap: 8px; }
.locs label { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font-size: 15px; }
.locs input { accent-color: var(--saddle); width: 18px; height: 18px; }
.locs .n { width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: var(--cream); font: 600 14px var(--serif); display: grid; place-items: center; flex: none; }
.locs label:has(input:checked) { border-color: var(--saddle); box-shadow: 0 0 0 1px var(--saddle) inset; }
.diagram-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--cream); cursor: zoom-in; margin-bottom: 12px; }
.err-msg { color: var(--err); font-size: 14px; margin-top: 6px; }
.err-msg:empty { display: none; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--deep); }
.qty input { width: 40px; border: 0; text-align: center; font: 600 16px var(--sans); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.addrow { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.addrow .btn { flex: 1; }
.assure { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); font-size: 15px; display: grid; gap: 8px; }
.assure li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 10px; }
.desc { margin-top: 28px; }
.desc h2 { font-size: 24px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,12,4,.88); z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 12px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--deep); color: #fff; padding: 14px 20px; border-radius: 12px; z-index: 90; display: flex; gap: 16px; align-items: center; transition: transform .25s, visibility .25s; visibility: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: #f3d9b3; font-weight: 600; white-space: nowrap; }

/* cart */
.cart { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; padding: 30px 0 80px; align-items: start; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.line h3 { font-size: 19px; margin: 0 0 4px; }
.line h3 a { color: inherit; text-decoration: none; }
.line .opts { font-size: 14px; color: var(--muted); margin: 0; }
.line .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 10px 0 10px 12px; margin: -10px 0; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.summary .row { display: flex; justify-content: space-between; margin: 8px 0; }
.summary .row span:last-child { white-space: nowrap; padding-left: 12px; }
.summary .total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon .field { padding: 10px 12px; }
.coupon .btn { padding: 10px 18px; }
.empty { text-align: center; padding: 80px 0; }

/* text pages */
.page-head { padding: 64px 0 24px; text-align: center; }
.prose { font-size: 18px; }
.prose h2 { margin-top: 1.6em; font-size: 28px; }
.prose h3 { margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--serif); font-size: 21px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--saddle); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.notice { padding: 14px 16px; border-radius: 10px; background: #e7f0e4; color: var(--ok); }
.notice.err { background: #f6e1de; color: var(--err); }
.notice[hidden] { display: none; }

/* footer */
.site-footer { background: var(--deep); color: #e9dcc6; padding: 60px 0 30px; margin-top: 0; }
.site-footer a { color: #f3e6cf; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer h3 { color: #fff; font-size: 20px; }
.site-footer .logo img { height: 40px; filter: none; }
.signup { display: flex; gap: 8px; margin-top: 12px; }
.signup .field { background: #fff; }
.signup .btn { background: var(--saddle); white-space: nowrap; flex: none; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #c9b89d; }
.preview-flag { position: fixed; left: 12px; bottom: 12px; z-index: 200; background: #b3261e; color: #fff; font: 600 12px var(--sans); padding: 6px 10px; border-radius: 8px; letter-spacing: .04em; }

/* font sample tiles (photos of real stamps) */
.fonts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.font-tile span { display: block; padding: 0; overflow: hidden; text-align: center; }
.font-tile img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.font-tile b { display: block; font-weight: 500; font-size: 13px; padding: 6px 4px; }
@media (max-width: 420px) { .fonts-grid { grid-template-columns: 1fr 1fr; } }

/* the hidden attribute always wins (a display rule on .row etc. was overriding it) */
[hidden] { display: none !important; }
.cols .col img.chart { object-fit: contain; background: #f4efe6; }
.count-over { color: #a23b2a; font-weight: 600; }

/* stamp color picker */
.color-swatches { gap: 8px 14px; }
.color-swatches label { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 64px; text-align: center; }
.color-sw { display: block; width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); outline: 3px solid transparent; outline-offset: 2px; }
.color-name { font-size: 13px; line-height: 1.2; }
.color-name small { display: block; color: var(--muted, #7a6a5a); font-size: 11px; }

/* cart email box */
.cart-email { margin: 18px 0 4px; }
.cart-email .lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.cart-email .hint { font-size: 13px; color: var(--muted, #7a6a5a); margin-top: 6px; }
