/* ============================================================
   index.css — Stiluri specifice paginii principale (index.html)
   Încărcat prin {% block extra_css %} în index.html.
   ============================================================ */

/* ── Hero Banner Slider ── */
#hero-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1200 / 460;
  max-height: 560px;
  background: #F3F4F6;
}

.hero-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder când nu sunt bannere */
.hero-slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #111827 100%);
}
.hero-placeholder-inner {
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-family: 'Barlow', sans-serif;
}
.hero-placeholder-inner p { margin-top: 14px; font-size: 0.88rem; line-height: 1.6; }
.hero-placeholder-inner strong { color: rgba(255,255,255,0.45); }

/* ── Săgeți discrete ─────────────────────────────────────────────────────────
   Opacity foarte mică — abia vizibile, doar pentru inspecție manuală.
   Mărește "opacity" (ex: 0.5) dacă vrei să le faci mai vizibile.
   ─────────────────────────────────────────────────────────────────────────── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.12;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { opacity: 0.55; }
.hero-arrow--prev { left: 12px; }
.hero-arrow--next { right: 12px; }

/* ── Puncte de navigare ── */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.hero-dot.active {
  background: #E3000F;
  transform: scale(1.3);
}



/* ── CATEGORII POPULARE — SLIDER ─────────────────────────────────────────────
   .cat-card--slide controlează aspectul cardurilor din slider-ul de categorii.
   - "flex: 0 0 260px" = lățimea cardului; mărește cifra pt carduri mai late
   - ".cat-icon-wrap" de mai jos: mărește "width/height" pt icoana mai mare
   - "overflow: visible" pe card previne tăierea la hover (nu mai clipuiești)
   ─────────────────────────────────────────────────────────────────────────── */
.cat-card--slide {
  flex: 0 0 300px;
  width: 300px;
  scroll-snap-align: start;
  padding: 24px 24px;
  gap: 20px;
}
.cat-card--slide:hover {
  border-color: transparent;
  box-shadow: 0 0 0 1.5px #E3000F, 0 4px 20px rgba(227,0,15,0.1);
  transform: translateY(-2px);
}
.cat-slider-container {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 6px !important;
  padding-bottom: 12px !important;
  margin-top: -6px;
  margin-bottom: -12px;
}
.cat-card--slide .cat-icon-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.cat-card--slide .cat-icon-wrap img {
  padding: 0;
}
.cat-card--slide .cat-card-title { font-size: 1.04rem; }
.cat-card--slide .cat-card-count { font-size: 0.78rem; }

