:root {
  --ivory: #f8f5ee;
  --paper: #fffdf9;
  --ink: #27211d;
  --muted: #706860;
  --line: #e6ddd1;
  --wine: #6d2735;
  --wine-dark: #4b1b25;
  --gold: #ae8a55;
  --rose: #e8c9be;
  --sage: #dfe4d9;
  --shadow: 0 18px 50px rgba(58, 40, 29, .10);
  --radius: 22px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.demo-ribbon { background: var(--wine-dark); color: #fff8ed; text-align: center; padding: 7px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248,245,238,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(230,221,209,.9); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-copy { line-height: 1; display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: .02em; }
.brand-sub { color: var(--gold); font-size: 10px; letter-spacing: .22em; margin-top: 7px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 25px; color: #594f47; font-size: 14px; }
.main-nav a { padding: 9px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--wine); border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .basket-btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; transition: .2s ease; }
.icon-btn { width: 44px; justify-content: center; padding: 0; }
.icon-btn:hover, .basket-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.count-badge { background: var(--wine); color: white; border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; }
.mobile-toggle { display: none; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 92px 0; }
.eyebrow { color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h1 { font-size: clamp(52px, 7vw, 88px); letter-spacing: -.055em; }
h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; }
h3 { font-size: 25px; }
.display-copy { color: var(--muted); max-width: 540px; font-size: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 400px; color: var(--muted); margin-bottom: 4px; }
.text-link { color: var(--wine); font-weight: 700; border-bottom: 1px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }
.text-link:hover { color: var(--wine-dark); }

.hero { min-height: 680px; display: grid; align-items: stretch; background: var(--paper); }
.hero-inner { width: min(1280px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: .86fr 1.14fr; min-height: 680px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px 48px 70px 0; }
.hero h1 { margin: 17px 0 25px; max-width: 620px; }
.hero h1 em { color: var(--wine); font-style: normal; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.btn { border: 1px solid transparent; border-radius: 999px; min-height: 50px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: transform .2s ease, background .2s ease, border .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: white; }
.btn-primary:hover { background: var(--wine-dark); }
.btn-secondary { border-color: var(--line); background: transparent; }
.btn-secondary:hover { border-color: var(--gold); background: #fffaf2; }
.btn-light { background: white; color: var(--wine); }
.hero-image { position: relative; overflow: hidden; min-height: 680px; }
.hero-image::before { content: ""; position: absolute; inset: 28px 0 28px 28px; border: 1px solid rgba(255,255,255,.65); z-index: 2; pointer-events: none; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.84); }
.hero-note { position: absolute; z-index: 3; right: 28px; bottom: 28px; background: rgba(255,253,249,.94); padding: 15px 18px; max-width: 210px; box-shadow: var(--shadow); font-family: var(--serif); font-size: 18px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { min-height: 220px; border-radius: var(--radius); overflow: hidden; position: relative; color: white; background: var(--wine); isolation: isolate; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(24,12,10,.75)); z-index: -1; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .55s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card-content { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.category-card h3 { font-size: 24px; margin: 0 0 5px; }
.category-card small { color: rgba(255,255,255,.8); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.product-card { position: relative; min-width: 0; }
.product-image { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #eee5d8; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-badge { position: absolute; left: 12px; top: 12px; background: rgba(255,253,249,.92); border-radius: 999px; padding: 6px 9px; color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.favorite { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,253,249,.9); color: var(--wine); font-size: 18px; }
.favorite.active { background: var(--wine); color: white; }
.product-info { padding: 15px 3px 0; }
.product-info h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.product-meta { color: var(--muted); font-size: 13px; min-height: 40px; }
.price-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 11px; }
.price { color: var(--wine); font-weight: 800; }
.card-arrow { color: var(--gold); font-size: 22px; line-height: 1; }

.occasion-section { background: var(--wine-dark); color: white; }
.occasion-section .eyebrow { color: #e8c9be; }
.occasion-section h2 { max-width: 680px; }
.occasion-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; }
.occasion-card { min-height: 220px; border-radius: var(--radius); padding: 26px; display: flex; align-items: end; background: var(--rose); color: var(--wine-dark); }
.occasion-card:first-child { background: #c8d0be; }
.occasion-card:last-child { background: #d6bca7; }
.occasion-card h3 { margin: 0; font-size: 30px; max-width: 300px; }
.occasion-card p { max-width: 250px; margin: 0 0 10px; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-image { border-radius: 28px; overflow: hidden; min-height: 520px; background: var(--sage); }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.story-copy h2 { margin: 14px 0 20px; }
.story-copy p { color: var(--muted); max-width: 480px; }
.story-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 17px; }
.story-list li { display: flex; gap: 13px; align-items: start; font-size: 14px; }
.story-list span { color: var(--gold); font-size: 20px; line-height: 1; }
.collect-card { background: var(--sage); border-radius: var(--radius); padding: 38px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.collect-card h2 { margin: 12px 0 15px; }
.collect-card p { color: #53604f; margin-bottom: 0; max-width: 600px; }
.collect-icon { width: 90px; height: 90px; display: grid; place-items: center; border: 1px solid rgba(83,96,79,.35); border-radius: 50%; color: #53604f; font-family: var(--serif); font-size: 40px; }

.trade-band { background: #efe2d6; }
.trade-band-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.trade-band h2 { margin: 12px 0; }
.trade-band p { color: var(--muted); margin-bottom: 0; max-width: 600px; }

.site-footer { background: #201b18; color: #eee7dc; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h3 { font-size: 17px; margin: 0 0 13px; }
.footer-grid p, .footer-grid a { color: #bfb4aa; font-size: 14px; }
.footer-grid a { display: block; margin: 7px 0; }
.footer-grid a:hover { color: white; }
.footer-brand .brand-name { color: white; }
.footer-bottom { border-top: 1px solid #413832; margin-top: 55px; padding-top: 18px; color: #887e76; font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }

.page-head { background: var(--paper); padding: 70px 0 46px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 12px 0 18px; font-size: clamp(48px, 6vw, 75px); }
.catalog-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 0 30px; }
.search-box { flex: 1 1 280px; position: relative; }
.search-box input { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; min-height: 48px; padding: 0 18px 0 43px; outline: none; }
.search-box input:focus, select:focus, input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(174,138,85,.12); }
.search-box span { position: absolute; left: 17px; top: 11px; color: var(--muted); }
select { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; min-height: 48px; padding: 0 40px 0 16px; color: var(--ink); }
.result-line { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); grid-column: 1 / -1; }

.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 64px; align-items: start; }
.detail-image { aspect-ratio: 1 / .92; border-radius: 28px; overflow: hidden; background: #eee5d8; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding-top: 16px; }
.detail-copy h1 { font-size: clamp(42px, 5vw, 64px); margin: 13px 0 18px; }
.detail-price { font-size: 24px; font-weight: 800; color: var(--wine); margin-bottom: 16px; }
.detail-copy > p { color: var(--muted); max-width: 500px; }
.specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 27px 0; padding: 17px 0; display: grid; gap: 9px; }
.spec-row { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.spec-row span:first-child { color: var(--muted); }
.purchase-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; min-height: 50px; background: var(--paper); }
.quantity button { border: 0; background: transparent; width: 38px; height: 48px; color: var(--wine); font-size: 20px; }
.quantity output { width: 26px; text-align: center; font-weight: 700; }
.related { margin-top: 80px; }

.checkout-layout { display: grid; grid-template-columns: 1fr .7fr; gap: 45px; align-items: start; }
.form-card, .summary-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-card h2, .summary-card h2 { font-size: 34px; margin-bottom: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: white; min-height: 48px; border-radius: 10px; padding: 10px 12px; outline: none; }
.field textarea { min-height: 100px; resize: vertical; }
.form-note { background: #f3ebe0; border-radius: 12px; padding: 14px 15px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.error-note { color: var(--wine); font-size: 13px; margin: 10px 0 0; }
.summary-card { position: sticky; top: 110px; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 800; padding-top: 20px; }
.order-row { display: flex; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-row img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; }
.order-row strong { display: block; font-size: 14px; line-height: 1.2; }
.order-row small { color: var(--muted); }

.confirmation { max-width: 680px; margin: 0 auto; text-align: center; padding: 84px 0; }
.confirmation-mark { width: 82px; height: 82px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--wine); font-family: var(--serif); font-size: 35px; margin: 0 auto 25px; }
.confirmation h1 { font-size: clamp(48px, 7vw, 78px); margin: 0 0 18px; }
.confirmation p { color: var(--muted); max-width: 510px; margin: 0 auto 27px; }

.trade-page { display: grid; grid-template-columns: 1fr .7fr; gap: 52px; align-items: start; }
.trade-page h1 { margin: 12px 0 18px; }
.trade-page .lead { color: var(--muted); font-size: 18px; max-width: 610px; }
.trade-points { display: grid; gap: 18px; margin-top: 35px; }
.trade-point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.point-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; color: var(--wine); font-family: var(--serif); font-size: 22px; }
.trade-point h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; margin: 1px 0 4px; }
.trade-point p { color: var(--muted); font-size: 14px; margin: 0; }
.about-card { background: var(--wine-dark); color: white; border-radius: 28px; padding: 35px; }
.about-card h2 { font-size: 40px; margin: 15px 0; }
.about-card p { color: #e3d7cc; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(26,17,14,.42); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.basket-drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(450px, 100%); background: var(--paper); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -20px 0 55px rgba(0,0,0,.15); }
.basket-drawer.open { transform: translateX(0); }
.drawer-head { padding: 24px 24px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 32px; margin: 0; }
.drawer-body { padding: 8px 24px; overflow: auto; flex: 1; }
.drawer-footer { border-top: 1px solid var(--line); padding: 18px 24px 24px; }
.drawer-footer .btn { width: 100%; }
.drawer-empty { color: var(--muted); text-align: center; padding: 65px 20px; }
.drawer-item { display: grid; grid-template-columns: 65px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.drawer-item img { width: 65px; height: 65px; border-radius: 10px; object-fit: cover; }
.drawer-item strong { display: block; font-size: 13px; line-height: 1.25; }
.drawer-item small { color: var(--muted); }
.drawer-item .quantity { min-height: 32px; margin-top: 7px; }
.drawer-item .quantity button { height: 30px; width: 28px; font-size: 16px; }
.drawer-item .quantity output { width: 22px; font-size: 13px; }
.remove-item { border: 0; background: transparent; color: var(--muted); font-size: 12px; margin-top: 4px; padding: 0; }
.remove-item:hover { color: var(--wine); }

.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80; background: var(--ink); color: white; border-radius: 99px; padding: 12px 17px; font-size: 14px; transition: .22s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 930px) {
  .header-inner { min-height: 72px; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 15px 20px 20px; background: var(--paper); flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 25px rgba(0,0,0,.06); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .mobile-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 0 45px; }
  .hero-image { min-height: 460px; }
  .hero { min-height: auto; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail, .checkout-layout, .trade-page { grid-template-columns: 1fr; gap: 35px; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .container, .header-inner, .hero-inner { width: min(100% - 28px, 1180px); }
  .section { padding: 65px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  h1 { font-size: 52px; }
  h2 { font-size: 42px; }
  .hero-copy { padding-top: 55px; }
  .hero-image { min-height: 330px; }
  .hero-image::before { inset: 15px 0 15px 15px; }
  .hero-note { right: 15px; bottom: 15px; font-size: 15px; max-width: 170px; padding: 12px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 175px; }
  .category-card h3 { font-size: 19px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .product-info h3 { font-size: 14px; }
  .product-meta { font-size: 12px; }
  .occasion-grid { grid-template-columns: 1fr; }
  .occasion-card { min-height: 170px; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-image { min-height: 330px; }
  .collect-card, .trade-band-inner { grid-template-columns: 1fr; padding: 27px; }
  .collect-icon { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 15px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 7px; }
  .page-head { padding: 48px 0 30px; }
  .page-head h1 { font-size: 51px; }
  .catalog-toolbar { padding-top: 16px; }
  .catalog-toolbar select { flex: 1 1 160px; }
  .detail-copy h1 { font-size: 45px; }
  .form-card, .summary-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .brand-name { font-size: 19px; }
  .brand img { width: 36px; height: 36px; }
  .header-actions .icon-btn:not(.mobile-toggle) { display: none; }
  .basket-btn { padding: 0 11px; }
  .basket-btn span.label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
