:root {
  --burgundy: #7a2b40;
  --burgundy-dark: #5e1f31;
  --burgundy-soft: #a24a63;
  --cream: #f8efea;
  --cream-2: #f2e4dc;
  --blush: #ecd3cf;
  --gold: #c4a06b;
  --ink: #2b1a20;
  --muted: #7b6168;
  --line: #e5d3cc;
  --white: #fffaf7;
  --ok: #3f7d4e;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(94, 31, 49, .08);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; color: var(--burgundy-dark); }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.divider { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--gold); margin: 14px 0; }
.divider::before, .divider::after { content: ''; width: 56px; height: 1px; background: var(--gold); }
.divider span { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------- announcement + header ---------- */
.announce { background: var(--burgundy); color: var(--cream); text-align: center; font-size: 13px; letter-spacing: .08em; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248, 239, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav { display: flex; gap: 28px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--burgundy); transition: width .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 30px; color: var(--burgundy); letter-spacing: .12em; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.header-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { position: relative; background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--burgundy); }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--burgundy); color: var(--white); font-size: 11px; display: grid; place-items: center; }
.cart-count:empty { display: none; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .site-header .bar { grid-template-columns: auto 1fr auto; }
  .brand { justify-content: center; font-size: 24px; }
  .brand img { width: 38px; height: 38px; }
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 16px; border-top: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--burgundy); background: var(--burgundy); color: var(--white); padding: 14px 30px; border-radius: 999px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s, transform .1s; }
.btn:hover { background: var(--burgundy-dark); }
.btn:active { transform: scale(.98); }
.btn.outline { background: transparent; color: var(--burgundy); }
.btn.outline:hover { background: var(--burgundy); color: var(--white); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% 20%, var(--blush), transparent 60%), var(--cream); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; min-height: 580px; padding: 60px 0; }
.hero h1 { font-size: clamp(46px, 7vw, 84px); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--burgundy-soft); }
.hero p { color: var(--muted); max-width: 460px; font-size: 18px; margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .diamond { position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid var(--burgundy-soft); transform: rotate(45deg); opacity: .5; }
.hero-art .bottles { position: relative; display: flex; align-items: flex-end; gap: 6px; }
.hero-art .bottles svg { filter: drop-shadow(0 20px 30px rgba(94, 31, 49, .18)); }
.hero-art .bottles svg:nth-child(1) { width: 130px; transform: translateY(-10px) rotate(-6deg); }
.hero-art .bottles svg:nth-child(2) { width: 170px; }
.hero-art .bottles svg:nth-child(3) { width: 130px; transform: translateY(-20px) rotate(6deg); }
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; min-height: 0; padding: 48px 0; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art .bottles svg:nth-child(1), .hero-art .bottles svg:nth-child(3) { width: 90px; }
  .hero-art .bottles svg:nth-child(2) { width: 120px; }
}

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4vw, 48px); margin-top: 8px; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.perk { background: var(--cream); padding: 28px 20px; text-align: center; }
.perk strong { display: block; font-family: var(--display); font-size: 22px; color: var(--burgundy); font-weight: 500; }
.perk span { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .perks { grid-template-columns: repeat(2, 1fr); } }

