:root {
  --bg: #0B0820;
  --bg-2: #140F33;
  --surface: #1A1440;
  --surface-2: #221852;
  --line: rgba(241, 206, 122, 0.22);
  --text: #F5F0FF;
  --muted: #BDB3DE;
  --gold: #F1CE7A;
  --gold-2: #FFE9B5;
  --rose: #F4A9C6;
  --danger: #FF9DA8;
  --radius: 20px;
  --radius-sm: 10px;
  --max: 1160px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 70% 50% at 85% -10%, rgba(58, 42, 122, 0.55), transparent 70%), radial-gradient(ellipse 50% 40% at -10% 30%, rgba(244, 169, 198, 0.08), transparent 70%);
  background-attachment: fixed;
}
body.scroll-locked { overflow: hidden; }
main { flex: 1; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; font-weight: 600; color: var(--gold); margin-bottom: 0.75rem; }
.eyebrow a { color: var(--gold); text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 8, 32, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.brand-text small { font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--gold); font-weight: 600; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.cart-btn { position: relative; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cart-btn:hover { border-color: var(--gold); }
.cart-count { background: var(--gold); color: var(--bg); border-radius: 999px; font-size: 0.72rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.cart-count:empty { display: none; }
@media (max-width: 640px) {
  .site-header .wrap { gap: 12px; }
  .site-nav { gap: 14px; }
  .brand-text { display: none; }
  .hide-m { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: filter 0.15s, border-color 0.15s, color 0.15s; }
.btn-primary { background: linear-gradient(135deg, #FFE9B5, #F1CE7A 55%, #E5B455); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.06); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--gold); font: inherit; font-size: 0.875rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--gold-2); }
.link-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.055); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.875rem; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.chip .count { opacity: 0.7; font-size: 0.8em; }
.chip.small { padding: 4px 12px; font-size: 0.8rem; }

/* Sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head { padding: 52px 0 8px; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* Image placeholder (themed block, no image) */
.ph { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2rem; background:
  radial-gradient(1px 1px at 20% 30%, rgba(255,244,217,0.85) 50%, transparent 51%),
  radial-gradient(1px 1px at 70% 20%, rgba(255,244,217,0.6) 50%, transparent 51%),
  radial-gradient(1px 1px at 80% 70%, rgba(255,244,217,0.7) 50%, transparent 51%),
  radial-gradient(1px 1px at 35% 80%, rgba(255,244,217,0.5) 50%, transparent 51%),
  radial-gradient(circle at 50% 120%, rgba(241, 206, 122, 0.25), transparent 60%),
  linear-gradient(160deg, #3A2A7A, var(--bg-2)); }
.ph span { opacity: 0.85; }

/* Grids and cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.is-dim { opacity: 0.55; transition: opacity 0.15s; }
.card { background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 1 / 1; background: var(--bg-2); overflow: hidden; display: block; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.wide { aspect-ratio: 16 / 9; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.2; }
.card-title:hover { color: var(--gold-2); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ribbons { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ribbon { background: var(--rose); color: var(--bg); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.small { font-size: 0.85rem; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.meta { color: var(--muted); font-size: 0.85rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.byline { display: inline-flex; align-items: center; gap: 8px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.excerpt { color: var(--muted); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* Status */
.status { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.status[hidden] { display: none; }
.error-text { color: var(--danger); }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Shop listing */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-bottom: 64px; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }
.filters { display: flex; flex-direction: column; gap: 22px; }
.filter-group h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.filter-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.input, select.input, textarea.input { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; font-size: 0.95rem; width: 100%; }
.input:focus { border-color: var(--gold); outline: none; }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.9rem; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .field { flex-direction: row; align-items: center; gap: 10px; }
.toolbar select.input { width: auto; }
.more-row { display: flex; justify-content: center; margin-top: 32px; }
.cat-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 32px; }
.cat-strip:empty { display: none; }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 40px 0 72px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.pdp-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main .ph { font-size: 3.5rem; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 68px; height: 68px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.pdp-price { font-size: 1.5rem; font-weight: 600; margin: 8px 0 18px; }
.pdp-price s { color: var(--muted); font-size: 1.05rem; font-weight: 400; margin-left: 10px; }
.pdp-desc { color: var(--muted); margin-bottom: 24px; }
.pdp fieldset { border: none; padding: 0; margin: 0 0 20px; }
.pdp legend { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.swatch:disabled { opacity: 0.35; cursor: not-allowed; }
.buy-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { background: transparent; color: var(--text); border: none; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper span { min-width: 30px; text-align: center; font-weight: 600; }
.stepper.sm button { width: 30px; height: 30px; font-size: 0.95rem; }
.info-sections details { border-top: 1px solid var(--line); padding: 14px 0; }
.info-sections summary { cursor: pointer; font-weight: 600; }
.info-sections .body { color: var(--muted); padding-top: 8px; }
.notify { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.notify .input { flex: 1; min-width: 200px; }

/* Cart drawer */
.cart-backdrop { position: fixed; inset: 0; background: rgba(5, 3, 18, 0.7); z-index: 50; display: flex; justify-content: flex-end; }
.cart-backdrop[hidden] { display: none; }
.cart-panel { width: min(420px, 100%); height: 100%; background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; outline: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.5rem; margin: 0; }
.icon-btn { background: transparent; border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { border-color: var(--gold); }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .thumb .ph { font-size: 1rem; }
.cart-line .name { font-weight: 600; font-size: 0.95rem; }
.cart-line .desc { color: var(--muted); font-size: 0.8rem; }
.cart-line .controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-line .line-price { text-align: right; font-weight: 600; font-size: 0.95rem; }
.cart-line .line-price s { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cart-foot:empty { display: none; }
.cart-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--muted); }
.cart-row.total { color: var(--text); font-weight: 700; font-size: 1.05rem; padding-top: 6px; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart-error { color: var(--danger); font-size: 0.88rem; padding: 10px 22px 0; }
.cart-error:empty { display: none; }

/* Blog */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; display: block; }
.post-cover { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin: 24px 0 32px; border: 1px solid var(--line); max-height: 60vh; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .post-cover { aspect-ratio: 16 / 7; } }
.post-body { font-size: 1.08rem; line-height: 1.75; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.4em; }
.post-body li p { margin: 0; }
.post-body blockquote { border-left: 3px solid var(--gold); margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; color: var(--muted); font-style: italic; }
.post-body img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.post-body a { word-break: break-word; }
.post-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.like-btn[aria-pressed="true"] { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.taxo { display: flex; gap: 8px; flex-wrap: wrap; }
.comments { margin-top: 40px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment .who { font-weight: 600; font-size: 0.92rem; }
.comment .when { color: var(--muted); font-size: 0.8rem; margin-left: 8px; }
.comment .text { margin: 6px 0; white-space: pre-wrap; }
.comment .pending { color: var(--gold); font-size: 0.8rem; }
.replies { margin-left: 24px; border-left: 1px solid var(--line); padding-left: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.comment-form textarea { min-height: 90px; resize: vertical; }
.comment-form .row { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.disclaimer { max-width: 420px; }