:root {
  color-scheme: light;
  --ink: #24211f;
  --muted: #77716a;
  --line: #e9e4dc;
  --paper: #fffefa;
  --canvas: #f7f5f0;
  --wine: #743d4a;
  --wine-dark: #512832;
  --gold: #b28a53;
  --sage: #65796d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.announcement { padding: 9px 16px; background: var(--wine-dark); color: #fff; text-align: center; font-size: 11px; letter-spacing: .08em; }
.site-header { height: 74px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.96); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.nav-links, .header-actions { display: flex; align-items: center; gap: 24px; }
.nav-links a, .header-actions a, .header-actions button { font-size: 12px; }
.nav-links a:hover, .text-link:hover { color: var(--wine); }
.brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 24px; font-weight: 700; letter-spacing: .13em; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.header-actions { justify-content: flex-end; }
.icon-button { display: inline-flex; gap: 8px; align-items: center; border: 0; padding: 8px 0; background: transparent; cursor: pointer; }
.count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 50%; background: var(--wine); color: #fff; font-size: 10px; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 370px; overflow: hidden; margin-top: 24px; background: #f3eee8; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 7vw, 88px); }
.eyebrow { margin: 0 0 13px; color: var(--wine); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 470px; margin-bottom: 13px; font-family: var(--serif); font-size: clamp(36px, 4vw, 54px); font-weight: 500; line-height: 1.1; }
.hero-copy > p:not(.eyebrow) { max-width: 360px; margin-bottom: 24px; color: #625b55; font-size: 13px; line-height: 1.8; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--wine); padding: 0 19px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); background: var(--wine-dark); }
.button.secondary { background: transparent; color: var(--wine); }
.button.secondary:hover { background: #f7eef0; }
.button.ink { border-color: var(--ink); background: var(--ink); }
.button.danger { border-color: #b44b4b; background: #b44b4b; }
.button.small { min-height: 34px; padding-inline: 13px; font-size: 10px; }
.hero-image { width: min(100%, 340px); min-height: 0; aspect-ratio: 2 / 3; justify-self: center; position: relative; background: #e4d5ca; }
.hero-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; object-position: center; }
.hero-note { position: absolute; right: 18px; bottom: 18px; padding: 11px 15px; background: rgba(255,254,250,.94); font-family: var(--serif); font-size: 14px; }
.hero-carousel-controls { position: absolute; z-index: 2; bottom: 17px; left: 17px; display: flex; align-items: center; gap: 7px; }
.hero-dots { display: flex; align-items: center; gap: 5px; padding: 0 5px; }
.hero-dot { width: 7px; height: 7px; border: 0; border-radius: 50%; padding: 0; background: #fff9; cursor: pointer; }
.hero-dot.active { width: 18px; border-radius: 5px; background: #fff; }
.section { padding: 54px 0 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.category-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.category-tile { position: relative; min-height: 0; aspect-ratio: 2 / 3; overflow: hidden; border: 0; padding: 0; background: #ebe4dc; cursor: pointer; text-align: left; }
.category-tile img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.category-tile:hover img { transform: none; }
.category-tile.active { outline: 2px solid var(--wine); outline-offset: 2px; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); margin: 45px 0 16px; border-block: 1px solid var(--line); }
.benefit { display: flex; justify-content: center; align-items: center; gap: 11px; min-height: 82px; padding: 12px; border-right: 1px solid var(--line); }
.benefit:last-child { border: 0; }
.benefit-mark { color: var(--wine); font-size: 21px; }
.benefit strong { display: block; font-size: 11px; }
.benefit span:last-child { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.products-section { padding: 35px 0 72px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); padding: 8px 13px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.filter.active, .filter:hover { border-color: var(--wine); color: var(--wine); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.product-card { min-width: 0; cursor: pointer; }
.product-image { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #f0ece5; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-card:hover .product-image img { transform: none; }
.badge { position: absolute; top: 10px; left: 10px; padding: 6px 8px; background: var(--paper); color: var(--wine); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.product-info { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding-top: 12px; }
.product-info h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.product-info p { margin: 0; color: var(--muted); font-size: 10px; }
.price { white-space: nowrap; font-size: 12px; font-weight: 700; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 6vw, 74px); padding: 42px 0 76px; }
.detail-image { width: 100%; height: auto; align-self: start; object-fit: contain; background: transparent; }
.detail-image-placeholder { width: 100%; max-height: 650px; aspect-ratio: 1 / 1.05; display: grid; place-items: center; background: #f0ece5; color: var(--muted); font-size: 11px; }
.detail-copy { align-self: center; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: 11px; }
.detail-copy h1 { margin-bottom: 9px; font-family: var(--serif); font-size: clamp(31px, 4vw, 45px); font-weight: 500; }
.detail-price { margin: 20px 0; font-size: 20px; font-weight: 600; }
.detail-description { max-width: 440px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.detail-meta { margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 2; }
.footer { padding: 60px 0 32px; background: #f5f1eb; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer p { margin: 0; color: var(--muted); font-size: 10px; }
.footer .footer-tagline { max-width: 340px; margin-top: 12px; color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; }
.footer .brand { justify-content: flex-start; gap: 8px; font-size: 16px; }
.footer .brand img { width: 38px; height: 38px; }
.footer-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer .footer-credit { margin: 0; color: var(--muted); font-size: 10px; }
.footer-credit a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.admin-shell { min-height: calc(100vh - 120px); padding: 38px 0 70px; background: var(--canvas); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.admin-top h1 { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 500; }
.admin-layout { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.7fr); align-items: start; gap: 22px; }
.panel { border: 1px solid var(--line); padding: 22px; background: var(--paper); }
.panel h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.form-grid { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 10px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 39px; border: 1px solid #ded8cf; border-radius: 0; padding: 9px 10px; background: #fff; color: var(--ink); font-size: 11px; }
.field textarea { min-height: 75px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #b28a5380; border-color: var(--gold); }
.field input[type="file"] { padding: 6px; }
.field input[type="file"]::file-selector-button { min-height: 26px; margin-right: 9px; border: 0; padding: 0 9px; background: #f0ece5; color: var(--ink); font: inherit; cursor: pointer; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.5; }
.image-preview { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); padding: 8px; background: #fbfaf7; color: var(--muted); font-size: 10px; }
.image-preview img { width: 58px; height: 58px; object-fit: contain; background: #f0ece5; }
.form-actions { display: flex; gap: 8px; margin-top: 4px; }
.admin-list { display: grid; gap: 10px; }
.admin-product { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 9px; border-bottom: 1px solid var(--line); }
.admin-product img { width: 64px; height: 64px; object-fit: contain; background: #f0ece5; }
.admin-product strong { display: block; font-size: 12px; }
.admin-product span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-row-actions { display: flex; gap: 7px; }
.admin-row-actions button { border: 0; padding: 7px; background: transparent; color: var(--wine); font-size: 10px; cursor: pointer; }
.admin-note { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.collection-manager { margin-top: 22px; }
.collection-manager-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.collection-manager-heading h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.collection-manager-heading .eyebrow { margin-bottom: 7px; }
.collection-manager-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.collection-manager-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.5fr); align-items: start; gap: 24px; }
.collection-manager-layout > #collection-form { align-self: start; align-content: start; }
.collection-manager-layout #save-collection-button { flex: 0 0 auto; height: 42px; min-height: 42px; align-self: flex-start; }
.collection-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); align-content: start; gap: 10px; }
.collection-admin-item { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.collection-admin-item > img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #f0ece5; }
.collection-admin-info { display: grid; gap: 5px; padding: 10px; }
.collection-admin-info strong { font-size: 11px; }
.collection-admin-info span { color: var(--muted); font-size: 10px; }
.collection-admin-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.collection-admin-actions button { border: 1px solid var(--line); padding: 6px 8px; background: #fff; color: var(--wine); font-size: 10px; cursor: pointer; }
.collection-admin-actions button:hover { border-color: var(--wine); background: #f7eef0; }
.cart-overlay { position: fixed; z-index: 20; inset: 0; display: flex; justify-content: flex-end; background: rgba(34,27,25,.4); }
.cart-drawer { width: min(460px, 100%); height: 100%; overflow: auto; padding: 25px; background: var(--paper); box-shadow: -8px 0 30px #00000018; animation: slide-in .22s ease-out; }
@keyframes slide-in { from { transform: translateX(20px); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.close-button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 19px; }
.cart-lines { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 82px; object-fit: contain; background: #f0ece5; }
.cart-line h3 { margin: 2px 0 6px; font-family: var(--serif); font-size: 14px; font-weight: 500; }
.cart-line p { margin: 0; color: var(--muted); font-size: 11px; }
.quantity { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.quantity button { width: 23px; height: 23px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; margin: 21px 0; font-size: 13px; font-weight: 700; }
.checkout-form { display: grid; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout-form h3 { margin: 0 0 2px; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.checkout-form .field input, .checkout-form .field select { min-height: 37px; }
.checkout-submit { width: 100%; margin-top: 5px; }
.empty-state { padding: 36px 15px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; }
.success-message { position: fixed; z-index: 30; right: 20px; bottom: 20px; width: min(390px, calc(100% - 40px)); padding: 18px; border-left: 4px solid var(--sage); background: white; box-shadow: 0 8px 35px #241b1730; animation: appear .25s ease-out; }
.success-message strong { display: block; margin-bottom: 6px; color: var(--sage); font-size: 12px; }
.success-message p { margin: 0; font-size: 12px; line-height: 1.6; }
.notice-link { display: inline-block; margin-top: 9px; color: var(--wine); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.notice-confirm { display: block; min-height: 34px; margin-top: 12px; border: 1px solid var(--wine); padding: 0 11px; background: transparent; color: var(--wine); font-size: 10px; font-weight: 700; cursor: pointer; }
.notice-confirm:hover { background: #f7eef0; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 30px, 560px); }
  .site-header { height: auto; min-height: 65px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .brand { grid-column: 1; grid-row: 1; justify-content: flex-start; font-size: 19px; }
  .brand img { width: 38px; height: 38px; }
  .nav-links { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 12px; }
  .header-actions a { font-size: 10px; }
  .icon-button { gap: 5px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; margin-top: 15px; }
  .hero-copy { min-height: 280px; padding: 34px 27px; }
  .hero h1 { font-size: 39px; }
  .hero-image { width: min(100%, 280px); }
  .section { padding-top: 39px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
  .category-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-tile { min-height: 0; }
  .benefits { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
  .benefit { justify-content: flex-start; min-height: 68px; border-bottom: 1px solid var(--line); }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(3), .benefit:nth-child(4) { border-bottom: 0; }
  .products-section { padding-top: 27px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .product-info { gap: 6px; }
  .product-info h3 { font-size: 14px; }
  .price { font-size: 11px; }
  .product-detail { grid-template-columns: 1fr; gap: 22px; padding: 25px 0 55px; }
  .back-link { margin-bottom: 15px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .admin-layout { grid-template-columns: 1fr; }
  .collection-manager-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .collection-manager-layout { grid-template-columns: 1fr; }
  .collection-admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-top { align-items: flex-start; }
  .admin-top h1 { font-size: 26px; }
  .admin-product { grid-template-columns: 54px 1fr; }
  .admin-product img { width: 54px; height: 58px; }
  .admin-row-actions { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}