/* Fonturi sub licența SIL OFL, găzduite local */
@font-face { font-family: "Figtree"; font-weight: 400 700; font-display: swap; src: url(fonts/figtree-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 400 700; font-display: swap; src: url(fonts/figtree.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Caslon Display"; font-weight: 400; font-display: swap; src: url(fonts/caslon-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Display"; font-weight: 400; font-display: swap; src: url(fonts/caslon.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wine: #8E2A33;
  --wine-dark: #74212A;
  --plum: #5E1F26;
  --cream: #FFFCF8;
  --sand: #F4E9DE;
  --ink: #2B201A;
  --muted: #7A6A5E;
  --line: #EADFD3;
  --gold: #C9A45C;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--wine); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 3rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; color: var(--plum); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--sans); padding: 1rem 1.8rem; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-dark); }
.btn-line { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-line:hover { background: var(--wine); color: #fff; }
.btn-light { background: #fff; color: var(--wine); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--wine); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--gold); }
.icon-btn { display: inline-flex; align-items: center; gap: .55rem; color: #fff; background: none; border: 0; padding: .35rem; font: 500 1rem var(--sans); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--gold); }
.call svg { width: 22px; height: 22px; }
.basket svg { width: 30px; height: 30px; }
.cart-count { position: absolute; top: -.15rem; right: -.45rem; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 700; display: grid; place-items: center; padding: 0 .3rem; line-height: 1; }
body.on-cart .site-header, body.solid .site-header { position: static; background: var(--ink); }

/* Contact din antet */
.nav .call-pop { width: 19rem; right: 50%; transform: translateX(50%); padding: 1.1rem 1.3rem .7rem; }
.nav .call-pop::before { right: calc(50% - 7px); }
.nav .call-pop .mini-title { margin-bottom: .6rem; }
.nav .call-pop a, .nav .call-pop a:hover { display: block; color: var(--ink); padding: .7rem 0; border-top: 1px solid var(--line); text-decoration: none; line-height: 1.35; }
.nav .call-pop a span { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; }
.nav .call-pop a b { display: block; color: var(--ink); font-size: 1.06rem; font-weight: 600; overflow-wrap: anywhere; }
.nav .call-pop a:hover b, .nav .call-pop a:focus-visible b { color: var(--wine); }

/* Mini-coș */
.mini-wrap { position: relative; }
.mini { position: absolute; right: -.5rem; top: calc(100% + .8rem); width: 23rem; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(43,32,26,.55); padding: 1.1rem 1.2rem 1.2rem; z-index: 40; }
.mini::before { content: ""; position: absolute; top: -7px; right: 1.1rem; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.mini-title { font-family: var(--serif); font-size: 1.45rem; color: var(--plum); margin: 0 0 .4rem; }
.mini-lines { max-height: min(52vh, 22rem); overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.mini-line img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.mini-line b { display: block; font-weight: 600; line-height: 1.25; }
.mini-line small { color: var(--muted); font-size: .88rem; }
.mini-x { background: none; border: 0; padding: .45rem; border-radius: 8px; color: var(--muted); cursor: pointer; }
.mini-x:hover { color: var(--wine); background: var(--sand); }
.mini-x svg, .remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.mini-empty { color: var(--muted); margin: .4rem 0 0; }
.mini-total { display: flex; justify-content: space-between; align-items: baseline; margin: .9rem 0 .9rem; }
.mini-total b { font-size: 1.25rem; }

@media (max-width: 1300px) { .nav .call-pop { right: -3rem; transform: none; } .nav .call-pop::before { right: calc(3rem + 2.7rem); } }
@media (max-width: 960px) { .call-num { display: none; } .nav .call-pop::before { right: calc(3rem + .6rem); } }
@media (max-width: 760px) {
  .nav { gap: 1rem; } .nav .hide-sm { display: none; } .logo img { height: 36px; }
  .mini-wrap { position: static; }
  .mini { position: fixed; left: .75rem; right: .75rem; top: 4.4rem; width: auto; }
  .mini::before { right: 1.4rem; }
  .nav .call-pop { width: auto; right: .75rem; transform: none; }
  .nav .call-pop::before { right: 4.95rem; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; place-items: center; text-align: center; color: #fff; background: #2B201A url(img/hero-usa.jpg) center 70% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,12,8,.62) 0%, rgba(25,12,8,.38) 42%, rgba(25,12,8,.15) 62%, rgba(25,12,8,.55) 100%); }
.hero .inner { position: relative; max-width: 780px; padding: 6.5rem 1.5rem 15rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero p { font-size: 1.3rem; color: #F5EBE0; margin: 0 auto 2rem; max-width: 34rem; }
.hero .deadline { display: table; margin-inline: auto; font-size: .98rem; margin-top: 1.3rem; color: #F5EBE0; background: rgba(25,12,8,.55); padding: .4rem 1rem; border-radius: 999px; backdrop-filter: blur(4px); }
@media (max-width: 700px) { .hero { background-image: url(img/hero-usa-sm.jpg); min-height: 86vh; } .hero .inner { padding: 6rem 1.2rem 12rem; } .stepper li { font-size: .85rem; } .hero p { font-size: 1.15rem; } }

/* Shop */
.shop { padding-block: clamp(4rem, 7vw, 5.5rem) 3rem; }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.4rem; }
.shop-head p { margin: 0; color: var(--muted); }
.tabs { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; }
.tabs button { font: 600 .98rem var(--sans); border: 0; background: transparent; color: var(--plum); padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: 18px; padding: 1.1rem 1.1rem 1.4rem; box-shadow: 0 12px 34px -22px rgba(94,31,38,.45); display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 1; border: 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.card .tag { align-self: flex-start; margin-top: .9rem; background: var(--sand); color: var(--plum); font-size: .85rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.card h3 { margin: .8rem 0 .25rem; }
.card p { color: var(--muted); margin: 0 0 1rem; font-size: 1rem; }
.price { display: flex; align-items: baseline; gap: .6rem; margin: auto 0 1rem; }
.price b { font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.price span { font-size: .92rem; color: var(--muted); }
.card .actions { display: flex; align-items: center; gap: 1.2rem; }

/* Product dialog */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(43, 32, 26, .6); }
.modal { width: min(960px, 100% - 1.5rem); max-height: calc(100vh - 2rem); border-radius: 18px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1.05fr; }
.modal .pic { background: #fff; display: grid; place-items: center; padding: 1.4rem; }
.modal .info { padding: 2.2rem 2rem 1.8rem; overflow: auto; max-height: calc(100vh - 2rem); }
.modal ul { padding-left: 1.15rem; margin: .4rem 0 1rem; }
.modal li { margin-bottom: .3rem; }
.modal li::marker { color: var(--gold); }
.note { font-size: .93rem; color: var(--muted); }
.alc { background: #F8E9EA; color: var(--wine-dark); border-radius: 10px; padding: .6rem .85rem; font-size: .95rem; font-weight: 600; margin: 1rem 0; }
.close { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--sand); font-size: 1.4rem; color: var(--plum); cursor: pointer; }
@media (max-width: 760px) { .modal-grid { grid-template-columns: 1fr; } .modal .pic img { max-height: 260px; } .modal .info { max-height: none; padding: 1.6rem 1.3rem; } }

/* Toast after adding */
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%); z-index: 50; background: var(--ink); color: #fff; border-radius: 14px; padding: .9rem 1rem .9rem 1.2rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); transition: transform .3s ease; width: max-content; max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); }
body.on-cart .toast { display: none; }
.toast a { white-space: nowrap; }

/* Facts, FAQ, steps */
.facts { padding-block: 2rem 4rem; }
.facts ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.facts li { background: var(--sand); border-radius: 16px; padding: 1.2rem 1.2rem 1.3rem; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--plum); margin-bottom: .25rem; line-height: 1.2; }
.facts span { color: var(--muted); font-size: .98rem; }
@media (max-width: 980px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facts ul { grid-template-columns: 1fr; } }
.faq { padding-block: 3rem 4rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.35rem; color: var(--plum); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--wine); font-family: var(--sans); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.how { background: var(--sand); padding: 3.6rem 0 3.4rem; text-align: center; }
.how h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); margin-bottom: 2.4rem; }
.how ol { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.how ol::before { content: ""; position: absolute; top: 34px; left: 16.7%; right: 16.7%; border-top: 1.5px dashed var(--gold); }
.how li { position: relative; display: flex; flex-direction: column; align-items: center; }
.how .ic { position: relative; flex: none; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 1.5px solid var(--gold); color: var(--wine); display: grid; place-items: center; margin-bottom: 1.1rem; box-shadow: 0 0 0 8px var(--sand); }
.how .ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.how .n { position: absolute; top: -3px; right: -5px; width: 24px; height: 24px; border-radius: 50%; background: var(--wine); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.how b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--plum); margin-bottom: .4rem; }
.how .d { display: block; color: var(--muted); font-size: .97rem; max-width: 17rem; margin-inline: auto; }
@media (max-width: 700px) {
  .how { text-align: left; padding: 3rem 0 2.8rem; }
  .how h2 { text-align: center; margin-bottom: 2rem; }
  .how ol { grid-template-columns: 1fr; gap: 1.8rem; max-width: 26rem; }
  .how ol::before { top: 34px; bottom: 34px; left: 34px; right: auto; border-top: 0; border-left: 1.5px dashed var(--gold); }
  .how li { flex-direction: row; align-items: center; gap: 1.1rem; }
  .how .ic { margin-bottom: 0; }
  .how .d { margin-inline: 0; }
}

/* Footer */
.site-footer { background: var(--ink); color: #A8988A; padding-block: 2.2rem; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem 2.5rem; }
.foot-logo img { height: 34px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2rem; }
.foot-links a { color: #E9DED3; text-decoration: none; }
.foot-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.foot-copy { margin: 0; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-links { gap: .5rem 1.4rem; }
}
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: baseline; }
.contact-list span { width: 7rem; color: var(--muted); flex: none; }

/* Cart page */
.cart-page { padding-block: 2.5rem 5rem; min-height: 70vh; }
.stepper { list-style: none; padding: 0; margin: 0 0 2.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.stepper li { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem .45rem .45rem; white-space: nowrap; overflow: hidden; border-radius: 999px; background: var(--sand); color: var(--muted); font-weight: 600; font-size: .95rem; }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--muted); }
.stepper li[aria-current="step"] { background: var(--wine); color: #fff; }
.stepper li[aria-current="step"] span { color: var(--wine); }
.stepper li.done span { background: var(--gold); color: var(--ink); }
.panel { background: #fff; border-radius: 18px; box-shadow: 0 12px 34px -24px rgba(94,31,38,.45); padding: 1.6rem; }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { padding-top: 0; }
.line-item img { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.line-item b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--plum); display: block; line-height: 1.2; }
.line-item small { color: var(--muted); }
.line-item .amt { text-align: right; font-weight: 600; }
.remove { background: none; border: 0; padding: .3rem .1rem; color: var(--muted); cursor: pointer; font: inherit; font-size: .92rem; display: flex; width: max-content; align-items: center; gap: .35rem; margin-top: .3rem; margin-left: auto; }
.remove:hover { color: var(--wine); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 1.3rem 0 1.5rem; }
.totals .grand { font-family: var(--serif); font-size: 1.6rem; color: var(--plum); padding-top: .4rem; }
.nav-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.gift { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin-bottom: 1.2rem; }
.gift-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.gift-head img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.gift-head b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--plum); display: block; }
.gift-head small { color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.fields .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; color: var(--muted); }
label.f input, label.f select, label.f textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: .7rem .8rem; border: 1.5px solid #DDD0C3; border-radius: 10px; background: #fff; }
label.f input:focus, label.f select:focus, label.f textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.25); }
label.f input:user-invalid, label.f select:user-invalid, label.f textarea:user-invalid { border-color: var(--wine); }
.check { display: flex; gap: .65rem; align-items: flex-start; margin: .3rem 0 .8rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--wine); flex: none; }
.err { color: var(--wine-dark); background: #F8E9EA; border-radius: 10px; padding: .6rem .85rem; margin: 1rem 0 0; }
label.f textarea { resize: vertical; min-height: 5.5rem; line-height: 1.45; }
.msg { margin-top: .9rem; }
.msg summary { cursor: pointer; color: var(--muted); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; width: max-content; max-width: 100%; }
.msg summary:hover { color: var(--wine); }
.msg[open] summary { margin-bottom: .5rem; }
.msg-note { font-size: .85rem; }
.panel-title { font-size: 1.7rem; margin: 0 0 .3rem; }
.panel-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.buyer { margin-bottom: 2rem; }
.gifts-title { margin: 0 0 .9rem; }
.ship-hint { background: var(--sand); color: var(--plum); border-radius: 10px; padding: .6rem .85rem; margin: .2rem 0 1rem; font-size: .95rem; max-width: none; }
.empty { text-align: center; padding: 2rem 1rem; }
.empty p { margin-inline: auto; color: var(--muted); }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .panel { padding: 1.2rem; } .line-item { grid-template-columns: 64px 1fr auto; } .line-item img { width: 64px; height: 64px; } }

/* Simple pages */
.page { padding-block: 3rem 5rem; }
.page h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.page p, .page li { max-width: 68ch; }

.totals > span:nth-child(even) { text-align: right; }

.pay-note { font-size: .92rem; color: var(--muted); margin: 0 0 1rem; max-width: none; }
.form-renuntare { margin: 1rem 0 2rem; padding: 1.2rem 1.4rem; background: var(--sand); border-radius: 14px; }
.form-renuntare p { margin: 0 0 .7rem; }
