/*
Theme Name: Mirdatod
Theme URI: https://mirdatod.ro
Description: Temă custom pentru mirdatod.ro — Lactate de Ibănești. Construită 1:1 după prototipul de design aprobat: paletă crem/maroon/roșu/auriu, tipografie Playfair Display + Inter, CPT produs cu catalog filtrabil, pagini de poveste și blog Noutăți. Necesită plugin-ul Mirdatod Core.
Author: Mirdatod Prod SRL
Version: 1.5.7
Requires PHP: 7.4
Text Domain: mirdatod
*/

/* ============================================================
   MIRDATOD — după prototipul aprobat
   Culori aliniate la brand (2026-07-07, analiza cromatică):
   #CB141D (roșu = Pantone 032 C întunecat pt. ecran) ·
   #F3CF24 (auriu = Pantone 116 C) · #4B2614 (maro = Pantone 4625 C) ·
   #EDE8C0 (crem, doar hero) · panou hero #F6F1E2 (ivoriu-lapte)
   Fonturi: Playfair Display + Inter
   ============================================================ */

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #CB141D;       /* Pantone 032 C adaptat ecran (originalul #EE1C25 pică sub AA) */
  --red-dark:   #A41017;
  --gold:       #F3CF24;       /* Pantone 116 C */
  --gold-light: #FCEE6B;
  --forest:     #1C3225;
  --forest-mid: #254D34;

  /* Culori identitate vizuală Mirdatod */
  --cream:      #EDE8C0;        /* fundalul brand — din culoare_fundal.webp */
  --cream-dark: #E3DCAE;        /* versiune mai închisă pentru hover/separare */
  --cream-light:#F5F1D8;        /* versiune mai deschisă pentru secțiuni alternate */
  --paper:      #FCFBF8;        /* alb cald — fundalul de lucru al paginii */
  --maroon:     #4B2614;        /* text principal — Pantone 4625 C (maroul siglei monocrom) */
  --maroon-mid: #6B3D28;        /* text secundar, subtitrări */
  --maroon-light:#8F5D46;       /* text terțiar, etichete */

  --dark:       #331A0E;        /* titluri principale — maro very deep */
  --brown:      #6B3D28;        /* corp text */
  --brown-light:#8F5D46;        /* text secundar */
  --white:      #FFFFFF;
  --border:     #D9D0A0;        /* borduri — ton mai cald, armonizat cu cream */

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --container:  1200px;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(26,26,26,.08);
  --shadow-lg:  0 8px 48px rgba(26,26,26,.14);

  --transition: .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--maroon);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* --- TYPOGRAPHY ------------------------------------------- */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; color: var(--maroon); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--maroon-mid); line-height: 1.8; }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

/* --- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(203,20,29,.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-dark:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border: 2px solid var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243,207,36,.35);
}

.btn-ghost-light {
  background: transparent;
  color: var(--maroon);
  border: 2px solid rgba(75,38,20,.3);
  transition: all var(--transition);
}
.btn-ghost-light:hover {
  background: rgba(75,38,20,.06);
  border-color: var(--maroon);
  transform: translateY(-2px);
}

/* --- BADGE DOP -------------------------------------------- */
.badge-dop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.badge-dop::before {
  content: '★';
  font-size: .8rem;
  color: var(--red);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all .3s ease;
}

/* Pattern-ul de hârtie de pe site-ul original, cu marginea de jos ruptă.
   Imaginea are 90px: 72px acoperă bara, restul de 18px (ruptura) atârnă sub ea. */
.site-header::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: -18px;
  z-index: -1;
  background: url('assets/images/hartie-meniu.webp') repeat-x left top / auto 90px;
  pointer-events: none;
}

.site-header.scrolled::before {
  filter: drop-shadow(0 3px 10px rgba(75,38,20,.18));
}

/* Bara de admin WP împinge header-ul fix */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 64px;
  width: auto;
  mix-blend-mode: multiply;
  transition: opacity var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--maroon);
  transition: all var(--transition);
}
.site-header.scrolled .nav-menu a { color: var(--maroon); }