.story { background: var(--burgundy); color: var(--cream); }
.story .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story h2 { color: var(--cream); font-size: clamp(36px, 4.5vw, 54px); }
.story p { color: #ecd8d8; font-size: 17px; }
.story .logo-frame { background: var(--cream); border-radius: var(--radius); overflow: hidden; max-width: 420px; justify-self: center; }
.story .btn { background: var(--cream); color: var(--burgundy); border-color: var(--cream); margin-top: 16px; }
@media (max-width: 820px) { .story .container { grid-template-columns: 1fr; text-align: center; } }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-media svg { width: 46%; transition: transform .5s; filter: drop-shadow(0 14px 20px rgba(94, 31, 49, .15)); }
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--burgundy); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge.sale { background: var(--burgundy); color: var(--white); }
.badge.sold { background: var(--ink); color: var(--white); }
.quick-add { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: .25s; padding: 11px; font-size: 12px; }
.card:hover .quick-add { opacity: 1; transform: none; }
@media (hover: none) { .quick-add { opacity: 1; transform: none; } }
.card-body { padding: 14px 4px 0; }
.card-family { font-size: 12px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.card-title { font-family: var(--display); font-size: 22px; color: var(--burgundy-dark); margin: 2px 0; }
.price { font-weight: 500; }
.price s { color: var(--muted); font-weight: 400; margin-left: 8px; }

/* ---------- shop toolbar ---------- */
.page-hero { text-align: center; padding: 56px 0 30px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 60px); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink); }
.chip.active, .chip:hover { border-color: var(--burgundy); background: var(--burgundy); color: var(--white); }
.select { border: 1px solid var(--line); background: var(--white); padding: 9px 14px; border-radius: 999px; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 40px 0 80px; }
.pdp-media { position: sticky; top: 100px; align-self: start; aspect-ratio: 1; border-radius: var(--radius); background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media svg { width: 42%; filter: drop-shadow(0 24px 30px rgba(94, 31, 49, .18)); }
.pdp h1 { font-size: clamp(38px, 4.5vw, 56px); margin: 6px 0 10px; }
.pdp .price { font-size: 22px; }
.pdp .desc { color: var(--muted); margin: 22px 0; font-size: 17px; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.note { border: 1px solid var(--gold); color: var(--burgundy); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.stock-line { font-size: 14px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.stock-line::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock-line.low::before { background: var(--gold); }
.stock-line.out::before { background: var(--danger); }
.buy-row { display: flex; gap: 12px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 40px; height: 46px; border: 0; background: none; font-size: 18px; color: var(--burgundy); }
.qty input { width: 36px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 30px; height: 32px; font-size: 15px; }
.qty.sm input { width: 28px; font-size: 14px; }
.details { margin-top: 34px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.details summary { cursor: pointer; font-family: var(--display); font-size: 20px; color: var(--burgundy-dark); list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: '+'; color: var(--gold); }
.details details[open] summary::after { content: '–'; }
.details p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; } .pdp-media { position: static; } }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(43, 26, 32, .4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 50; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--cream); z-index: 51; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--white); }
.ship-progress { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ship-progress .track { height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.ship-progress .fill { height: 100%; background: var(--burgundy); transition: width .4s; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item .thumb { width: 72px; height: 88px; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item .thumb svg { width: 52%; }
.line-item .title { font-family: var(--display); font-size: 19px; color: var(--burgundy-dark); line-height: 1.2; }
.line-item .meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.line-item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; }
.empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.empty h3 { margin-bottom: 10px; }
.row { display: flex; justify-content: space-between; margin: 6px 0; }
.row.total { font-size: 18px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; padding: 40px 0 80px; }
.checkout h2 { font-size: 30px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 13px 14px; outline: none; transition: border .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--burgundy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 16px; margin-bottom: 10px; cursor: pointer; }
.pay-option.selected { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.pay-option input { accent-color: var(--burgundy); margin-top: 5px; }
#pay-options { margin-bottom: 22px; }
/* InstaPay instructions on the confirmation page */
.instapay { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 30px; }
.instapay h2 { font-size: 28px; margin-bottom: 4px; }
.instapay .amount { font-family: var(--display); font-size: 40px; color: var(--burgundy); margin: 6px 0 16px; }
.pay-detail { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.pay-detail small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pay-detail strong { font-weight: 500; overflow-wrap: anywhere; }
.copy-btn { border: 1px solid var(--burgundy); background: none; color: var(--burgundy); border-radius: 999px; padding: 6px 14px; font-size: 13px; flex: none; }
.copy-btn:hover { background: var(--burgundy); color: var(--white); }
.steps { color: var(--muted); padding-left: 20px; margin: 16px 0; }
.proof-drop { border: 1px dashed var(--burgundy-soft); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; background: var(--cream); }
.proof-drop img { max-height: 220px; margin: 0 auto; border-radius: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; background: #fff4df; color: #7a5300; }
.status-pill.ok { background: #e3f3e6; color: var(--ok); }
.pay-option small { color: var(--muted); display: block; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; position: sticky; top: 100px; }
.error-box { background: #fbe9e7; color: var(--danger); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; display: none; }
.error-box.show { display: block; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } .field-row { grid-template-columns: 1fr; } }

/* ---------- confirmation ---------- */
.confirm { max-width: 620px; margin: 0 auto; padding: 70px 0; text-align: center; }
.confirm .check { width: 70px; height: 70px; border-radius: 50%; background: var(--burgundy); color: var(--white); display: grid; place-items: center; margin: 0 auto 20px; }
.confirm .summary { text-align: left; margin-top: 30px; position: static; }

/* ---------- footer ---------- */
.site-footer { background: var(--burgundy-dark); color: #e8d3d6; padding: 60px 0 30px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--display); font-size: 20px; color: var(--cream); font-weight: 500; margin: 0 0 12px; }
.site-footer a { display: block; padding: 3px 0; color: #e8d3d6; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--cream); margin-bottom: 10px; }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #c5a9b0; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, var(--cream-2), var(--blush), var(--cream-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.card { min-width: 0; }
.card-title { display: block; overflow-wrap: anywhere; }
html, body { overflow-x: hidden; }
