/* Gruppo Mercati — prima pagină (redesign oct. 2026).
   Se încarcă doar din pages/index.html.twig, după gm-base.css.

   Două părți: secțiunile noi (clasele .gmh-*, în interiorul .gm) și stilul pentru ce
   există deja pe pagină și vine din admin — „Categorii principale" (.fc-cats), bannerele
   și sliderele de produse. Partea a doua e legată de html.site-index, ca să nu atingă
   alte pagini, și are un selector în plus față de CSS-ul din admin, care se încarcă
   după fișierul acesta; unde adminul pune !important, punem și noi. */

/* Paleta măsurată din capturile originale, care au profil sRGB.
   Limitată la homepage: onboardingul are propria referință. */
html.site-index {
  --gm-container: 1312px;
  --gm-ink: #04211C;
  --gm-dark: #04211C;
  --gm-dark-2: #082A23;
  --gm-green: #216C55;
  --gm-green-deep: #18543F;
  --gm-teal: #287D63;
  --gm-sage: #3F8A73;
  --gm-orange: #D14F1B;
  --gm-orange-light: #E97E48;
  --gm-rust: #AF4015;
  --gm-bg: #F4F3EF;
  --gm-cream: #FBFAF6;
  --gm-mint: #EEF4F0;
  --gm-dark-line: #143931;
  --gm-footer: #031612;
  --frescia-verde: var(--gm-green);
  --frescia-verde-inchis: var(--gm-green-deep);
  --frescia-portocaliu: var(--gm-orange);
  --frescia-portocaliu-inchis: var(--gm-rust);
}

html.site-index body { background: var(--gm-bg); }

.gmh-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Piese comune ale secțiunilor noi                                     */
/* ------------------------------------------------------------------ */

/* Titlurile din design sunt Archivo 800 (măsurat pe capturi: grosimea
   tijelor și lățimea rândurilor), cu spațiere -0,03em; mărimea diferă pe
   secțiune (40–46 px). Rupturile de rând vin din text-wrap: balance. */
.gmh-h2 {
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800 !important;
  color: var(--gm-ink);
  text-wrap: balance;
}

/* Eticheta de deasupra titlurilor e puțin mai mică decât .gm-kicker din bază. */
.gmh .gm-kicker { gap: 10px; font-size: 11.5px; letter-spacing: .13em; }

.gmh-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Butoanele au înălțimi diferite în design, după secțiune (44–52 px);
   textul e 700 / 15 px peste tot, mai puțin cardul de sus (14 px) și banda
   portocalie (16 px). */
.gmh-btn { min-height: 48px; padding: 0 22px; font-size: 15px; gap: 4px; font-weight: 700 !important; letter-spacing: 0; }
.gmh-btn--hero { min-height: 50px; padding: 0 24px; }
.gmh-btn--sm { min-height: 45px; padding: 0 20px; font-size: 14px; }
.gmh-btn--ghost { padding: 0 22px; background: #fff; border-color: var(--gm-line); color: var(--gm-ink); }
.gmh-btn--ghost:hover { background: var(--gm-ink); border-color: var(--gm-ink); color: #fff; }
/* Archivo nu are săgeata →; în design vine din Helvetica (tijă lungă, vârf mic),
   nu din fontul de sistem, care o desenează mai mare. */
.gmh-btn .gm-btn__arrow { font-family: Helvetica, Arial, sans-serif; font-weight: 700; }

/* Rândul de titlu cu butonul în dreapta, aliniat la baza titlului. */
.gmh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.gmh-head__text { min-width: 0; }
.gmh-head .gm-btn { flex: none; }

.gmh-dark { background: var(--gm-ink); color: #fff; border-radius: 24px; padding: 36px 44px 44px; }
.gmh-dark .gmh-h2 { color: #fff; }

/* Inelul de focus din bază e portocaliu deschis, cu sub 3:1 pe alb, bej și mint:
   pe fundalurile deschise devine verde-închis, pe panourile închise rămâne
   portocaliu, iar pe banda portocalie e alb. */
.gmh .gm-btn:focus-visible { outline-color: var(--gm-ink); }
.gmh-hero .gm-btn:focus-visible,
.gmh-dark .gm-btn:focus-visible { outline-color: var(--gm-orange-light); }
.gmh-cta .gm-btn:focus-visible { outline-color: #fff; }

/* Intervalele („3–5 zile") nu se rup la linie după cratimă. */
.gmh-nobr { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */

.gmh-hero-wrap { padding-top: 24px; }

.gmh-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gm-dark-2);
  /* Mai scurtă decât --gm-shadow: în design umbra abia atinge cardul de dedesubt. */
  box-shadow: 0 10px 30px rgba(20, 21, 23, .1);
}

.gmh-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

/* Fotografia include deja gradientul; al doilea strat întuneca excesiv hero-ul. */
.gmh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: none;
}

.gmh-hero__body { width: 100%; max-width: 680px; padding: 0 56px 56px; }

.gmh-hero__pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gm-orange);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gmh-hero__title {
  margin-top: 18px !important;
  color: #fff;
  font-size: 72px;
  line-height: .95;
  letter-spacing: -.035em;
  font-weight: 800 !important;
  text-wrap: balance;
}
.gmh-hero__num { color: var(--gm-orange-light); }

.gmh-hero__lead {
  max-width: 480px;
  margin-top: 17px !important;
  color: var(--gm-on-dark-2);
  font-size: 19px;
  line-height: 29px;
}

.gmh-hero .gmh-actions { margin-top: 22px; }
.gmh-hero .gm-btn--outline-light { padding: 0 26px; border-color: rgba(255, 255, 255, .62); }

/* ------------------------------------------------------------------ */
/* „Din Italia, direct pe raftul tău"                                   */
/* ------------------------------------------------------------------ */

.gmh-intro-wrap { padding-top: 24px; }

.gmh-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--gm-line);
  border-radius: 24px;
  background: #fff;
}