.nav-menu a:hover {
  color: var(--red);
}
.site-header.scrolled .nav-menu a:hover {
  color: var(--red);
}

.nav-menu .current-menu-item > a,
.nav-menu a.nav-active {
  color: var(--red);
  font-weight: 600;
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 6px;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
}

.nav-lang {
  font-size: .8rem;
  font-weight: 600;
  color: var(--maroon-mid);
  border: 1.5px solid rgba(75,38,20,.25);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all var(--transition);
}
.nav-lang:hover {
  color: var(--red);
  border-color: var(--red);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO V2 — SPLIT EDITORIAL
   ============================================================ */
@keyframes revealUp {
  from { clip-path: inset(100% 0 0 0); transform: translateY(16px); }
  to   { clip-path: inset(0 0 0 0);   transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-v2 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  /* bejul + textura care erau pe body — hero-ul rămâne singura zonă pe bej */
  background-color: var(--cream);
  background-image: url('assets/images/imagine-fundal.webp');
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.hero-v2-left {
  position: relative;
  z-index: 2;
  width: 46%;
  max-width: 620px;
  min-height: 100vh;
  padding: 148px 60px 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-v2-left::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(75,38,20,.08);
  pointer-events: none;
}
.hero-v2-left::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(203,20,29,.06);
  pointer-events: none;
}

.hero-accent-line {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-bottom: 28px;
  animation: fadeSlideIn .8s ease .2s both;
}

.hero-origin-tag {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--maroon-mid);
  margin-bottom: 28px;
  animation: fadeSlideIn .8s ease .3s both;
}

.hero-v2-left h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.08;
  margin-bottom: 28px;
}

.hero-v2-left h1 .line {
  display: block;
  overflow: hidden;
  /* loc pentru descendentele literelor (p, g) sub linia de bază —
     altfel overflow:hidden le taie; compensăm vizual cu margin negativ */
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.hero-v2-left h1 .line span {
  display: block;
  animation: revealUp .8s cubic-bezier(.16,1,.3,1) both;
}
.hero-v2-left h1 .line:nth-child(1) span { animation-delay: .4s; }
.hero-v2-left h1 .line:nth-child(2) span { animation-delay: .52s; }
.hero-v2-left h1 .line:nth-child(3) span { animation-delay: .64s; }
.hero-v2-left h1 .line:nth-child(4) span { animation-delay: .76s; }

.hero-v2-left h1 .gold { color: var(--red); font-style: italic; }
.hero-v2-left h1 .indent { padding-left: 2.5rem; }

.hero-dop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(203,20,29,.35);
  color: var(--red);
  background: rgba(203,20,29,.05);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
  animation: fadeIn 1s ease .9s both;
  width: fit-content;
}
.hero-dop-badge::before { content: '★'; font-size: .7rem; }

.hero-v2-desc {
  font-size: .95rem;
  color: var(--maroon-mid);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 380px;
  animation: fadeIn 1s ease 1s both;
}

.hero-v2-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeIn 1s ease 1.1s both;
}

.hero-scroll-v2 {
  position: absolute;
  bottom: 32px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 1s ease 1.4s both;
}
.hero-scroll-v2 span {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon-light);
}
.scroll-line-h {
  width: 40px;
  height: 1px;
  background: rgba(75,38,20,.2);
  position: relative;
  overflow: hidden;
}
.scroll-line-h::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--red);
  animation: scrollPulse 2s ease 1.5s infinite;
}
@keyframes scrollPulse {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.hero-v2-right {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-v2-right::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* panoul de text: ivoriu-lapte (#F6F1E2) cu stingere prelungă „de ceață" —
     desaturat ca să se topească în negura fotografiei (analiza 2026-07-07);
     brazii și ceața răzbat prin marginea panoului, textul rămâne lizibil */
  background: linear-gradient(
    to right,
    rgba(246,241,226,1)   0%,
    rgba(246,241,226,1)   15%,
    rgba(246,241,226,.93) 28%,
    rgba(246,241,226,.72) 40%,
    rgba(246,241,226,.45) 52%,
    rgba(246,241,226,.22) 63%,
    rgba(246,241,226,.08) 72%,
    rgba(246,241,226,0)   82%
  );
}

.hero-v2-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  transition: transform 14s ease;
}
.hero-v2:hover .hero-v2-right img { transform: scale(1.04); }

.hero-location {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(28,50,37,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243,207,36,.25);
  padding: 12px 18px;
  border-radius: 4px;
  animation: fadeIn 1s ease 1.2s both;
}
.hero-location-pin {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(243,207,36,.2);
}
.hero-location span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
}

