:root {
  --ink: #251719;
  --muted: #765f62;
  --paper: #fbf7f2;
  --panel: #fffaf5;
  --line: #eadbd1;
  --wine: #6f1f35;
  --wine-deep: #37151c;
  --rose: #c98d89;
  --moss: #59624f;
  --gold: #b68d58;
  --shadow: 0 18px 45px rgba(55, 21, 28, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.drawer-open,
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button,
input,
select { font: inherit; }

button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(251, 247, 242, .86);
  border-bottom: 1px solid rgba(234, 219, 209, .8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--wine-deep);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a:hover,
.mobile-nav a:hover { color: var(--wine); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
}

.icon-btn:hover { border-color: var(--line); background: #fff; }

.icon-btn svg { width: 19px; height: 19px; }

.icon-btn span {
  position: absolute;
  top: 4px;
  right: 2px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--wine);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.mobile-menu-btn { display: none; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 18px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav.open { display: grid; gap: 16px; }

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 64px 32px 120px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(0deg, var(--paper), rgba(251, 247, 242, 0));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 247, 242, .96) 0%, rgba(251, 247, 242, .74) 37%, rgba(251, 247, 242, .1) 68%),
    url("assets/velmora-hero.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
}

.kicker {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 12vw, 150px);
  line-height: .88;
  font-weight: 500;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  font-weight: 500;
}

h3 { margin-bottom: 10px; font-size: 19px; }

.hero p {
  max-width: 510px;
  color: #4f3d3f;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  white-space: nowrap;
}

.btn.primary {
  color: #fff;
  background: var(--wine-deep);
  box-shadow: 0 12px 28px rgba(55, 21, 28, .24);
}

.btn.primary:hover { background: var(--wine); }

.btn.secondary {
  color: var(--wine-deep);
  background: #fff;
  border-color: var(--line);
}

.btn.light {
  color: var(--wine-deep);
  background: rgba(255, 255, 255, .76);
  border-color: rgba(255, 255, 255, .94);
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255,255,255,.26);
}

.btn.full { width: 100%; }

.trust-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -70px auto 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-band div {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 22px;
  background: rgba(255, 250, 245, .94);
}

.trust-band svg { color: var(--wine); }

.trust-band span { font-weight: 800; }

.trust-band small { color: var(--muted); line-height: 1.5; }

.commerce-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 96px;
}

.filters {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-head,
.section-head,
.drawer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.filter-head h2 { font-size: 34px; margin-bottom: 0; }

.link-btn {
  padding: 0;
  color: var(--wine);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.field,
.filter-group {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.field span,
.filter-group > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201, 141, 137, .18); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip,
.need-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.chip.active {
  color: #fff;
  background: var(--wine-deep);
  border-color: var(--wine-deep);
}

.check-list { display: grid; gap: 8px; }

.need-check { justify-content: flex-start; border-radius: 8px; cursor: pointer; }

.need-check input { width: 16px; min-height: 16px; padding: 0; accent-color: var(--wine); }

.catalog { min-width: 0; }

.section-head {
  margin-bottom: 26px;
  align-items: flex-end;
}

.section-head h2 { margin-bottom: 0; }

#resultCount { color: var(--muted); margin-bottom: 7px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  background: var(--art-bg);
  overflow: hidden;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--art-main);
  box-shadow: inset -18px -18px 30px rgba(0,0,0,.14), inset 14px 18px 28px rgba(255,255,255,.28);
}

.product-art::before {
  width: 68px;
  height: 178px;
  transform: rotate(22deg);
}

.product-art::after {
  width: 120px;
  height: 42px;
  margin-top: 108px;
  background: var(--art-accent);
  transform: rotate(-9deg);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: var(--wine-deep);
  background: rgba(255, 255, 255, .76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.72);
}

