/* ============================================================
   Cofetăria Splendid — stiluri globale
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --rose:        #D94F76;
  --rose-deep:   #A82F55;
  --rose-soft:   #FCEDF2;
  --rose-line:   #F2D6E0;
  --cream:       #FFFAF6;
  --cream-2:     #FDF2EA;
  --ink:         #2A1B21;
  --ink-2:       #4A3740;
  --muted:       #85717A;
  --gold:        #C09B4A;
  --white:       #FFFFFF;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(42, 27, 33, .06);
  --shadow:    0 12px 32px rgba(42, 27, 33, .10);
  --shadow-lg: 0 28px 70px rgba(42, 27, 33, .16);

  --maxw: 1200px;
  --nav-h: 76px;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  overflow-x: hidden;
}
/* Plasă de siguranță: dacă vreun element scapă în lateral, pagina nu se mai
   lărgește peste ecran. `clip` — spre deosebire de `hidden` — nu creează
   container de derulare, deci `position: sticky` continuă să funcționeze. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
img { max-width: 100%; height: auto; display: block; }
figure, blockquote, pre { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { margin: 0 0 1em; }

::selection { background: var(--rose); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--cream { background: var(--cream-2); }
.section--rose  { background: var(--rose-soft); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rose);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--rose); opacity: .55;
}
.center .eyebrow::after {
  content: ''; width: 28px; height: 1px; background: var(--rose); opacity: .55;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--rose); color: #fff; box-shadow: 0 8px 22px rgba(217, 79, 118, .3); }
.btn--primary:hover { background: var(--rose-deep); box-shadow: 0 14px 30px rgba(217, 79, 118, .38); }
.btn--ghost { border: 1.5px solid var(--rose-line); color: var(--ink); background: rgba(255,255,255,.7); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: .6rem 1.2rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height .35s var(--ease);
}
/* Fundalurile stau pe pseudo-elemente, nu pe header. Dacă `backdrop-filter`
   ar fi aplicat pe header, acesta ar deveni bloc de referință pentru
   descendenții `position: fixed`, iar sertarul de meniu mobil s-ar poziționa
   față de bara de 64px, nu față de ecran. */
.site-header::before,
.site-header::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transition: opacity .35s var(--ease); pointer-events: none;
}
.site-header::before { background: linear-gradient(180deg, rgba(30,15,20,.5), rgba(30,15,20,0)); opacity: 1; }
.site-header::after {
  background: rgba(255, 250, 246, .92); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); opacity: 0;
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid::after { opacity: 1; }
body:not(.has-hero) .site-header::before { opacity: 0; }
body:not(.has-hero) .site-header::after { opacity: 1; }

.nav {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
}

/* Logo — sigla originală a cofetăriei */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img {
  height: 54px; width: auto;
  background: #fff; border-radius: 12px; padding: 4px 9px;
  box-shadow: 0 2px 10px rgba(42, 27, 33, .10);
  transition: transform .3s var(--ease), height .35s var(--ease);
}
.logo:hover .logo__img { transform: translateY(-1px) scale(1.02); }

/* Nav links */
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__side { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Panoul mobil — coboară de sub bară, pe toată lățimea.
   Copil direct al lui <body>, nu al header-ului: dacă ar sta în antet, o
   proprietate de compoziție de pe bară (backdrop-filter, filter, transform)
   ar face bara bloc de referință pentru `position: fixed`, iar pe WebKit
   panoul s-ar dimensiona după ea, nu după ecran. */
.mobile-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: none; flex-direction: column; gap: 0;
  padding: calc(var(--nav-h) + 1.3rem) 1.4rem 1.6rem;
  background: var(--cream);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 60px -18px rgba(42, 27, 33, .5);
  max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
body.nav-open .mobile-nav {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s;
}
.mobile-nav .nav__link {
  padding: .95rem .75rem; border-radius: 0;
  border-bottom: 1px solid var(--rose-line);
  font-family: var(--font-display); font-size: 1.2rem; color: var(--ink);
}
.mobile-nav .nav__link:last-of-type { border-bottom: 0; }
.mobile-nav .nav__link.is-active { color: var(--rose); }
.mobile-nav .nav__link.is-active::after { display: none; }
.mobile-nav__cta { margin-top: 1rem; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 190; display: none;
  background: rgba(30, 15, 20, .45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
/* Bara urcă peste sertar cât timp meniul e deschis, ca butonul X să rămână
   apăsabil, și trece pe fundal opac ca să se citească peste crem */
body.nav-open .site-header { z-index: 210; }
body.nav-open .site-header::before { opacity: 0; }
body.nav-open .site-header::after { opacity: 1; }
body.nav-open .site-header .cart-btn { background: rgba(255, 255, 255, .75); border-color: var(--rose-line); color: var(--ink); }

/* Coș în header */
.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .75); border: 1.5px solid var(--rose-line);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.cart-btn:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--rose); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 2px 6px rgba(217, 79, 118, .5);
}
.site-header:not(.is-solid) .cart-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.42); color: #fff; }
.site-header:not(.is-solid) .cart-btn:hover { background: #fff; color: var(--ink); }
.nav__link {
  position: relative; padding: .55rem .85rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--rose); }
