:root {
  --wine: #7d1f1a; --wine-dark: #4e1210; --cream: #f6efe4; --paper: #fffaf2; --sand: #efe2cf;
  --line: #e6d6bf; --gold: #e9c47a; --ink: #3a1c17; --muted: #7a5a52; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.hero { position: relative; overflow: hidden; padding: 72px 0 64px; color: var(--cream);
  background: radial-gradient(circle at 85% 10%, #9b2a22 0, transparent 45%), linear-gradient(160deg, var(--wine), var(--wine-dark)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px); background-size: 28px 28px; }
.hero .wrap { position: relative; z-index: 1; }
.kicker { margin: 0 0 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 0 0 16px; max-width: 14ch; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.lead { margin: 0 0 28px; max-width: 46ch; font-size: 18px; opacity: .9; }
.btn-gold { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--wine-dark); font-weight: 700; text-decoration: none; }
.btn-gold:hover { filter: brightness(1.05); }

.catalog { padding: 56px 0 96px; }
.catalog-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.catalog-head h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(26px, 4vw, 36px); }
.search { flex: 1 1 260px; max-width: 360px; }
.search input, .field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.coming, .search-empty { padding: 40px 0; text-align: center; color: var(--muted); }

.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.product[hidden] { display: none; }
.gallery { position: relative; aspect-ratio: 1 / 1; background: var(--sand); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.gallery img.is-active { opacity: 1; }
.gallery-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: var(--gold); }
.gallery-prev, .gallery-next { position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,250,242,.9); color: var(--wine); font-size: 20px; cursor: pointer; }
.gallery-prev { left: 8px; } .gallery-next { right: 8px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,250,242,.6); cursor: pointer; }
.gallery-dots button[aria-current="true"] { background: var(--gold); }
.product-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.product-tag { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.product h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 21px; line-height: 1.2; }
.product-desc { margin: 0; font-size: 14px; color: var(--muted); }
.product-specs { display: flex; gap: 6px; margin: 0; font-size: 13px; }
.product-specs dt { color: var(--muted); } .product-specs dd { margin: 0; font-weight: 600; }
.product-price { margin: 0; font-size: 22px; font-weight: 700; color: var(--wine); }
.product-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.product-subtotal { display: flex; justify-content: space-between; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.btn-add, .btn-order, .btn-primary { padding: 11px 10px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-add { border: 1.5px solid var(--wine); background: transparent; color: var(--wine); }
.btn-order, .btn-primary { border: 1.5px solid var(--wine); background: var(--wine); color: var(--cream); }
.btn-primary { width: 100%; padding: 13px; }

.footer { padding: 28px 0 88px; background: var(--wine-dark); color: var(--sand); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer a { color: var(--gold); }

.cart-fab { position: fixed; right: 16px; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  border: 2px solid var(--gold); border-radius: 999px; background: var(--wine); color: var(--cream); font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(78,18,16,.35); }
.cart { width: min(520px, 100% - 24px); max-height: 90vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.cart::backdrop { background: rgba(40,10,8,.55); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-family: Fraunces, Georgia, serif; }
#cart-close { border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.cart-items { padding: 8px 20px; }
.cart-line { display: grid; grid-template-columns: 1fr 64px auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cart-qty { width: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.cart-remove { border: 0; background: none; color: var(--wine); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cart-empty { color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; margin: 0; padding: 12px 20px; font-size: 17px; }
.cart-form { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 20px; }
.cart-error { margin: 0; color: #b3261e; font-weight: 600; }
.cart-note { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 20; translate: -50% 20px; padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--cream); font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.is-visible { opacity: 1; translate: -50% 0; }

@media (max-width: 480px) {
  .hero { padding: 52px 0 44px; }
  .grid { grid-template-columns: 1fr; }
}
