/* =====================================================================
   Ferma din Luncă — sistem de design
   Direcție: modern, curat. Alb mult, carduri clare, un singur accent verde
   păstrat din identitatea fermei.
   ===================================================================== */

/* ------------------------------------------------------------ tokenuri */
:root {
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f7f7f4;
  --surface-3:     #f0f0ec;
  --ink:           #17201b;
  --ink-2:         #5c655e;
  --ink-3:         #8a918b;
  --line:          #e5e7e1;
  --line-strong:   #d3d6ce;

  --accent:        #2f6b47;
  --accent-hover:  #255739;
  --accent-soft:   #edf4ef;
  --accent-ink:    #ffffff;
  --gold:          #b8862f;
  --gold-soft:     #fbf4e6;
  --danger:        #b3261e;
  --danger-soft:   #fdecea;

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  26px;

  --shadow-sm: 0 1px 2px rgba(23, 32, 27, .05);
  --shadow:    0 4px 16px rgba(23, 32, 27, .07);
  --shadow-lg: 0 18px 46px rgba(23, 32, 27, .12);

  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --header-h: 72px;
  --container: 1240px;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }  /* height:auto — altfel atributele width/height anulează aspect-ratio */
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- utilitare */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--surface { background: var(--surface-2); }
.stack > * + * { margin-top: var(--gap, 16px); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny  { font-size: 13px; }
.center { text-align: center; }
.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;
}

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h1,
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
.section-head p { color: var(--ink-2); margin-top: 8px; max-width: 62ch; }

/* -------------------------------------------------------------- butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; font-size: 15px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn--quiet { background: var(--accent-soft); color: var(--accent); }
.btn--quiet:hover { background: #e2ede6; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--danger { background: transparent; color: var(--danger); border-color: transparent; }
.btn--danger:hover { background: var(--danger-soft); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; }
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------- pastile */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .01em;
  background: var(--surface-3); color: var(--ink-2);
}
.badge--ok   { background: var(--accent-soft); color: var(--accent); }
.badge--low  { background: var(--gold-soft);  color: var(--gold); }
.badge--out  { background: var(--surface-3);  color: var(--ink-3); }
.badge--pre  { background: #eef2fb;           color: #3a5ba8; }
.badge--gold { background: var(--gold-soft);  color: var(--gold); }

/* ---------------------------------------------------------------- antet */
.topbar {
  background: var(--ink); color: #eef1ec;
  font-size: 13px; letter-spacing: .01em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #eef1ec; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__note { display: inline-flex; align-items: center; gap: 8px; color: #b9c2ba; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.05; }
.brand__sub  { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink-2); transition: background .16s, color .16s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 500; background: var(--surface-2); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent;
  color: var(--ink); cursor: pointer; transition: background .16s, border-color .16s;
}
.icon-btn:hover { background: var(--surface-2); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 15px; }
.cart-btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.cart-btn__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  display: inline-grid; place-items: center;
}
.cart-btn__count:empty, .cart-btn__count[data-count="0"] { display: none; }
.nav-toggle { display: none; }