.nav__link.is-active { color: var(--rose); font-weight: 600; }
.nav__link.is-active::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px; border-radius: 2px; background: var(--rose);
}
.nav__cta { margin-left: .5rem; }

/* Header peste hero (transparent) */
.site-header:not(.is-solid) .nav__link { color: #fff; }
.site-header:not(.is-solid) .nav__link:hover,
.site-header:not(.is-solid) .nav__link.is-active { color: #fff; }
.site-header:not(.is-solid) .nav__link.is-active::after { background: #fff; }
.site-header:not(.is-solid) .burger span { background: #fff; }
.site-header.is-solid .logo__img { height: 48px; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 21px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: min(94vh, 860px);
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,18,25,.55) 0%, rgba(35,18,25,.28) 35%, rgba(35,18,25,.82) 100%);
}
.hero__inner { position: relative; z-index: 2; color: #fff; max-width: 780px; }
.hero__inner .eyebrow { color: #fff; opacity: .9; }
.hero__inner .eyebrow::before { background: #fff; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__sub { font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__meta {
  position: relative; z-index: 2; margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.22);
}
.hero__meta div { color: rgba(255,255,255,.88); }
.hero__meta strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #fff; font-weight: 600; }
.hero__meta span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* Page hero (pagini interioare) */
.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(160deg, var(--rose-soft), var(--cream) 70%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -8%; top: -40%;
  width: 46vw; height: 46vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,79,118,.13), transparent 65%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--rose); }

/* ============================================================
   CARDURI / GRILE
   ============================================================ */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rose-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .45rem; }
.card__body p { color: var(--muted); font-size: .94rem; margin-bottom: 1.1rem; }
.card__link { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--rose); display: inline-flex; align-items: center; gap: .4rem; }
.card__link svg { transition: transform .3s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Feature cu iconiță */
.feature { text-align: center; padding: 2rem 1.2rem; }
.feature__icon {
  width: 62px; height: 62px; margin: 0 auto 1.2rem;
  border-radius: 50%; background: var(--rose-soft);
  display: grid; place-items: center; color: var(--rose);
}
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Split (imagine + text) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split__media--stack img:first-child { aspect-ratio: 3/4; }
.split__media--stack img:last-child { aspect-ratio: 3/4; margin-top: 2.5rem; }
.split--reverse .split__content { order: -1; }

/* Listă cu bife */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: .96rem; }
.checklist li::before {
  content: ''; flex-shrink: 0; width: 21px; height: 21px; margin-top: .18rem; border-radius: 50%;
  background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D94F76' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ============================================================
   MENIU
   ============================================================ */
.menu-toolbar {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(255, 250, 246, .93); backdrop-filter: blur(12px);
  padding: 1rem 0; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rose-line);
}
.menu-toolbar__inner { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .5rem 1.05rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
  border: 1.5px solid var(--rose-line); color: var(--ink-2); background: #fff;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }

.search {
  position: relative; display: flex; align-items: center;
}
.search input {
  padding: .62rem 1rem .62rem 2.45rem; min-width: 230px;
  border-radius: 999px; border: 1.5px solid var(--rose-line); background: #fff;
  font-size: .88rem; outline: none; transition: border-color .25s, box-shadow .25s;
}
.search input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217,79,118,.12); }
.search svg { position: absolute; left: .9rem; color: var(--muted); pointer-events: none; }

.menu-group { margin-bottom: clamp(3rem, 6vw, 5rem); scroll-margin-top: calc(var(--nav-h) + 90px); }
.menu-group__head { margin-bottom: 2rem; max-width: 60ch; }
.menu-group__head h2 { margin-bottom: .35rem; }
.menu-group__head p { color: var(--muted); font-size: .95rem; margin: 0; }

