:root {
  --ivory: #f4efe6;
  --paper: #fbf8f3;
  --white: #fffdf9;
  --ink: #241c16;
  --muted: #6f645a;
  --line: rgba(36, 28, 22, 0.12);
  --gold: #a07d45;
  --gold-deep: #7a5b2e;
  --blush: #efe4d4;
  --shadow: 0 24px 60px rgba(36, 28, 22, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }

.announcement {
  background: var(--ink);
  color: #f6efe4;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px;
}
.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.primary-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.primary-nav a, .nav-parent {
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.primary-nav a:hover, .nav-parent:hover { color: var(--gold-deep); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.search input {
  width: 180px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  outline: none;
}
.tool {
  background: none;
  border: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cart-btn em {
  font-style: normal;
  margin-left: 6px;
  color: var(--gold-deep);
}
.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; }
.menu-toggle span { display: block; height: 1px; background: var(--ink); margin: 6px 0; }
.mega {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 28px 48px 36px;
}
.mega-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 32px;
}
.mega a { display: block; padding: 6px 0; color: var(--muted); }
.mega a strong { display: block; color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }
.mega a:hover { color: var(--gold-deep); }
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  overflow: auto;
  padding: 28px;
}
.mobile-drawer a, .mobile-drawer button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}
.sub-link { padding-left: 14px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--muted); }

main { min-height: 70vh; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 42px 0 20px;
}
.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold-deep);
}
.hero h1 {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.9;
  margin: 14px 0 18px;
}
.hero h1 em { font-style: italic; font-weight: 500; }
.lede { font-size: 18px; max-width: 460px; color: var(--muted); font-weight: 300; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn.gold { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 180px 180px 28px 28px;
}
.hero-visual:after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: 180px 180px 28px 28px;
  pointer-events: none;
}
.section { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 48px; }
.section-head p { color: var(--muted); margin: 0; }
.cat-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 14px;
}
.cat-tile { position: relative; overflow: hidden; background: var(--blush); }
.cat-tile:first-child { grid-row: 1 / span 2; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: white;
  font-family: var(--serif);
  font-size: 34px;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
}
.card { display: flex; flex-direction: column; gap: 10px; }
.card-media {
  background: var(--ivory);
  aspect-ratio: 3/4;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.03); }
