:root {
  color-scheme: light;
  --ink: #141210;
  --paper: #f7f3ec;
  --cream: #fffdf8;
  --gold: #b08958;
  --gold-2: #e6d3b3;
  --line: rgba(176, 137, 88, .28);
  --muted: #6f675e;
  --danger: #9a3b32;
  --shadow: 0 18px 40px rgba(20, 18, 16, .12);
  --header-bg: rgba(247, 243, 236, .92);
  --glow: rgba(176, 137, 88, .18);
  --photo: #ece6dc;
  --note: #3d3832;
  --card-line: rgba(20, 18, 16, .06);
  --announce-bg: #141210;
  --announce-fg: #e6d3b3;
  --footer-bg: #141210;
  --footer-fg: #efe7da;
  --header: 72px;
  --safe: env(safe-area-inset-bottom, 0px);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f6f1e8;
  --paper: #100e0c;
  --cream: #1b1815;
  --gold: #d4b48a;
  --gold-2: #e8d7bc;
  --line: rgba(212, 180, 138, .32);
  --muted: #b5ab9f;
  --danger: #e07a72;
  --shadow: 0 18px 40px rgba(0, 0, 0, .4);
  --header-bg: rgba(16, 14, 12, .92);
  --glow: rgba(212, 180, 138, .14);
  --photo: #2a2520;
  --note: #d9d0c4;
  --card-line: rgba(246, 241, 232, .08);
  --announce-bg: #070605;
  --announce-fg: #e8d7bc;
  --footer-bg: #070605;
  --footer-fg: #efe7da;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.store {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 50% -80px, var(--glow), transparent 60%),
    var(--paper);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.announce {
  background: var(--announce-bg);
  color: var(--announce-fg);
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 8px 16px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.brand strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.brand span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: none; gap: 22px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav a.active, .nav a:hover { color: var(--gold); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--cream);
  display: grid; place-items: center; position: relative;
}
.badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--ink); color: var(--cream); border-radius: 99px;
  min-width: 18px; height: 18px; font-size: 11px;
  display: grid; place-items: center; padding: 0 4px;
}
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 2px; border: 0; background: transparent;
  color: var(--ink); cursor: pointer;
}
.menu-btn__icon { display: grid; width: 24px; height: 24px; }
.menu-btn svg { display: block; overflow: visible; }
.menu-btn__line {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .55s cubic-bezier(.77, 0, .18, 1), opacity .3s ease;
}
.menu-btn.is-open .menu-btn__line.-top { transform: translateY(7.1px) rotate(45deg); }
.menu-btn.is-open .menu-btn__line.-middle { opacity: 0; transform: scaleX(0); }
.menu-btn.is-open .menu-btn__line.-bottom { transform: translateY(-7.1px) rotate(-45deg); }
.menu-btn__label {
  display: none; position: relative; width: 4.6em; height: 1.15em; overflow: hidden;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.menu-btn__label span {
  position: absolute; inset: 0 auto auto 0; line-height: 1.15;
  transition: transform .5s cubic-bezier(.77, 0, .18, 1), opacity .3s ease;
}
.menu-btn__label span:last-child { transform: translateY(120%); opacity: 0; }
.menu-btn.is-open .menu-btn__label span:first-child { transform: translateY(-120%); opacity: 0; }
.menu-btn.is-open .menu-btn__label span:last-child { transform: none; opacity: 1; }
.drawer {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  background: var(--cream);
  padding: 18px max(16px, calc((100% - 1120px) / 2)) calc(22px + var(--safe));
  box-shadow: 0 22px 40px rgba(20, 18, 16, .12);
  max-height: calc(100dvh - var(--header));
  overflow: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  pointer-events: none;
  transition: clip-path .55s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .55s;
}
.drawer.open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  pointer-events: auto;
  transition: clip-path .55s cubic-bezier(.77, 0, .18, 1), visibility 0s;
}
.drawer > * {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.77, 0, .18, 1);
}
.drawer.open > * { opacity: 1; transform: none; }
.drawer.open > *:nth-child(1) { transition-delay: .08s; }
.drawer.open > *:nth-child(2) { transition-delay: .12s; }
.drawer.open > *:nth-child(3) { transition-delay: .16s; }
.drawer.open > *:nth-child(4) { transition-delay: .2s; }
.drawer.open > *:nth-child(5) { transition-delay: .24s; }
.drawer.open > *:nth-child(6) { transition-delay: .28s; }
.drawer.open > *:nth-child(7) { transition-delay: .32s; }
.drawer.open > *:nth-child(8) { transition-delay: .36s; }
.drawer.open > *:nth-child(9) { transition-delay: .4s; }
.theme-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin-top: 16px; padding: 16px 0 0;
  border: 0; border-top: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer;
  font-family: "Cormorant Garamond", serif; font-size: 22px;
}
.theme-toggle__track {
  width: 48px; height: 28px; border-radius: 99px; flex: 0 0 auto;
  background: transparent; border: 1px solid var(--line); position: relative;
}
.theme-toggle__thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold);
  transition: transform .4s cubic-bezier(.77, 0, .18, 1);
}
html[data-theme="dark"] .theme-toggle__thumb { transform: translateX(20px); }
html[data-theme="dark"] .theme-toggle__track { background: rgba(212, 180, 138, .28); }
.backdrop {
  position: fixed; inset: 0; background: rgba(20,18,16,.45); z-index: 60;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s ease; }