/* Delimitare „hârtie ruptă" între hero și corpul paginii: albul cald al
   paginii „rupe" peste bejul/imaginea hero-ului — același stil cu meniul. */
.torn-divider {
  height: 25px;
  margin-top: -25px;
  position: relative;
  z-index: 5;
  background: url('assets/images/hartie-rupta-sus.webp') repeat-x left top / auto 100%;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-v2 {
    min-height: 100svh;
  }
  .hero-v2-left {
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    padding: 100px 24px 80px;
  }
  .hero-v2-right::after {
    background: linear-gradient(
      to bottom,
      rgba(246,241,226,.98) 0%,
      rgba(246,241,226,.95) 55%,
      rgba(246,241,226,.72) 78%,
      rgba(246,241,226,.3)  100%
    );
  }
  .hero-v2-right img {
    object-position: 65% 25%;
  }
  .hero-location {
    right: 20px;
    bottom: 20px;
  }
  .hero-scroll-v2 { left: 24px; }
}

@media (max-width: 560px) {
  /* pe telefon, „Scroll" se suprapunea peste badge-ul de locație — indiciul
     e decorativ și inutil pe touch, îl ascundem */
  .hero-scroll-v2 { display: none; }
}

/* ============================================================
   INTRO STATEMENT BAND
   ============================================================ */
.intro-statement {
  background: var(--red);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.intro-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/culoare_fundal.webp');
  background-size: 300px;
  opacity: .06;
  mix-blend-mode: overlay;
}

.intro-statement-text {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  color: rgba(255,255,255,.95);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.intro-statement-text em {
  color: var(--gold);
  font-style: italic;
}

/* ============================================================
   SECTION — TREI POVEȘTI
   ============================================================ */
.stories-trio {
  padding: 100px 0;
  background: transparent;
}

.stories-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 900px) { .stories-trio-grid { grid-template-columns: 1fr; gap: 48px; } }

.story-card {
  display: flex;
  flex-direction: column;
}

.story-card-image-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.story-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.story-card-image img {
  width: 100%;
  height: 100%;
  /* contain, nu cover: ilustrațiile-schiță ale poveștilor se afișează complet */
  object-fit: contain;
  transition: transform .7s ease;
}

.story-card:hover .story-card-image img {
  transform: scale(1.05);
}

.story-card-body {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 12px;
  line-height: 1.2;
}

.story-card-body h3 a {
  color: inherit;
  transition: color var(--transition);
}

.story-card-body h3 a:hover { color: var(--red); }

.story-card-body > p {
  font-size: .93rem;
  color: var(--maroon-mid);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.story-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap var(--transition), color var(--transition);
}

.story-read-more::after {
  content: '→';
  font-size: 1rem;
}

.story-card:hover .story-read-more {
  gap: 14px;
}

/* ============================================================
   PILLARS V2 — NUMBERED EDITORIAL
   ============================================================ */
.pillars-v2 {
  background: transparent;
  padding: 100px 0;
}

.pillars-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 900px) { .pillars-v2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pillars-v2-grid { grid-template-columns: 1fr; } }

.pillar-v2 {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.pillar-v2:last-child { border-right: none; }
/* la hover: fără fundal — textul se accentuează spre roșu */
.pillar-v2 h3,
.pillar-v2 .pillar-num { transition: color .2s ease; }
.pillar-v2:hover h3,
.pillar-v2:hover .pillar-num { color: var(--red); }

@media (max-width: 900px) {
  .pillar-v2:nth-child(2) { border-right: none; }
  .pillar-v2:nth-child(1),
  .pillar-v2:nth-child(2) { border-bottom: 1px solid var(--border); }
}

.pillar-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(75,38,20,.1);
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.pillar-v2:hover .pillar-num { color: rgba(203,20,29,.15); }

.pillar-v2 h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 10px;
  font-family: var(--font-sans);
  letter-spacing: -.01em;
}