.card h3 { font-size: 26px; line-height: 1.05; }
.price { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.price s { color: var(--muted); }
.price .now { font-weight: 500; }
.havale-note { color: var(--gold-deep); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.crumb { color: var(--muted); font-size: 13px; margin: 22px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar select, .field input, .field textarea, .field select {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
  width: 100%;
}
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0 10px; }
.subcats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 18px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subcats::-webkit-scrollbar { display: none; }
.subcats a { flex: 0 0 auto; }
.mobile-search { margin: 4px 0 16px; }
.mobile-search input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
  font-size: 16px;
}
.pager button, .pager span {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
}
.pager .on { background: var(--ink); color: var(--paper); }
.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 28px 0 70px;
}
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { border: 1px solid transparent; padding: 0; background: var(--ivory); }
.thumbs button.on { border-color: var(--gold); }
.thumbs img, .stage img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.stage { background: var(--ivory); }
.buy h1 { font-size: clamp(40px, 4vw, 64px); line-height: 0.95; margin: 8px 0 12px; }
.buy .brand-name { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: var(--gold-deep); }
.meta-row { display: flex; gap: 18px; color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button { width: 40px; height: 44px; border: 0; background: transparent; }
.qty span { min-width: 24px; text-align: center; line-height: 44px; }
.prose { white-space: pre-wrap; color: #3c342c; max-width: 640px; }
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.trust div { border-top: 1px solid var(--line); padding-top: 12px; }
.trust strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.trust span { color: var(--muted); font-size: 14px; }
.checkout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding: 36px 0 80px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.pay-options { display: grid; gap: 12px; margin: 8px 0 18px; }
.pay {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 16px;
}
.pay.on { border-color: var(--gold-deep); background: #f8f1e6; }
.pay b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.pay small { color: var(--muted); }
.notice {
  background: #f8f1e6;
  border-radius: 16px;
  padding: 16px 18px;
  color: #3c342c;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.summary-line, .cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-line img, .cart-line img { width: 72px; height: 90px; object-fit: cover; background: var(--ivory); }
.totals { margin-top: 14px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--serif); font-size: 32px; margin-top: 8px; }
.iban-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #f6efe4;
}
.iban-box button { margin-top: 10px; }
.error { color: #8d3b32; }
.empty { padding: 48px 0 80px; }
.site-footer {
  background: var(--ink);
  color: #f3eadf;
  padding: 56px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 { font-size: 36px; }
.site-footer a { color: #f3eadf; }
.site-footer p { color: #d9cbb8; }
.legal { margin-top: 28px; color: #b7a894; font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.legal a { color: #b7a894; }
.cart-drawer[hidden], .mobile-drawer[hidden], .mega[hidden], .toast[hidden] { display: none !important; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(36,28,22,.35); z-index: 50; }
.cart-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 51;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 24px;
}
.cart-panel header { display: flex; justify-content: space-between; align-items: center; }
.cart-panel header button { border: 0; background: none; font-size: 28px; }
#cart-body { overflow: auto; flex: 1; }
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 70;
}
.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0 70px;
}
.admin:has(nav[hidden]) { grid-template-columns: 1fr; }
.admin nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
.admin nav a.on { color: var(--gold-deep); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.table input { width: 110px; }
.login-card { max-width: 420px; margin: 60px auto; }
.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blush);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ship-card { margin-bottom: 18px; }
.ship-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ship-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.field.invalid input, .field.invalid textarea { border-color: #8d3b32; }
.field-error { color: #8d3b32; font-size: 13px; letter-spacing: 0; text-transform: none; }
.legal-page { max-width: 760px; padding: 48px 0 80px; }
.legal-page h1 { font-size: clamp(42px, 6vw, 68px); margin: 8px 0 18px; }
.legal-page h2 { font-size: 32px; margin: 28px 0 8px; }
.legal-page p { color: #3c342c; }
.thanks-items { margin: 8px 0 22px; padding-left: 18px; }
.boot { min-height: 50vh; display: grid; place-items: center; text-align: center; gap: 12px; }
.boot img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; }
.boot p { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.sticky-cta { display: none; }
.reach {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.reach-menu {
  display: grid;
  gap: 8px;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}
.reach.open .reach-menu { transform: none; opacity: 1; pointer-events: auto; }
.reach-toggle, .reach-link {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #f6efe4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(36, 28, 22, .16);
}
.reach-link { background: var(--gold-deep); }
body.is-admin .reach { display: none; }
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #f6efe4;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.cookie-bar p { margin: 0; font-size: 14px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar .btn.ghost { color: #f6efe4; border-color: #f6efe4; }
@media (max-width: 980px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .sticky-cta div { display: flex; flex-direction: column; }
  .sticky-cta span { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
  .sticky-cta .btn { min-width: 148px; }
  body.has-sticky { padding-bottom: 84px; }
  body.has-sticky .reach { bottom: 96px; }
  .cookie-bar { flex-direction: column; align-items: stretch; bottom: 84px; }
  body:not(.has-sticky) .cookie-bar { bottom: 16px; }
}
.track-code { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 8px 0; }
.card-scene { perspective: 1100px; margin: 6px 0 16px; }
.card-3d {
  position: relative;
  width: min(100%, 420px);
  height: 230px;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}
.card-3d.flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 20px 22px;
  color: #f6efe4;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px rgba(36, 28, 22, .16);
}
.card-front {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.35), transparent 32%),
    linear-gradient(135deg, #d7b56a 0%, #8d6840 42%, #241c16 80%);
  display: flex;
  flex-direction: column;
}
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #4a3d32, #241c16 55%);
}
.card-top, .card-meta, .cvv-row { display: flex; justify-content: space-between; gap: 12px; }
.card-top span, .card-brand-mark { font-family: var(--serif); font-size: 28px; }
.card-top strong { letter-spacing: .16em; font-size: 13px; align-self: center; }
.chip {
  width: 48px;
  height: 36px;
  margin: 18px 0 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f4e7c4, #b8924e 55%, #8a6a32);
}
.card-number {
  font-size: 22px;
  letter-spacing: .12em;
  margin-top: auto;
}
.card-meta { margin-top: 16px; }
.card-meta small, .cvv-row span { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: 10px; opacity: .8; }
.card-meta strong, .cvv-row strong { font-weight: 500; letter-spacing: .06em; }
.mag { height: 42px; margin: 12px -22px 22px; background: #120e0b; }
.cvv-row {
  margin: 0 18px;
  background: #f6efe4;
  color: #241c16;
  border-radius: 6px;
  padding: 8px 12px;
  align-items: center;
}
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.card-fields .field:nth-child(-n+2) { grid-column: 1 / -1; }
.secure-card {
  height: 180px;
  border-radius: 18px;
  margin: 8px 0 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f6efe4;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 36%),
    linear-gradient(135deg, #8c6a38, #241c16 62%);
}
.secure-card span { font-family: var(--serif); font-size: 34px; }
.secure-card em { font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.pay-frame { width: 100%; min-height: 640px; border: 0; border-radius: 16px; background: white; }
.stepper { display: flex; gap: 8px; margin: 16px 0; }
.step {
  flex: 1;
  min-width: 0;
  border-top: 2px solid var(--line);
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.step.done { color: var(--ink); border-color: var(--gold); }
.step.on { color: var(--ink); border-color: var(--gold-deep); font-weight: 600; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 6px; }
.timeline .when { color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto 1fr; padding: 10px 16px; }
  .primary-nav, .search { display: none; }
  .menu-toggle { display: block; }
  .header-tools { width: 100%; justify-content: flex-end; }
  .brand img { width: 58px; height: 58px; }
  .hero, .product, .checkout, .admin, .footer-grid { grid-template-columns: 1fr; }
  .cat-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .cat-tile:first-child { grid-row: auto; grid-column: 1 / span 2; height: 280px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
  .thumbs img { aspect-ratio: 1; }
  .hero-visual:after { inset: 12px; }
  .wrap { padding: 0 16px; }
  .section-head h2, .hero h1 { font-size: 48px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card h3 { font-size: 18px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head h2, .hero h1 { font-size: 40px; }
  .announcement { letter-spacing: 0.08em; }
  .trust { grid-template-columns: 1fr; }
  .ship-grid, .card-fields { grid-template-columns: 1fr; }
  .card-3d { height: 210px; }
  .card-number { font-size: 18px; letter-spacing: .08em; }
  .stepper { flex-wrap: wrap; }
  .step { flex: 1 1 30%; }
  .track-code { font-size: 32px; }
  .table { display: block; overflow-x: auto; }
}