.product {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product__media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--rose-soft), var(--cream-2)); position: relative; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__media--empty { display: grid; place-items: center; color: var(--rose); opacity: .45; }
.product__badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--rose-deep);
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.product__body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.25; margin-bottom: .2rem; }
.product__meta { font-size: .78rem; color: var(--muted); margin-bottom: .9rem; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.product__price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--rose-deep); }
.product__price small { font-size: .7rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); margin-left: .15rem; }
.product__add {
  width: 38px; height: 38px; border-radius: 50%; background: var(--rose-soft); color: var(--rose);
  display: grid; place-items: center; transition: background .25s, color .25s, transform .25s;
}
.product__add:hover { background: var(--rose); color: #fff; transform: rotate(90deg); }
.product__add.is-added { background: var(--rose); color: #fff; transform: scale(1.18); }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery { columns: 4 240px; column-gap: 1rem; }
.gallery__item {
  break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: zoom-in; background: var(--rose-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery__item img { width: 100%; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem .95rem .9rem;
  background: linear-gradient(transparent, rgba(30,15,20,.78));
  color: #fff; font-size: .83rem; line-height: 1.35;
  opacity: 0; transform: translateY(8px); transition: all .35s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 240; display: none;
  background: rgba(24, 12, 17, .93); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 3rem 1rem;
}
.lightbox.is-open { display: flex; animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: min(92vw, 900px); max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; padding: 0 1rem; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
  transition: background .25s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   FORMULAR
   ============================================================ */
.form-card {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field label span { color: var(--rose); }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--rose-line); background: var(--cream);
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px rgba(217,79,118,.1);
}
.field textarea { min-height: 110px; resize: vertical; }
.field__hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.15rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span {
  display: block; padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--rose-line); background: var(--cream);
  font-size: .88rem; font-weight: 500; text-align: center; cursor: pointer;
  transition: all .25s var(--ease);
}
.radio-card input:checked + span { border-color: var(--rose); background: var(--rose-soft); color: var(--rose-deep); font-weight: 600; }
.radio-card input:focus-visible + span { box-shadow: 0 0 0 4px rgba(217,79,118,.15); }

/* ============================================================
   DIVERSE
   ============================================================ */
.info-tile {
  background: #fff; border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--rose-line);
}
.info-tile h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.info-tile p { font-size: .92rem; color: var(--muted); margin: 0; }
.info-tile .tag {
  display: inline-block; margin-bottom: .8rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rose);
  background: var(--rose-soft); padding: .25rem .6rem; border-radius: 999px;
}

.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; }
.step__num {
  counter-increment: step; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--rose); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

.quote {
  background: #fff; border-radius: var(--radius); padding: 1.9rem;
  box-shadow: var(--shadow-sm);
}
.quote p { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.quote footer { font-size: .85rem; color: var(--muted); font-style: normal; }
.stars { color: var(--gold); letter-spacing: .12em; margin-bottom: .7rem; font-size: .95rem; }

.cta-band {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.cta-band::before { width: 320px; height: 320px; top: -140px; left: -90px; }
.cta-band::after  { width: 240px; height: 240px; bottom: -120px; right: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 55ch; margin-inline: auto; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

.marquee { overflow: hidden; padding: 1.1rem 0; background: var(--rose-deep); color: #fff; }
.marquee__track { display: flex; align-items: center; gap: 2.6rem; width: max-content; animation: slide 42s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; display: flex; align-items: center; gap: 2.6rem; }
.marquee__track span::after { content: '✦'; opacity: .45; font-size: .72rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--rose); }
.site-footer .logo__img { height: 66px; padding: 7px 12px; border-radius: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer-about { font-size: .92rem; max-width: 34ch; margin: 1.2rem 0 1.4rem; }
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.09);
  display: grid; place-items: center; color: #fff; transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--rose); transform: translateY(-3px); color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* Buton flotant — apare pe mobil doar când există ceva în coș */
.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: none;
  box-shadow: 0 10px 30px rgba(217,79,118,.45);
}
.fab span { background: rgba(255,255,255,.25); border-radius: 999px; padding: .05rem .45rem; font-size: .8rem; }

/* Notificare „adăugat în coș" */
.toast {
  position: fixed; left: 50%; bottom: 1.2rem; z-index: 220;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: .7rem;
  max-width: calc(100vw - 2rem);
  padding: .8rem 1rem .8rem .95rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transition: transform .45s var(--ease), opacity .35s; opacity: 0;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast svg { color: #7BD88F; flex-shrink: 0; }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast a {
  flex-shrink: 0; margin-left: .3rem; padding: .32rem .8rem; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: .8rem; font-weight: 600;
}
.toast a:hover { background: var(--rose-deep); }

/* ============================================================
   CHECKOUT
   ============================================================ */
.page-hero--slim { padding-bottom: 0; }

.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.6rem; align-items: start; }

.co-block {
  background: #fff; border: 1px solid var(--rose-line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem; margin-bottom: 1.2rem;
}
.co-title { display: flex; align-items: center; gap: .75rem; font-size: 1.28rem; margin-bottom: 1.2rem; }
.co-step {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rose); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
}
.co-lead { font-size: .88rem; color: var(--muted); margin: -.4rem 0 1.2rem; }
.co-label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .65rem; }
.co-warn { font-size: .86rem; color: var(--rose-deep); font-weight: 600; margin: 0; }

/* Produsele din coș */
.co-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--rose-line); }
.co-item:first-child { padding-top: 0; }
.co-item:last-child { border-bottom: 0; padding-bottom: 0; }
.co-item-media {
  width: 58px; height: 58px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--rose-soft), var(--cream-2));
  display: grid; place-items: center; color: var(--rose);
}
.co-item-media img { width: 100%; height: 100%; object-fit: cover; }
.co-item-body { flex: 1; min-width: 0; }
.co-item-body h4 { font-family: var(--font-body); font-size: .93rem; font-weight: 600; color: var(--ink); margin: 0 0 .15rem; }
.co-item-body span { font-size: .78rem; color: var(--muted); }
.co-item-price { font-weight: 700; font-size: .92rem; color: var(--rose-deep); white-space: nowrap; min-width: 66px; text-align: right; }
.co-item-remove { font-size: .95rem; color: var(--muted); padding: .3rem; line-height: 1; transition: color .2s; }
.co-item-remove:hover { color: var(--rose); }

