:root {
  --wine: #471528;
  --wine-deep: #32101e;
  --wine-soft: #6c3247;
  --rose: #ead9dc;
  --rose-light: #f6efee;
  --sand: #efe4da;
  --cream: #fbf7f2;
  --paper: #fffdfa;
  --ink: #1e1519;
  --text: #382d32;
  --muted: #5b4f54;
  --line: #dccfcc;
  --gold: #d8b997;
  --success: #3f7a4f;
  --error: #a42c36;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(58,20,28,.05);
  --shadow: 0 14px 40px rgba(58,20,28,.09);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
:focus-visible { outline: 2px solid var(--wine-soft); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 100; top: -60px; left: 16px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--wine); color: white; font-weight: 600; }
.skip-link:focus { top: 12px; }
h1, h2, h3 { text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--wine-soft); }

/* Shared building blocks */
.eyebrow { display: inline-block; color: var(--wine-soft); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.button { min-height: 50px; padding: 0 26px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1.5px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.button span { transition: transform .2s var(--ease); }
.button:hover span { transform: translateX(3px); }
.button-dark { background: var(--wine); color: white; box-shadow: 0 8px 20px rgba(71,21,40,.18); }
.button-dark:hover { background: var(--wine-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(71,21,40,.24); }
.button-outline { border-color: #d6c4c7; background: transparent; color: var(--wine); }
.button-outline:hover { border-color: var(--wine); background: rgba(71,21,40,.04); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.button-full { width: 100%; }
.text-link { border: 0; background: transparent; color: var(--wine); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Announcement + header */
.announcement { min-height: 36px; padding: 6px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 10px; color: #f9eff0; background: var(--wine); font-size: 13px; letter-spacing: .03em; text-align: center; }
.announcement-extra:first-of-type { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,253,250,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(50,16,30,.06); }
.header-inner { max-width: var(--max); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: block; width: 80px; height: 56px; overflow: hidden; border-radius: 8px; }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 14px; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--wine); background: var(--rose-light); }
.bag-button { position: relative; min-height: 46px; padding: 0 16px 0 14px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; background: white; color: var(--wine); font-size: 15px; font-weight: 600; transition: border-color .2s, background .2s; }
.bag-button:hover { border-color: var(--wine); }
.bag-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.bag-count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--wine); color: white; font-size: 12px; font-weight: 700; }
.bag-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-button { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-button span { width: 22px; height: 2px; border-radius: 2px; background: var(--wine); transition: transform .25s var(--ease), opacity .2s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 15% 20%, #f6ebe6 0%, transparent 55%), linear-gradient(160deg, #f3e9e2 0%, #ecdcd6 100%); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin: 16px 0 18px; color: var(--wine); font-family: var(--serif); font-size: clamp(42px, 5.6vw, 76px); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }
.hero h1 em { display: block; }
.hero-content > p { max-width: 440px; margin: 0 0 30px; color: var(--text); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin: 34px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text); font-size: 14px; font-weight: 500; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; fill: none; stroke: var(--wine-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-media { margin: 0; position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid rgba(71,21,40,.18); border-radius: 22px; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 1312 / 1199; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(50,16,30,.18); }

/* Feature cards */
.features { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--rose-light); }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--wine); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 0 0 6px; color: var(--wine); font-family: var(--serif); font-size: 22px; font-weight: 500; }
.feature-card p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.65; }

/* Shop */
.shop-section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-heading h2, .story-copy h2, .steps-heading h2 { margin: 10px 0 0; color: var(--wine); font-family: var(--serif); font-size: clamp(34px, 4.2vw, 52px); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.section-heading > p { max-width: 320px; margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.shop-toolbar { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.category-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.category-tab { min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: white; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.category-tab:hover { border-color: var(--wine-soft); color: var(--wine); }
.category-tab.active { border-color: var(--wine); background: var(--wine); color: white; }
.search-box { position: relative; flex: 0 1 300px; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search-box input { width: 100%; min-height: 46px; padding: 0 16px 0 44px; border: 1.5px solid var(--line); border-radius: 999px; outline: none; background: white; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.search-box input:focus { border-color: var(--wine-soft); box-shadow: 0 0 0 4px rgba(108,50,71,.1); }
.results-count { min-height: 22px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; animation: card-in .45s var(--ease) both; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.product-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #f0e6e0; }
.product-gallery { position: absolute; inset: 0; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-photo .product-main-image { transform: scale(1.04); }
.product-photo .product-main-image { position: absolute; inset: 0; }
.gallery-thumbs { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: flex; gap: 6px; max-width: calc(100% - 80px); overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.product-photo .gallery-thumb { flex: 0 0 42px; width: 42px; height: 52px; padding: 2px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.85); border-radius: 8px; background: rgba(255,253,250,.9); }
.product-photo .gallery-thumb.selected { border-color: var(--wine); }
.product-photo .gallery-thumb img { border-radius: 5px; }
.gallery-count { position: absolute; z-index: 1; right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,253,250,.92); color: var(--wine); font-size: 12px; font-weight: 600; }
.photo-1 { background: #e7e8e1; }.photo-2 { background: #ece4df; }.photo-3 { background: #ebe9e2; }.photo-4 { background: #e4e9e4; }.photo-5 { background: #e9e0e1; }
.product-photo.image-failed::after { content: "WEAVE BY ELA"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--wine-soft); font-family: var(--serif); font-size: 20px; letter-spacing: .12em; white-space: nowrap; }
.photo-label { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255,253,250,.94); color: var(--wine); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.quick-add { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 50%; background: white; color: var(--wine); font-size: 22px; box-shadow: 0 6px 16px rgba(50,16,30,.16); transition: background .2s, color .2s, transform .2s var(--ease); }
.quick-add:hover { background: var(--wine); color: white; transform: scale(1.06); }
.product-info { padding: 18px 18px 20px; display: flex; flex: 1; flex-direction: column; }
.product-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-title-row h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.25; }
.product-title-row > span { color: var(--wine); font-size: 16px; font-weight: 700; white-space: nowrap; }
.product-info > p { margin: 8px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.product-selects { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-selects label { color: var(--text); font-size: 13px; font-weight: 600; }
.product-selects select { width: 100%; min-height: 44px; margin-top: 6px; padding: 0 36px 0 12px; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23471528' stroke-width='1.8'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center; color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.product-selects select:hover, .product-selects select:focus { border-color: var(--wine-soft); outline: none; }
.add-product { width: 100%; min-height: 48px; margin-top: 14px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--wine); border-radius: 999px; background: var(--wine); color: white; font-size: 15px; font-weight: 600; transition: background .2s, transform .15s; }
.add-product:hover { background: var(--wine-deep); }
.add-product:active, .quick-add:active { transform: scale(.97); }
.add-product.added { border-color: var(--success); background: var(--success); }
.loading-card, .empty-state { grid-column: 1/-1; padding: 56px 16px; color: var(--muted); text-align: center; font-size: 16px; }
.empty-state .text-link { margin-top: 10px; }
.skeleton { pointer-events: none; animation: none; }
.skeleton .product-photo, .skeleton .product-info span { background: linear-gradient(90deg, #f3ece8 25%, #faf5f2 50%, #f3ece8 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton .product-info { gap: 10px; }
.skeleton .product-info span { display: block; height: 16px; border-radius: 6px; }
.skeleton .product-info span:last-child { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* How to order */
.steps-section { padding: clamp(56px, 8vw, 96px) var(--gutter); background: var(--cream); border-top: 1px solid var(--line); }
.steps-heading { max-width: var(--max); margin: 0 auto 36px; text-align: center; }
.steps-list { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps-list li { padding: 28px 24px; border-radius: var(--radius); background: white; border: 1px solid var(--line); text-align: center; }
.step-number { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: white; font-family: var(--serif); font-size: 21px; }
.steps-list h3 { margin: 0 0 6px; color: var(--wine); font-family: var(--serif); font-size: 21px; font-weight: 500; }
.steps-list p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }

/* Story */
.story-section { padding: clamp(56px, 8vw, 100px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 8vw, 110px); background: var(--rose-light); }
.story-monogram { position: relative; display: flex; width: min(340px, 100%); aspect-ratio: 1; justify-content: center; align-items: center; justify-self: end; border: 1px solid #d8bfc2; border-radius: 50%; color: var(--wine); font-family: var(--serif); font-size: clamp(72px, 10vw, 130px); letter-spacing: -.12em; }
.story-monogram::before { position: absolute; inset: 16px; border: 1px solid #d8bfc2; border-radius: 50%; content: ""; }
.story-monogram span { position: absolute; right: 18%; top: 18%; color: #aa787d; font-family: var(--sans); font-size: 20px; letter-spacing: 0; }
.story-copy { max-width: 500px; }
.story-copy h2 { margin-top: 12px; }
.story-copy > p { margin: 20px 0 28px; color: var(--text); font-size: 17px; line-height: 1.8; }

/* Footer */
.site-footer { padding: clamp(44px, 6vw, 64px) var(--gutter) 0; background: var(--wine-deep); color: #e7d8dc; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding-bottom: 36px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-brand { display: inline-block; font-family: var(--serif); font-size: 24px; letter-spacing: .08em; color: white; }
.footer-brand span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.footer-about p { max-width: 300px; margin: 14px 0 0; color: #c9b5bb; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-links h3 { margin: 0 0 8px; color: white; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-links a { padding: 6px 0; color: #d5c4c9; font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-admin { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid rgba(255,255,255,.12); color: #b9a4ab; font-size: 13px; }

/* Mobile floating bag bar */
.mobile-bag-bar { display: none; }

/* Overlays: bag + checkout */
.overlay { position: fixed; z-index: 50; inset: 0; display: flex; justify-content: flex-end; background: rgba(32,18,23,.5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.open { opacity: 1; visibility: visible; }
.overlay-center { justify-content: center; align-items: center; padding: 20px; }
.side-panel { width: min(460px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 50px rgba(32,18,23,.15); transform: translateX(100%); transition: transform .35s var(--ease); }
.overlay.open .side-panel { transform: translateX(0); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 4px 0 0; color: var(--wine); font-family: var(--serif); font-size: 28px; font-weight: 400; }
.panel-heading h2 span { color: var(--muted); font-family: var(--sans); font-size: 15px; }
.icon-button { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: white; color: var(--wine); font-size: 24px; line-height: 1; transition: border-color .2s, background .2s; }
.icon-button:hover { border-color: var(--wine); background: var(--rose-light); }
.cart-items { flex: 1; overflow: auto; padding: 0 26px; overscroll-behavior: contain; }
.empty-bag { max-width: 300px; margin: 80px auto; text-align: center; }
.empty-bag > span { color: #b8878c; font-size: 32px; }
.empty-bag h3 { margin: 10px 0; color: var(--wine); font-family: var(--serif); font-size: 23px; font-weight: 400; }
.empty-bag p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.cart-line { padding: 18px 0; display: grid; grid-template-columns: 88px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.cart-line > img { width: 88px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); background: var(--rose-light); }
.cart-line-info h3 { margin: 2px 0 4px; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.3; }
.cart-line-info p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.cart-line-info > strong { color: var(--wine); font-size: 16px; font-weight: 700; }
.quantity-control { margin-top: 10px; display: flex; align-items: center; gap: 4px; }
.quantity-control button[data-quantity] { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: white; color: var(--wine); font-size: 18px; transition: border-color .2s; }
.quantity-control button[data-quantity]:hover { border-color: var(--wine); }
.quantity-control > span { min-width: 32px; text-align: center; font-size: 16px; font-weight: 600; }
.quantity-control .remove-item { margin-left: auto; min-height: 38px; padding: 0 4px; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.quantity-control .remove-item:hover { color: var(--error); }
.cart-bottom { padding: 18px 26px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; }
.cart-subtotal, .summary-total { display: flex; justify-content: space-between; align-items: center; }
.cart-subtotal span, .summary-total span { font-size: 16px; font-weight: 600; }
.cart-subtotal strong, .summary-total strong { color: var(--wine); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.cart-bottom > p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.checkout-dialog { width: min(980px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; border-radius: 20px; background: var(--paper); box-shadow: 0 24px 70px rgba(36,24,28,.25); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.overlay.open .checkout-dialog { transform: none; }
.checkout-dialog .panel-heading { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.checkout-layout { padding: 26px; display: grid; grid-template-columns: 1.35fr .85fr; gap: 32px; }
.checkout-form h3, .checkout-summary h3, .product-form h3 { margin: 0 0 16px; color: var(--wine); font-family: var(--serif); font-size: 21px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label, .checkout-form > label:not(.payment-option), .product-form label, .admin-login label { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.form-grid label > input, .form-grid label > textarea, .product-form label > input, .admin-login input { width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); outline: none; background: white; color: var(--ink); font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.form-grid label > input:focus, .form-grid label > textarea:focus, .product-form label > input:focus, .admin-login input:focus { border-color: var(--wine-soft); box-shadow: 0 0 0 4px rgba(108,50,71,.1); }
.form-grid label > input:user-invalid { border-color: var(--error); }
.form-grid textarea { resize: vertical; }
.span-two { grid-column: 1/-1; }
.optional { color: var(--muted); font-weight: 400; }
.payment-heading { margin-top: 28px !important; margin-bottom: 10px !important; }
.payment-option { position: relative; min-height: 64px; margin-top: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: white; cursor: pointer; transition: border-color .2s, background .2s; }
.payment-option:has(input:checked) { border-color: var(--wine-soft); background: #fcf6f5; }
.payment-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.payment-option:has(input:focus-visible) { outline: 2px solid var(--wine-soft); outline-offset: 2px; }
.payment-option > input { position: absolute; opacity: 0; }
.payment-option > span:nth-of-type(1) { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.payment-option strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.payment-option small { color: var(--muted); font-size: 14px; }
.radio-mark { width: 22px; height: 22px; border: 1.5px solid #c7b8b9; border-radius: 50%; transition: border .2s; }
.payment-option input:checked ~ .radio-mark { border: 7px solid var(--wine-soft); }
.bank-details { margin-top: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--rose-light); }
.bank-details > p { margin: 0 0 8px; color: var(--text); font-size: 14px; line-height: 1.6; }
.bank-details > div { padding: 8px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e4d7d8; font-size: 14px; }
.bank-details > div span { color: var(--muted); }
.bank-details > div strong { text-align: right; overflow-wrap: anywhere; }
.bank-details .bank-unavailable { color: #82434e; }
.receipt-field { margin-top: 12px; padding: 14px 16px; border: 1.5px dashed #c7b3b5; border-radius: var(--radius-sm); }
.receipt-field input { display: block; max-width: 100%; margin-top: 10px; color: var(--muted); font-size: 14px; }
.receipt-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 400; }
.form-error { margin-top: 10px; color: var(--error); font-size: 14px; line-height: 1.5; }
.form-error:empty { display: none; }
.submit-order { margin-top: 16px; }
.secure-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.checkout-summary { align-self: start; position: sticky; top: 90px; padding: 20px; border-radius: var(--radius); background: var(--rose-light); }
.checkout-summary h3 { margin-bottom: 6px; }
.summary-item { padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e3d7d7; font-size: 15px; }
.summary-item > div { display: flex; flex-direction: column; gap: 2px; }
.summary-item strong { font-weight: 600; }
.summary-item small { color: var(--muted); font-size: 13px; }
.summary-item > span { color: var(--ink); font-weight: 600; white-space: nowrap; }
.summary-total { margin-top: 16px; }
.checkout-summary > p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.toast, .admin-toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; max-width: min(420px, calc(100% - 32px)); padding: 14px 20px; border-radius: 12px; background: var(--wine-deep); color: white; box-shadow: 0 12px 30px rgba(36,24,28,.25); font-size: 15px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.toast.visible, .admin-toast.visible { opacity: 1; transform: translateY(0); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* Admin portal */
.admin-body { min-height: 100vh; background: #faf7f4; }
.admin-header { height: 78px; padding: 0 7%; display: flex; justify-content: space-between; align-items: center; background: var(--wine); color: white; }
.admin-brand { font-family: var(--serif); font-size: 18px; letter-spacing: .09em; }
.admin-brand span { display: block; margin-top: 3px; font-family: var(--sans); font-size: 8px; letter-spacing: .27em; }
.admin-back { color: #e5d5d9; font-size: 10px; }
.admin-main { min-height: calc(100vh - 130px); max-width: 1100px; margin: 0 auto; padding: 65px 30px 90px; }
.admin-login { width: min(420px, 100%); margin: 40px auto; padding: 38px; background: white; box-shadow: 0 9px 40px #34121c0a; }
.admin-login h1, .admin-welcome h1 { margin: 13px 0 12px; color: var(--wine); font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1.15; }
.admin-login > p, .admin-welcome p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.admin-login form { margin-top: 28px; }
.admin-login input { display: block; }
.admin-login .button { margin-top: 12px; }
.admin-welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-welcome h1 { font-size: 44px; }
.admin-welcome p { margin-top: 0; }
.admin-stats { margin: 34px 0 35px; display: grid; grid-template-columns: repeat(3,1fr); background: white; border: 1px solid var(--line); }
.admin-stats > div { padding: 20px 25px; display: flex; flex-direction: column; gap: 9px; border-right: 1px solid var(--line); }
.admin-stats > div:last-child { border-right: 0; }
.admin-stats span { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.admin-stats strong { color: var(--wine); font-family: var(--serif); font-size: 25px; font-weight: 500; }
.admin-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.admin-tab { padding: 13px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; }
.admin-tab.active { border-color: var(--wine); color: var(--wine); }
.admin-content { padding: 28px 0; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.admin-section-heading h2 { margin: 8px 0 0; color: var(--wine); font-family: var(--serif); font-size: 28px; font-weight: 400; }
.refresh-button { min-height: 38px; }
.orders-list { display: grid; gap: 14px; }
.order-card { padding: 21px 23px; background: white; border: 1px solid var(--line); }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.order-top h3 { margin: 7px 0 4px; color: var(--wine); font-family: var(--serif); font-size: 20px; font-weight: 500; }
.order-date { color: var(--muted); font-size: 9px; }
.order-total { display: flex; flex-direction: column; align-items: end; gap: 9px; }
.order-total > strong { color: var(--wine); font-family: var(--serif); font-size: 19px; font-weight: 500; }
.status-pill { padding: 6px 9px; background: #f1ece7; color: #685b55; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.status-pending { background: #fff1d7; color: #825a16; }.status-approved { background: #e4f1e8; color: #326a41; }.status-rejected { background: #f8e4e3; color: #9b3c3b; }
.order-info { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #685e60; font-size: 9px; }
.order-info a { text-decoration: underline; text-underline-offset: 2px; }
.receipt-check { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #fff6e3; border: 1px solid #f0dcaa; color: #6b4e12; font-size: 14px; line-height: 1.55; }
.order-details { border-top: 1px solid var(--line); color: var(--muted); }
.order-details summary { padding: 12px 0; cursor: pointer; font-size: 9px; }
.order-details-body { color: #5f5557; font-size: 9px; }
.order-details-body ul { padding: 0; list-style: none; }
.order-details-body li { padding: 8px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #f1eeec; }
.order-details-body li span { display: flex; flex-direction: column; gap: 4px; }
.order-details-body li small { color: var(--muted); font-size: 8px; }
.order-details-body p { line-height: 1.6; }
.order-actions { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.order-actions .button { min-height: 37px; padding: 0 13px; font-size: 9px; }
.button-danger { border: 1px solid #e2c6c5; background: white; color: #913e3c; }
.button-danger:hover { background: #f8e4e3; }
.admin-empty { padding: 65px 20px; background: white; text-align: center; }
.admin-empty > span { color: #b8878c; font-size: 26px; }
.admin-empty h3 { color: var(--wine); font-family: var(--serif); font-size: 22px; font-weight: 400; }
.admin-empty p { color: var(--muted); font-size: 10px; }
.product-form { max-width: 760px; margin: 0 0 37px; padding: 23px; background: white; border: 1px solid var(--line); }
.product-form .button { margin-top: 12px; }
.color-upload-builder { padding-top: 2px; }
.upload-heading { color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.color-upload-builder > p { max-width: 600px; margin: 7px 0 13px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.color-image-groups { display: grid; gap: 11px; }
.color-image-group { padding: 13px; border: 1px solid var(--line); background: #fffdfb; }
.color-image-group-heading { margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; color: var(--wine); font-size: 10px; }
.color-image-group-heading > span { color: var(--muted); font-size: 9px; }
.image-dropzone { position: relative; min-height: 82px; padding: 13px; display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 11px; border: 1px dashed #c8b6b8; background: #fcf8f5; cursor: pointer; }
.image-dropzone:hover, .image-dropzone.has-files { border-color: #8c5865; background: #faf2f0; }
.image-drop-icon { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #efe3e3; color: var(--wine); font-size: 17px; }
.image-drop-copy { color: var(--wine); font-size: 9px; }
.image-drop-copy strong { font-weight: 700; }
.image-drop-meta { width: 100%; padding-left: 39px; color: var(--muted); font-size: 8px; }
.image-dropzone input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.image-previews { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.image-preview-tile { width: 49px; height: 57px; overflow: hidden; border: 1px solid var(--line); background: var(--rose-light); }
.image-preview-tile img { width: 100%; height: 100%; object-fit: cover; }
.upload-empty { padding: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 9px; }
.admin-product-heading { margin: 18px 0 9px; }
.admin-product-row { min-height: 85px; padding: 11px 15px; display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px; background: white; border-bottom: 1px solid var(--line); }
.admin-product-row img { width: 56px; height: 63px; object-fit: cover; background: var(--rose-light); }
.admin-product-row h3 { margin: 0 0 5px; color: var(--wine); font-family: var(--serif); font-size: 15px; font-weight: 500; }
.admin-product-row p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.product-state { color: #4e7956; font-size: 9px; }
.product-archived { opacity: .55; }
.archive-button { border: 0; background: transparent; color: #91413d; font-size: 9px; text-decoration: underline; }
.admin-footer { min-height: 52px; padding: 15px 7%; display: flex; justify-content: space-between; color: #bfaeb3; background: var(--wine-deep); font-size: 8px; letter-spacing: .11em; }

/* Responsive: tablet */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .menu-button { display: flex; justify-self: start; margin-left: -10px; }
  .brand { width: 70px; height: 50px; }
  .bag-button { justify-self: end; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; padding: 8px var(--gutter) 18px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(50,16,30,.1); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .main-nav.nav-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { min-height: 54px; padding: 0 4px; display: flex; align-items: center; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a:hover { background: transparent; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 620px; margin: 0 auto; }
  .hero-content > p { margin-right: auto; margin-left: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-media { max-width: 640px; width: 100%; margin: 0 auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-heading > p { max-width: 520px; }
  .shop-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .search-box { flex-basis: auto; }
  .category-tabs { margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { scroll-snap-align: start; }
  .story-section { grid-template-columns: 1fr; text-align: center; }
  .story-monogram { justify-self: center; width: min(260px, 70%); }
  .story-copy { margin: 0 auto; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; grid-row: 1; }
}

/* Responsive: large phones */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px; flex-direction: row; align-items: flex-start; }
  .feature-card h3 { font-size: 20px; }
  .steps-list { grid-template-columns: 1fr; gap: 12px; }
  .steps-list li { padding: 20px; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; }
  .step-number { grid-row: span 2; margin: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-about { grid-column: 1 / -1; }
}

/* Responsive: phones */
@media (max-width: 560px) {
  .announcement { font-size: 12px; }
  .announcement-extra { display: none; }
  .bag-button { padding: 0 12px; }
  .bag-label { display: none; }
  .hero-inner { padding-top: 32px; padding-bottom: 40px; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { margin-top: 24px; gap: 8px 16px; font-size: 13px; }
  .hero-media::before { inset: 10px -8px -10px 8px; border-radius: 18px; }
  .hero-media img { border-radius: 18px; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-title-row h3 { font-size: 21px; }
  .story-copy .button { width: 100%; }
  .toast { right: 16px; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: none; text-align: center; }
  body.has-bag-bar .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.has-bag-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mobile-bag-bar { position: fixed; z-index: 40; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; min-height: 62px; padding: 10px 12px 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-radius: 999px; background: var(--wine); color: white; box-shadow: 0 14px 34px rgba(50,16,30,.35); text-align: left; animation: bar-in .35s var(--ease); }
  .mobile-bag-bar > span:first-child { display: flex; flex-direction: column; line-height: 1.25; }
  .mobile-bag-bar strong { font-size: 15px; }
  .mobile-bag-bar small { color: #f0dde2; font-size: 14px; }
  .mobile-bag-cta { min-height: 42px; padding: 0 18px; display: flex; align-items: center; gap: 8px; border-radius: 999px; background: white; color: var(--wine); font-size: 15px; font-weight: 700; }
  .overlay.open ~ .mobile-bag-bar, .no-scroll .mobile-bag-bar { display: none; }
  .side-panel { width: 100%; }
  .panel-heading { padding: 16px 16px 14px; }
  .panel-heading h2 { font-size: 24px; }
  .cart-items { padding: 0 16px; }
  .cart-bottom { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
  .overlay-center { padding: 0; align-items: stretch; }
  .checkout-dialog { width: 100%; max-height: none; height: 100%; border-radius: 0; transform: translateY(24px); }
  .checkout-layout { padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); gap: 22px; }
  .checkout-summary { padding: 16px; }
  .checkout-summary #checkout-items { max-height: 180px; overflow: auto; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-bottom { flex-direction: column; }
}

@media (min-width: 561px) {
  .mobile-bag-bar { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 540px) {
  .admin-main { padding: 36px 17px 60px; }
  .admin-login { margin: 15px auto; padding: 27px 22px; }
  .admin-login h1 { font-size: 34px; }
  .admin-welcome { align-items: flex-start; }
  .admin-welcome h1 { font-size: 34px; }
  .admin-stats > div { padding: 13px 9px; }
  .admin-stats span { font-size: 7px; line-height: 1.4; }
  .admin-stats strong { font-size: 19px; }
  .admin-section-heading h2 { font-size: 24px; }
  .order-card { padding: 16px 13px; }
  .order-info { gap: 9px 14px; }
  .admin-product-row { grid-template-columns: 44px 1fr auto; gap: 9px; padding: 10px 8px; }
  .admin-product-row img { width: 44px; height: 54px; }
  .admin-product-row h3 { font-size: 13px; }
  .admin-product-row p { font-size: 8px; }
  .product-state { display: none; }
  .archive-button { font-size: 8px; }
  .product-form { padding: 17px 13px; }
  .admin-footer { padding: 14px 5%; }
}

/* ===== Visual polish: contrast, tap targets, readable admin ===== */
:root { --accent: #b5532f; --shadow-sm: 0 2px 12px rgba(58,20,28,.08); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
body { font-size: 17px; }
.announcement { background: linear-gradient(90deg, var(--wine-deep), var(--wine), var(--wine-deep)); font-weight: 500; }
.button { min-height: 52px; font-size: 16px; }
.button-dark { background: linear-gradient(135deg, var(--wine-soft), var(--wine) 60%); }
.button-outline { border-color: var(--wine); border-width: 2px; }
.hero { background: radial-gradient(ellipse at 10% 10%, #fff3ec 0%, transparent 55%), linear-gradient(160deg, #f2e2d8 0%, #e6cdc9 100%); }
.hero h1 { color: var(--wine-deep); }
.eyebrow { color: var(--accent); }
.main-nav a { color: var(--ink); font-weight: 600; }
.bag-button { border-color: var(--wine); border-width: 2px; }
.feature-card, .product-card, .steps-list li { border-color: #d3c4c1; }
.product-card:hover { border-color: var(--wine-soft); }
.product-title-row > span { background: var(--wine); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 14px; }
.product-info > p { color: var(--muted); font-size: 15px; }
.product-selects select, .search-box input, .category-tab { border-width: 2px; border-color: #c9b8b6; }
.product-selects select { min-height: 48px; }
.category-tab { min-height: 46px; color: var(--ink); font-weight: 600; }
.category-tab.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.add-product { min-height: 52px; font-size: 16px; background: linear-gradient(135deg, var(--wine-soft), var(--wine) 60%); }
.quick-add { width: 48px; height: 48px; }
.form-grid label > input, .form-grid label > textarea, .product-form label > input, .admin-login input { border-width: 2px; border-color: #c9b8b6; }
.payment-option { border-width: 2px; border-color: #c9b8b6; }
.payment-option:has(input:checked) { border-color: var(--wine); background: #f8ecec; }
.site-footer a, .footer-about p { color: #f0e2e6; }
.footer-bottom { color: #dccbd0; }

/* Admin portal: readable sizes and strong contrast */
.admin-body { background: #f5efea; font-size: 16px; }
.admin-header { height: 72px; padding: 0 var(--gutter); }
.admin-brand { font-size: 20px; }
.admin-brand span { font-size: 10px; }
.admin-back { color: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.admin-main { padding: 40px var(--gutter) 80px; }
.admin-login { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.admin-login > p, .admin-welcome p { color: var(--muted); font-size: 15px; }
.admin-welcome h1 { font-size: clamp(30px, 5vw, 44px); }
.admin-stats { gap: 0; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.admin-stats span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.admin-stats strong { font-size: clamp(20px, 3.5vw, 28px); }
.admin-tabs { gap: 8px; }
.admin-tab { min-height: 48px; padding: 0 18px; font-size: 16px; font-weight: 700; color: var(--muted); }
.admin-tab.active { color: var(--wine); border-bottom-width: 3px; }
.order-card, .product-form { border-radius: var(--radius); border: 1.5px solid #d3c4c1; box-shadow: var(--shadow-sm); }
.order-date { font-size: 14px; color: var(--muted); }
.status-pill { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending { background: #ffe7b3; color: #6b4300; }
.status-approved { background: #cfe9d7; color: #1f5430; }
.status-rejected { background: #f6d2d0; color: #86272a; }
.order-info { font-size: 15px; color: var(--ink); gap: 8px 20px; }
.order-details summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--wine); }
.order-details-body { font-size: 15px; color: var(--ink); }
.order-details-body li small { font-size: 13px; color: var(--muted); }
.order-actions .button { min-height: 46px; padding: 0 20px; font-size: 15px; }
.button-danger { border: 2px solid #a42c36; color: #a42c36; }
.button-danger:hover { background: #a42c36; color: #fff; }
.admin-empty { border-radius: var(--radius); }
.admin-empty p { font-size: 15px; }
.product-form { max-width: 820px; padding: 26px; }
.upload-heading { font-size: 16px; }
.color-upload-builder > p { font-size: 14px; }
.color-image-group { border-radius: var(--radius-sm); border: 1.5px solid #d3c4c1; }
.color-image-group-heading { font-size: 16px; }
.color-image-group-heading > span { font-size: 14px; }
.image-dropzone { min-height: 96px; border: 2px dashed #a98790; border-radius: var(--radius-sm); }
.image-drop-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 22px; }
.image-drop-copy { font-size: 15px; font-weight: 600; }
.image-drop-meta { padding-left: 47px; font-size: 13px; color: var(--muted); }
.image-preview-tile { width: 64px; height: 76px; border-radius: 8px; }
.upload-empty { font-size: 14px; border-radius: var(--radius-sm); }
.admin-product-row { min-height: 96px; border-radius: var(--radius-sm); margin-bottom: 8px; border: 1.5px solid var(--line); }
.admin-product-row img { width: 64px; height: 76px; border-radius: 8px; }
.admin-product-row h3 { font-size: 18px; }
.admin-product-row p { font-size: 14px; color: var(--muted); }
.product-state { padding: 4px 10px; border-radius: 999px; background: #cfe9d7; color: #1f5430; font-size: 12px; font-weight: 700; }
.archive-button { min-height: 44px; padding: 0 8px; color: #a42c36; font-size: 14px; font-weight: 600; }
.admin-footer { font-size: 12px; color: #e3d3d8; }
.admin-toast { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }

@media (max-width: 540px) {
  body { font-size: 16px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stats > div { flex-direction: row; justify-content: space-between; align-items: center; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-stats > div:last-child { border-bottom: 0; }
  .admin-stats span { font-size: 12px; }
  .admin-stats strong { font-size: 20px; }
  .admin-tab { flex: 1; padding: 0 8px; }
  .order-top { flex-direction: column; }
  .order-total { align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; align-items: center; }
  .order-actions .button { flex: 1 1 100%; }
  .admin-product-row { grid-template-columns: 56px 1fr auto; }
  .admin-product-row img { width: 56px; height: 68px; }
  .admin-product-row h3 { font-size: 16px; }
  .admin-product-row p { font-size: 13px; }
  .product-state { display: inline-block; grid-column: 2; justify-self: start; }
  .archive-button { font-size: 14px; }
  .admin-welcome { flex-direction: column; align-items: stretch; }
  .admin-welcome .button { width: 100%; }
  .image-preview-tile { width: 56px; height: 66px; }
}

/* ===== Fresh modern look ===== */
:root {
  --wine: #4a1236; --wine-deep: #2b0a20; --wine-soft: #7a2a5a;
  --coral: #ff6a4d; --coral-deep: #d63f21; --blush: #fff1ee; --lilac: #f4eaf5;
  --paper: #fffaf8; --cream: #fff3ef; --rose-light: #fdeceb;
  --serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(74,18,54,.16);
}
body { background: var(--paper); }
h1, h2, h3, .feature-card h3, .steps-list h3 { font-family: var(--serif); letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; font-weight: 800; background: linear-gradient(90deg, var(--coral-deep), var(--wine-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--coral-deep); font-weight: 800; }
.announcement { background: var(--wine-deep); }
.site-header { background: rgba(255,250,248,.85); }
.main-nav a:hover { background: var(--blush); color: var(--coral-deep); }
.bag-button { border-color: var(--wine); background: var(--wine); color: #fff; }
.bag-button:hover { background: var(--wine-deep); }
.bag-count { background: var(--coral); color: var(--wine-deep); }
.button, .add-product { font-weight: 700; }
.button-dark, .add-product { background: var(--wine); border-color: var(--wine); }
.button-dark:hover, .add-product:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.button-outline { border-color: var(--wine); color: var(--wine); }
.button-outline:hover { background: var(--wine); color: #fff; }
.add-product.added { background: var(--success); border-color: var(--success); }

/* Hero */
.hero { background: radial-gradient(circle at 85% 15%, rgba(255,106,77,.35), transparent 45%), radial-gradient(circle at 5% 90%, rgba(122,42,90,.7), transparent 50%), var(--wine-deep); color: #fff; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(42px, 6vw, 80px); letter-spacing: -.045em; line-height: 1; }
.hero h1 em { background: linear-gradient(90deg, #ff9a7e, #ffd0c2); -webkit-background-clip: text; background-clip: text; }
.hero .eyebrow { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #ffd0c2; }
.hero-content > p { color: #f6e3ea; }
.hero .button-dark { background: var(--coral); border-color: var(--coral); color: var(--wine-deep); }
.hero .button-dark:hover { background: #fff; border-color: #fff; }
.hero .button-outline { border-color: #fff; color: #fff; }
.hero .button-outline:hover { background: #fff; color: var(--wine-deep); }
.hero-trust { color: #fff; }
.hero-trust svg { stroke: #ffb4a0; }
.hero-media::before { border: 0; background: linear-gradient(135deg, var(--coral), var(--wine-soft)); opacity: .55; border-radius: 36px; }
.hero-media img { border-radius: 32px; box-shadow: 0 40px 80px rgba(0,0,0,.45); }

/* Cards */
.feature-card { border: 0; background: #fff; border-radius: var(--radius); }
.feature-icon { background: var(--blush); border-radius: 18px; }
.feature-icon svg { stroke: var(--coral-deep); }
.feature-card h3 { color: var(--wine); font-weight: 700; font-size: 20px; }
.section-heading h2, .story-copy h2, .steps-heading h2 { color: var(--wine-deep); font-family: var(--serif); font-weight: 800; letter-spacing: -.04em; }
.product-card { border: 0; background: #fff; border-radius: 26px; box-shadow: 0 6px 24px rgba(74,18,54,.08); }
.product-card:hover { border: 0; box-shadow: var(--shadow); }
.product-photo { cursor: zoom-in; }
.product-title-row h3 { font-weight: 700; font-size: 19px; }
.product-title-row > span { padding: 0; background: none; color: var(--coral-deep); font-size: 18px; font-weight: 800; }
.photo-label { background: #fff; color: var(--wine); font-weight: 700; }
.quick-view { position: absolute; z-index: 2; right: 12px; top: 46px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--wine-deep); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.quick-view:hover { background: var(--coral-deep); }
.quick-add { background: var(--coral); color: var(--wine-deep); font-weight: 700; }
.quick-add:hover { background: var(--wine); color: #fff; }
.category-tab { background: #fff; }
.category-tab.active { background: var(--wine); color: #fff; }
.steps-section { background: var(--blush); border: 0; }
.steps-list li { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-number { background: var(--coral); color: var(--wine-deep); font-weight: 800; }
.steps-list h3 { color: var(--wine); font-weight: 700; }
.story-section { background: linear-gradient(135deg, var(--lilac), var(--blush)); }
.story-monogram { border-color: var(--wine-soft); color: var(--wine); font-weight: 800; letter-spacing: -.08em; }
.story-monogram::before { border-color: var(--coral); }
.payment-option:has(input:checked) { border-color: var(--coral-deep); background: var(--blush); }
.payment-option input:checked ~ .radio-mark { border-color: var(--coral-deep); }
.checkout-summary { background: var(--blush); }
.admin-header { background: var(--wine-deep); }
.admin-tab.active { border-color: var(--coral-deep); }
.panel-heading h2 { font-weight: 800; }

/* Product preview */
.viewer { position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(20,5,15,.45); transform: translateY(18px) scale(.98); transition: transform .3s var(--ease); overscroll-behavior: contain; }
.overlay.open .viewer { transform: none; }
.viewer-close { position: absolute; z-index: 5; top: 14px; right: 14px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.viewer-media { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--blush); }
.viewer-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px; background: #f0e2de; cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.viewer-stage.zoomed { cursor: zoom-out; touch-action: none; }
.viewer-stage > img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform .35s var(--ease); will-change: transform; pointer-events: none; }
.viewer-stage.zoomed > img { transform: scale(2.6); transition: transform .25s var(--ease); }
.viewer-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--wine-deep); font-size: 28px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.viewer-nav:hover { background: var(--coral); }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-stage.zoomed .viewer-nav { opacity: 0; pointer-events: none; }
.viewer-hint { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 80px); padding: 7px 14px; border-radius: 999px; background: rgba(43,10,32,.82); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.viewer-zoom { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--coral); color: var(--wine-deep); font-size: 22px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.viewer-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.viewer-thumbs button { flex: 0 0 68px; height: 84px; padding: 0; overflow: hidden; border: 3px solid transparent; border-radius: 14px; background: #fff; opacity: .75; }
.viewer-thumbs button.selected { border-color: var(--coral-deep); opacity: 1; }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer-details { padding: clamp(24px, 4vw, 44px); padding-top: 56px; display: flex; flex-direction: column; gap: 18px; }
.viewer-details h2 { margin: 0; color: var(--wine-deep); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.viewer-price { margin: 0; color: var(--coral-deep); font-size: 26px; font-weight: 800; }
.viewer-description { margin: 0; color: var(--text); font-size: 16px; line-height: 1.7; }
.viewer-group { display: flex; flex-direction: column; gap: 10px; }
.viewer-label { color: var(--ink); font-size: 14px; font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 48px; min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #cdbcc4; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.chip i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.chip:hover { border-color: var(--wine); }
.chip.selected { border-color: var(--wine); background: var(--wine); color: #fff; }
.viewer-qty { width: max-content; display: flex; align-items: center; border: 2px solid #cdbcc4; border-radius: 999px; }
.viewer-qty button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: var(--wine); font-size: 20px; }
.viewer-qty span { min-width: 36px; text-align: center; font-weight: 700; }
.viewer-add { min-height: 56px; margin-top: 4px; font-size: 17px; }
.viewer-perks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.viewer-perks li::before { content: "✓ "; color: var(--success); font-weight: 800; }
@media (max-width: 860px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer-stage { aspect-ratio: 1 / 1.1; }
  .viewer-details { padding-top: 24px; }
}
@media (max-width: 560px) {
  #viewer-overlay.overlay-center { padding: 0; align-items: flex-end; }
  .viewer { max-height: 96dvh; border-radius: 28px 28px 0 0; transform: translateY(40px); }
  .viewer-media { padding: 10px; }
  .viewer-details { padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
  .viewer-add { position: sticky; bottom: 0; }
  .quick-view { padding: 0 12px; }
}