.gmh-intro__text { padding: 28px 37px 36px 36px; }
.gmh-intro__title { margin-top: 12px !important; max-width: 560px; font-size: 40px; line-height: 1.05; letter-spacing: -.025em; }
.gmh-intro__lead { margin-top: 13px !important; max-width: 560px; color: var(--gm-text); font-size: 16px; line-height: 26px; text-wrap: pretty; }
.gmh-intro .gmh-actions { margin-top: 18px; }

/* Grila 2 × 2 din dreapta: rândul de jos are înălțimea din design, cel de sus
   preia restul, cât cere textul din stânga. */
.gmh-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  border-left: 1px solid var(--gm-line-2);
  background: var(--gm-cream);
}

.gmh-feat { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; }
.gmh-feat:nth-child(odd) { border-right: 1px solid var(--gm-line-2); }
.gmh-feat:nth-child(n+3) { min-height: 132px; border-top: 1px solid var(--gm-line-2); }

.gmh-feat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--gm-mint);
  color: var(--gm-green);
}
.gmh-feat__icon .gm-icon { width: 20px; height: 20px; }

.gmh-feat__text { display: flex; flex-direction: column; gap: 3px; margin-top: -1px; }
.gmh-feat__title { color: var(--gm-ink); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800 !important; }
.gmh-feat__sub { color: var(--gm-text-2); font-size: 13px; line-height: 1.4; }

/* ------------------------------------------------------------------ */
/* Cum funcționează                                                     */
/* ------------------------------------------------------------------ */

.gmh-steps { padding-top: 40px; }
.gmh-steps__title { margin-top: 7px !important; max-width: 640px; font-size: 42px; line-height: 1.05; }

.gmh-steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 23px !important;
}

.gmh-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 309px;
  /* 3 px în plus la dreapta: rândurile se rup ca în design (coloana de text e
     cea din machetă, deși containerul are 1320 px). */
  padding: 31px 33px 30px 30px;
  border: 1px solid var(--gm-line);
  border-radius: 20px;
  background: #fff;
}

.gmh-step__icon { border-radius: 14px; }

.gmh-step__num {
  position: absolute;
  top: 30px;
  right: 32px;
  color: #EEF0ED;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 800;
}

.gmh-step__title { margin-top: 14px !important; color: var(--gm-ink); font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800 !important; }
/* pretty: fără un singur cuvânt pe ultimul rând; așa se rupe și cardul 02 din design. */
.gmh-step__text { margin: 13px 0 14px !important; color: var(--gm-text); font-size: 15px; line-height: 24px; text-wrap: pretty; }
/* Pastila stă jos în card, aliniată între cele trei carduri. */
.gmh-step__pill { margin-top: auto; padding: 6px 13px; font-size: 12px; letter-spacing: .01em; font-weight: 600 !important; }