.stepper { display: flex; align-items: center; border: 1.5px solid var(--rose-line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.stepper button { width: 30px; height: 30px; font-size: 1rem; font-weight: 700; color: var(--ink); transition: background .2s; }
.stepper button:hover { background: var(--rose-soft); color: var(--rose); }
.step-qty { width: 26px; text-align: center; font-size: .85rem; font-weight: 700; }

/* Butoane de tip card (punct de lucru, plată) */
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mode-btn {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  padding: .9rem 1rem; border: 1.5px solid var(--rose-line); border-radius: var(--radius);
  background: var(--cream); transition: all .25s var(--ease);
}
.mode-btn:hover { border-color: var(--rose); }
.mode-btn.is-active { border-color: var(--rose); background: var(--rose-soft); }
.mode-ico { flex-shrink: 0; color: var(--rose); display: grid; place-items: center; }
.mode-t { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.mode-t strong { font-size: .9rem; color: var(--ink); }
.mode-t small { font-size: .76rem; color: var(--muted); }

/* Chips de zi/interval */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip-row:last-child { margin-bottom: 0; }
.chip-row .chip { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 74px; padding: .55rem .9rem; }
.chip-row .chip strong { font-size: .86rem; font-weight: 700; }
.chip-row .chip span { font-size: .72rem; font-weight: 500; color: var(--muted); }
.chip-row .chip.is-active span { color: rgba(255,255,255,.7); }
.chip-row .chip-sm { flex-direction: row; min-width: 0; font-size: .82rem; padding: .5rem .85rem; }

.gdpr { display: flex; align-items: flex-start; gap: .6rem; font-size: .82rem; color: var(--muted); margin-top: 1.1rem; cursor: pointer; }
.gdpr input { width: 17px; height: 17px; margin-top: .12rem; accent-color: var(--rose); flex-shrink: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.checkout-note { font-size: .8rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }

/* Sumar */
.checkout-summary {
  background: var(--rose-soft); border-radius: var(--radius-lg); padding: 1.8rem;
  position: sticky; top: calc(var(--nav-h) + 1.2rem);
}
.checkout-summary h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.checkout-line { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--rose-line); font-size: .88rem; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; font-weight: 600; }
.checkout-total strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--rose-deep); }
.sum-trust { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rose-line); display: grid; gap: .5rem; font-size: .82rem; color: var(--ink-2); }
.sum-trust p { display: flex; align-items: flex-start; gap: .55rem; margin: 0; }
.sum-trust svg { flex-shrink: 0; margin-top: .18rem; color: var(--rose); }