/* ── Popular Categories ── */
#popular-categories { background: #F3F4F6; padding: 36px 0 20px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.cat-card {
  background: #fff; border: 1.5px solid #EAECEF; border-radius: 10px;
  padding: 14px 14px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all 0.2s ease; text-decoration: none;
  position: relative;
}
.cat-card:hover { border-color: #E3000F; box-shadow: 0 4px 20px rgba(227,0,15,0.1); transform: translateY(-2px); }
.cat-icon-wrap { width: 52px; height: 52px; border-radius: 8px; background: transparent; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s; }
.cat-icon-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 0; box-sizing: border-box; }
.cat-card:hover .cat-icon-wrap { border-color: transparent; transform: scale(1.08); }
.cat-card-title { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.96rem; letter-spacing: 0.04em; text-transform: uppercase; color: #1f2937; }
.cat-card-count { font-size: 0.72rem; color: #9CA3AF; margin-top: 2px; font-family: 'Barlow', sans-serif; }
.cat-card-arrow { margin-left: auto; color: #D1D5DB; transition: color 0.2s, transform 0.2s; flex-shrink: 0; }
.cat-card:hover .cat-card-arrow { color: #E3000F; transform: translateX(3px); }

/* ── Product Sections ── */
#products-section,
#discounts-section,
#limited-section,
#control-section { background: #F3F4F6 !important; padding: 12px 0 14px !important; border: none !important; margin: 0 !important; box-shadow: none !important; }

/* ── SPAȚIUL DINTRE FUNDALUL GRI ȘI NEWSLETTER (negru) ───────────────────────
   Mărește/micșorează "padding-bottom" de mai jos ca să controlezi distanța
   dintre ultima secțiune de produse și secțiunea neagră de newsletter.
   ─────────────────────────────────────────────────────────────────────────── */
#products-section:last-of-type,
#discounts-section:last-of-type,
#limited-section:last-of-type,
#control-section:last-of-type { padding-bottom: 52px !important; }

/* ── Newsletter ── */
/* ── DISTANȚA ÎNAINTE DE NEWSLETTER ──────────────────────────────────────────
   Schimbă prima valoare din "padding" (ex: 72px) ca să mărești/micșorezi
   spațiul dintre ultimul rând de carduri și secțiunea newsletter.
   ─────────────────────────────────────────────────────────────────────────── */
#newsletter-section { background: linear-gradient(100deg, #111 0%, #1a1a1a 50%, #1f1f1f 100%); padding: 72px 0 52px; position: relative; overflow: hidden; }
#newsletter-section::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(227,0,15,0.15) 0%, transparent 70%); }
.nl-tag { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #E3000F; background: rgba(227,0,15,0.12); border: 1px solid rgba(227,0,15,0.3); padding: 4px 12px; display: inline-block; margin-bottom: 14px; }
.nl-title { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; margin-bottom: 8px; }
.nl-title em { color: #E3000F; font-style: normal; }
.nl-sub { color: #9CA3AF; font-size: 0.88rem; line-height: 1.6; max-width: 420px; margin-bottom: 28px; }
.nl-form { display: flex; max-width: 460px; }
.nl-input { flex: 1; height: 48px; padding: 0 18px; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.15); border-right: none; color: #fff; font-family: 'Barlow', sans-serif; font-size: 0.88rem; outline: none; border-radius: 3px 0 0 3px; }
.nl-input::placeholder { color: #6B7280; }
.nl-input:focus { border-color: rgba(227,0,15,0.5); }
.nl-btn { height: 48px; padding: 0 28px; background: #E3000F; color: #fff; border: none; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.18s; border-radius: 0 3px 3px 0; }
.nl-btn:hover { background: #B8000C; }
.nl-note { color: #4B5563; font-size: 0.72rem; margin-top: 10px; font-family: 'Barlow', sans-serif; }
.nl-stats { display: flex; flex-direction: column; gap: 18px; }
.nl-stat-num { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.8rem; color: #E3000F; line-height: 1; }
.nl-stat-lbl { font-size: 0.78rem; color: #6B7280; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Reviews ── */
#reviews-section { background: #F3F4F6; padding: 52px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.review-card { background: #fff; border: 1.5px solid #EAECEF; border-radius: 10px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s, transform 0.2s; }
.review-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.review-stars { color: #F59E0B; font-size: 0.85rem; letter-spacing: 1px; }
.review-text { font-size: 0.85rem; color: #374151; line-height: 1.65; font-style: italic; flex: 1; }
.review-text::before { content: '"'; }
.review-text::after { content: '"'; }
.review-author { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.03em; color: #111; }
.review-meta { font-size: 0.72rem; color: #9CA3AF; margin-top: 1px; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; color: #16a34a; font-weight: 600; margin-top: 4px; }
.review-verified::before { content: '✓'; font-weight: 900; }

/* ── FAQ ── */
#faq-section { background: #F3F4F6; padding: 52px 0; border-bottom: 1px solid #EAECEF; }
.faq-list { max-width: 800px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1.5px solid #EAECEF; border-radius: 8px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item.open { border-color: #E3000F; box-shadow: 0 2px 12px rgba(227,0,15,0.08); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; user-select: none; gap: 12px; }
.faq-q-text { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: #111; line-height: 1.3; }
.faq-item.open .faq-q-text { color: #E3000F; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: #F3F4F6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s, transform 0.3s; }
.faq-item.open .faq-icon { background: #E3000F; transform: rotate(45deg); }
.faq-icon svg { color: #6B7280; transition: color 0.2s; }
.faq-item.open .faq-icon svg { color: #fff; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s; padding: 0 22px; }
.faq-body.open { max-height: 300px; padding: 0 22px 18px; }
.faq-body p { font-size: 0.88rem; color: #4B5563; line-height: 1.7; border-top: 1px solid #fff; padding-top: 14px; }

/* ── Call Popup ── */
#cpop-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99999; align-items: flex-end; justify-content: flex-end; padding: 0 24px 104px 24px; }
#cpop-overlay.open { display: flex; animation: cpopFadeOverlay .2s ease; }
@keyframes cpopFadeOverlay { from { opacity: 0; } to { opacity: 1; } }
#cpop-card { background: #fff; border-radius: 16px; padding: 26px 22px 20px; width: 288px; box-shadow: 0 12px 48px rgba(0,0,0,0.22); position: relative; animation: cpopSlideUp .22s cubic-bezier(.34,1.56,.64,1); font-family: 'Barlow', sans-serif; }
@keyframes cpopSlideUp { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cpop-x { position: absolute; top: 11px; right: 11px; width: 26px; height: 26px; border-radius: 50%; background: #F3F4F6; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #6B7280; transition: background .15s; }
.cpop-x:hover { background: #E5E7EB; color: #111; }
.cpop-head-icon { width: 44px; height: 44px; border-radius: 50%; background: #E3000F; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; box-shadow: 0 4px 12px rgba(227,0,15,.3); }
.cpop-title { font-weight: 900; font-size: 1.08rem; color: #111; margin-bottom: 3px; }
.cpop-sub { font-size: .78rem; color: #6B7280; margin-bottom: 16px; line-height: 1.45; }
.cpop-options { display: flex; flex-direction: column; gap: 9px; margin-bottom: 15px; }
.cpop-opt { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 12px; border: 1.5px solid #E5E7EB; background: none; cursor: pointer; text-decoration: none; transition: border-color .18s, background .18s, box-shadow .18s; text-align: left; }
.cpop-opt-phone:hover { border-color: #E3000F; background: #FFF5F5; box-shadow: 0 0 0 3px rgba(227,0,15,.08); }
.cpop-opt-viber:hover { border-color: #7360F2; background: #F5F3FF; box-shadow: 0 0 0 3px rgba(115,96,242,.08); }
.cpop-opt-icon { width: 37px; height: 37px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cpop-opt-icon-red { background: #E3000F; color: #fff; }
.cpop-opt-icon-viber { background: #7360F2; }
.cpop-opt-txt { flex: 1; }
.cpop-opt-label { font-weight: 700; font-size: .87rem; color: #111; line-height: 1.2; }
.cpop-opt-desc { font-size: .72rem; color: #6B7280; margin-top: 2px; }
.cpop-footer { font-size: .68rem; color: #9CA3AF; text-align: center; padding-top: 11px; border-top: 1px solid #F3F4F6; }
.cpop-back { display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-family: 'Barlow', sans-serif; font-size: .76rem; font-weight: 600; color: #6B7280; padding: 0; margin-bottom: 14px; transition: color .15s; }
.cpop-back:hover { color: #111; }
.cpop-input { width: 100%; height: 46px; border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 0 14px; font-family: 'Barlow', sans-serif; font-size: .94rem; color: #111; background: #F9FAFB; outline: none; box-sizing: border-box; margin-bottom: 10px; display: block; transition: border-color .2s, background .2s, box-shadow .2s; }
.cpop-input:focus { border-color: #E3000F; background: #fff; box-shadow: 0 0 0 3px rgba(227,0,15,.08); }
.cpop-input.err { border-color: #E3000F; }
.cpop-input::placeholder { color: #9CA3AF; }
.cpop-submit-btn { width: 100%; height: 48px; background: #E3000F; color: #fff; border: none; border-radius: 10px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: .93rem; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s; }
.cpop-submit-btn:hover { background: #B8000C; }


/* ── Secțiuni homepage cu banner lateral ── */
.section-with-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;  /* bannerul și produsele încep de sus */
}

.section-banner-side {
  width: 260px;
  height: 430px;          /* img 160px + body ~270px — egal cu înălțimea cardului */
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.section-banner-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.section-banner-link {
  display: block;
  height: 100%;
}

.section-banner-link:hover img {
  transform: scale(1.03);
}

.section-products-side {
  flex: 1;
  min-width: 0;
}

.section-products-full {
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.section-title::after {
  content: '';
  flex: 1;
  min-width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #E5E7EB 0%, transparent 100%);
}

.section-header .section-title {
  flex: 1;
  margin-right: 16px;
}

.section-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.slider-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* padding-top/bottom mărite (de la doar 4px jos, deloc sus) — altfel
     umbra cardului la hover era tăiată de overflow-x:auto (vezi nota din
     kyb.css). Compensate cu margin negativ, ca să nu se mute cardurile
     vizual. Scris explicit aici (nu doar în kyb.css), fiindcă acest fișier
     se încarcă DUPĂ kyb.css pe homepage și altfel câștigă la orice
     proprietate pe care o redeclară. */
  padding-top: 20px;
  margin-top: -20px;
  padding-bottom: 25px;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

/* ── Stil GRID pentru secțiuni de produse: titlu centrat + rând fix ── */
.section-header--center {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}
.section-title--center {
  justify-content: center;
}
.section-title--center::after {
  content: none;
}
.prod-grid-fixed {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) {
  .prod-grid-fixed { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .prod-grid-fixed { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
.prod-grid-fixed .prod-card {
  width: auto;
  height: auto;
  flex-shrink: unset;
}

/* ── Carduri de produs mai compacte — doar pe pagina index ──
   index.css se încarcă numai aici, deci aceste reguli nu afectează
   categoriile/căutarea (acolo .prod-card/.prod-body rămân ca înainte,
   definite în kyb.css). ── */
.prod-img-wrap { padding: 8px; height: 180px; }
.prod-body { padding: 10px 12px 12px; gap: 4px; }
.prod-price-row { padding-top: 4px; }

.slider-arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #E5E7EB;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #374151;
  transition: all 0.18s;
  flex-shrink: 0;
}

.arrow-btn:hover {
  border-color: #E3000F;
  color: #E3000F;
  background: #FFF5F5;
}

@media (max-width: 900px) {
  .section-banner-side { width: 160px; }
}

@media (max-width: 640px) {
  .section-with-banner { flex-direction: column; }
  .section-banner-side { width: 100%; height: 180px; }
  .section-banner-side img { object-position: center 30%; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  #hero { min-height: 380px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-h1 { font-size: 1.8rem; }
  .stats-strip { gap: 20px; padding: 14px 20px; flex-wrap: wrap; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════════════════
   FLYOUT CASCADĂ — sidebar desktop
   ====================================================== */
#mega-menu { display: none !important; }

.flyout-panel {
  display:       none;
  position:      absolute;
  width:         var(--sidebar-w);
  background:    #ffffff;
  border-radius: 12px;
  border:        1.5px solid #E5E7EB;
  box-shadow:    0 8px 32px rgba(0,0,0,0.16);
  z-index:       999;
  overflow:      hidden;
  overflow-y:    auto;
  scrollbar-width: none;
  max-height:    calc(100% - 0px);
}
.flyout-panel::-webkit-scrollbar { display: none; }
/* left/top setate dinamic via JS */

.fly-item {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         13px 16px;
  border-bottom:   1px solid #F3F4F6;
  cursor:          pointer;
  gap:             10px;
  transition:      background 0.12s;
}
.fly-item:last-child { border-bottom: none; }
.fly-item:hover,
.fly-item.active { background: #FEF2F2; }

.fly-link {
  flex:            1;
  font-family:     'Barlow', sans-serif;
  font-weight:     500;
  font-size:       0.88rem;
  color:           #374151;
  text-decoration: none;
  line-height:     1.4;
}
.fly-item:hover .fly-link,
.fly-item.active .fly-link { color: #E3000F; }

.fly-chevron {
  font-size:   1.1rem;
  color:       #C0C4CC;
  flex-shrink: 0;
  line-height: 1;
  transition:  color 0.12s;
}
.fly-item:hover .fly-chevron,
.fly-item.active .fly-chevron { color: #E3000F; }

.fly-badge {
  display:        inline-block;
  font-size:      0.6rem;
  font-family:    'Barlow', sans-serif;
  font-weight:    700;
  background:     #E3000F;
  color:          #fff;
  padding:        2px 5px;
  border-radius:  2px;
  margin-left:    4px;
  vertical-align: middle;
}
/* ============================================================
   Popup „Contactează-ne” (secțiunea FAQ)
   ============================================================ */
.contact-popup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(17,17,17,0.6);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  padding: 16px;
}
.contact-popup-overlay.active { opacity: 1; visibility: visible; }

.contact-popup-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 28px 26px;
  width: 400px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  position: relative;
  font-family: 'Barlow', sans-serif;
  transform: translateY(18px) scale(.97);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s ease;
}
.contact-popup-overlay.active .contact-popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-popup-x {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #F3F4F6; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6B7280; transition: background .15s, color .15s, transform .15s;
}
.contact-popup-x:hover { background: #FFE5E5; color: #E3000F; transform: rotate(90deg); }

.contact-popup-head-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #E3000F, #B8000C);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; box-shadow: 0 6px 16px rgba(227,0,15,.32);
}

.contact-popup-title {
  font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1.22rem;
  color: #111; margin: 0 0 4px; letter-spacing: 0.01em; line-height: 1.25;
}
.contact-popup-subtitle {
  font-size: 0.82rem; color: #6B7280; line-height: 1.5; margin: 0 0 18px;
}

.contact-popup-topics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 14px;
}
.contact-popup-topic {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid #E5E7EB; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; color: #4B5563;
  background: #FAFAFA;
  transition: border-color .15s, background .15s, color .15s;
  position: relative;
}
.contact-popup-topic input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}
.contact-popup-topic::before {
  content: '';
  width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid #D1D5DB; background: #fff;
  transition: border-color .15s, background .15s;
}
.contact-popup-topic:hover { border-color: #E3000F; background: #FFF5F5; }
.contact-popup-topic:has(input:checked) {
  border-color: #E3000F; background: #FFF5F5; color: #B8000C;
  box-shadow: 0 0 0 3px rgba(227,0,15,.08);
}
.contact-popup-topic:has(input:checked)::before {
  border-color: #E3000F;
  background: radial-gradient(#E3000F 0 40%, #fff 41% 100%);
}

.contact-popup-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.contact-popup-input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
  padding: 12px 14px; font-family: 'Barlow', sans-serif; font-size: .88rem;
  color: #111; background: #F9FAFB; outline: none;
  margin-bottom: 10px; display: block;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-popup-input::placeholder { color: #9CA3AF; }
.contact-popup-input:focus { border-color: #E3000F; background: #fff; box-shadow: 0 0 0 3px rgba(227,0,15,.08); }
.contact-popup-textarea { resize: vertical; min-height: 80px; font-family: 'Barlow', sans-serif; line-height: 1.5; }

.contact-popup-error {
  color: #E3000F; font-size: 0.78rem; min-height: 1em; margin: -2px 0 8px;
}

.contact-popup-submit-btn {
  width: 100%; height: 50px; background: #E3000F; color: #fff;
  border: none; border-radius: 10px; font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: .92rem; letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; transition: background .18s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.contact-popup-submit-btn:hover { background: #B8000C; }
.contact-popup-submit-btn:active { transform: scale(.98); }
.contact-popup-submit-btn:disabled { opacity: 0.7; cursor: default; }

.contact-popup-success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 4px 6px;
}
.contact-popup-success-circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: #16A34A; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  animation: contactPopupPop .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 6px 20px rgba(22,163,74,.35);
}
@keyframes contactPopupPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
.contact-popup-success-check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: contactPopupDraw .35s ease .15s forwards;
}
@keyframes contactPopupDraw { to { stroke-dashoffset: 0; } }
.contact-popup-success-text {
  color: #6B7280; font-size: 0.86rem; line-height: 1.5; margin: 0;
}

@media (max-width: 480px) {
  .contact-popup-overlay { padding: 10px; align-items: center; }
  .contact-popup-card { padding: 16px 14px 14px; border-radius: 14px; }
  .contact-popup-head-icon { width: 34px; height: 34px; margin-bottom: 8px; }
  .contact-popup-head-icon svg { width: 16px; height: 16px; }
  .contact-popup-title { font-size: 0.98rem; margin-bottom: 2px; }
  .contact-popup-subtitle { font-size: 0.74rem; margin-bottom: 10px; }
  .contact-popup-topics { grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 10px; }
  .contact-popup-topic { padding: 7px 8px; font-size: 0.72rem; }
  .contact-popup-topic::before { width: 12px; height: 12px; }
  .contact-popup-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .contact-popup-input { padding: 8px 10px; font-size: 0.82rem; margin-bottom: 6px; }
  .contact-popup-textarea { min-height: 52px; }
  .contact-popup-submit-btn { height: 42px; font-size: 0.84rem; }
  .contact-popup-error { font-size: 0.72rem; min-height: 0; margin-bottom: 4px; }
}

/* ============================================================
   OPTIMIZARE MOBIL — pagina principală
   ============================================================ */
@media (max-width: 768px) {
  /* Hero: nu mai e o cutie neagră enormă pe telefon */
  #main-hero { min-height: 0 !important; }
  #hero-slider { aspect-ratio: 1200 / 460; max-height: none; min-height: 0; }
  .hero-slide img { object-fit: contain !important; }
  .hero-placeholder-inner p { font-size: 0.78rem; }

  /* Carduri de categorie din slider — pe coloană (iconiță sus, text sub,
     centrat) altfel textul nu are loc lângă iconiță și se trunchiază */
  .cat-card--slide {
    flex: 0 0 150px; width: 150px; padding: 16px 12px; gap: 10px;
    flex-direction: column; text-align: center;
  }
  .cat-card--slide .cat-icon-wrap { width: 72px; height: 72px; }
  .cat-card--slide .cat-icon-wrap img { padding: 8px; }
  .cat-card--slide .cat-card-title { font-size: 0.84rem; line-height: 1.3; }
  .cat-card--slide .cat-card-count { font-size: 0.7rem; }
  .cat-card--slide .cat-card-arrow { display: none; }

  /* Titluri de secțiune — mai mici, nu mai ies din ecran */
  .section-title { font-size: 1.1rem; gap: 6px; }
  .section-title::after { display: none; }
  .section-badge { font-size: 0.6rem; padding: 2px 6px; }
  .arrow-btn { width: 28px; height: 28px; }

  /* Newsletter — 1 coloană + formular pe rânduri separate */
  .nl-grid-wrap { grid-template-columns: 1fr !important; gap: 24px !important; }
  .nl-stats { flex-direction: row !important; flex-wrap: wrap; gap: 14px !important; }
  .nl-title { font-size: 1.3rem; }
  .nl-sub { margin-bottom: 22px; }
  .nl-form { max-width: 100%; flex-direction: column; gap: 12px; }
  .nl-input {
    border-right: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    height: 52px;
    padding: 0 16px;
    background: rgba(255,255,255,0.1);
    font-size: 0.92rem;
  }
  .nl-btn {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    margin-top: 0;
    font-size: 0.86rem;
  }
  .nl-note { margin-top: 14px; }
  #newsletter-section { padding: 48px 0 40px; }

  /* FAQ — 1 coloană (era inline style 1fr 2fr, fixat) */
  .faq-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
  .faq-q-text { font-size: 0.88rem; }

  /* Recenzii — card mai compact, fără spațiu gol în plus */
  #reviews-section { padding: 32px 0; }
  .reviews-grid { gap: 12px; margin-top: 18px; }
  .review-card { padding: 16px 16px; gap: 8px; }
  .review-text { font-size: 0.84rem; }
}

@media (max-width: 480px) {
  #main-hero { min-height: 0 !important; }
  #hero-slider { aspect-ratio: 1200 / 460; max-height: none; min-height: 0; }
  .hero-slide img { object-fit: contain !important; }
  .cat-card--slide { flex: 0 0 130px; width: 130px; padding: 14px 10px; }
  .cat-card--slide .cat-icon-wrap { width: 64px; height: 64px; }
}
/* ══════════════════════════════════════════════════════
   TIPOGRAFIE INTER — override final, fără uppercase bold
══════════════════════════════════════════════════════ */

/* Titluri categorii */
.cat-card-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Newsletter — titlu principal */
.nl-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

/* Newsletter — tag label */
.nl-tag {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
}

/* Newsletter — buton */
.nl-btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

/* Newsletter — statistici */
.nl-stat-num {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.6rem !important;
}
.nl-stat-lbl {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}
/* ── Banner full-width (homepage) — proporție păstrată pe orice ecran,
   nu mai cropează agresiv pe mobil cum făcea height:360px fix. ── */
.kyb-full-banner-img {
  aspect-ratio: 1920 / 600;
  max-height: 360px;
}
@media (max-width: 700px) {
  .kyb-full-banner-img {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

/* ── Titlu de secțiune clicabil (ex: "Produse Populare" → toate produsele) ── */
.section-title-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

/* ── Separator cu titlu în mijloc (stil Grid) ── */
.section-divider-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
}
.section-divider-title::before,
.section-divider-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d1d5db;
}
.section-divider-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-dark, #111);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Subtitlu secțiune (sub titlu) ── */
.section-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin: 10px 0 10px 0;
  line-height: 1.4;
}
.section-header--center .section-subtitle {
  text-align: center;
}