/* ------------------------------------------------------------------ */
/* Branduri                                                             */
/* ------------------------------------------------------------------ */

.gmh-brands { padding-top: 40px; }

/* Pe ecranele înguste nota trece sub titlu, în loc să împingă pagina în lateral. */
.gmh-brands__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.gmh-brands__title {
  flex: none;
  color: var(--gm-green);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: .135em;
  text-transform: uppercase;
  font-weight: 700 !important;
}
.gmh-brands__rule { flex: 1; min-width: 24px; height: 1px; background: var(--gm-line); }
.gmh-brands__note { flex: none; color: var(--gm-text-2); font-size: 13px; line-height: 1.2; }

.gmh-brands__band {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-block: 1px solid var(--gm-line-2);
  background: #fff;
}

/* 4 s pe celulă: pe desktop banda merge cu 50 px/s. */
.gmh-brands__track { display: flex; width: max-content; animation: gmh-marquee 44s linear infinite; }
.gmh-brands__list { display: flex; flex: none; }
.gmh-brands__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 108px;
  padding: 0 18px;
}
.gmh-brands__cell::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  right: 0;
  width: 1px;
  background: var(--gm-line-2);
}

.gmh-brand-logo { width: var(--logo-w, 144px); height: 70px; object-fit: contain; flex: none; }

.gmh-brands__band:hover .gmh-brands__track,
.gmh-brands__band:focus-within .gmh-brands__track,
.gmh-brands.is-paused .gmh-brands__track { animation-play-state: paused; }

/* Butonul de oprire apare doar la navigarea cu tastatura. */
.gmh-brands__toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--gm-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600 !important;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gmh-brands__toggle:focus-visible { clip-path: none; outline: 3px solid var(--gm-ink); outline-offset: 2px; }

/* Pista are trei liste identice; o treime înseamnă exact o listă. */
@keyframes gmh-marquee { to { transform: translateX(calc(-100% / 3)); } }

/* ------------------------------------------------------------------ */
/* Palet mixat                                                          */
/* ------------------------------------------------------------------ */

.gmh-mix-wrap { padding-top: 48px; }

.gmh-mix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px 60px;
  padding: 36px 44px 44px;
  border-radius: 28px;
  background: var(--gm-mint);
}

.gmh-mix__title { margin-top: 16px !important; max-width: 520px; font-size: 44px; line-height: 1.02; }
.gmh-mix__lead { margin-top: 18px !important; max-width: 590px; color: var(--gm-text); font-size: 16px; line-height: 25px; text-wrap: pretty; }

.gmh-checks { display: flex; flex-direction: column; gap: 13px; margin-top: 23px !important; }
.gmh-check { display: flex; align-items: flex-start; gap: 13px; }
.gmh-check__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gm-green);
  color: #fff;
}
.gmh-check__mark .gm-icon { width: 15px; height: 15px; stroke-width: 2.6; }
.gmh-check__title { display: block; color: var(--gm-ink); font-size: 16px; line-height: 1.2; font-weight: 700 !important; }
.gmh-check__sub { display: block; margin-top: 2px; color: var(--gm-text-2); font-size: 14px; line-height: 1.35; }

.gmh-mix .gm-btn { margin-top: 24px; }

/* Paletul: rama albă cu grila de 6 × 4, peste scândurile de lemn. Coloana e centrată
   pe verticală: cei 6 px de sus țin legenda pe loc și coboară rama ca în design
   (24 px între legendă și ramă). */
.gmh-pallet { justify-self: center; width: 100%; max-width: 560px; margin-top: 6px; }

/* Pe rând îngust „13 categorii" trece întreagă dedesubt, nu se rup ambele părți. */
.gmh-pallet__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 13px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
  font-weight: 700;
}
.gmh-pallet__label { color: var(--gm-green); }
/* Ruginiu, nu portocaliu: portocaliul pe mint are 3,8:1 la 12 px. */
.gmh-pallet__meta { color: var(--gm-rust); }