.pillar-v2 p {
  font-size: .88rem;
  color: var(--maroon-mid);
  line-height: 1.65;
}

.pillar-accent {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  margin-bottom: 16px;
  transition: width var(--transition);
}
.pillar-v2:hover .pillar-accent { width: 48px; }

/* ============================================================
   FEATURED PRODUCT (ASYMMETRIC)
   ============================================================ */
.featured-product {
  padding: 100px 0;
  background: transparent;
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 860px) {
  .featured-inner { grid-template-columns: 1fr; gap: 40px; }
}

.featured-image {
  position: relative;
}

.featured-image-frame {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.featured-image-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
  /* umbră discretă care urmărește conturul imaginii, fără ramă colorată */
  filter: drop-shadow(0 10px 28px rgba(75,38,20,.1));
}
.featured-image:hover .featured-image-frame img { transform: scale(1.05); }

.featured-image-badge {
  position: absolute;
  top: 20px;
  right: 20px;
}

.featured-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.featured-content .product-tagline-v2 {
  font-size: 1rem;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.featured-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .88rem;
}

.spec-label {
  color: var(--brown-light);
  font-weight: 500;
}

.spec-value {
  color: var(--dark);
  font-weight: 600;
}

.featured-content .btn { margin-right: 12px; }

/* ============================================================
   SECTION — PRODUSE (GRID + CARDURI)
   ============================================================ */
.products-section {
  padding: 100px 0;
  background: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 { color: var(--dark); margin-bottom: 12px; }
.section-header p  { max-width: 540px; margin: 0 auto; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative; /* ancora pentru linkul întins pe tot cardul */
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(75,38,20,.08);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid rgba(75,38,20,.06);
}
/* Linkul din titlu se întinde peste tot cardul (stretched link) — altfel
   zonele fără link (ex. descrierea scurtă) au cursor de link dar click mort. */
.product-card-body h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  display: block; /* și ca <a>: altfel aspect-ratio/overflow nu se aplică pe inline */
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.product-card-body {
  padding: 20px 24px 24px;
}

.product-category {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 6px;
}

.product-card-body h3 {
  font-size: 1.15rem;
  color: var(--maroon);
  margin-bottom: 10px;
}

.product-card-body h3 a { color: inherit; transition: color var(--transition); }
.product-card-body h3 a:hover { color: var(--red); }

.product-card-body p {
  font-size: .88rem;
  color: var(--maroon-mid);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
}
.product-link:hover { gap: 10px; }
.product-link::after { content: '→'; }

.section-cta { text-align: center; }

/* ============================================================
   STATS BAND — CIFRE DRAMATICE
   ============================================================ */
.stats-band {
  background: var(--maroon);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.stats-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 860px) { .stats-band-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 0; } }
@media (max-width: 500px) { .stats-band-inner { grid-template-columns: 1fr; } }

.stat-v2 {
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.stat-v2:last-child { border-right: none; }

@media (max-width: 860px) {
  .stat-v2:nth-child(2) { border-right: none; }
}

.stat-v2-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-v2-label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}

/* Imagine panoramică full-width */
.panorama-band {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  max-height: 420px;
}
.panorama-band img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ============================================================
   SECTION — BANDA RETAILERI
   ============================================================ */
.retailers-band {
  background: transparent;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.retailers-band-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.retailers-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown-light);
  white-space: nowrap;
}

.retailers-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.retailer-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--maroon-light);
  letter-spacing: -.02em;
  opacity: .6;
  transition: all var(--transition);
}
.retailer-logo:hover { opacity: 1; color: var(--maroon); }

/* ============================================================
   SECTION — CTA B2B
   ============================================================ */