/* meniu mobil */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(23,32,27,.4);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__panel {
  position: absolute; inset: 0 0 0 auto; width: min(340px, 86vw);
  background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav__panel a { padding: 14px 12px; border-radius: var(--radius); font-size: 17px; }
.mobile-nav__panel a:hover { background: var(--surface-2); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* ----------------------------------------------------------------- erou */
.hero { padding-block: clamp(40px, 6vw, 84px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 20px; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 50ch; }
.hero__actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__points { margin-top: 36px; display: flex; gap: 24px; flex-wrap: wrap; }
.hero__points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero__points svg { color: var(--accent); flex: none; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-xl); }
.hero__tag {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.hero__tag strong { display: block; font-size: 15px; }
.hero__tag span { font-size: 13px; color: var(--ink-2); }
.hero__tag .brand__mark { width: 38px; height: 38px; border-radius: 10px; }

/* ---------------------------------------------------------- bandă atuuri */
.trust { border-block: 1px solid var(--line); background: var(--surface-2); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.trust__item { display: flex; align-items: flex-start; gap: 12px; padding: 26px 20px; }
.trust__item svg { color: var(--accent); flex: none; margin-top: 2px; }
.trust__item strong { display: block; font-size: 15px; font-weight: 600; }
.trust__item span { font-size: 13.5px; color: var(--ink-2); }

/* ------------------------------------------------------------ categorii */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.cat-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-3); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .cat-card__img img { transform: scale(1.05); }
.cat-card__ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cat-card__ph svg { width: 44px; height: 44px; }
.cat-card__body { padding: 16px 18px 18px; }
.cat-card__body strong { display: block; font-size: 16px; font-weight: 600; }
.cat-card__body span { font-size: 13px; color: var(--ink-3); }

/* -------------------------------------------------------------- produse */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph, .cat-card__ph, .product__ph, .cart-line__ph {
  background: linear-gradient(150deg, var(--accent-soft) 0%, #f4f7f2 60%, var(--gold-soft) 100%);
  color: var(--accent);
}
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; }
.card__ph svg { width: 64px; height: 64px; opacity: .55; stroke-width: 1.2; }
.cat-card__ph svg, .product__ph svg { opacity: .55; stroke-width: 1.2; }
.card__flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card__flags .badge { background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card__title a:hover { color: var(--accent); }
.card__desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.card__price small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.card__price del { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); }
/* Ține locul prețului cât timp acesta nu e stabilit. */
.price-soon { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.product__price .price-soon { font-size: 22px; }

/* ------------------------------------------------------------ filtre */
.catalog { display: grid; grid-template-columns: 268px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters__group + .filters__group { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.filters__title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.filters__list li + li { margin-top: 2px; }
.filters__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 15px; color: var(--ink-2);
  transition: background .16s, color .16s;
}
.filters__list a:hover { background: var(--surface-2); color: var(--ink); }
.filters__list a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.filters__list .count { font-size: 12.5px; color: var(--ink-3); }
.filters__list a.is-active .count { color: var(--accent); }

.field { display: block; }
.field + .field { margin-top: 14px; }
.field__label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.field__hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); font-size: 15px; transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c655e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

input[type="range"] { accent-color: var(--accent); width: 100%; min-height: 0; padding: 0;
  border: 0; background: transparent; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar__count { font-size: 14.5px; color: var(--ink-2); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort .select { min-height: 42px; width: auto; min-width: 210px; }
.filters-toggle { display: none; }

/* ------------------------------------------------------- pagină produs */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-xl); }
/* miniaturile galeriei, sub poza mare */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.thumb { display: block; width: 76px; border-radius: var(--radius); overflow: hidden;
         border: 2px solid transparent; transition: border-color .15s; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; display: block; }
.thumb:hover { border-color: var(--line); }
.thumb.is-on { border-color: var(--accent); }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product__ph { aspect-ratio: 1; border-radius: var(--radius-xl); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.product__ph svg { width: 96px; height: 96px; }
.product h1 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.product__price { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; }
.product__price strong { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.product__price span { color: var(--ink-2); }
.product__lead { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.product__alt { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.product__alt span { color: var(--ink-2); }

/* textul lung al categoriei, sub grila de produse */
.cat-intro { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 68ch; }
.cat-intro h2 { font-size: 20px; margin: 0 0 12px; }
.cat-intro p { color: var(--ink-2); margin: 0 0 12px; line-height: 1.7; }
.cat-intro p:last-child { margin-bottom: 0; }
.product__buy { margin-top: 26px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.product__desc { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.7; }
.product__meta { margin-top: 22px; display: grid; gap: 10px; }
.product__meta li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.product__meta svg { color: var(--accent); flex: none; margin-top: 2px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { background: var(--surface-2); color: var(--ink); }
.qty input { width: 74px; height: 46px; border: 0; text-align: center; font-size: 15px; font-weight: 500;
  -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__unit { padding-right: 14px; font-size: 14px; color: var(--ink-3); }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ coș */
.cart-layout { display: grid; grid-template-columns: 1fr 372px; gap: 40px; align-items: start; }
.cart-lines { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; padding: 18px; align-items: center; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line__img { width: 88px; height: 88px; border-radius: var(--radius); object-fit: cover; background: var(--surface-3); }
.cart-line__ph { width: 88px; height: 88px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cart-line__name { font-weight: 600; font-size: 16px; }
.cart-line__unit { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.cart-line__controls { display: flex; align-items: center; gap: 12px; }
.cart-line__total { font-weight: 600; min-width: 92px; text-align: right; }
.cart-line__total small { display: block; font-weight: 400; font-size: 12px; margin-top: 2px; }

/* bifa de serviciu de pe linia din coș (ex. tranșarea) */
.check--line { font-size: 13px; gap: 8px; margin-top: 10px; }
.check--line input { width: 15px; height: 15px; }

.summary { position: sticky; top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 24px; }
.summary h2 { font-size: 19px; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 7px 0; }
.summary__row span:last-child { font-weight: 500; }
.summary__total { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; font-weight: 600; }
.summary .btn { margin-top: 20px; }
.summary__note { margin-top: 14px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.progress { margin-top: 20px; }
.progress__bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }

/* ------------------------------------------------------------- note/alerte */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.5;
  background: var(--accent-soft); color: #1f4a31; border: 1px solid #d7e7dd;
}
.notice svg { flex: none; margin-top: 2px; }
.notice--warn   { background: var(--gold-soft); color: #7a5a14; border-color: #f0e2c2; }
.notice--danger { background: var(--danger-soft); color: #8c1d18; border-color: #f6d4d1; }
.notice--plain  { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }

.flash { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 360px; box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------- comandă */
.checkout { display: grid; grid-template-columns: 1fr 372px; gap: 40px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); }
.form-card + .form-card { margin-top: 20px; }
.form-card h2 { font-size: 18px; margin-bottom: 4px; }
.form-card__hint { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field { margin-top: 0; }
.form-grid--full { grid-column: 1 / -1; }

.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  transition: border-color .16s, background .16s;
}
.choice:hover { border-color: var(--ink-3); }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice__body { flex: 1; }
.choice__body strong { display: block; font-size: 15px; font-weight: 600; }
.choice__body span { font-size: 13.5px; color: var(--ink-2); }
.choice__price { font-size: 14px; font-weight: 500; white-space: nowrap; }

.mini-lines { display: grid; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mini-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mini-line__name { color: var(--ink); }
.mini-line__qty { color: var(--ink-3); font-size: 13px; }

/* ---------------------------------------------------------- confirmare */
.confirm { max-width: 720px; margin-inline: auto; text-align: center; }
.confirm__mark { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.confirm__mark svg { width: 38px; height: 38px; }
.confirm h1 { font-size: clamp(28px, 3.4vw, 38px); }
.confirm__number { display: inline-block; margin-top: 18px; padding: 10px 20px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.confirm__box { margin-top: 32px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.confirm__box h2 { font-size: 17px; margin-bottom: 14px; }

/* --------------------------------------------------------------- poveste */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.story img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius-xl); }
/* Fotografia-afiș a fermei are numele scris în ea, deci nu suportă tăiere:
   o lăsăm în proporțiile ei, oricât de înaltă ar fi. */
.hero__media img.img-poster,
.story img.img-poster { aspect-ratio: auto; height: auto; object-fit: contain; }
.story h2 { font-size: clamp(26px, 3vw, 34px); }
.story p { margin-top: 16px; color: var(--ink-2); line-height: 1.7; }
.story ul { margin-top: 22px; display: grid; gap: 12px; }
.story li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.story li svg { color: var(--accent); flex: none; margin-top: 3px; }

/* ------------------------------------------------------- pagini legale */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(20px, 2.4vw, 25px); margin: 38px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p { color: var(--ink-2); line-height: 1.75; margin: 0 0 14px; }
.legal ul, .legal ol { color: var(--ink-2); line-height: 1.75; margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__meta { font-size: 14px; color: var(--ink-3); margin-bottom: 30px; padding-bottom: 18px;
               border-bottom: 1px solid var(--line); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 34px; padding: 0; list-style: none; }
.legal__toc a { font-size: 13.5px; text-decoration: none; padding: 5px 12px; border-radius: 999px;
                border: 1px solid var(--line); color: var(--ink-2); }
.legal__toc a:hover { border-color: var(--accent); color: var(--accent); }

/* tabelul cu datele vânzătorului */
.seller { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 14px; }
.seller div { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 0; }
.seller div + div { border-top: 1px solid var(--line); }
.seller dt { padding: 11px 16px; background: var(--surface-2, var(--surface)); font-size: 14px;
             color: var(--ink-3); margin: 0; }
.seller dd { padding: 11px 16px; margin: 0; font-size: 14.5px; }
@media (max-width: 560px) { .seller div { grid-template-columns: 1fr; } .seller dt { padding-bottom: 0; } }

/* rândul legal din subsol */
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; padding-top: 20px;
                 display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer__seller { font-size: 12.5px; opacity: .72; margin-top: 12px; line-height: 1.7; }

.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; color: #fff; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,26,21,.88) 0%, rgba(18,26,21,.62) 55%, rgba(18,26,21,.35) 100%); }
.cta-band__body { position: relative; padding: clamp(38px, 5vw, 64px); max-width: 620px; }
.cta-band h2 { font-size: clamp(25px, 3vw, 34px); }
.cta-band p { margin-top: 14px; color: #d8ded8; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cta-band__actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- subsol */
.footer { margin-top: 88px; border-top: 1px solid var(--line); background: var(--surface-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px; }
.footer h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.footer li + li { margin-top: 9px; }
.footer a:hover { color: var(--accent); }
.footer__about { max-width: 34ch; color: var(--ink-2); font-size: 14.5px; margin-top: 14px; line-height: 1.6; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.footer__contact svg { color: var(--accent); flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }

/* ------------------------------------------------------------ gol/eroare */
.empty { text-align: center; padding: 72px 20px; }
.empty__mark { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; }
.empty h2 { font-size: 22px; }
.empty p { margin-top: 10px; color: var(--ink-2); }
.empty .btn { margin-top: 24px; }

/* ------------------------------------------------------------ firimituri */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); padding-block: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* -------------------------------------------------------------- adaptare */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cart-layout, .checkout { grid-template-columns: 1fr; }
  .summary, .filters { position: static; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__tag { left: 12px; bottom: 12px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.is-open { display: block; margin-bottom: 26px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .filters-toggle { display: inline-flex; }
  .section { padding-block: 52px; }
}
@media (max-width: 680px) {
  .container { padding-inline: 18px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-grid, .product-grid--3, .product-grid--2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 13px 14px 15px; }
  .card__title { font-size: 15px; }
  .card__desc { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; gap: 14px; }
  .cart-line__img, .cart-line__ph { width: 64px; height: 64px; }
  .cart-line__controls { grid-column: 1 / -1; justify-content: space-between; }
  .cart-line__total { text-align: left; min-width: 0; }
  .topbar__note { display: none; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { padding: 18px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ întrebări frecvente */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 0 20px; transition: border-color .16s;
}
.faq-item + .faq-item { margin-top: 10px; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--accent-soft); background: var(--surface-2); }
.faq-item summary {
  padding: 17px 0; cursor: pointer; font-weight: 500; font-size: 16px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:hover { color: var(--accent); }
.faq-item > p { padding: 0 0 18px; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }

/* ---------------------------------------------- caseta de acord cookie-uri */
/* Stă jos, peste conținut, dar nu acoperă pagina și nu blochează navigarea:
   un magazin care te ține ostatic până apeși „Accept" nu cere un acord liber. */
.cookiebar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px;
  z-index: 60; width: min(760px, calc(100vw - 32px));
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(23, 32, 27, .18);
}
.cookiebar[hidden] { display: none; }
.cookiebar__text { flex: 1 1 320px; }
.cookiebar__text strong { display: block; margin-bottom: 4px; font-size: 15.5px; }
.cookiebar__text p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.cookiebar__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookiebar__actions { display: flex; gap: 10px; flex: 0 0 auto; }

@media (max-width: 560px) {
  .cookiebar { bottom: 10px; padding: 16px; gap: 14px; }
  .cookiebar__actions { width: 100%; }
  .cookiebar__actions .btn { flex: 1; justify-content: center; }
}

/* ------------------------------------------------------------- alergeni */
/* Stă lângă butonul de cumpărare, nu în subsol: informația trebuie să ajungă
   la om ÎNAINTE să cumpere, nu după ce caută după ea. */
.allergens { margin: 26px 0 0; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); }
.allergens__title { display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 16px; }
.allergens p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.allergens__list { margin: 8px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px; }
.allergens__list li { padding: 7px 12px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--line-strong); }
.allergens__list strong { font-weight: 600; }
.allergens__list span { color: var(--ink-3); }
.allergens__note { margin-top: 10px !important; font-size: 13.5px; color: var(--ink-3); }

/* Produsul neverificat se vede altfel: tăcerea nu are voie să arate ca un „nu". */
.allergens--unknown { background: var(--gold-soft, #fdf6e3); border-color: #efe0bd; }
.allergens--unknown a { color: var(--accent); text-decoration: underline; }

/* ------------------------------------- păsări: preț estimat pe bucată */
.estimate-line { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.estimate-line strong { color: var(--ink); }
.card__est { display: block; margin-top: 2px; font-size: 12px; font-weight: 500;
  color: var(--ink-3); }
