:root {
  --bg: #fbf8f3; --surface: #fff; --ink: #1c2321; --muted: #5d6865; --line: #e8e2d7;
  --accent: #0f4c4a; --accent-ink: #fff; --accent-soft: #e3efed; --bronze: #9a6a35;
  --sold: #8a3b2e; --ok: #1f6b3a; --err: #9b2c22;
  --radius: 14px; --shadow: 0 1px 2px rgba(28,35,33,.05), 0 8px 24px rgba(28,35,33,.06);
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3, .h3 { font-size: 15px; font-weight: 600; font-family: var(--sans); letter-spacing: .02em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.announce { background: var(--accent); color: #dfeeea; text-align: center; font-size: 12.5px; padding: 6px 16px; letter-spacing: .02em; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 24px/1 var(--serif); white-space: nowrap; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; }
.cat-nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; font-size: 14px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 2px 0; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.on { color: var(--ink); border-color: var(--accent); }

/* forms + buttons */
input, select { font: inherit; color: inherit; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; min-height: 40px; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 999px; padding: 12px 22px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .1s, background .2s; }
.btn:hover { background: #0b3b3a; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-tiktok { background: #111; border-color: #111; color: #fff; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.btn-tiktok:hover { background: #000; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-xs { padding: 6px 10px; font-size: 12.5px; }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }
.tt { width: 18px; height: 18px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip:hover, .chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chip-more { color: var(--accent); }

/* hero */
.hero { background: linear-gradient(180deg, #f3ece1, var(--bg)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--bronze); font-weight: 600; margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 68px); line-height: 1.02; }
.lede { font-size: 17px; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { position: relative; aspect-ratio: 1.1; }
.hero-art img { position: absolute; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; }
.hero-art .h1 { width: 72%; top: 0; right: 0; }
.hero-art .h2 { width: 48%; bottom: 0; left: 0; border: 6px solid var(--bg); }

/* sections + grid */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { color: inherit; text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #efe9df; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .5s; }
.card-img .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img .alt { opacity: 1; }
.card:hover .card-img img:first-child { transform: scale(1.03); }
.card.sold .card-img img { filter: grayscale(.6); opacity: .7; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--sold); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge-inline { position: static; }
.card-body { padding: 10px 2px 0; }
.card-stone { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--bronze); font-weight: 600; }
.card-title { font-size: 14.5px; color: var(--ink); }
.card-price { font-weight: 600; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; color: #fff; text-decoration: none; background: #ddd; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; inset: auto 0 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-weight: 600; font-size: 15px; }
.tile small { font-weight: 400; opacity: .85; }
.band { background: #f1ebe0; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promises p { color: var(--muted); margin: 0; }

/* shop */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.shop-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.filters { margin: 8px 0 24px; display: grid; gap: 12px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pager a.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.gallery { position: sticky; top: 120px; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; background: #efe9df; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; cursor: pointer; flex: none; width: 72px; }
.thumbs button[aria-selected="true"] { border-color: var(--accent); }
.buybox h1 { font-size: clamp(26px, 3.6vw, 36px); }
.price-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.price { font-size: 28px; font-weight: 600; }
.stock { font-size: 13px; color: var(--bronze); font-weight: 600; }
.size { margin: 0 0 18px; }
.fine-print { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.perks { list-style: none; padding: 16px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.perks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(10,14,13,.92); display: grid; place-items: center; z-index: 50; cursor: zoom-out; padding: 16px; }
.lightbox img { max-height: 92vh; border-radius: 8px; }

/* prose pages */
.prose { font-size: 16px; }
.prose h2 { font-size: 24px; margin-top: 1.4em; }
.prose li { margin-bottom: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-weight: 600; background: #f6f2ea; }

/* footer */
.site-footer { background: #17201e; color: #c9d3d0; margin-top: 48px; padding: 40px 0 20px; font-size: 14px; }
.site-footer a { color: #e8efed; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #fff; }
.site-footer .muted { color: #9aa8a4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.brand-foot { color: #fff; }
.site-footer p a { display: inline-flex; gap: 6px; align-items: center; }
.fine { border-top: 1px solid #2b3633; margin-top: 28px; padding-top: 16px; color: #8a9894; font-size: 12.5px; }

/* admin */
.admin .site-header { position: static; }
.admin .header-row a:not(.brand) { margin-left: auto; font-size: 14px; }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card-box h2 { font-size: 22px; }
.login { max-width: 380px; margin: 40px auto; display: grid; gap: 14px; }
.login label { display: grid; gap: 6px; font-size: 14px; }
.alert { padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; }
.alert.ok { background: #e6f2ea; color: var(--ok); }
.alert.err { background: #f8e6e3; color: var(--err); }
.err { color: var(--err); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 13px; color: var(--muted); }
.stats b { display: block; font-size: 26px; color: var(--ink); font-family: var(--serif); }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.checks span { display: inline-block; width: 20px; font-weight: 700; }
.checks .ok span { color: var(--ok); }
.checks .todo span { color: var(--bronze); }
.checks small { color: var(--muted); margin-left: 24px; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.w-num { width: 72px; }
.urls { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: 13px; }
.urls dd { margin: 0; word-break: break-all; }
.events { list-style: none; padding: 0; font-size: 12.5px; display: grid; gap: 4px; }
.events time { color: var(--muted); }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.admin-table img { border-radius: 6px; width: 48px; height: 48px; object-fit: cover; }
.admin-table .link-form input[name="tiktok_product_id"] { width: 170px; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.admin-table .w-num { min-height: 32px; padding: 4px 8px; }
.is-hidden { opacity: .5; }
.pill { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.actions { white-space: nowrap; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .pdp, .admin-cols { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hide-sm { display: none; }
  .header-row { flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 28px; gap: 24px; }
  .hero-art { max-width: 420px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 1; }
  .promises { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 24px 16px; }
  .buybox .btn-block { position: sticky; bottom: 12px; z-index: 3; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