.b2b-cta {
  background: var(--red);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.b2b-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.b2b-cta::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.b2b-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.b2b-text h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.b2b-text p {
  color: rgba(255,255,255,.75);
  max-width: 480px;
}

/* ============================================================
   SECTION — CONTACT (homepage)
   ============================================================ */
.contact-section { padding: 100px 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-details p:first-child {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  font-size: .9rem;
}
.contact-details p { font-size: .9rem; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .contact-form-row { grid-template-columns: 1fr; } }

.contact-form label {
  font-size: .85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
/* :not(...submit) — butonul CF7 e <input type="submit" class="btn btn-primary">;
   fără excludere, regula asta (mai specifică decât .btn-primary) îi fura
   culorile: text maro + la hover roșu cu text închis (raportat 2026-07-07). */
.contact-form input:not([type="submit"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  background: var(--paper);
  color: var(--maroon);
  outline: none;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* --- Contact Form 7 — integrare cu designul ---------------- */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-not-valid { border-color: var(--red); }
.contact-form .wpcf7-not-valid-tip {
  display: block;
  color: var(--red);
  font-size: .8rem;
  margin-top: 6px;
}
.contact-form .wpcf7-response-output {
  margin: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--forest);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--forest);
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.payment-required .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  border-color: var(--red);
  color: var(--red);
}
.contact-form .wpcf7-spinner { align-self: flex-start; }
/* Honeypot anti-spam — invizibil pentru vizitatori. */
.contact-form .mdt-hp { position: absolute !important; left: -9999px !important; }

/* ============================================================
   PAGE HERO (Catalog, Noutăți, arhive)
   ============================================================ */
.page-hero {
  background: var(--maroon);
  padding: 140px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.6); max-width: 500px; margin: 0 auto; }
.page-hero .section-label { color: var(--gold); }

/* --- SHARE — butoane de distribuire (produs + articol) ------ */
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.share-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown-light);
}
.share-btn {
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--brown);
  transition: all var(--transition);
}
.share-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ============================================================
   CATALOG — FILTER BAR + GRID
   ============================================================ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 50;
  padding: 0 24px;
}
body.admin-bar .filter-bar { top: 104px; }