.gmh-pallet__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 62px);
  gap: 4px;
  overflow: hidden;
  padding: 6px;
  border: 2px solid #CEE4DD;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.gmh-block {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 0 6px 5px 8px;
  border-radius: 4px;
  background: var(--tone);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 800 !important;
  overflow: hidden;
  white-space: nowrap;
}
.gmh-block--green { --tone: var(--gm-green); }
.gmh-block--orange { --tone: var(--gm-orange); }
.gmh-block--ink { --tone: var(--gm-ink); }
/* Albul pe portocaliul deschis are 2,7:1; textul închis are 6,3:1. */
.gmh-block--peach { --tone: var(--gm-orange-light); color: #fff; }
.gmh-block--teal { --tone: var(--gm-teal); }
.gmh-block--sage { --tone: var(--gm-sage); }
.gmh-block--rust { --tone: var(--gm-rust); }
.gmh-block--deep { --tone: var(--gm-green-deep); }

/* Starea dinaintea căderii o pune scriptul (is-waiting), doar dacă paletul e sub
   ecran; tranziția există doar la cădere, ca ascunderea să fie instantanee. */
.gmh-pallet.is-waiting .gmh-block { opacity: 0; transform: translateY(-300px); }
.gmh-pallet.is-dropped .gmh-block {
  transition: transform .6s cubic-bezier(.34, 1.3, .64, 1) calc(var(--i) * 75ms), opacity .25s linear calc(var(--i) * 75ms);
}

.gmh-pallet__wood { position: relative; height: 32px; }
.gmh-pallet__wood::before,
.gmh-pallet__wood::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 3px;
  background: #CA9A5C;
}
.gmh-pallet__wood::before { top: 0; height: 12px; }
.gmh-pallet__wood::after { bottom: 0; height: 8px; }
.gmh-pallet__wood span { position: absolute; top: 12px; width: 14.5%; height: 12px; background: #AB7A3E; }
.gmh-pallet__wood span:nth-child(1) { left: 4%; }
.gmh-pallet__wood span:nth-child(2) { left: 42.75%; }
.gmh-pallet__wood span:nth-child(3) { right: 4%; }

/* ------------------------------------------------------------------ */
/* Produse noi (între widgeturi)                                        */
/* ------------------------------------------------------------------ */

/* Tema pune main>section:not(:last-child){margin-bottom:2rem}; secțiunile noi din
   <main> au nevoie de un selector mai puternic pentru ritmul de 48 px. */
html.site-index main > .gmh-news-wrap { margin-bottom: 48px; }
.gmh-news__title { margin-top: 10px !important; font-size: 46px; line-height: 1.02; max-width: 640px; }

.gmh-news__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px !important;
}

.gmh-news .gm-btn { min-height: 46px; }

.gmh-news__item {
  padding: 22px 22px 22px 23px;
  border: 1px solid rgba(220, 235, 230, .16);
  border-radius: 16px;
  background: var(--gm-dark-line);
}

.gmh-news__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gm-orange);
  color: #FFE4D4;
}
.gmh-news__icon .gm-icon { width: 20px; height: 20px; }

.gmh-news__item-title { margin-top: 12px !important; color: #fff; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; font-weight: 800 !important; }
.gmh-news__item-text { margin-top: 7px !important; color: var(--gm-on-dark); font-size: 14px; line-height: 21px; }

/* ------------------------------------------------------------------ */
/* Paletul din toate unghiurile + banda de înscriere                     */
/* ------------------------------------------------------------------ */

/* Banda portocalie nu e ultima în <main> (după ea vin scripturile de site), deci
   primea și ea marginea de 2rem a temei, peste cei 56 px de sub ea. */
html.site-index main > .gmh-angles-wrap,
html.site-index main > .gmh-cta-wrap { margin-bottom: 0; }
.gmh-angles__title { margin-top: 10px !important; font-size: 46px; line-height: 1.02; max-width: 560px; }
.gmh-angles__lead { margin-top: 13px !important; max-width: 690px; color: var(--gm-on-dark-2); font-size: 16px; line-height: 25px; opacity: .86; text-wrap: pretty; }

.gmh-angles__art {
  margin-top: 29px;
  aspect-ratio: 2.35;
  border: 1px solid var(--gm-dark-line-2);
  border-radius: 16px;
  background: var(--gm-dark-3) var(--gmh-art, none) center / cover no-repeat;
}

.gmh-cta-wrap { padding-top: 56px; padding-bottom: 56px; }

.gmh-cta {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 44px;
  border-radius: 24px;
  background: var(--gm-orange);
  color: #fff;
}

.gmh-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  color: var(--gm-orange);
}
.gmh-cta__icon .gm-icon { width: 28px; height: 28px; }

