:root {
  --pine: #163A30;
  --pine-deep: #0A2D25;
  --pine-soft: #31564C;
  --wine: #9E1B32;
  --wine-deep: #741024;
  --sage: #A7B7A6;
  --cream: #F2EBDD;
  --ivory: #FAF7F0;
  --paper: #ECE6DB;
  --cocoa: #4A2E2A;
  --ink: #172B24;
  --muted: #68736E;
  --line: rgba(22, 58, 48, .18);
  --brass: #C3A660;
  --serif: Iowan Old Style, Baskerville, 'Times New Roman', serif;
  --sans: Inter, Avenir Next, Avenir, Helvetica Neue, Arial, sans-serif;
}

@font-face {
  font-family: 'Nadya Script';
  src: url('fonts/NadyaScript.otf') format('opentype');
  font-display: swap;
  font-style: italic;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.modal-open, body.order-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.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; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ivory); color: var(--pine); padding: .8rem 1rem; border-radius: 99px; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 108px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 4.5rem); color: white; border-bottom: 1px solid rgba(255,255,255,.15); transition: .3s ease; }
.site-header.scrolled { height: 82px; background: rgba(10,45,37,.97); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.site-header .brand img { width: clamp(210px, 19vw, 285px); height: 88px; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 13px rgba(0,0,0,.38)); transition: width .3s ease, height .3s ease; }
.site-header.scrolled .brand img { width: clamp(180px, 16vw, 235px); height: 68px; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
.site-header nav a { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav-cta { border: 1px solid rgba(255,255,255,.55); border-radius: 99px; padding: .7rem 1rem; transition: background .2s, border-color .2s; }
.nav-cta:hover { background: var(--wine); border-color: var(--wine); }
.nav-order { display: inline-flex; align-items: center; gap: .65rem; min-height: 42px; padding: 0 .55rem 0 1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; background: transparent; color: white; cursor: pointer; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-order span { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 .35rem; border-radius: 99px; background: var(--wine); font-size: .7rem; letter-spacing: 0; }

.hero { position: relative; min-height: min(900px, 100vh); display: grid; align-items: end; overflow: hidden; padding: 10.25rem clamp(1.25rem, 7vw, 7rem) clamp(3.5rem, 8vh, 6rem); color: white; background: var(--pine-deep); }
.hero::before { content: ''; position: absolute; z-index: 1; width: min(34vw, 520px); aspect-ratio: 1; right: -10vw; bottom: -17vw; border-radius: 50%; background: var(--wine); opacity: .72; mix-blend-mode: multiply; }
.hero-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,45,37,.98) 0%, rgba(10,45,37,.82) 43%, rgba(10,45,37,.18) 76%), linear-gradient(0deg, rgba(74,46,42,.58), transparent 58%), url('images/hero.webp') 72% center/cover no-repeat; transform: scale(1.01); }
.hero-backdrop::after { content: ''; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.7) .7px, transparent .7px); background-size: 6px 6px; mix-blend-mode: soft-light; }
.hero-copy { position: relative; z-index: 1; width: min(760px, 78vw); }
.eyebrow { margin: 0 0 1.4rem; font-size: .68rem; line-height: 1.3; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin: 0; max-width: 820px; text-wrap: balance; }
.hero-title-top { color: white; font: 400 clamp(4.2rem, 9vw, 8.2rem)/.76 var(--serif); letter-spacing: -.055em; }
.hero-title-script { position: relative; margin: .14em 0 0 .08em; color: var(--ivory); font: italic 400 clamp(4.5rem, 10vw, 9.2rem)/.72 'Nadya Script', cursive; transform: rotate(0deg); text-shadow: 0 3px 22px rgba(0,0,0,.18); }
.hero-title-script::after { content: ''; position: absolute; left: 4%; right: -7%; bottom: -.07em; height: 5px; border-radius: 99px; background: var(--wine); transform: rotate(0deg); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.hero-ribbon { position: absolute; z-index: 3; top: 132px; right: clamp(1.25rem, 4vw, 4.5rem); display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-radius: 99px; background: rgba(158,27,50,.92); color: white; font-size: .6rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(70,8,24,.22); }
.hero-ribbon i { color: var(--sage); font-style: normal; }
.hero-intro { max-width: 580px; margin: 2.4rem 0 0; color: rgba(255,255,255,.8); font: 400 clamp(1rem, 1.45vw, 1.2rem)/1.7 var(--sans); }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: 99px; text-decoration: none; cursor: pointer; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--wine); color: white; box-shadow: 0 12px 30px rgba(80,9,27,.24); }
.button-light:hover { background: #B31D39; }
.text-link { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.text-link span { margin-left: .4rem; font-size: 1rem; }
.hero-note { position: absolute; right: clamp(1.25rem, 4vw, 4.5rem); bottom: clamp(3rem, 7vh, 5.3rem); z-index: 1; width: 245px; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,.45); display: flex; gap: 1rem; color: rgba(255,255,255,.75); }
.hero-note span { font: italic 1.5rem var(--serif); color: var(--sage); }
.hero-note p { margin: 0; font-size: .72rem; line-height: 1.6; }
.hero-note strong { color: white; }

.collection { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5.5rem); background: var(--ivory); }
.section-heading { display: grid; grid-template-columns: 1.1fr .75fr; gap: 4rem; align-items: end; max-width: 1380px; margin: 0 auto 3.5rem; }
.section-heading .eyebrow { color: var(--wine); }
.section-heading h2, .gifting-copy > h2 { margin: 0; color: var(--pine-deep); font: 400 clamp(3.1rem, 6.3vw, 6rem)/.9 var(--serif); letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 .7rem; max-width: 500px; color: var(--muted); line-height: 1.75; }
.catalog-tools { max-width: 1380px; margin: 0 auto; padding: 1.15rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; border: 1px solid transparent; background: transparent; padding: .65rem .9rem; border-radius: 99px; cursor: pointer; font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filter:hover { border-color: var(--line); }
.filter.active { background: var(--wine); color: white; }
.search { min-width: 260px; display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--pine); }
.search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .84rem; }
.search input::placeholder { color: #88908b; }
.result-count { max-width: 1380px; margin: 2rem auto 1.15rem; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.product-grid { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.3vw, 2.3rem); }
.product-card { min-width: 0; animation: card-in .55s ease both; animation-delay: var(--delay); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }
.card-open { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.card-image { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--paper); }
.card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 68%, rgba(8,39,31,.18)); pointer-events: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.1,1); }
.card-open:hover .card-image img { transform: scale(1.035); }
.card-index, .card-label { position: absolute; z-index: 1; top: 1rem; color: white; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.card-index { left: 1rem; }
.card-label { right: 1rem; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.65); border-radius: 99px; background: rgba(158,27,50,.72); backdrop-filter: blur(6px); }
.card-copy { display: block; padding: 1.2rem .15rem .9rem; }
.card-meta { display: flex; justify-content: space-between; margin-bottom: .6rem; color: var(--wine); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-copy > strong { display: block; color: var(--pine-deep); font: 400 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--serif); }
.card-description { display: block; min-height: 3.6em; margin-top: .65rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-actions button { min-height: 48px; padding: 0 .2rem; border: 0; background: transparent; cursor: pointer; color: var(--pine); font-size: .67rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.card-actions button + button { border-left: 1px solid var(--line); }
.card-actions b { margin-left: .35rem; font-size: .95rem; font-weight: 400; }
.card-add { color: var(--wine) !important; }
.card-actions button:hover { background: var(--cream); }
.empty-state { max-width: 1380px; margin: 2rem auto; padding: 4rem; text-align: center; background: var(--cream); }
.text-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; color: var(--wine); }

.gifting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(520px, .9fr); background: var(--pine); color: white; }
.gifting-visual { position: sticky; top: 0; height: 100vh; min-height: 720px; overflow: hidden; }
.gifting-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,39,31,.35), transparent 55%); }
.gifting-visual img { width: 100%; height: 100%; object-fit: cover; }
.visual-label { position: absolute; left: 2rem; bottom: 2rem; z-index: 1; padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.gifting-copy { padding: clamp(5rem, 9vw, 9rem) clamp(2rem, 6vw, 6.5rem); }
.gifting-copy > .eyebrow { color: var(--sage); }
.gifting-copy > h2 { color: white; }
.gifting-copy > p { margin: 2rem 0 3rem; color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.8; }
.gifting-features { border-top: 1px solid rgba(255,255,255,.2); }
.gifting-features article { display: grid; grid-template-columns: 36px 1fr; column-gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.gifting-features span { grid-row: 1/3; color: var(--sage); font: italic 1.15rem var(--serif); }
.gifting-features h3 { margin: 0; font: 400 1.4rem var(--serif); }
.gifting-features p { margin: .35rem 0 0; color: rgba(255,255,255,.6); font-size: .8rem; line-height: 1.5; }
.contact-panel { margin-top: 5rem; padding: clamp(1.8rem, 4vw, 3rem); color: var(--pine-deep); background: var(--cream); }
.contact-panel .eyebrow { color: var(--wine); }
.contact-panel h3 { margin: 0; font: 400 clamp(2.2rem, 4vw, 3.6rem)/.95 var(--serif); }
.contact-panel > p:not(.eyebrow) { margin: 1.3rem 0; color: #5f6863; line-height: 1.65; }
.contact-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.button-bordeaux { background: var(--wine); color: white; }
.phone-link { color: var(--wine-deep); font-size: .84rem; font-weight: 700; }
.contact-panel address { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(18,60,49,.15); font-size: .75rem; font-style: normal; color: #737b76; }

footer { min-height: 160px; padding: 2rem clamp(1.25rem, 4vw, 4.5rem); background: var(--pine-deep); color: white; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { opacity: .95; }
.footer-brand img { width: 190px; }
footer > p { color: rgba(255,255,255,.55); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.back-top { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: white; cursor: pointer; }

.product-modal { width: min(1020px, calc(100vw - 2rem)); max-height: min(760px, calc(100vh - 2rem)); padding: 0; border: 0; border-radius: 0; background: var(--ivory); color: var(--ink); grid-template-columns: minmax(320px,.85fr) 1fr; overflow: hidden; }
.product-modal[open] { display: grid; animation: modal-in .25s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.99); } }
.product-modal::backdrop { background: rgba(4,25,19,.72); backdrop-filter: blur(8px); }
.modal-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--pine-deep); color: white; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal-image { min-height: 620px; background: var(--paper); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: clamp(2.2rem, 5vw, 4.5rem); overflow-y: auto; }
.modal-content .eyebrow { color: var(--wine); }
.modal-content h2 { margin: 0; color: var(--pine-deep); font: 400 clamp(2.5rem, 5vw, 4.6rem)/.88 var(--serif); letter-spacing: -.04em; }
.modal-lead { margin: 1.5rem 0; color: var(--muted); line-height: 1.7; }
.product-specs { margin: 1.8rem 0; border-top: 1px solid var(--line); }
.product-specs > div { display: grid; grid-template-columns: 110px 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; font-weight: 650; }
.tasting-note { margin-top: 1.8rem; padding: 1.3rem; background: var(--cream); }
.tasting-note span { color: var(--wine); font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.tasting-note p { margin: .55rem 0 0; font: italic 1.1rem/1.45 var(--serif); }
.modal-price { display: grid; grid-template-columns: 1fr auto; align-items: end; margin: 1.7rem 0 0; }
.modal-price span { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.modal-price strong { grid-row: 1/3; grid-column: 2; color: var(--pine); font: 400 2.2rem var(--serif); }
.modal-price small { margin-top: .25rem; color: var(--muted); }
.modal-order { display: grid; grid-template-columns: 1fr auto; gap: .65rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.modal-order label { grid-column: 1/-1; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.modal-order select { min-width: 0; min-height: 50px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font: 650 .78rem var(--sans); }
.modal-order .button { min-height: 50px; }

.mobile-order-bar { display: none; }
.order-overlay { position: fixed; z-index: 59; inset: 0; background: rgba(4,25,19,.64); opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(5px); }
.order-overlay.visible { opacity: 1; }
.order-drawer { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(510px, 100vw); display: flex; flex-direction: column; padding: 0 1.5rem 1.5rem; overflow-y: auto; background: var(--ivory); color: var(--ink); box-shadow: -24px 0 70px rgba(10,45,37,.32); transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.75,.25,1); }
.order-drawer.open { transform: translateX(0); }
.order-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; margin: 0 -1.5rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--line); background: rgba(250,247,240,.97); backdrop-filter: blur(10px); }
.order-header .eyebrow { margin: 0 0 .3rem; color: var(--wine); }
.order-header h2 { margin: 0; color: var(--pine); font: 400 2.4rem/1 var(--serif); }
.order-header > button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--pine); color: white; cursor: pointer; font-size: 1.6rem; }
.order-intro { margin: 1.2rem 0 1rem; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.order-items { border-top: 1px solid var(--line); }
.order-item { position: relative; display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: 1rem 2.2rem 1rem 0; border-bottom: 1px solid var(--line); }
.order-item > img { width: 76px; height: 92px; object-fit: cover; background: var(--paper); }
.order-item-copy h3 { margin: .1rem 0 .25rem; color: var(--pine-deep); font: 400 1.25rem/1.05 var(--serif); }
.order-item-copy > p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.quantity { display: inline-grid; grid-template-columns: 30px 32px 30px; align-items: center; margin-top: .65rem; border: 1px solid var(--line); border-radius: 99px; }
.quantity button { height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.quantity strong { text-align: center; font-size: .72rem; }
.order-remove { position: absolute; right: 0; top: 1rem; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.order-empty { margin: auto 0; padding: 4rem 1rem; text-align: center; }
.order-empty > span { color: var(--wine); font-size: 1.5rem; }
.order-empty h3 { margin: .8rem 0 .5rem; color: var(--pine); font: 400 2rem/1 var(--serif); }
.order-empty p { color: var(--muted); font-size: .82rem; }
.order-form { margin-top: auto; padding-top: 1.3rem; }
.order-form label { display: block; margin-bottom: .5rem; color: var(--pine); font-size: .63rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.order-form textarea { width: 100%; padding: .85rem; border: 1px solid var(--line); border-radius: 5px; outline: 0; resize: vertical; background: white; color: var(--ink); font: .82rem/1.5 var(--sans); }
.order-form textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(158,27,50,.1); }
.order-send { width: 100%; margin-top: .8rem; }
.order-form > p { margin: .75rem 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; text-align: center; }
.catalog-toast { position: fixed; z-index: 70; left: 50%; bottom: 1.5rem; max-width: calc(100vw - 2rem); padding: .8rem 1.1rem; border-radius: 99px; background: var(--pine-deep); color: white; box-shadow: 0 14px 36px rgba(10,45,37,.28); opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .25s ease; font-size: .76rem; text-align: center; }
.catalog-toast.show { opacity: 1; transform: translate(-50%, 0); }

.editor-trigger { position: fixed; z-index: 45; right: 1.25rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: .55rem; min-height: 50px; padding: 0 1.15rem; border: 0; border-radius: 99px; background: var(--wine); color: white; box-shadow: 0 16px 42px rgba(74,16,36,.3); cursor: pointer; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.editor-trigger span { color: var(--cream); font-size: 1rem; }
.editor-panel { position: fixed; z-index: 50; inset: 0 0 0 auto; width: min(480px, 100vw); padding: 0 1.35rem 1.5rem; overflow-y: auto; overscroll-behavior: contain; background: var(--ivory); color: var(--ink); box-shadow: -24px 0 70px rgba(10,45,37,.25); transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.75,.25,1); }
.editor-panel.open { transform: translateX(0); }
.editor-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; margin: 0 -1.35rem; padding: 1.2rem 1.35rem; background: rgba(250,247,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.editor-header small { color: var(--wine); font-size: .62rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.editor-header h2 { margin: .25rem 0 0; font: 400 2rem/1 var(--serif); color: var(--pine); }
.editor-header button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--pine); color: white; cursor: pointer; font-size: 1.6rem; }
.editor-notice { margin: 1.2rem 0; padding: 1rem; border-left: 4px solid var(--wine); background: var(--cream); color: var(--muted); font-size: .78rem; line-height: 1.55; }
.editor-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 1rem; padding: .25rem; border-radius: 99px; background: var(--paper); }
.editor-tabs button { min-height: 40px; border: 0; border-radius: 99px; background: transparent; cursor: pointer; font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.editor-tabs button.active { background: var(--pine); color: white; }
.editor-section { display: none; }
.editor-section.active { display: block; }
.editor-section label { display: grid; gap: .42rem; margin: 0 0 .95rem; color: var(--pine); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.editor-section input:not([type="file"]), .editor-section textarea, .editor-section select { width: 100%; min-height: 43px; padding: .75rem .8rem; border: 1px solid rgba(22,58,48,.23); border-radius: 7px; outline: 0; background: white; color: var(--ink); font: 400 .84rem/1.45 var(--sans); text-transform: none; letter-spacing: 0; resize: vertical; }
.editor-section input:focus, .editor-section textarea:focus, .editor-section select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(158,27,50,.1); }
.editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.editor-upload input { position: absolute; opacity: 0; pointer-events: none; }
.editor-upload span { display: grid; place-items: center; min-height: 48px; padding: .6rem; border: 1px dashed var(--wine); border-radius: 7px; background: rgba(158,27,50,.04); color: var(--wine); cursor: pointer; }
.editor-image-preview { margin: -.2rem 0 1rem; height: 180px; overflow: hidden; border-radius: 8px; background: var(--paper); }
.editor-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.editor-primary { width: 100%; min-height: 48px; border: 0; border-radius: 99px; background: var(--wine); color: white; cursor: pointer; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.editor-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .7rem; }
.editor-secondary-actions button { min-height: 40px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; font-size: .67rem; }
.editor-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--pine); font-size: .76rem; font-weight: 650; }
.editor-status.error { color: var(--wine); }
.editor-footer { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.editor-footer button, .editor-import { display: grid; place-items: center; min-height: 42px; margin: 0; padding: .5rem; border: 1px solid var(--pine); border-radius: 99px; background: transparent; color: var(--pine); cursor: pointer; font-size: .64rem; font-weight: 750; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.editor-footer #editor-export { background: var(--pine); color: white; }
.editor-footer #editor-reset { grid-column: 1/-1; border-color: transparent; color: var(--wine); }
.editor-import input { position: absolute; opacity: 0; pointer-events: none; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

@media (max-width: 980px) {
  .hero-note { display: none; }
  .hero-copy { width: min(760px, 94vw); }
  .section-heading { grid-template-columns: 1fr; gap: 1.4rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gifting { grid-template-columns: 1fr; }
  .gifting-visual { position: relative; height: 70vh; min-height: 520px; }
  .product-modal { grid-template-columns: .75fr 1fr; }
}

@media (max-width: 680px) {
  .site-header { height: 88px; padding-inline: .8rem; }
  .site-header.scrolled { height: 76px; }
  .site-header nav > a { display: none; }
  .nav-order { min-height: 38px; padding-left: .8rem; font-size: .57rem; letter-spacing: .07em; }
  .nav-order span { min-width: 26px; height: 26px; }
  .site-header .brand img { width: 168px; height: 70px; }
  .site-header.scrolled .brand img { width: 148px; height: 60px; }
  .hero { min-height: 800px; padding: 9rem 1.25rem 3.5rem; }
  .hero-backdrop { background-position: 66% center; }
  .hero-title-top { font-size: clamp(3.8rem, 18vw, 5.8rem); }
  .hero-title-script { max-width: calc(100vw - 2.5rem); margin-left: 0; font-size: clamp(2.85rem, 14vw, 5.2rem); line-height: .78; letter-spacing: -.04em; white-space: nowrap; }
  .hero-ribbon { top: 102px; right: 1rem; max-width: calc(100vw - 2rem); gap: .45rem; padding: .5rem .75rem; font-size: .5rem; letter-spacing: .09em; }
  .hero-intro { font-size: .96rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
  .collection { padding: 5rem 1rem; }
  .section-heading h2, .gifting-copy > h2 { font-size: 3.3rem; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search { min-width: 0; width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-image { aspect-ratio: 4/4.7; }
  .card-description { min-height: 0; }
  .gifting-visual { height: 58vh; min-height: 430px; }
  .gifting-copy { padding: 5rem 1.25rem; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; }
  footer > p { margin: 0; }
  .back-top { position: absolute; right: 1.25rem; }
  .product-modal[open] { display: block; overflow-y: auto; }
  .modal-image { height: 42vh; min-height: 320px; }
  .modal-content { overflow: visible; }
  .modal-order { grid-template-columns: 1fr; }
  .modal-order .button { width: 100%; }
  .mobile-order-bar { position: fixed; z-index: 40; left: .8rem; right: .8rem; bottom: .8rem; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 1.1rem; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; background: var(--pine-deep); color: white; box-shadow: 0 16px 38px rgba(10,45,37,.35); cursor: pointer; font-size: .68rem; letter-spacing: .05em; }
  .mobile-order-bar strong { color: var(--sage); font-size: .65rem; text-transform: uppercase; }
  .mobile-order-bar.has-items { background: var(--wine); }
  .mobile-order-bar.has-items strong { color: white; }
  .order-drawer { padding-inline: 1rem; padding-bottom: 1rem; }
  .order-header { margin-inline: -1rem; padding-inline: 1rem; }
  .order-header h2 { font-size: 2.1rem; }
  .catalog-toast { bottom: 5rem; }
  .editor-trigger { right: .8rem; bottom: .8rem; }
  .editor-panel { padding-inline: 1rem; }
  .editor-header { margin-inline: -1rem; padding-inline: 1rem; }
  .editor-row { grid-template-columns: 1fr; gap: 0; }
}

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

/* Versione 2.0: navigazione per macro e sottocategorie */
.catalog-filter-stack { min-width: 0; flex: 1; display: grid; gap: .7rem; }
.macro-filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.macro-filters::-webkit-scrollbar { display: none; }
.macro-filter { flex: 0 0 auto; min-height: 39px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--pine); cursor: pointer; font-size: .68rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.macro-filter:hover { border-color: var(--pine); }
.macro-filter.active { border-color: var(--pine); background: var(--pine); color: white; }
.catalog-filter-stack .filters { padding-top: .65rem; border-top: 1px solid var(--line); }
@media (max-width: 680px) {
  .catalog-filter-stack { width: 100%; }
  .macro-filter { min-height: 37px; font-size: .62rem; }
}