.filter-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover  { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

@media (max-width: 860px) {
  /* pe ecrane mici, scroll-ul orizontal cu scrollbar ascuns făcea categoriile
     „invizibile" — le trecem pe mai multe rânduri, toate la vedere */
  .filter-bar   { position: static; }
  .filter-inner { flex-wrap: wrap; overflow-x: visible; }
}

.catalog-section {
  padding: 60px 0 100px;
  background: var(--paper);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .catalog-grid { grid-template-columns: 1fr; } }

.product-card[data-cat] { display: flex; flex-direction: column; }
.product-card.hidden    { display: none; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--brown-light);
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.product-count {
  font-size: .88rem;
  color: var(--brown-light);
}
.product-count strong { color: var(--dark); }

/* ============================================================
   PAGINA PRODUS
   ============================================================ */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 80px;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--brown-light);
}
.breadcrumb li:not(:last-child)::after { content: '/'; }
.breadcrumb a { color: var(--brown-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li:last-child { color: var(--dark); font-weight: 500; }

.product-page { padding: 60px 0 100px; background: var(--paper); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
}

.gallery { position: sticky; top: 100px; }
@media (max-width: 860px) {
  /* pe o singură coloană sticky nu are sens; pe iOS aluneca peste text */
  .gallery { position: static; }
}

.gallery-main {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 1;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-main img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.gallery-main:hover img { transform: scale(1.04); }

.gallery-thumbs {
  display: flex;
  gap: 10px;
}
.gallery-thumb {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb.active { border-color: var(--red); }
.gallery-thumb img { max-height: 70px; width: auto; object-fit: contain; }

.product-info { display: flex; flex-direction: column; gap: 0; }

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-category-link {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown-light);
  transition: color var(--transition);
}
.product-category-link:hover { color: var(--red); }

.product-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.product-tagline {
  font-size: 1.05rem;
  color: var(--brown);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.gramaje-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 10px;
}
.gramaje-options {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.gramaj-btn {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: all var(--transition);
}
.gramaj-btn:hover   { border-color: var(--red); color: var(--red); }
.gramaj-btn.active  { background: var(--red); border-color: var(--red); color: var(--white); }

.where-to-find {
  background: rgba(75,38,20,.05);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.where-icon { font-size: 1.4rem; flex-shrink: 0; }
.where-text p:first-child { font-weight: 600; color: var(--dark); font-size: .9rem; margin-bottom: 2px; }
.where-text p:last-child  { font-size: .82rem; color: var(--brown-light); }

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.product-actions .btn { flex: 1; justify-content: center; min-width: 160px; }

.trust-badges {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--brown-light);
}
.trust-badge span:first-child { font-size: 1.1rem; }

/* --- TABS produs ------------------------------------------ */
.product-tabs { padding: 60px 0; background: var(--white); }

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--brown-light);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover  { color: var(--red); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel p { margin-bottom: 16px; max-width: 680px; }

.tab-note { font-size: .88rem; color: var(--brown-light); }

.ingredients-box {
  background: rgba(75,38,20,.05);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 680px;
  margin-bottom: 20px;
}
.ingredients-box p { color: var(--dark); font-size: .95rem; margin: 0; }
.ingredients-box strong { color: var(--red); }

.nutrition-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  font-size: .92rem;
}
.nutrition-table thead th {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.nutrition-table tbody tr { border-bottom: 1px solid var(--border); }
.nutrition-table tbody tr:nth-child(even) { background: rgba(75,38,20,.04); }
/* Subtitlu de secțiune (rând fără „|" în câmpul ACF) — desparte variantele
   de produs (ex. Smântână 12% vs. 20% grăsime) în același tabel. */
.nutrition-table tbody tr.nutrition-subhead th {
  background: rgba(75,38,20,.10);
  color: var(--maroon);
  text-align: left;
  padding: 12px 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nutrition-table td { padding: 10px 16px; color: var(--dark); }
.nutrition-table td:last-child { font-weight: 500; }

.nutrition-note {
  font-size: .78rem;
  color: var(--brown-light);
  margin-top: 12px;
}

.related-section {
  padding: 80px 0;
  background: var(--paper);
}
.related-section .section-header {
  text-align: left;
  margin-bottom: 36px;
}

/* ============================================================
   PAGINI POVESTE (Povestea · Gustul · Moștenirea)
   ============================================================ */
.story-hero {
  margin-top: 80px;
  position: relative;
  height: 520px;
  overflow: hidden;
}
.story-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.story-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(75,38,20,0) 30%,
    rgba(75,38,20,.65) 100%
  );
}
.story-hero-content {
  position: absolute;
  bottom: 56px;
  left: 0; right: 0;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}
.story-hero-content .section-label { color: rgba(243,207,36,.9); }
.story-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin-top: 8px;
}

.story-breadcrumb { background: transparent; padding: 20px 0 0; }
.story-breadcrumb ol {
  display: flex;
  gap: 8px;
  font-size: .82rem;
  color: var(--maroon-light);
  list-style: none;
}
.story-breadcrumb a { color: var(--maroon-mid); }
.story-breadcrumb .sep { opacity: .4; }
.story-breadcrumb [aria-current] { color: var(--maroon); }

.story-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}
.story-body p {
  font-size: 1.08rem;
  color: var(--maroon);
  line-height: 1.9;
  margin-bottom: 28px;
}
.story-body > p:first-of-type::first-letter,
.story-body .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--red);
  float: left;
  line-height: .85;
  margin-right: 8px;
  margin-top: 6px;
}

.story-pull-quote {
  border-left: 3px solid var(--red);
  margin: 40px 0;
  padding: 20px 32px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--maroon);
  line-height: 1.6;
}

.dop-highlight {
  background: rgba(243,207,36,.12);
  border: 1px solid rgba(243,207,36,.4);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 40px 0;
  text-align: center;
}
.dop-highlight .dop-year {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.dop-highlight p {
  font-size: 1rem;
  color: var(--maroon);
  margin-bottom: 0;
}
.dop-highlight strong { color: var(--red); }

.story-nav {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.story-nav-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.story-nav-card:hover {
  border-color: var(--red);
  background: rgba(203,20,29,.03);
}
.story-nav-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--maroon-light);
  margin-bottom: 8px;
  display: block;
}
.story-nav-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--maroon);
  transition: color var(--transition);
}
.story-nav-card:hover h4 { color: var(--red); }