.gmh-cta__text { flex: 1; min-width: 0; }
.gmh-cta__title { color: #fff; font-size: 38px; line-height: 1.05; letter-spacing: -.025em; font-weight: 800 !important; }
/* Alb, nu piersică: pe portocaliu e cel mai mare contrast posibil (4,2:1). */
.gmh-cta__lead { margin-top: 7px !important; color: #fff; font-size: 16px; line-height: 1.4; }
.gmh-cta .gm-btn { flex: none; min-height: 52px; padding: 0 26px; font-size: 16px; }

/* ------------------------------------------------------------------ */
/* Ce există deja pe pagină: categorii, bannere, slidere                */
/* ------------------------------------------------------------------ */

/* Categorii principale — un singur rând de cercuri, cu pastila verde dedesubt. */
html.site-index #page_top .bslot-html--narrow:has(> .fc-cats) { max-width: none; padding-inline: 0; }

html.site-index .fc-cats {
  --font-principal: var(--gm-font);
  --font-secundar: var(--gm-font);
  max-width: calc(var(--gm-container) + 2 * var(--gm-gutter));
  margin: 0 auto;
  padding: 54px var(--gm-gutter) 23px;
  font-family: var(--gm-font);
}

html.site-index .fc-cats .fc-cats__head { align-items: flex-end; gap: 18px; margin-bottom: 14px; }
html.site-index .fc-cats .fc-cats__heading { display: flex; flex-direction: column; flex: 1; min-width: 0; }
html.site-index .fc-cats .fc-cats__eyebrow {
  margin: 0 0 4px -.3em;
  color: var(--gm-green);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: .135em;
  font-weight: 700;
}
html.site-index .fc-cats h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gm-ink);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800 !important;
}
html.site-index .fc-cats h2::after { content: ""; flex: 1; height: 1px; margin-top: 4px; background: var(--gm-line); }