/* Coș gol + confirmare */
.checkout-empty { text-align: center; padding: 4rem 1rem; max-width: 520px; margin: 0 auto; }
.order-ok { text-align: center; max-width: 580px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem 0 2rem; }
.ok-badge { width: 62px; height: 62px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; }
.order-ok h2 { margin: 0; }
.order-ok .ok-sub { color: var(--muted); font-size: .96rem; margin: -.3rem 0 .4rem; }
.ok-card { background: var(--rose-soft); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; width: 100%; text-align: left; }
.ok-card p { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--rose-line); font-size: .89rem; margin: 0; }
.ok-card p:last-child { border-bottom: 0; }
.ok-card .ok-total { font-weight: 600; padding-top: .8rem; }
.ok-card .ok-total strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--rose-deep); }
.ok-card .ok-meta { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.7; padding-top: .9rem; border-bottom: 0; }
.ok-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.ok-wa { background: #25D366; box-shadow: 0 10px 26px -8px rgba(37,211,102,.6); }
.ok-wa:hover { background: #1EBE5A; }
.ok-note { font-size: .82rem; color: var(--muted); max-width: 44ch; margin: 0; }

[hidden] { display: none !important; }

/* ============================================================
   ANIMAȚII
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .checkout-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .checkout-summary { position: static; }
}

@media (max-width: 900px) {
  .burger { display: flex; position: relative; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .mobile-nav, .nav-scrim { display: flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger span { background: var(--ink) !important; }
  .split--reverse .split__content { order: 0; }
  body.has-cart .fab { display: inline-flex; }
  body.page-checkout .fab { display: none; }
  .gallery { columns: 2 150px; }
  .logo__img, .site-header.is-solid .logo__img { height: 42px; }
  .mode-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .wrap { width: calc(100% - 2rem); }

  /* Bara de sortare: chips pe un singur rând, derulabil lateral */
  .menu-toolbar { padding: .6rem 0; }
  .menu-toolbar__inner { flex-direction: column; align-items: stretch; gap: .55rem; }
  /* Rând derulabil lateral. `min-width: 0` e obligatoriu: fără el, `nowrap`
     face elementul lat cât suma chipsurilor, iar pagina depășește ecranul —
     pe iOS asta duce la micșorarea întregului site ca să încapă. */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    min-width: 0; width: calc(100% + 2rem); max-width: calc(100% + 2rem);
    margin-inline: -1rem; padding-inline: 1rem; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex-shrink: 0; }
  .menu-toolbar .search input { padding: .5rem 1rem .5rem 2.3rem; font-size: .85rem; }
  .menu-toolbar .btn { align-self: flex-start; }

  /* Produsele din meniu: două pe rând */
  #menu-root .grid--4 { grid-template-columns: 1fr 1fr; gap: .8rem; }
  #menu-root .product__body { padding: .8rem .85rem .95rem; }
  #menu-root .product__name { font-size: 1.02rem; }
  #menu-root .product__meta { font-size: .72rem; margin-bottom: .7rem; }
  #menu-root .product__price { font-size: 1.15rem; }
  #menu-root .product__add { width: 34px; height: 34px; }
  #menu-root .product__badge { font-size: .6rem; padding: .22rem .5rem; top: .5rem; left: .5rem; }
  .menu-group { margin-bottom: 2.6rem; }
  .menu-group__head { margin-bottom: 1.2rem; }
  .hero { min-height: 86vh; padding-bottom: 2.5rem; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(35,18,25,.62) 0%, rgba(35,18,25,.52) 40%, rgba(35,18,25,.88) 100%); }
  .hero__sub { font-size: 1rem; margin-bottom: 1.6rem; }
  .hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; margin-top: 2.2rem; }
  .hero__meta strong { font-size: 1.45rem; }
  .hero__meta span { font-size: .68rem; letter-spacing: .1em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .split__media--stack img:last-child { margin-top: 0; }
  .search input { width: 100%; min-width: 0; }
  .lightbox__prev { left: .5rem; }
  .lightbox__next { right: .5rem; }

  /* Coșul: linia produsului se rupe pe două rânduri */
  .co-block { padding: 1.3rem 1.2rem; }
  .co-item {
    display: grid; align-items: center;
    grid-template-columns: 54px 1fr auto;
    grid-template-areas: "media body remove" "media stepper price";
    column-gap: .8rem; row-gap: .55rem;
  }
  .co-item-media { grid-area: media; align-self: start; }
  .co-item-body { grid-area: body; }
  .co-item .stepper { grid-area: stepper; justify-self: start; }
  .co-item-price { grid-area: price; }
  .co-item-remove { grid-area: remove; align-self: start; justify-self: end; }
  .checkout-summary { padding: 1.4rem; }
}