.story-signature {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--maroon-mid);
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   ARTICOL (Noutăți)
   ============================================================ */
.article-hero {
  margin-top: 72px;
  position: relative;
  height: 480px;
  overflow: hidden;
}
.article-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,16,10,.75) 0%, rgba(26,16,10,.2) 60%, transparent 100%);
}
.article-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
}
.article-hero-content .container { max-width: 820px; }

.article-category-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.article-hero-content h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.article-meta span {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-layout {
  padding: 64px 0 100px;
  background: var(--paper);
}

.article-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .article-inner { grid-template-columns: 1fr; gap: 40px; }
}

.article-content { max-width: 680px; }

.article-breadcrumb { margin-bottom: 28px; }
.article-breadcrumb ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--brown-light);
  list-style: none;
}
.article-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.article-breadcrumb li:not(:last-child)::after { content: '/'; }
.article-breadcrumb a { color: var(--brown-light); transition: color var(--transition); }
.article-breadcrumb a:hover { color: var(--red); }
.article-breadcrumb li:last-child { color: var(--dark); font-weight: 500; }

.article-lead {
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
  font-style: italic;
}

.article-body h2 {
  font-size: 1.4rem;
  color: var(--dark);
  margin: 36px 0 16px;
}

.article-body p {
  margin-bottom: 18px;
  font-size: .98rem;
  line-height: 1.85;
  color: var(--brown);
}

.article-body strong { color: var(--dark); }

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
  color: var(--brown);
  font-size: .98rem;
}
.article-body ul { list-style: disc; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }

.recipe-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}

.recipe-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.recipe-stat {
  text-align: center;
  background: rgba(75,38,20,.05);
  border-radius: var(--radius);
  padding: 12px 20px;
}
.recipe-stat-value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.recipe-stat-label {
  font-size: .72rem;
  color: var(--brown-light);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.recipe-ingredients { list-style: none !important; margin-left: 0 !important; }
.recipe-ingredients li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  color: var(--dark);
}
.recipe-ingredients li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.recipe-ingredients li:last-child { border-bottom: none; }

.recipe-steps { counter-reset: steps; list-style: none !important; margin-left: 0 !important; }
.recipe-steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  color: var(--brown);
  line-height: 1.7;
}
.recipe-steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
}
.recipe-steps li:last-child { border-bottom: none; }

.product-promo {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  color: var(--white);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(203,20,29,.3);
}
.product-promo-img {
  width: 80px; height: 80px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,.15);
  padding: 8px;
  flex-shrink: 0;
}
.product-promo-text p:first-child {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.product-promo-text p:last-child  { font-size: .85rem; color: rgba(255,255,255,.8); margin: 0; }
.product-promo-text h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); margin-bottom: 4px; }

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.article-tags-label {
  font-size: .82rem;
  color: var(--brown-light);
  font-weight: 500;
}
.article-tag {
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(75,38,20,.05);
  color: var(--brown);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.article-tag:hover { border-color: var(--red); color: var(--red); }

.article-sidebar { position: sticky; top: 100px; }

.sidebar-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.sidebar-card h4 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 16px;
}

.sidebar-articles { display: flex; flex-direction: column; gap: 16px; }