.drawer a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-family: "Cormorant Garamond", serif; }
.hero {
  position: relative;
  overflow: hidden;
  height: min(62vw, 720px);
  background: #1c1916;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.45s cubic-bezier(.4, 0, .2, 1);
}
.slide.base { opacity: 1; z-index: 1; transition: none; }
.slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.slide video, .slide img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy {
  padding: 28px 0 8px;
}
.eyebrow { letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-size: 12px; margin: 0 0 8px; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(40px, 8vw, 76px); line-height: .95; }
.lead { color: var(--muted); font-size: 16px; max-width: 36rem; }
.chips { display: flex; gap: 8px; overflow: auto; padding: 8px 0 18px; scrollbar-width: none; }
.chips a {
  flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; background: var(--cream); font-size: 13px;
}
.chips a.on, .chips a:hover { background: var(--ink); color: var(--cream); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  background: var(--cream); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--card-line); box-shadow: 0 8px 24px rgba(20,18,16,.04);
}
.card .photo { aspect-ratio: 1; background: var(--photo); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 12px 14px; }
.card .meta { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; min-height: 16px; }
.card h3 { font-size: 20px; line-height: 1.1; margin: 4px 0; }
.price { color: var(--ink); font-weight: 700; }
.btn, .btn-gold, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn-gold { background: var(--ink); color: var(--cream); width: 100%; }
.card .btn-gold,
.product form .btn-gold {
  background: #b91c1c;
  color: #fff;
  font-weight: 700;
}
.card .btn-gold:hover,
.product form .btn-gold:hover { background: #991b1b; }
.btn-line { background: transparent; border: 1px solid var(--line); }
.btn-wa { background: #1f7a4d; color: white; width: 100%; }
.section { padding: 28px 0 10px; }
.filters { display: grid; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--cream); padding: 10px 12px;
}
.pager { display: flex; gap: 8px; justify-content: center; padding: 22px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); }
.pager .active { background: var(--ink); color: var(--cream); }
.product { display: grid; gap: 18px; padding: 18px 0 30px; }
.gallery { background: var(--cream); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow: auto; padding-top: 8px; }
.thumbs button { width: 68px; height: 68px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.note { white-space: pre-line; color: var(--note); }
.about { padding-bottom: 36px; }
.about h1 { margin-bottom: 8px; }
.about-copy { max-width: 42rem; font-size: 17px; line-height: 1.7; margin-top: 18px; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.about-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--photo); }
.about-facts { display: grid; gap: 14px; margin: 28px 0 0; }
.about-facts div { padding-top: 12px; border-top: 1px solid var(--line); }
.about-facts dt { color: var(--gold); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.about-facts dd { margin: 4px 0 0; }
.about-teaser { padding-top: 8px; }
.about-teaser .btn-line { margin-top: 8px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.qty { width: 72px; }
.total { display: flex; justify-content: space-between; font-size: 18px; margin: 16px 0; }
.footer { margin-top: 36px; background: var(--footer-bg); color: var(--footer-fg); padding: 36px 0 calc(28px + var(--safe)); }
.footer a { color: var(--gold-2); }
.social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.toast { background: #e7f6ee; color: #145c32; border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.empty { padding: 28px 8px; color: var(--muted); }
.slider-nav { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; }
.slider-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); }
.product form .btn-gold { width: auto; flex: 1; }
.slider-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); }

@media (min-width: 520px) {
  .menu-btn__label { display: block; }
}
@media (min-width: 860px) {
  .nav { display: flex; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .filters { grid-template-columns: 1.4fr .8fr .8fr .8fr auto; align-items: end; }
  .product { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 40px; }
  .hero { height: 560px; }
  .about-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-copy { padding-top: 42px; }
}