.wish-btn.active { color: var(--wine); background: #fff; }

.product-info { padding: 18px; }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.product-title {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.25;
}

.product-desc {
  min-height: 44px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.price { font-size: 20px; font-weight: 850; }

.split-section,
.journal,
.checkout-teaser {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 96px;
}

.split-section {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 36px;
  align-items: center;
  padding: 48px;
  color: #fff;
  background: var(--wine-deep);
  border-radius: 8px;
}

.split-section .kicker { color: #e7b9ad; }

.editorial-copy p {
  color: rgba(255,255,255,.76);
  line-height: 1.75;
}

.bundle-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bundle-board article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
}

.bundle-board span,
.journal-grid span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bundle-board p { color: rgba(255,255,255,.68); line-height: 1.6; }

.bundle-board strong { font-size: 28px; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.journal-grid article {
  min-height: 210px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.journal-grid h3 {
  margin-top: 34px;
  font-size: 24px;
  line-height: 1.2;
}

.checkout-teaser {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 30px;
  padding: 36px;
  background: var(--moss);
  color: #fff;
  border-radius: 8px;
}

.checkout-teaser .kicker { color: #f1d8b8; }

.checkout-teaser h2 { margin-bottom: 0; }

.checkout-teaser ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 8px 0 0; color: var(--muted); }

.newsletter {
  display: grid;
  gap: 10px;
  width: min(430px, 100%);
}

.newsletter label { font-weight: 800; }

.newsletter div,
.promo-box div {
  display: flex;
  gap: 8px;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100vh;
  padding: 22px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform .22s ease;
}

.drawer.open { transform: translateX(0); }

.drawer-head { align-items: center; }

.drawer-head h2 { margin-bottom: 0; font-size: 34px; }

.drawer-body {
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-art {
  width: 64px;
  height: 64px;
  background: var(--art-bg);
  border-radius: 8px;
}

.cart-line h3 { margin: 0 0 4px; font-size: 15px; }

.cart-line p { margin: 0; color: var(--muted); font-size: 13px; }

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
}

.promo-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-summary {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
}

.cart-summary .total {
  padding-top: 12px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(37, 23, 25, .42);
}

.overlay.show { display: block; }

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(37, 23, 25, .48); }

.quick-view,
.checkout-modal,
.guide-modal {
  width: min(920px, calc(100% - 28px));
}

.quick-content {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}

.quick-content .product-art { min-height: 520px; }

.quick-copy { padding: 34px; }

.quick-copy p { color: var(--muted); line-height: 1.7; }

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.spec-list div {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.72);
}

.checkout-form,
.guide-modal {
  position: relative;
  padding: 34px;
}

.checkout-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-grid label,
.guide-grid div {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.checkout-grid .span-2 { grid-column: 1 / -1; }

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.payment-methods label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-methods input { width: 16px; min-height: 16px; accent-color: var(--wine); }

.guide-grid div {
  min-height: 140px;
  align-content: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-grid span {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.65;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--wine-deep);
}

.age-gate.hidden { display: none; }

.age-panel {
  width: min(520px, 100%);
  padding: 34px;
  color: #fff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
}

.age-panel .kicker { color: #f1d8b8; }

.age-panel h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: .96;
}

.age-panel p { color: rgba(255,255,255,.76); line-height: 1.7; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translate(-50%, 20px);
  padding: 12px 16px;
  color: #fff;
  background: var(--wine-deep);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  padding: 32px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section,
  .checkout-teaser { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding: 0 16px; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-grid; }
  .hero { min-height: 760px; padding: 54px 18px 110px; align-items: end; }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(251, 247, 242, .18) 0%, rgba(251, 247, 242, .82) 56%, rgba(251, 247, 242, .98) 100%),
      url("assets/velmora-hero.png") center top / cover no-repeat;
  }
  .hero p { font-size: 16px; }
  .trust-band,
  .commerce-shell,
  .split-section,
  .journal,
  .checkout-teaser { width: calc(100% - 24px); }
  .trust-band { grid-template-columns: 1fr; margin-top: -56px; }
  .commerce-shell { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-grid,
  .bundle-board,
  .journal-grid,
  .checkout-teaser ul,
  .quick-content,
  .checkout-grid,
  .guide-grid { grid-template-columns: 1fr; }
  .split-section,
  .checkout-teaser { padding: 24px; }
  .quick-content .product-art { min-height: 360px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 32px 18px; }
  .newsletter div,
  .promo-box div { flex-direction: column; }
}