.sidebar-article {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.sidebar-article-img {
  width: 64px; height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-article-text p:first-child {
  font-size: .7rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.sidebar-article-text h5 {
  font-size: .88rem;
  color: var(--dark);
  line-height: 1.35;
  font-weight: 500;
  transition: color var(--transition);
}
.sidebar-article:hover h5 { color: var(--red); }

.sidebar-product img {
  width: 100%; border-radius: 8px;
  margin-bottom: 12px;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--paper);
  padding: 12px;
}
.sidebar-product h5 { font-size: 1rem; margin-bottom: 8px; font-family: var(--font-serif); color: var(--dark); }
.sidebar-product p { font-size: .85rem; color: var(--brown-light); margin-bottom: 16px; }
.sidebar-product .badge-dop { margin-bottom: 8px; display: inline-flex; }
.sidebar-product .btn { width: 100%; justify-content: center; }

.sidebar-cta {
  background: var(--red);
  color: var(--white);
}
.sidebar-cta h4 { color: rgba(255,255,255,.6); }
.sidebar-cta p {
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
  line-height: 1.6;
}
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: .88rem; }

.related-articles { padding: 80px 0; background: var(--white); }
.related-articles .section-header {
  text-align: left;
  margin-bottom: 36px;
}

/* ============================================================
   PAGINĂ GENERICĂ
   ============================================================ */
.page-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.page-content-wrap h2,
.page-content-wrap h3 { margin: 32px 0 16px; }
.page-content-wrap p { margin-bottom: 18px; }
.page-content-wrap ul,
.page-content-wrap ol { margin: 0 0 18px 20px; }
.page-content-wrap ul { list-style: disc; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--maroon);
  color: rgba(237,232,192,.7);
  padding: 64px 0 32px;
  position: relative;
}

/* Aceeași delimitare „hârtie ruptă" înainte de footer, pt. consistență:
   albul cald al paginii se rupe peste maroon-ul footerului. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 25px;
  background: url('assets/images/hartie-rupta-jos.webp') repeat-x left top / auto 100%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img {
  height: 100px;
  width: auto;
  margin-bottom: 0px;
  mix-blend-mode: screen;
  opacity: .9;
}

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-badge-dop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243,207,36,.15);
  border: 1px solid rgba(243,207,36,.3);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 20px;
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer-grid nav ul,
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-grid nav ul li a,
.footer-col ul li a {
  font-size: .9rem;
  color: rgba(237,232,192,.6);
  transition: color var(--transition);
}
.footer-grid nav ul li a:hover,
.footer-col ul li a:hover { color: var(--gold); }

.footer-address {
  font-size: .85rem;
  line-height: 1.8;
  color: rgba(255,255,255,.5);
  font-style: normal;
}
.footer-address strong { color: rgba(255,255,255,.6); }
.footer-address a { transition: color var(--transition); }
.footer-address a:hover { color: var(--gold); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(237,232,192,.1);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: .8rem; color: rgba(237,232,192,.35); }
.footer-bottom p a {
  color: rgba(237,232,192,.6);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer-bottom p a:hover { color: var(--cream); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(237,232,192,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: rgba(237,232,192,.5);
  transition: all var(--transition);
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   RESPONSIVE — MOBILE NAV
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    /* complet în afara ecranului: -100% din înălțime + header + umbră */
    transform: translateY(calc(-100% - 90px));
    transition: transform .3s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  /* Linkurile trebuie să fie block, altfel padding-ul/chenarul (ex. pastilele
     de limbă) nu împing rândurile vecine și elementele se suprapun. */
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; color: var(--dark) !important; width: 100%; padding: 12px 16px; }
  .nav-menu a:hover { color: var(--red); }
  /* Contact rămâne pastilă compactă, nu bară pe toată lățimea */
  .nav-menu a.nav-cta { display: inline-block; width: auto; }
  /* Pastilele de limbă: mici, una lângă alta, pe rândul lor */
  .nav-menu { flex-direction: row; flex-wrap: wrap; }
  .nav-menu li.lang-item { width: auto; margin-top: 8px; }
  .nav-menu li.lang-item + li.lang-item { margin-left: 8px; }
  .nav-lang { display: inline-block; width: auto !important; padding: 8px 18px !important;
              color: var(--brown) !important; border-color: var(--border) !important; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grain overlay — textură statică, fără canvas animat (performanță) */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  background-image: url('assets/images/culoare_fundal.webp');
  background-size: 280px;
  mix-blend-mode: multiply;
}

/* Aliniere secțiuni interioare pe homepage */
.home-section { padding: 100px 0; }
.home-section-tight { padding: 40px 0 100px; }
.section-header-spaced { margin-bottom: 48px; }