html.site-index .fc-cats .fc-cats__nav { display: flex; gap: 8px; }
html.site-index .fc-cats .fc-cats__arrow {
  border: 1px solid transparent !important;
  background: var(--gm-ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 33, 28, .08);
  transition: background-color .2s var(--gm-ease), color .2s var(--gm-ease), border-color .2s var(--gm-ease);
}
html.site-index .fc-cats .fc-cats__prev { border-color: var(--gm-line) !important; background: #fff; color: var(--gm-ink); }
html.site-index .fc-cats .fc-cats__arrow span { padding: 0 0 2px; font: 700 21px/1 var(--gm-font); }
html.site-index .fc-cats .fc-cats__arrow:hover:not(:disabled) { border-color: var(--gm-green) !important; background: var(--gm-green); color: #fff; }
html.site-index .fc-cats .fc-cats__arrow:disabled { opacity: 1; cursor: default; }
html.site-index .fc-cats .fc-cats__arrow:disabled span { opacity: .45; }
html.site-index .fc-cats .fc-cats__arrow:focus-visible { outline: 3px solid var(--gm-ink); outline-offset: 3px; }

/* Scriptul din admin grupează cardurile câte 12 pe slide; slide-ul devine
   transparent, iar cardurile curg pe un singur rând. Săgețile derulează în
   continuare cu lățimea pistei, iar snap-ul oprește la începutul unui card. */
html.site-index .fc-cats .fc-cats__track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 8px 0 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
html.site-index .fc-cats .fc-cats__slide { display: contents; }

html.site-index .fc-cats .fc-cat { flex: 0 0 190px; gap: 15px; scroll-snap-align: start; }
html.site-index .fc-cats .fc-cat__thumb {
  width: 176px;
  margin: 0 auto;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 33, 28, .08);
}
html.site-index .fc-cats .fc-cat__thumb img { padding: 0; object-fit: cover; }
html.site-index .fc-cats .fc-cat__label {
  min-height: 38px;
  padding: 8px;
  background: var(--gm-green);
  font-size: 13.5px;
  line-height: 1.15;
  letter-spacing: .01em;
  font-weight: 800;
}
html.site-index .fc-cats .fc-cat:hover .fc-cat__thumb,
html.site-index .fc-cats .fc-cat:focus-visible .fc-cat__thumb { border-color: #fff; box-shadow: 0 16px 32px rgba(0, 33, 28, .14); }
html.site-index .fc-cats .fc-cat:hover .fc-cat__label,
html.site-index .fc-cats .fc-cat:focus-visible .fc-cat__label { background: var(--gm-orange); color: #fff; }
html.site-index .fc-cats .fc-cat:focus-visible { outline: 3px solid var(--gm-ink); outline-offset: 4px; border-radius: 12px; }

/* Bannerele și sliderele din widgeturi, pe containerul de 1320 px. */
html.site-index main > section.widget-banner,
html.site-index main > section.widget-products-slider { margin: 0 0 48px; }
html.site-index main > section.widget-banner:has(+ section.widget-products-slider) { margin-bottom: 16px; }

html.site-index .widget-banner [class*="--narrow"],
html.site-index .widget-products-slider .products-slider,
html.site-index .widget-products-slider > .widget-header {
  max-width: calc(var(--gm-container) + 2 * var(--gm-gutter));
  margin-inline: auto;
  padding-inline: var(--gm-gutter);
}

html.site-index .widget-banner .bslot-single-file__cell,
html.site-index .widget-banner .bslot-slider .splide__track { overflow: hidden; border-radius: 24px; }
html.site-index .widget-banner .bslot-single-file__image-wrapper { max-width: none !important; }

html.site-index .widget-products-slider > .widget-header { align-items: center; margin-bottom: 16px; }
html.site-index .widget-products-slider__heading {
  --font-principal: var(--gm-font);
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--gm-ink);
  font-family: var(--gm-font);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800 !important;
}
html.site-index .widget-products-slider__heading::after { content: ""; flex: 1; height: 1px; margin-top: 4px; background: var(--gm-line); }

html.site-index .widget-products-slider .products-slider__items {
  position: relative;
  padding: 16px;
  border: 1px solid var(--gm-line);
  border-radius: 20px;
  background: #fff;
}

/* Săgețile sliderelor, ca la categorii: rotunde, prima deschisă, a doua închisă. */
html.site-index .widget-products-slider .splide__arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gm-line);
  border-radius: 50%;
  background: #fff;
  color: var(--gm-ink);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 33, 28, .12);
  transition: background-color .2s var(--gm-ease), border-color .2s var(--gm-ease);
}
html.site-index .widget-products-slider .splide__arrow--prev { left: -22px; }
html.site-index .widget-products-slider .splide__arrow--next { right: -22px; border-color: var(--gm-ink); background: var(--gm-ink); }
html.site-index .widget-products-slider .splide__arrow svg { width: 14px; height: 14px; min-width: 0; fill: var(--gm-ink); filter: none; }
html.site-index .widget-products-slider .splide__arrow--next svg { fill: #fff; }
html.site-index .widget-products-slider .splide__arrow:hover { border-color: var(--gm-green); background: var(--gm-green); }
html.site-index .widget-products-slider .splide__arrow:hover svg { fill: #fff; }
html.site-index .widget-products-slider .splide__arrow:focus-visible { outline: 3px solid var(--gm-ink); outline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* Ecrane mai mici                                                      */
/* ------------------------------------------------------------------ */

@media (max-width: 1199.98px) {
  .gmh-hero { min-height: 540px; }
  /* Textul ocupă o parte mai mare din card: verdele acoperă mai mult din poză. */
  .gmh-hero::before {
    background:
      linear-gradient(0deg, rgba(0, 33, 28, .7) 0%, rgba(0, 33, 28, 0) 24%),
      linear-gradient(90deg, rgba(0, 33, 28, .92) 0%, rgba(0, 33, 28, .86) 40%, rgba(0, 33, 28, .5) 58%, rgba(0, 33, 28, 0) 76%);
  }
  .gmh-hero__title { font-size: 62px; }
  .gmh-intro { grid-template-columns: 1fr; }
  .gmh-intro__grid { grid-template-rows: auto; border-left: 0; border-top: 1px solid var(--gm-line-2); }
  .gmh-feat:nth-child(n+3) { min-height: 0; }
  .gmh-feat { padding: 20px 24px; }
  .gmh-intro__title, .gmh-intro__lead { max-width: 720px; }
  .gmh-mix { grid-template-columns: 1fr; gap: 36px; }
  .gmh-mix__lead { max-width: 720px; }
  .gmh-pallet { margin-top: 0; }
  .gmh-news__list { grid-template-columns: repeat(2, 1fr); }
  html.site-index .widget-products-slider .splide__arrow--prev { left: -12px; }
  html.site-index .widget-products-slider .splide__arrow--next { right: -12px; }
}

@media (max-width: 991.98px) {
  /* Sub 992 px poza stă deasupra, iar textul jos, pe verdele care urcă din bază. */
  .gmh-hero { min-height: 0; }
  .gmh-hero::before {
    background:
      linear-gradient(0deg, rgba(0, 33, 28, .94) 0%, rgba(0, 33, 28, .84) 48%, rgba(0, 33, 28, .3) 78%, rgba(0, 33, 28, .1) 100%);
  }
  .gmh-hero__img { object-position: 78% center; }
  .gmh-hero__body { max-width: none; padding: 230px 40px 40px; }
  .gmh-hero__title { font-size: 56px; }
  .gmh-hero__lead { max-width: 560px; }

  .gmh-h2, .gmh-steps__title, .gmh-news__title, .gmh-angles__title { font-size: 36px; }
  .gmh-intro__title { font-size: 34px; }
  .gmh-steps__list { grid-template-columns: 1fr; gap: 12px; }
  .gmh-step { min-height: 0; }
  /* Cardurile sunt pe toată lățimea: rândurile de text rămân de lungime citibilă. */
  .gmh-step__text { max-width: 56ch; }
  .gmh-head { flex-direction: column; align-items: flex-start; }
  .gmh-cta { flex-wrap: wrap; padding: 36px 32px; }
  .gmh-cta__text { flex-basis: calc(100% - 84px); }
  .gmh-cta__title { font-size: 32px; }
  html.site-index .fc-cats h2 { font-size: 30px; }
}

@media (max-width: 767.98px) {
  .gmh-hero-wrap, .gmh-intro-wrap { padding-top: 16px; }
  .gmh-hero { border-radius: 22px; }
  .gmh-hero__body { padding: 150px 22px 26px; }
  .gmh-hero__title { font-size: 42px; line-height: .98; letter-spacing: -.04em; }
  .gmh-hero__lead { margin-top: 14px !important; font-size: 16.5px; line-height: 25px; }
  .gmh-hero .gmh-actions { margin-top: 20px; }
  .gmh-actions .gm-btn { flex: 1 1 auto; }

  .gmh-h2, .gmh-steps__title, .gmh-news__title, .gmh-angles__title, .gmh-intro__title { font-size: 31px; line-height: 1.05; }
  .gmh-intro { border-radius: 20px; }
  .gmh-intro__text { padding: 26px 20px 24px; }
  .gmh-intro__grid { grid-template-columns: 1fr; }
  .gmh-feat { padding: 16px 20px; border-right: 0 !important; }
  .gmh-feat + .gmh-feat { border-top: 1px solid var(--gm-line-2); }

  .gmh-steps { padding-top: 40px; }
  .gmh-step { padding: 24px 22px; }
  .gmh-step__num { top: 20px; right: 22px; font-size: 46px; }
  .gmh-step__title { font-size: 21px; }

  .gmh-brands { padding-top: 36px; }
  .gmh-brands__head { gap: 6px 12px; }
  .gmh-brands__cell { width: 150px; height: 84px; }
  .gmh-brands__cell::after { top: 18px; bottom: 18px; }
  .gmh-brand-logo { width: min(var(--logo-w, 144px), 120px); height: 54px; }

  .gmh-mix-wrap { padding-top: 36px; }
  .gmh-mix { padding: 26px 20px 28px; border-radius: 22px; gap: 28px; }
  .gmh-pallet__grid { grid-template-rows: repeat(4, 50px); gap: 3px; padding: 5px; }
  /* Coloanele au ~48 px: „Cosmetice" se rupe la cratima moale din șablon. */
  .gmh-block { padding: 0 4px 6px 5px; font-size: 8.5px; line-height: 1.1; white-space: normal; hyphens: manual; }
  .gmh-pallet__cap { font-size: 11px; }

  .gmh-dark { padding: 28px 20px; border-radius: 20px; }
  html.site-index main > .gmh-news-wrap { margin-bottom: 36px; }
  .gmh-news__list { grid-template-columns: 1fr; gap: 10px; margin-top: 24px !important; }
  .gmh-news__item { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; padding: 18px; }
  .gmh-news__icon { grid-row: span 2; }
  .gmh-news__item-title { margin-top: 0 !important; align-self: end; }
  .gmh-news__item-text { margin-top: 4px !important; }
  .gmh-angles__lead { font-size: 15.5px; line-height: 24px; }
  .gmh-angles__art { margin-top: 24px; border-radius: 12px; }

  .gmh-cta-wrap { padding-top: 36px; padding-bottom: 36px; }
  .gmh-cta { padding: 26px 20px; gap: 16px; border-radius: 20px; }
  .gmh-cta__icon { width: 52px; height: 52px; border-radius: 14px; }
  .gmh-cta__icon .gm-icon { width: 24px; height: 24px; }
  .gmh-cta__text { flex-basis: calc(100% - 68px); }
  .gmh-cta__title { font-size: 26px; }
  .gmh-cta__lead { font-size: 15px; }
  .gmh-cta .gm-btn { width: 100%; }

  html.site-index .fc-cats { padding-top: 36px; padding-bottom: 24px; }
  html.site-index .fc-cats .fc-cats__head { display: flex !important; align-items: flex-end !important; }
  html.site-index .fc-cats h2 { font-size: 26px; }
  html.site-index .fc-cats h2::after { display: none; }
  html.site-index .fc-cats .fc-cats__track { gap: 14px; padding: 6px 0 18px; scroll-padding-inline: 0; }
  html.site-index .fc-cats .fc-cat { flex: 0 0 146px; }
  html.site-index .fc-cats .fc-cat__thumb { width: 136px; border-width: 5px; }
  html.site-index .fc-cats .fc-cat__label { min-height: 34px; padding: 7px 8px; font-size: 11px; }

  html.site-index main > section.widget-banner,
  html.site-index main > section.widget-products-slider { margin-bottom: 36px; }
  html.site-index .widget-banner .bslot-single-file__cell,
  html.site-index .widget-banner .bslot-slider .splide__track { border-radius: 16px; }
  html.site-index .widget-products-slider__heading { font-size: 24px; }
  html.site-index .widget-products-slider .products-slider__items { padding: 12px; border-radius: 16px; }
  html.site-index .widget-products-slider .splide__arrow { width: 38px; height: 38px; }
  html.site-index .widget-products-slider .splide__arrow--prev { left: -8px; }
  html.site-index .widget-products-slider .splide__arrow--next { right: -8px; }
}

/* Pe telefon ilustrația întreagă ar avea etichetele de ~4 px: panoul devine mai
   înalt și păstrează doar centrul (paletul și cele 8 etichete), fără cele două
   vederi mici din colțuri. */
@media (max-width: 600px) {
  .gmh-angles__art { aspect-ratio: 1.35; }
}

@media (max-width: 479.98px) {
  .gmh-hero__title { font-size: 38px; }
  .gmh-actions { flex-direction: column; }
  .gmh-actions .gm-btn { width: 100%; }
}

/* Sub 390 px numele din blocurile de o coloană („Snacks", „Parfum") nu mai încap:
   paletul câștigă lățime din marginile panoului și ale ramei, iar sub 360 px
   scade și textul. */
@media (max-width: 389.98px) {
  .gmh-mix { padding-inline: 12px; }
  .gmh-pallet__grid { gap: 2px; padding: 3px; }
  .gmh-block { padding: 0 3px 6px 4px; }
}

@media (max-width: 359.98px) {
  .gmh-block { padding: 0 2px 6px 3px; font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .gmh-brands__track { animation: none; }
  .gmh-brands__band { overflow-x: auto; }
  .gmh-brands__list[aria-hidden="true"], .gmh-brands__toggle { display: none; }
  .gmh-pallet.is-waiting .gmh-block { opacity: 1; transform: none; }
}
