/* ============================================================
   kyb.css — Stiluri globale KYB.MD
   ============================================================ */

/* ── Variabile globale ── */
:root {
  --card-w: 280px;
  --card-h: 460px;
  --sidebar-w: 256px;
  --schedule-col-w: 300px;
  --drawer-w: 420px;
  --color-primary:   #E3000F;
  --color-primary-h: #B8000C;
  --color-dark:      #111111;
  --color-gray-bg:   #F3F4F6;
  --color-border:    #E5E7EB;
  --color-mid:       #6B7280;
  --color-success:   #16a34a;
}

/* ── Reset & Global ── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'Inter', 'Barlow', sans-serif;
  background: #F3F4F6;
  color: #111;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }

/* ── Logo ── */
.logo-kyb { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 2rem; letter-spacing: -0.5px; line-height: 1; }
.logo-kyb .k { color: var(--color-primary); }
.logo-kyb .yb { color: #111; }
.logo-kyb .dot-md { color: var(--color-primary); font-size: 1.4rem; }

/* ── Top Bar ── */
#topbar { background: #111; color: #ccc; font-size: 0.72rem; letter-spacing: 0.04em; font-family: 'Barlow', sans-serif; }
#topbar a:hover { color: #fff; }

/* ── Dropdowns ── */
.dd-wrap { position: relative; }
.dd-wrap:hover .dd-menu { display: block; }
.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  min-width: 70px;
  border-top: 2px solid var(--color-primary);
  z-index: 999;
  border-radius: 0 0 4px 4px;
}
.dd-menu::before { content: ''; position: absolute; top: -12px; left: 0; width: 100%; height: 12px; background: transparent; }
.dd-menu a { display: block; padding: 7px 14px; color: #ccc; text-align: center; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.dd-menu a:hover { background: var(--color-primary); color: #fff; }

/* ── Search Bar ── */
.search-wrap {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: 78px;
}
.search-area {
  border: 1px solid #E5E7EB;
  border-radius: 30px;
  overflow: hidden;
  max-width: none;
  width: 100%;
  height: 44px;
  margin: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-area:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(from var(--color-primary) r g b / 0.08); }
#search-input { outline: none; border: none; background: transparent; }
#search-btn { background: var(--color-primary); border: none; transition: background 0.2s; }
#search-btn:hover { background: var(--color-primary-h); }

/* ── Dropdown căutare live ── */
.search-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);
  border: 1px solid var(--color-border);
  z-index: 1000;
  overflow: hidden;
}
.search-dropdown.open { display: flex; }

/* ── Buton închidere (×) — generat de kyb.js (.sd-close), dar nu avea
   nicio regulă CSS nicăieri în proiect: se afișa ca buton implicit de
   browser, în flux normal, nu poziționat — de-asta apărea "rupt". */
.sd-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #F3F4F6;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.sd-close:hover { background: #E5E7EB; color: #111; }
.sd-close svg { width: 14px; height: 14px; pointer-events: none; }
.sd-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  height: 420px;
  min-height: 0;
  overflow: hidden;
}
.sd-col,
.sd-grid,
.search-dropdown {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge legacy */
}
.sd-col {
  padding: 22px 20px;
  overflow-y: auto;
  height: 100%;
}
.sd-col::-webkit-scrollbar,
.sd-grid::-webkit-scrollbar,
.search-dropdown::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.sd-col::-webkit-scrollbar-button,
.sd-grid::-webkit-scrollbar-button,
.search-dropdown::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.sd-col-cats { border-right: 1px solid var(--color-border); background: #FAFAFB; }
.sd-col-title {
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9CA3AF; margin-bottom: 14px;
}
.sd-cat-link {
  display: block; padding: 11px 12px; border-radius: 9px; color: #374151;
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: background 0.15s, color 0.15s; margin-bottom: 2px;
}
.sd-cat-link:hover { background: #fff; color: var(--color-primary); box-shadow: 0 1px 6px rgba(0,0,0,0.07); }
.sd-prod-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 10px;
  border-radius: 12px; text-decoration: none; transition: background 0.15s;
  border-bottom: 1px solid #F3F4F6;
}
.sd-col-prods .sd-prod-row:last-child { border-bottom: none; }
.sd-prod-row:hover { background: var(--color-gray-bg); }
.sd-prod-thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  background: #F3F4F6; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.sd-prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sd-prod-info { flex: 1; min-width: 0; }
.sd-prod-name {
  font-family: 'Inter', 'Barlow', sans-serif; font-weight: 600; font-size: 0.88rem; color: #111;
  line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sd-prod-sku { font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: #9CA3AF; margin-top: 4px; }
.sd-prod-price { text-align: right; flex-shrink: 0; padding-left: 8px; }
.sd-prod-price-old { display: block; font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: #9CA3AF; text-decoration: line-through; }
.sd-prod-price-new { display: block; font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 0.96rem; color: #111; margin-top: 2px; }
.sd-empty {
  padding: 36px 20px; text-align: center; font-family: 'Barlow', sans-serif;
  color: #9CA3AF; font-size: 0.9rem;
}

/* ── Footer „Toate rezultatele" — centrat, sub toată lista, ca la CasaGrill ── */
.sd-footer {
  display: flex; justify-content: flex-start; flex-shrink: 0;
  padding: 18px 20px; border-top: 1px solid var(--color-border);
}
.sd-all-results {
  display: inline-block; padding: 9px 26px; border-radius: 999px;
  border: 1.5px solid #111; background: #fff; color: #111;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sd-all-results:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Scrollbar invizibil — niciun fir, nicio săgeată */
.sd-col { scrollbar-width: none !important; -ms-overflow-style: none !important; }
.sd-col::-webkit-scrollbar,
.sd-col::-webkit-scrollbar-track,
.sd-col::-webkit-scrollbar-thumb,
.sd-col::-webkit-scrollbar-button,
.sd-col::-webkit-scrollbar-button:vertical:start:decrement,
.sd-col::-webkit-scrollbar-button:vertical:end:increment,
.sd-col::-webkit-scrollbar-corner {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

@media (max-width: 640px) {
  .sd-grid { grid-template-columns: 1fr; height: auto; max-height: 60vh; }
  .sd-col-cats { display: none; }
}

/* ── Nav secundar ── */
#main-nav { background: #F3F4F6; }
.nav-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  color: #374151;
  position: relative;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  border-radius: 8px;
  margin: 0 3px;
}
.nav-link::after { display: none; }
.nav-link:hover { color: var(--color-primary); background: #fff; }
.nav-link.hot { background: var(--color-primary); color: #fff; font-weight: 700; padding: 12px 16px; margin: 0; }
.nav-link.hot:hover { background: var(--color-primary-h); color: #fff; }

/* ── Icon Buttons ── */
.icon-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #374151; transition: color 0.18s; cursor: pointer; }
.icon-btn:hover { color: var(--color-primary); }
.icon-btn span { font-size: 0.6rem; letter-spacing: 0.04em; font-family: 'Barlow', sans-serif; font-weight: 600; }

/* ── Badges ── */
.cart-badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--color-primary); color: #fff;
  font-size: 0.55rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.wish-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px;
  background: var(--color-primary); color: #fff;
  border-radius: 99px; font-size: 0.62rem; font-weight: 700;
  font-family: 'Barlow', sans-serif;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid #fff; pointer-events: none;
}

/* ── Sidebar ── */
#sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  position: relative;
  z-index: 40;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 6px;
  align-self: stretch;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

#cat-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#sidebar::-webkit-scrollbar { display: none; }

.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; gap: 10px;
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em; color: #374151;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer; transition: background 0.15s, color 0.15s; user-select: none;
  flex: 1;
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover, .cat-item.active { background: var(--color-primary); color: #fff; }

.cat-item .cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
  background: transparent !important; border-radius: 0 !important; line-height: 1;
}
.cat-item .cat-icon svg {
  width: 18px !important; height: 18px !important; min-width: 18px;
  display: block; flex-shrink: 0; opacity: 0.6;
  transition: opacity 0.15s; vertical-align: middle;
}
.cat-item .cat-icon img {
  width: 18px; height: 18px; flex-shrink: 0;
  opacity: 0.6; transition: opacity 0.15s; display: block;
}
.cat-item:hover .cat-icon, .cat-item.active .cat-icon { background: transparent !important; }
.cat-item:hover .cat-icon svg, .cat-item.active .cat-icon svg,
.cat-item:hover .cat-icon img, .cat-item.active .cat-icon img { opacity: 1; }

.cat-item > svg:last-child {
  opacity: 0.4; width: 14px; height: 14px; flex-shrink: 0; transition: opacity 0.15s;
}
.cat-item:hover > svg:last-child, .cat-item.active > svg:last-child { opacity: 1; }

/* ── Mega Menu ── */
#mega-menu {
  display: none !important;
  position: absolute;
  left: calc(var(--sidebar-w) + 6px); top: 0; bottom: 0;
  width: calc(100% - var(--sidebar-w) - 6px);
  background: #fff; z-index: 50;
  padding: 40px 50px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  overflow-y: auto; border-radius: 12px;
  animation: megaFade 0.18s ease;
}
@keyframes megaFade { from { opacity: 0; } to { opacity: 1; } }

.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.mega-col { display: flex; flex-direction: column; margin-bottom: 24px; }
.mega-col-title {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: #111827; text-decoration: none; letter-spacing: 0;
  padding-bottom: 8px; border-bottom: 2px solid var(--color-primary);
  margin-bottom: 8px; transition: color 0.15s;
}
.mega-col-title:hover { color: var(--color-primary); }
.mega-col-children { display: flex; flex-direction: column; }
.mega-child {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 0; font-size: 0.84rem;
  color: #6B7280; text-decoration: none;
  font-family: 'Barlow', sans-serif; transition: color 0.15s;
  border-bottom: 1px solid #F9FAFB;
}
.mega-child-dot { width: 5px; height: 5px; border-radius: 50%; background: #D1D5DB; flex-shrink: 0; transition: background 0.15s; }
.mega-child:hover { color: #111827; }
.mega-child:hover .mega-child-dot { background: var(--color-primary); }
.mega-badge { font-size: 0.62rem; background: var(--color-primary); color: #fff; padding: 2px 6px; border-radius: 2px; font-family: 'Barlow', sans-serif; letter-spacing: 0.06em; font-weight: 700; }

/* ── Section Utilities ── */
/* .section-wrap este alias pentru .kyb-page — aceeași lățime, peste tot pe site */
.section-wrap, .kyb-page { max-width: 1400px; margin: 0 auto; padding: 24px 12px; }
.section-title {
  font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.55rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: #111;
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.section-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, #E5E7EB 0%, transparent 100%); }
.section-title .accent { color: var(--color-primary); }
.section-title .badge-new { background: var(--color-primary); color: #fff; font-size: 0.62rem; padding: 3px 8px; border-radius: 2px; letter-spacing: 0.1em; align-self: center; }

/* ── Card produs ── */
.prod-card {
  background: #fff; border: 1.5px solid #EAECEF; border-radius: 10px;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
  width: var(--card-w); height: var(--card-h);
}
.prod-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-color: #D1D5DB; transform: translateY(-3px); }

.prod-badge {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.1em; padding: 3px 9px; border-radius: 3px; text-transform: uppercase;
}
.prod-badge.promo { background: var(--color-primary); color: #fff; }
.prod-badge.discount { background: #111; color: #fff; }
.prod-badge.prod-badge-save { font-size: 0.85rem; padding: 5px 12px; letter-spacing: 0.01em; }

.prod-img-wrap {
  background: #fff; padding: 12px;
  display: flex; align-items: center; justify-content: center;
  height: 250px; border-bottom: 1px solid #F3F4F6; overflow: hidden;
}
.prod-img-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

.prod-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: space-between; }
.prod-title { font-family: 'Inter', 'Barlow', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 0.015em; word-spacing: 0.03em; color: #111; line-height: 1.4; }
.prod-code { font-size: 0.75rem; color: #9CA3AF; font-family: 'Barlow', sans-serif; }
.prod-stock { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--color-success); font-family: 'Barlow', sans-serif; font-weight: 500; }
.prod-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.prod-rate { font-size: 0.75rem; color: #9CA3AF; font-family: 'Barlow', sans-serif; border-top: 1px solid #F3F4F6; padding-top: 6px; margin-top: 2px; }
.prod-rate span { color: #6B7280; font-weight: 600; }

.prod-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.prod-prices { display: flex; flex-direction: column; gap: 1px; }
.prod-price-old { font-size: 0.88rem; color: #6B7280; text-decoration: line-through; text-decoration-thickness: 1.5px; font-weight: 500; font-family: 'Barlow', sans-serif; }
.prod-price-new { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.5rem; color: #111; letter-spacing: -0.5px; line-height: 1; }
.prod-price-new-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod-percent-badge {
  background: rgba(227,0,15,0.1); color: #E3000F; font-family: 'Barlow', sans-serif;
  font-weight: 800; font-size: 0.92rem; padding: 2px 8px; border-radius: 4px; line-height: 1.3;
}

.prod-cart-btn { width: 38px; height: 38px; border-radius: 50%; background: #111; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.18s, transform 0.18s; }
.prod-cart-btn:hover { background: var(--color-primary); transform: scale(1.08); }
.prod-cart-btn svg { color: #fff; }
.prod-cart-btn.added { background: var(--color-success); animation: pop 0.3s ease; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }

.prod-wish-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1.5px solid #E5E7EB;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  position: absolute; top: 10px; right: 10px; z-index: 6;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.prod-wish-btn:hover { background: #FFF0F0; border-color: var(--color-primary); transform: scale(1.1); }
.prod-wish-btn svg { color: #9CA3AF; transition: color 0.18s, fill 0.18s; }
.prod-wish-btn:hover svg { color: var(--color-primary); }
.prod-wish-btn.wished { background: #FFF0F0; border-color: var(--color-primary); }
.prod-wish-btn.wished svg { fill: var(--color-primary); color: var(--color-primary); }

/* ── Banner produs ── */
.prod-banner { display: block; width: 100%; height: 100%; min-height: 100%; border-radius: 12px; overflow: hidden; }
.prod-banner img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

/* ── Slider ── */
.slider-arrows { display: flex; gap: 8px; }
.arrow-btn {
  background-color: #f5f5f5; border: 1px solid #e2e2e2; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #333; transition: all 0.2s;
}
.arrow-btn:hover { background-color: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.slider-container {
  display: flex; flex-wrap: nowrap; align-items: stretch;
  gap: 20px; overflow-x: auto;
  scroll-behavior: smooth; scroll-snap-type: x mandatory;
  /* padding-top ADĂUGAT: overflow-x:auto forțează browserul să trateze și
     overflow-y ca "auto", deci orice iese pe verticală (umbra + ridicarea
     la hover a cardului) era tăiată de marginea de sus a containerului.
     Cu padding suficient sus (și jos, deja existent), umbra încape complet
     în interiorul containerului și nu mai e tăiată. */
  padding-top: 20px;
  margin-top: -20px;
  padding-bottom: 25px;
  -ms-overflow-style: none; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
}
.slider-container::-webkit-scrollbar { display: none; }
.slider-container .prod-banner,
.slider-container .prod-card { flex: 0 0 var(--card-w); width: var(--card-w); scroll-snap-align: start; box-sizing: border-box; }
.slider-container .prod-banner { display: flex; align-self: stretch; height: auto; border-radius: 12px; overflow: hidden; }
.slider-container .prod-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Footer ── */
#site-footer { background: #0D0D0D; color: #9CA3AF; }
.footer-top { padding: 56px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 40px; }

.footer-col-title { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.footer-col-title::after { content: ''; flex: 1; height: 1px; background: rgba(227,0,15,0.3); }
.footer-desc { font-size: 0.82rem; line-height: 1.7; color: #6B7280; margin-bottom: 20px; }
.footer-link { display: block; padding: 5px 0; font-size: 0.83rem; color: #6B7280; text-decoration: none; transition: color 0.18s, padding-left 0.18s; }
.footer-link:hover { color: #fff; padding-left: 5px; }
.footer-link:hover::before { content: '→ '; color: var(--color-primary); }

.footer-contact-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.83rem; }
.footer-contact-icon { width: 30px; height: 30px; border-radius: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.footer-contact-label { font-size: 0.68rem; color: #4B5563; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.footer-contact-val { color: #D1D5DB; font-weight: 500; }
.footer-contact-val a { color: inherit; text-decoration: none; }
.footer-contact-val a:hover { color: var(--color-primary); }

.payment-icons { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.pay-chip { height: 28px; padding: 0 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; color: #D1D5DB; }
.pay-chip.visa { color: #fff; background: #1a1f71; border-color: #1a1f71; }
.pay-chip.mc { color: #fff; background: #2d2d2d; border-color: #444; }
.pay-chip.mia { color: #fff; background: #004B87; border-color: #004B87; }

#footer-map-strip { display: grid; grid-template-columns: var(--schedule-col-w) 1fr; }
.schedule-block { background: #8B0000; padding: 36px 32px; }
.schedule-title { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.schedule-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.schedule-row:last-child { border-bottom: none; }
.schedule-day { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.schedule-time { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.96rem; color: #fff; }
.schedule-time.closed { color: rgba(255,255,255,0.35); font-weight: 400; font-style: italic; }

.map-container { position: relative; min-height: 260px; background: #1a1a1a; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; min-height: 260px; border: none; display: block; filter: grayscale(20%) contrast(1.05); }
.map-overlay-badge { position: absolute; top: 14px; left: 14px; background: var(--color-primary); color: #fff; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.4); z-index: 2; pointer-events: none; }
.map-click-overlay { position: absolute; inset: 0; z-index: 3; cursor: pointer; }

.footer-bottom { padding: 16px 0; background: #080808; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; color: #374151; }
.footer-bottom-inner a { color: #4B5563; text-decoration: none; }
.footer-bottom-inner a:hover { color: #9CA3AF; }

/* ── Sticky Call Widget ── */
#call-widget { position: fixed; bottom: 28px; right: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.call-tooltip { background: #111; color: #fff; font-size: 0.78rem; font-family: 'Barlow', sans-serif; padding: 9px 14px; border-radius: 8px; width: 200px; line-height: 1.4; box-shadow: 0 4px 20px rgba(0,0,0,0.35); position: absolute; bottom: calc(100% + 12px); right: 0; opacity: 0; transform: translateY(6px) scale(0.97); transition: opacity 0.22s, transform 0.22s; pointer-events: none; white-space: normal; word-break: normal; }
.call-tooltip::after { content: ''; position: absolute; bottom: -6px; right: 20px; width: 12px; height: 12px; background: #111; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.call-tooltip em { color: var(--color-primary); font-style: normal; font-weight: 700; }
.call-btn:hover .call-tooltip { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
/* Controlat explicit din JS (vezi base.html) — pe mobil, :hover rămâne
   "agățat" după un tap și tooltip-ul nu mai dispare niciodată. Clasa asta
   permite să-l arătăm/ascundem exact când vrem, cu un timer de 5 secunde,
   indiferent de starea de :hover a browserului. */
.call-tooltip.tooltip-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.call-btn.popup-open .call-tooltip { opacity: 0 !important; pointer-events: none !important; }

/* Pe mobil, tooltip-ul de lângă butonul de telefon nu mai apare deloc —
   pe touchscreen, :hover rămâne "agățat" după un tap în moduri diferite
   de la un telefon la altul, imposibil de controlat sigur din JS. Mult
   mai simplu și mai predictibil să nu-l arătăm deloc acolo. */
@media (max-width: 768px) {
  .call-tooltip { display: none !important; }
}
.call-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--color-primary); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px color-mix(in srgb, var(--color-primary) 40%, transparent); position: relative; transition: background 0.18s, transform 0.18s; }
.call-btn:hover { background: var(--color-primary-h); transform: scale(1.07); }
.call-btn::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--color-primary) 50%, transparent); animation: pulse-ring 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.call-btn::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--color-primary) 20%, transparent); animation: pulse-ring 2s cubic-bezier(0.4,0,0.6,1) infinite 0.5s; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.28); opacity: 0; } }

/* ── Buton "Înapoi sus" — fix, deasupra widget-ului de telefon.
   NOTĂ: nu am găsit nicio regulă pentru .scroll-top-btn în niciunul
   dintre fișierele CSS pe care le am — fără "position: fixed", butonul
   cade în fluxul normal al paginii și ajunge lângă footer, exact ce ai
   observat. Recreată aici, aliniată cu #call-widget (bottom:28px;
   right:24px;) de mai sus. */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, background 0.18s;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { background: #000; }
@media (max-width: 768px) {
  .scroll-top-btn { bottom: 138px; right: 20px; }
}

/* ══════════════════════════════════════════
   MOBILE SIDEBAR — redesign complet
══════════════════════════════════════════ */
#hamburger { display: none; }

#mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  /* z-index mărit de la 90 la 850 — trebuie să stea DEASUPRA
     #mob-bottom-nav (800), altfel bara de jos rămâne vizibilă și
     apăsabilă peste sidebar-ul mobil deschis. */
  z-index: 850;
}

#mobile-sidebar {
  display: none; position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 300px; max-width: 88vw;
  background: #fff;
  /* z-index mărit de la 100 la 900, din același motiv ca mai sus. */
  z-index: 900;
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  scrollbar-width: none;
  display: flex; flex-direction: column;
  box-shadow: 4px 0 40px rgba(0,0,0,0.18);
}
#mobile-sidebar::-webkit-scrollbar { display: none; }
#mobile-sidebar.open { transform: translateX(0); }

/* ── Header: logo + buton închidere ── */
#mob-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 16px; flex-shrink: 0;
  border-bottom: 1px solid #F3F4F6;
}
.mob-sidebar-logo {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; min-width: 0; overflow: hidden;
}
.mob-sidebar-logo .logo-kyb { font-size: 1.5rem; flex-shrink: 0; }
.mob-sidebar-tagline {
  font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 500;
  color: #9CA3AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-sidebar-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #F3F4F6; border: none; color: #6B7280; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mob-sidebar-close:hover { background: #FFE5E5; color: var(--color-primary); }

/* ── Panouri glisante (principal / catalog) ── */
.mob-panel {
  display: none;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mob-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mob-panel.mob-panel--active { display: flex; flex-direction: column; }
.mob-sidebar-body { padding: 10px 12px 24px; gap: 2px; }

/* ── Header panou catalog (back + titlu) ── */
.mob-panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 14px;
  flex-shrink: 0;
}
.mob-panel-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #F3F4F6; border: none; color: #374151; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mob-panel-back:hover { background: #FFE5E5; color: var(--color-primary); }
.mob-panel-title {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  color: #111;
}
.mob-nav-list { display: flex; flex-direction: column; }

/* ── Buton roșu "Catalog" ── */
.mob-menu-catalog-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 0 14px;
  margin-bottom: 6px;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.88rem; cursor: pointer;
  transition: opacity 0.15s;
}
.mob-menu-catalog-btn:hover { opacity: 0.9; }
.mob-menu-catalog-btn svg:first-child { flex-shrink: 0; }

/* ── Linkuri / butoane simple din meniu ── */
.mob-menu-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 46px; padding: 0 6px;
  background: none; border: none;
  font-size: 0.85rem; color: #1F2937;
  text-decoration: none; cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mob-menu-item:hover { background: #FFF5F5; color: var(--color-primary); }
.mob-menu-item:hover .mob-menu-icon { background: #FFE5E5; }
.mob-menu-item:hover .mob-menu-icon svg { color: var(--color-primary); }
.mob-menu-item--hot { color: var(--color-primary); }
.mob-menu-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: #F3F4F6; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.mob-menu-icon svg { width: 16px; height: 16px; color: #6B7280; transition: color 0.15s; }
.mob-menu-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px; margin-left: auto;
  background: var(--color-primary); color: #fff; border-radius: 999px;
  font-size: 0.65rem; font-weight: 700;
}
.mob-menu-divider { height: 1px; background: #F3F4F6; margin: 8px 4px; flex-shrink: 0; }

/* ── Rând rețele sociale (YouTube, TikTok, etc.) ── */
.mob-social-row {
  display: flex; gap: 8px; padding: 4px 6px 6px;
  flex-shrink: 0;
}
.mob-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: #F3F4F6; color: #6B7280;
  transition: background 0.15s, color 0.15s;
}
.mob-social-btn:hover { background: #FFE5E5; color: var(--color-primary); }

/* ── Nivel 1: Categorie principală ── */
.mob-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  min-height: 50px;
  border-bottom: 1px solid #F3F4F6;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #1F2937;
  cursor: pointer; user-select: none;
  transition: background 0.15s, color 0.15s;
  gap: 10px;
}
.mob-cat-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #F3F4F6; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.mob-cat-icon svg { width: 16px; height: 16px; color: #6B7280; transition: color 0.15s; }
.mob-cat-label { flex: 1; }
.mob-cat .acc-arrow {
  display: inline-flex; align-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #F3F4F6; justify-content: center;
  color: #9CA3AF; flex-shrink: 0;
  transition: transform 0.25s, color 0.2s, background 0.15s;
}
.mob-cat .acc-arrow svg { width: 10px; height: 10px; }
.mob-cat:hover { background: #FFF5F5; color: var(--color-primary); }
.mob-cat:hover .mob-cat-icon { background: #FFE5E5; }
.mob-cat:hover .mob-cat-icon svg { color: var(--color-primary); }
.mob-cat:hover .acc-arrow { background: #FFE5E5; color: var(--color-primary); }
.mob-cat.acc-open { background: #FFF5F5; color: var(--color-primary); }
.mob-cat.acc-open .mob-cat-icon { background: #FFE5E5; }
.mob-cat.acc-open .mob-cat-icon svg { color: var(--color-primary); }
.mob-cat.acc-open .acc-arrow { transform: rotate(90deg); background: var(--color-primary); color: #fff; }

/* ── Nivel 2: Subcategorie ── */
.mob-sub {
  overflow: hidden; max-height: 0;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
  background: #FAFAFA;
  border-bottom: 1px solid #F3F4F6;
}
.mob-sub.acc-open { max-height: 1200px; }

/* Link direct nivel 2 (fără copii) */
.mob-sub > a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 24px;
  font-size: 0.84rem; font-weight: 500; color: #374151;
  text-decoration: none; font-family: 'Barlow', sans-serif;
  border-bottom: 1px solid #F0F0F0;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}
.mob-sub > a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: #D1D5DB; flex-shrink: 0; transition: background 0.15s;
}
.mob-sub > a:last-child { border-bottom: none; }
.mob-sub > a:hover { color: var(--color-primary); padding-left: 28px; }
.mob-sub > a:hover::before { background: var(--color-primary); }

/* ── Nivel 2 cu copii ── */
.mob-sub-item { border-bottom: 1px solid #F0F0F0; }
.mob-sub-item:last-child { border-bottom: none; }

.mob-sub-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px 10px 24px;
  font-size: 0.84rem; font-weight: 600; color: #374151;
  font-family: 'Barlow', sans-serif;
  cursor: pointer; user-select: none;
  transition: color 0.15s, background 0.15s;
}
.mob-sub-title-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #D1D5DB; flex-shrink: 0; transition: background 0.15s;
}
.mob-sub-title-text { flex: 1; }
.mob-sub-title .acc-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  color: #C0C4CC; flex-shrink: 0;
  transition: transform 0.22s, color 0.18s;
}
.mob-sub-title .acc-arrow svg { width: 10px; height: 10px; }
.mob-sub-title:hover { color: var(--color-primary); background: #FFF5F5; }
.mob-sub-title:hover .mob-sub-title-dot { background: var(--color-primary); }
.mob-sub-title.acc-open { color: var(--color-primary); background: #FFF5F5; }
.mob-sub-title.acc-open .mob-sub-title-dot { background: var(--color-primary); }
.mob-sub-title.acc-open .acc-arrow { transform: rotate(90deg); color: var(--color-primary); }

/* ── Nivel 3: Sub-subcategorie ── */
.mob-subsub {
  overflow: hidden; max-height: 0;
  transition: max-height 0.25s cubic-bezier(0.4,0,0.2,1);
  background: #F3F4F6;
}
.mob-subsub.acc-open { max-height: 600px; }

.mob-subsub a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px 8px 40px;
  font-size: 0.78rem; color: #6B7280;
  text-decoration: none; font-family: 'Barlow', sans-serif;
  border-bottom: 1px solid #EAECEF;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}
.mob-subsub a::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: #D1D5DB; flex-shrink: 0; transition: background 0.15s;
}
.mob-subsub a:last-child { border-bottom: none; }
.mob-subsub a:hover {
  color: var(--color-primary); background: #fff;
  padding-left: 44px;
}
.mob-subsub a:hover::before { background: var(--color-primary); }

/* ── Drawere (Coș / Wishlist) ── */
.side-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--drawer-w); max-width: 100vw;
  background: #fff; z-index: 600;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}
.side-drawer.open { transform: translateX(0); }
.drawer-overlay { display: none; opacity: 0; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 580; transition: opacity 0.26s; }

.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 18px; border-bottom: 2px solid var(--color-border); flex-shrink: 0; }
.drawer-header-left { display: flex; align-items: center; gap: 10px; }
.drawer-title { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-dark); }
.drawer-close-btn { width: 32px; height: 32px; border: none; background: var(--color-gray-bg); cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #374151; transition: background 0.15s; }
.drawer-close-btn:hover { background: #EAECEF; }
.drawer-body { flex: 1; overflow-y: auto; }
.drawer-footer { flex-shrink: 0; display: none; }

.drawer-item { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--color-gray-bg); align-items: flex-start; }
.drawer-item-thumb { width: 60px; height: 60px; border-radius: 8px; border: 1.5px solid #EAECEF; flex-shrink: 0; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.drawer-item-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name { font-weight: 700; font-size: 0.92rem; color: var(--color-dark); line-height: 1.3; margin-bottom: 3px; }
.drawer-item-code { font-size: 0.7rem; color: #9CA3AF; margin-bottom: 8px; }
.drawer-item-price { font-weight: 900; font-size: 1.05rem; color: var(--color-dark); }
.drawer-item-remove { flex-shrink: 0; width: 26px; height: 26px; border: none; background: transparent; cursor: pointer; color: #9CA3AF; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: color 0.15s, background 0.15s; }
.drawer-item-remove:hover { color: var(--color-primary); background: #FEF2F2; }

.drawer-qty-wrap { display: flex; align-items: center; border: 1.5px solid #EAECEF; border-radius: 6px; overflow: hidden; }
.drawer-qty-btn { width: 28px; height: 28px; border: none; background: #F8F9FA; cursor: pointer; font-size: 1rem; color: #374151; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.drawer-qty-btn:hover { background: #EAECEF; }
.drawer-qty-val { min-width: 28px; text-align: center; font-weight: 700; font-size: 0.92rem; color: var(--color-dark); }

.drawer-footer-inner { padding: 16px 20px 8px; border-top: 2px solid var(--color-gray-bg); }
.drawer-footer-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.drawer-footer-label { font-size: 0.82rem; color: var(--color-mid); }
.drawer-footer-total { font-weight: 900; font-size: 1.3rem; color: var(--color-dark); }
.drawer-footer-note { font-size: 0.72rem; color: #9CA3AF; margin-bottom: 16px; }
.drawer-btn-primary { width: 100%; height: 48px; background: var(--color-primary); color: #fff; border: none; font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: background 0.18s; }
.drawer-btn-primary:hover { background: var(--color-primary-h); }
.drawer-btn-secondary { width: 100%; height: 40px; margin-top: 8px; background: transparent; color: var(--color-mid); border: 1.5px solid var(--color-border); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: border-color 0.15s, color 0.15s; }
.drawer-btn-secondary:hover { border-color: #9CA3AF; color: var(--color-dark); }
.drawer-btn-clear {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; padding: 0 14px; height: 40px; margin-top: 8px;
  border: 1.5px solid var(--color-border); border-radius: 4px;
  background: transparent; color: var(--color-mid); font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; flex-shrink: 0;
}
.drawer-btn-clear:hover { border-color: #E3000F; color: #E3000F; background: #FFF5F5; }
.drawer-btn-sm { height: 30px; padding: 0 12px; background: var(--color-dark); color: #fff; border: none; border-radius: 6px; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; margin-top: 8px; transition: background 0.15s; }
.drawer-btn-sm:hover { background: var(--color-primary); }

/* ── Newsletter ── */
.input-err { border-color: var(--color-primary) !important; }
.input-ok  { border-color: rgba(22,163,74,0.6) !important; }
.btn-subscribed { background: var(--color-success) !important; }

/* ── Flyout Panel ── */
.flyout-panel {
  display: none;
  position: absolute; top: 0;
  width: var(--sidebar-w);
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  border: 1.5px solid #E5E7EB; z-index: 999;
  overflow: hidden; overflow-y: auto; scrollbar-width: none;
  animation: flyFade 0.14s ease;
}
.flyout-panel::-webkit-scrollbar { display: none; }
@keyframes flyFade { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }

.fly-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid #F3F4F6; transition: background 0.13s; gap: 8px; }
.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; display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.fly-item:hover .fly-link, .fly-item.active .fly-link { color: var(--color-primary); }
.fly-chevron { font-size: 1rem; color: #C0C4CC; line-height: 1; flex-shrink: 0; transition: color 0.13s; }
.fly-item:hover .fly-chevron, .fly-item.active .fly-chevron { color: var(--color-primary); }
.fly-badge { font-size: 0.6rem; background: var(--color-primary); color: #fff; padding: 2px 5px; border-radius: 2px; font-family: 'Barlow', sans-serif; font-weight: 700; letter-spacing: 0.05em; }

/* ── "Reduceri & Oferte" — link simplu în nav secundar ── */
#nav-cat-wrapper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; transform: translateX(-8px); }
#nav-reduceri { border-radius: 8px; }

/* ── Call Popup ── */
#cpop-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99999; align-items: center; justify-content: center; padding: 24px; }
#cpop-overlay.open { display: flex; animation: cpopFadeOverlay .2s ease; }
@keyframes cpopFadeOverlay { from { opacity: 0; } to { opacity: 1; } }

#cpop-card { background: #fff; border-radius: 20px; padding: 26px 22px 20px; width: 300px; max-width: 300px; box-shadow: 0 12px 48px rgba(0,0,0,0.28); position: relative; font-family: 'Barlow', sans-serif; animation: cpopSlideUp .22s cubic-bezier(.34,1.56,.64,1); }
@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, color .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-chevron { color: #9CA3AF; flex-shrink: 0; }
.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; background: #fff; }
.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, transform .1s; margin-top: 2px; }
.cpop-submit-btn:hover { background: #B8000C; }
.cpop-submit-btn:active { transform: scale(.98); }
.cpop-success-wrap { text-align: center; padding: 6px 0 2px; }
.cpop-success-icon { width: 54px; height: 54px; border-radius: 50%; background: #DCFCE7; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.cpop-success-title { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.08rem; color: #111; margin-bottom: 8px; }
.cpop-success-sub { font-size: .78rem; color: #6B7280; font-family: 'Barlow', sans-serif; line-height: 1.55; margin-bottom: 20px; }
.cpop-close-btn { width: 100%; height: 46px; background: #111; color: #fff; border: none; border-radius: 10px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: .87rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .18s; }
.cpop-close-btn:hover { background: #222; }

/* ── Grid produse ── */
/* ── Pagina categorie ── */
/* .cat-head-row — definit o singură dată mai jos, în secțiunea PAGINA CATEGORIE */
.kyb-title-inline { margin: 0; flex-shrink: 0; white-space: nowrap; }

.subcat-slider-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.subcat-slider-track { margin: 0; padding-bottom: 4px; }
.subcat-slide-card {
  flex: 0 0 170px; width: 170px; scroll-snap-align: start;
  background: #fff; border: 1.5px solid #E5E7EB; border-radius: 14px;
  padding: 14px 12px 10px; text-align: center; text-decoration: none; color: #111;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex; flex-direction: column; align-items: center;
}
.subcat-slide-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 18px rgba(227,0,15,0.10); transform: translateY(-2px); }
.subcat-slide-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; }
.subcat-slide-img-ph { width: 64px; height: 64px; background: #F3F4F6; border-radius: 10px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.subcat-slide-name { font-family: 'Barlow', sans-serif; font-size: 0.82rem; font-weight: 600; line-height: 1.25; margin-bottom: 3px; }
.subcat-slide-meta { font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: #9CA3AF; }
.subcat-slide-price { font-family: 'Barlow', sans-serif; font-size: 0.72rem; color: #6B7280; margin-top: 2px; }

.subcat-slider-dots { display: flex; justify-content: center; gap: 6px; }
.subcat-dot { width: 22px; height: 4px; border-radius: 2px; background: #E5E7EB; border: none; cursor: pointer; padding: 0; transition: background 0.18s; }
.subcat-dot:hover { background: #D1D5DB; }
.subcat-dot.active { background: var(--color-primary); }

/* .kyb-sidebar — definit în secțiunea PAGINA CATEGORIE de mai jos */

/* ── Responsive ── */
@media (max-width: 1024px) {
  #sidebar { display: none; }
  #hamburger { display: flex !important; }
  #main-nav { display: none !important; }
  #mobile-sidebar { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .category-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cat-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 960px) {
  #footer-map-strip { grid-template-columns: 1fr; }
  .category-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .category-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-products-grid .prod-img-wrap { height: 140px; }
}
/* ============================================================
   PAGINA CATEGORIE
   ============================================================ */

/* ── Layout pagină ── */
.kyb-page { max-width: 1400px; margin: 0 auto; padding: 24px 12px; }
.kyb-breadcrumb { font-size: 0.82rem; color: #6B7280; margin-bottom: 16px; font-family: 'Barlow', sans-serif; }
.kyb-breadcrumb a { color: #6B7280; text-decoration: none; }
.kyb-breadcrumb a:hover { color: var(--color-primary); }
.kyb-title { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 900; margin: 0 0 16px; color: #111; }
.kyb-title-subcats { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 900; margin: 0 0 12px; color: #111; }

/* ── Subcategorii slider ── */
.cat-head-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.subcat-slider-wrap { min-width: 0; display: flex; flex-direction: column; gap: 0; margin-bottom: 0; }
.subcat-slider-track { margin: 0; padding-bottom: 4px; }
.subcat-slide-card {
  flex: 0 0 150px; width: 150px; scroll-snap-align: start;
  background: #fff; border: 1.5px solid #E5E7EB; border-radius: 14px;
  padding: 16px 10px 14px; text-align: center; text-decoration: none; color: #111;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 130px;
}
.subcat-slide-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 18px rgba(227,0,15,0.10); transform: translateY(-2px); }
.subcat-slide-card img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 10px; }
.subcat-slide-img-ph { width: 80px; height: 80px; background: #F3F4F6; border-radius: 10px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.subcat-slide-name { font-family: 'Barlow', sans-serif; font-size: 0.82rem; font-weight: 600; line-height: 1.25; }
.subcat-slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.subcat-dot { width: 22px; height: 4px; border-radius: 2px; background: #E5E7EB; border: none; cursor: pointer; padding: 0; transition: background 0.18s, width 0.18s; }
.subcat-dot:hover { background: #D1D5DB; }
.subcat-dot.active { background: var(--color-primary); width: 32px; }

/* ── Count card ── */
.kyb-count-card { display: inline-flex; align-items: center; gap: 8px; background: #F3F4F6; border-radius: 10px; padding: 8px 16px; font-family: 'Barlow', sans-serif; font-size: 0.85rem; color: #6B7280; margin-bottom: 16px; }
.kyb-count-card strong { color: #111; font-weight: 700; }

/* ── Layout sidebar + produse ── */
.kyb-layout { display: flex; gap: 18px; align-items: flex-start; margin-top: 0; }
.kyb-products { flex: 1; min-width: 0; margin-top: 0; }
.kyb-sort-bar { margin-top: 0 !important; border-top: 3px solid #E3000F; border-radius: 0 0 16px 16px; }

/* ── Sidebar — staţionară, NU mai urmărește scroll-ul ──
   Stă în flux normal, la locul ei. Nu se mai mișcă cu pagina. */
.kyb-sidebar {
  position: static;
  width: 256px;
  flex-shrink: 0;
  align-self: flex-start;
}
.kyb-sidebar-spacer { display: none; }

/* ── Casete filtre ── */
.kyb-filter-box { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 18px; margin-bottom: 12px; }
.kyb-filter-box:last-child { margin-bottom: 0; }
.kyb-price-box { border-top: 3px solid var(--color-primary); }
.kyb-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #F3F4F6; }
.kyb-filter-head-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; font-weight: 900; color: #111; }
.kyb-filter-reset { font-family: 'Barlow', sans-serif; font-size: 0.76rem; color: #9CA3AF; text-decoration: none; }
.kyb-filter-reset:hover { color: var(--color-primary); }
.kyb-divider { border: none; border-top: 1px solid #F3F4F6; margin: 12px 0; }
.kyb-filter-label { font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; display: block; }

/* ── Slider preț — roșu, subțire ── */
.spec-range-block { margin-bottom: 4px; }
.range-inputs { display: flex; gap: 6px; margin-bottom: 10px; }
.range-inputs input[type=number] { width: 100%; padding: 5px 7px; border: 1.5px solid #E5E7EB; border-radius: 8px; font-size: 0.8rem; font-family: 'Barlow', sans-serif; color: #374151; outline: none; background: #FAFAFA; }
.range-inputs input[type=number]:focus { border-color: var(--color-primary); background: #fff; }
.range-inputs input[type=number]::-webkit-inner-spin-button,
.range-inputs input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.slider-track { position: relative; height: 2px; background: #E5E7EB; border-radius: 2px; margin: 4px 8px 8px; }
.slider-range { position: absolute; height: 2px; background: var(--color-primary); border-radius: 2px; }
.slider-thumb { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--color-primary); border-radius: 50%; top: -6px; cursor: pointer; box-shadow: 0 1px 4px rgba(227,0,15,0.2); transition: transform 0.1s; }
.slider-thumb:hover { transform: scale(1.2); }
input[type=range].hidden-range { position: absolute; width: 100%; height: 2px; opacity: 0; cursor: pointer; top: 0; left: 0; margin: 0; pointer-events: all; }
.slider-labels { display: flex; justify-content: space-between; font-family: 'Barlow', sans-serif; font-size: 0.72rem; color: #9CA3AF; margin-top: 2px; }

/* ── Checkbox filtre ── */
.kyb-check-label { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; cursor: pointer; font-family: 'Barlow', sans-serif; font-size: 0.84rem; color: #374151; }

/* ── Listă compactă de subcategorii în sidebar (alternativă la sliderul
   full-width, folosită când sunt puține subcategorii — vezi category.html) ── */
.kyb-subcat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 8px; border-radius: 8px; text-decoration: none;
  font-family: 'Barlow', sans-serif; font-size: 0.84rem; color: #374151;
}
.kyb-subcat-item:hover { background: #F9FAFB; color: #111; }
.kyb-subcat-item.active { color: var(--color-primary); font-weight: 600; background: #FFF5F5; }
.kyb-check-label:hover { background: #F9FAFB; }
.kyb-check-label input[type=checkbox] { accent-color: var(--color-primary); width: 15px; height: 15px; flex-shrink: 0; }
.count-badge { background: #F3F4F6; color: #6B7280; font-size: 0.7rem; padding: 1px 6px; border-radius: 12px; margin-left: auto; flex-shrink: 0; }

/* ── Filtre spec toggle ── */
.spec-filter-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 6px 0; user-select: none; }
.spec-filter-toggle-name { font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.07em; }
.spec-arrow { font-size: 0.65rem; color: #9CA3AF; transition: transform 0.2s; display: inline-block; }
.spec-filter-toggle.open .spec-arrow { transform: rotate(180deg); }
.spec-filter-values { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.spec-filter-values.open { max-height: 800px; }

/* ── Mai mult / Mai puțin ── */
.kyb-check-extra { display: none; }
.kyb-check-extra.kyb-check-extra-visible { display: flex; }
.kyb-show-more { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px 8px; margin-top: 2px; font-family: 'Barlow', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); }
.kyb-show-more:hover { opacity: 0.75; }
.kyb-show-more-icon { font-size: 1rem; font-weight: 700; line-height: 1; }
.kyb-show-more-count { background: #F3F4F6; color: #6B7280; font-size: 0.7rem; font-weight: 600; padding: 1px 6px; border-radius: 12px; }

/* ── Grid produse categorie ── */
.category-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 0; }
.category-products-grid .prod-card { width: 100%; height: auto; }
.category-products-grid .prod-img-wrap { height: 260px; }

/* ── Paginare ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-family: 'Barlow', sans-serif; font-size: 0.88rem; font-weight: 600; text-decoration: none; border: 1.5px solid #E5E7EB; color: #374151; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination span.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination span.disabled { color: #D1D5DB; }

/* ── Navbar fix la zoom — nav nu depășește fereastra ── */
#main-nav {
  /* Păstrăm margin-left original din HTML (60px),
     dar forțăm să nu depășească lățimea viewport-ului */
  box-sizing: border-box;
  max-width: 100vw;
  overflow: visible;
}

/* ── Responsive ── */
@media (max-width: 1200px) { .category-products-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 960px) {
  .kyb-layout { flex-direction: column; }
  .kyb-sidebar { width: 100%; }
  .kyb-related-section { margin-left: 0 !important; }
  #main-nav { display: none !important; }
  #hamburger { display: flex !important; }
  #mobile-sidebar { display: flex; }
  .category-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .category-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .category-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kyb-page { padding: 16px 8px; }
}

/* ============================================================
   BREADCRUMB — folosit pe orice pagină (produs, categorie,
   pagini statice), definit o singură dată aici. Markup-ul se
   generează cu {% include "partials/breadcrumb.html" %}, nu se
   mai scrie de mână în fiecare template.
   ============================================================ */
.breadcrumb-bar { background: transparent; padding: 0; margin: 0 0 16px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 10px 16px; font-size: 0.78rem; color: #9CA3AF; font-family: 'Barlow', sans-serif; background: #fff; border-radius: 10px; border: 1px solid #F0F0F0; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.breadcrumb a { color: #6B7280; text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: #E3000F; }
.breadcrumb li[aria-hidden] { color: #D1D5DB; }
.breadcrumb li[aria-current] { color: #111; font-weight: 600; }
@media (max-width: 480px) {
  .breadcrumb { font-size: 0.7rem; padding: 8px 12px; gap: 4px; }
}

/* ============================================================
   MODAL-URI GENERICE (.oc-*) — folosite de orice pop-up de pe
   site (checkout, credit/rate, etc.), definite o singură dată
   aici, ca să nu fie hardcodate separat în fiecare pagină.
   ============================================================ */
.oc-overlay {
  display: none; position: fixed; inset: 0; background: rgba(17,17,17,0.55);
  z-index: 99990; opacity: 0; transition: opacity 0.25s;
}
.oc-overlay.is-open { display: block; opacity: 1; }

.oc-modal {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -46%); width: 92%;
  z-index: 99991; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  background: #fff; border-radius: 16px;
  max-height: 90vh; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.oc-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
.oc-modal.is-open { display: flex; flex-direction: column; opacity: 1; transform: translate(-50%, -50%); }

.oc-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: #F3F4F6; color: #374151;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.15s; flex-shrink: 0;
}
.oc-close:hover { background: #E5E7EB; }

.oc-input {
  padding: 12px 14px; border: 1.5px solid #EAECEF; border-radius: 10px;
  font-family: 'Barlow', sans-serif; font-size: 0.88rem; outline: none;
  transition: border-color 0.15s; width: 100%; box-sizing: border-box;
}
.oc-input:focus { border-color: #E3000F; }
.oc-input.error { border-color: #E3000F; background: #FFF5F5; }

.oc-submit {
  width: 100%; padding: 13px; border: none; border-radius: 10px; background: #E3000F; color: #fff;
  font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 0.86rem; letter-spacing: 0.02em;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.oc-submit:hover { background: var(--color-primary-h); }
.oc-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   MODAL FINALIZARE COMANDĂ — același cod pe orice pagină
   (definit o singură dată în base.html, stilat aici)
   ============================================================ */
.checkout-modal { max-width: 560px; padding: 0; overflow: hidden; max-height: 88vh; }

.checkout-header {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 14px;
  border-bottom: 1px solid #F3F4F6; background: #fff; flex-shrink: 0;
}
.checkout-steps { display: flex; align-items: center; gap: 8px; }
.checkout-step {
  display: flex; align-items: center; gap: 6px; font-family: 'Barlow', sans-serif;
  font-size: 0.8rem; font-weight: 600; color: #9CA3AF; transition: color 0.2s;
}
.checkout-step.active { color: #E3000F; }
.checkout-step.done { color: #16a34a; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%; background: #F3F4F6; color: #9CA3AF;
  font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.checkout-step.active .step-num { background: #E3000F; color: #fff; }
.checkout-step.done .step-num { background: #16a34a; color: #fff; }
.checkout-step-sep { color: #D1D5DB; font-size: 0.9rem; }

.checkout-step-panel { padding: 18px 24px 20px; overflow-y: auto; flex: 1; min-height: 0; }
.checkout-section-title { font-family: 'Barlow', sans-serif; font-size: 0.96rem; font-weight: 700; color: #111; margin: 0 0 12px; }

/* Scrollbar discret, roșu, subțire, fără săgeți — folosit doar dacă tot mai e nevoie de el */
.checkout-step-panel { scrollbar-width: thin; scrollbar-color: #E3000F transparent; }
.checkout-step-panel::-webkit-scrollbar { width: 5px; }
.checkout-step-panel::-webkit-scrollbar-track { background: transparent; }
.checkout-step-panel::-webkit-scrollbar-thumb { background: #E3000F; border-radius: 10px; }
.checkout-step-panel::-webkit-scrollbar-button { display: none; height: 0; width: 0; }

/* Livrare */
.delivery-options { display: flex; gap: 10px; margin-bottom: 16px; }
.delivery-opt { flex: 1; cursor: pointer; }
.delivery-opt input { display: none; }
.delivery-opt-body {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px solid #EAECEF;
  border-radius: 10px; font-family: 'Barlow', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: #374151; transition: border-color 0.15s, background 0.15s; cursor: pointer;
}
.delivery-opt input:checked + .delivery-opt-body { border-color: #E3000F; background: #FFF5F5; color: #E3000F; }

/* Magazine */
.pickup-label {
  font-family: 'Barlow', sans-serif; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #6B7280; margin: 0 0 8px;
}
.pickup-locations { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.store-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #EAECEF;
  border-radius: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.store-card input { display: none; }
.store-card.active { border-color: #E3000F; background: #FFF5F5; }
.store-card-body { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.store-name { font-family: 'Barlow', sans-serif; font-size: 0.88rem; font-weight: 600; color: #111; }
.store-hours { font-family: 'Barlow', sans-serif; font-size: 0.73rem; color: #6B7280; }
.store-map-btn {
  display: flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid #EAECEF; border-radius: 6px;
  font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 600; color: #374151; text-decoration: none;
  white-space: nowrap; background: #fff; transition: border-color 0.15s, color 0.15s; flex-shrink: 0;
}
.store-map-btn:hover { border-color: #E3000F; color: #E3000F; }

/* Curier */
.courier-address { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

/* Tip persoană */
.person-type-btns { display: flex; gap: 8px; margin-bottom: 16px; }
.person-type-btn {
  flex: 1; padding: 10px; border: 1.5px solid #EAECEF; border-radius: 8px; font-family: 'Barlow', sans-serif;
  font-size: 0.85rem; font-weight: 600; color: #374151; background: #fff; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s; text-align: center;
}
.person-type-btn.active { border-color: #E3000F; background: #FFF5F5; color: #E3000F; }

/* Empty cell placeholder — keeps Telefon at 50% width, simetric */
.co-empty-cell { display: block; }

.checkout-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Telefon + Company — full row, simetric */
.checkout-fields-grid #co-telefon,
.juridica-fields-grid #co-company { grid-column: 1 / -1; }
.co-empty-cell { display: none !important; }

/* Câmpuri persoană juridică — spațiate clar față de blocul de mai sus, nu doar 8px */
.juridica-fields-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #F3F4F6;
}
.juridica-fields-grid #co-company { grid-column: 1 / -1; }

/* Plată */
.payment-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.payment-opt { cursor: pointer; }
.payment-opt input { display: none; }
.payment-opt-body {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px solid #EAECEF;
  border-radius: 9px; transition: border-color 0.15s, background 0.15s;
}
.payment-opt-body svg { width: 19px; height: 19px; flex-shrink: 0; }
.payment-opt input:checked + .payment-opt-body { border-color: #E3000F; background: #FFF5F5; }
.payment-name { font-family: 'Barlow', sans-serif; font-size: 0.84rem; font-weight: 700; color: #111; line-height: 1.25; }
.payment-desc { font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: #6B7280; line-height: 1.25; }

/* Sumar comandă */
.checkout-order-summary { background: #F9FAFB; border-radius: 10px; padding: 11px 14px; margin-bottom: 4px; }
.co-summary-row {
  display: flex; justify-content: space-between; font-family: 'Barlow', sans-serif;
  font-size: 0.8rem; color: #374151; padding: 3px 0;
}
.co-summary-total { font-weight: 800; font-size: 0.94rem; color: #111; border-top: 1px solid #EAECEF; margin-top: 4px; padding-top: 6px; }

/* Footer — STICKY, mereu vizibil, nu necesită scroll ca să apară „Înapoi" */
.checkout-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 24px; border-top: 1px solid #F3F4F6; background: #fff; flex-shrink: 0;
}
.checkout-order-mini { margin-right: auto; font-family: 'Barlow', sans-serif; font-size: 0.8rem; color: #6B7280; }
.checkout-back-btn + .checkout-order-mini { margin-left: 18px; }
.checkout-order-total { font-weight: 800; color: #111; font-size: 0.95rem; display: block; }
.checkout-back-btn {
  padding: 10px 16px; border: 1.5px solid #EAECEF; border-radius: 8px; background: #fff;
  font-family: 'Barlow', sans-serif; font-size: 0.85rem; font-weight: 600; color: #374151;
  cursor: pointer; transition: border-color 0.15s, color 0.15s; flex-shrink: 0;
}
.checkout-back-btn:hover { border-color: #E3000F; color: #E3000F; }
.checkout-footer .oc-submit { width: auto; padding: 12px 24px; }

/* Succes */
.checkout-success { text-align: center; padding: 28px 0 8px; }

.checkout-success-icon {
  margin: 0 auto 22px; width: 84px; height: 84px; border-radius: 50%;
  background: #F0FDF4; display: flex; align-items: center; justify-content: center;
  position: relative; animation: coSuccessPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.checkout-success-icon::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid #16a34a; opacity: 0; animation: coSuccessRing 0.9s ease-out 0.2s both;
}
.checkout-success-icon svg { width: 38px; height: 38px; }
.checkout-success-icon svg circle {
  stroke-dasharray: 63; stroke-dashoffset: 63;
  animation: coSuccessCircle 0.5s ease-out 0.05s both;
}
.checkout-success-icon svg polyline {
  stroke-dasharray: 23; stroke-dashoffset: 23;
  animation: coSuccessCheck 0.35s ease-out 0.4s both;
}
.checkout-success-title { animation: coSuccessFade 0.4s ease-out 0.5s both; }
.checkout-success-text { animation: coSuccessFade 0.4s ease-out 0.6s both; }
.checkout-success .oc-submit { animation: coSuccessFade 0.4s ease-out 0.7s both; }

@keyframes coSuccessPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes coSuccessRing {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes coSuccessCircle { to { stroke-dashoffset: 0; } }
@keyframes coSuccessCheck { to { stroke-dashoffset: 0; } }
@keyframes coSuccessFade {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.checkout-success-title { font-family: 'Barlow', sans-serif; font-size: 1.3rem; font-weight: 800; color: #111; margin: 0 0 8px; }
.checkout-success-text { font-family: 'Barlow', sans-serif; font-size: 0.9rem; color: #6B7280; margin: 0; }

@media (max-width: 600px) {
  /* Checkout modal — centrat, nu jos */
  .checkout-modal {
    max-width: calc(100% - 24px) !important;
    width: calc(100% - 24px) !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
  }
  .oc-modal.is-open.checkout-modal { transform: translate(-50%, -50%) !important; }

  /* Header steps — compact */
  .checkout-header { padding: 8px 12px 7px; }
  .checkout-steps { gap: 3px; }
  .checkout-step { gap: 3px; font-size: 0.6rem; }
  .checkout-step-sep { font-size: 0.65rem; }
  .step-num { width: 16px; height: 16px; font-size: 0.55rem; }

  /* Panel scroll fără scrollbar */
  .checkout-step-panel {
    padding: 10px 12px 12px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .checkout-step-panel::-webkit-scrollbar { display: none !important; width: 0 !important; }

  /* Footer butoane */
  .checkout-footer { padding: 10px 14px; gap: 8px; }
  .checkout-back-btn { padding: 7px 10px; font-size: 0.7rem; }
  .checkout-footer .oc-submit { padding: 8px 14px; font-size: 0.7rem; }
  .checkout-footer { padding: 8px 12px; gap: 6px; }
  .checkout-order-mini { font-size: 0.64rem; }
  .checkout-order-total { font-size: 0.76rem; }
  .checkout-section-title { font-size: 0.8rem; margin-bottom: 8px; }

  /* Câmpuri — 2 coloane păstrate ca să încapă pe verticală fără scroll */
  .checkout-fields-grid, .juridica-fields-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .juridica-fields-grid { margin-top: 10px; padding-top: 10px; }
  .delivery-options { gap: 7px; margin-bottom: 10px; }
  .oc-input { padding: 7px 9px; font-size: 0.72rem; }
  .person-type-btns { gap: 6px; margin-bottom: 10px; flex-direction: row; }
  .person-type-btn { padding: 7px 6px; font-size: 0.72rem; }
  .co-empty-cell { display: none; }
  /* telefon full-width — deja setat global */
  .delivery-opt-body { padding: 7px 9px; font-size: 0.7rem; gap: 6px; }
  .delivery-opt-body svg { width: 14px; height: 14px; flex-shrink: 0; }
  .pickup-locations { gap: 6px; margin-bottom: 10px; }
  .pickup-label { font-size: 0.66rem; margin-bottom: 5px; }
  .store-card { padding: 7px 9px; gap: 8px; }
  .store-name { font-size: 0.74rem; }
  .store-hours { font-size: 0.6rem; }
  .store-map-btn { padding: 3px 7px; font-size: 0.6rem; }
  .courier-address { gap: 6px; margin-bottom: 10px; }
  .payment-opt-body { padding: 7px 9px; }
  .payment-name { font-size: 0.7rem; }
}

/* ============================================================
   OPTIMIZARE MOBIL
   ============================================================ */

/* Plasă de siguranță: niciun element nu mai poate forța scroll
   orizontal pe toată pagina (cauza reală a coșului "stricat" pe mobil).
   IMPORTANT: overflow-x pus DOAR pe <html>, nu și pe <body> — dacă body
   are orice overflow diferit de "visible" (chiar și doar pe orizontală,
   fiindcă browserul calculează automat overflow-y:auto când nu-l
   specifici), asta rupe complet "position: sticky" pentru copiii lui
   direcți (exact #site-header, care de-asta rămânea "prins" sus în
   document în loc să stea fixat sus în fereastră). <html> singur e
   suficient ca să blocheze scroll-ul orizontal pe toată pagina. */
html { max-width: 100%; overflow-x: hidden; }
html {
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge legacy */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 768px) {
  /* ── Header: trece pe 2 rânduri pe mobil ──
     rândul 1 = hamburger + logo + iconițe coș/wishlist
     rândul 2 = bara de căutare, pe toată lățimea */
  #header-inner {
    height: auto !important;
    flex-wrap: wrap;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    row-gap: 10px;
  }
  .search-wrap {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none;
  }
  #search-btn span { display: none; }

  /* ── Iconițe coș/wishlist: mai mult spațiu între ele ── */
  #header-inner > .flex.items-center.gap-1 {
    gap: 10px !important;
    margin-left: auto;
  }
  .icon-btn { padding: 8px !important; }

  /* ── Topbar: mai compact, fără să se strângă urât ── */
  #topbar .mx-auto { padding-left: 12px !important; padding-right: 12px !important; gap: 10px !important; }

  /* ── Drawer-uri (coș/wishlist): lățime 100% garantată ── */
  .side-drawer { width: 100vw; }
}

/* Cardurile de produs (sloturile orizontale și grid-ul de categorie) */
@media (max-width: 600px) {
  :root { --card-w: 165px; --card-h: 300px; }
  .prod-img-wrap { height: 150px; padding: 8px; }
  .prod-body { padding: 10px 12px 12px; gap: 4px; }
  .prod-title {
    font-size: 0.8rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .prod-code, .prod-stock, .prod-rate { font-size: 0.65rem; }
  .prod-price-new { font-size: 1.05rem; }
  .prod-price-old { font-size: 0.68rem; }
  .prod-cart-btn { width: 32px; height: 32px; }
  .prod-cart-btn svg { width: 16px; height: 16px; }
  .prod-rate-wrap { margin-top: 6px; }
}

.prod-rate-badge {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 5px 10px; background: #FFF1F2; border-radius: 8px;
  width: fit-content; max-width: 100%; box-sizing: border-box;
}
.prod-rate-icon { align-self: center; margin-right: 2px; flex-shrink: 0; }
.prod-rate-label { font-size: 0.7rem; font-weight: 600; color: #374151; white-space: nowrap; }
.prod-rate-amount { font-size: 0.92rem; font-weight: 800; color: #E3000F; line-height: 1; white-space: nowrap; }
.prod-rate-detail { font-size: 0.62rem; color: #9CA3AF; margin-top: 3px; margin-left: 2px; }

.prod-wish-btn { width: 26px; height: 26px; top: 8px; right: 8px; }

@media (max-width: 420px) {
  :root { --card-w: 145px; --card-h: 280px; }
  .prod-img-wrap { height: 130px; }
  .prod-rate-badge { padding: 3px 6px; }
  .prod-rate-amount { font-size: 0.7rem; }
  .prod-rate-label { font-size: 0.56rem; }
  .prod-rate-detail { font-size: 0.52rem; }
}

/* ══ ANTI-ZOOM iOS — font-size >= 16px pe toate input-urile ══ */
@media (max-width: 768px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  textarea, select { font-size: 16px !important; }
}
/* ══ FILTRE MOBIL — fix global pentru toate paginile (search, category etc) ══ */
.mob-filter-drawer-head { display: none !important; }
.mob-filter-footer { display: none !important; }
.mob-filter-btn { display: none !important; }

@media (max-width: 767px) {
  .mob-filter-btn {
    display: flex !important;
    align-items: center; gap: 7px;
    padding: 8px 14px;
    background: #111; color: #fff;
    border: none; border-radius: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.84rem; font-weight: 700;
    cursor: pointer; flex-shrink: 0;
  }

  .kyb-sidebar {
    position: fixed !important;
    left: 0; top: 0; bottom: 0;
    width: 100vw !important;
    background: #fff;
    z-index: 600;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), visibility 0s linear 0.3s;
    padding: 0 !important;
    max-height: none !important;
  }

  .kyb-sidebar.mob-filters-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
  }

  .kyb-sidebar form#filter-form {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .kyb-sidebar form#filter-form::-webkit-scrollbar { display: none; }

  .kyb-sidebar.mob-filters-open .mob-filter-drawer-head { display: flex !important; }
  .kyb-sidebar.mob-filters-open .mob-filter-footer { display: flex !important; }

  #mob-filter-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 599;
  }
  #mob-filter-overlay.open { display: block; }

  .kyb-layout { gap: 0; }
  .kyb-sort-bar { gap: 8px; padding: 10px 14px; }
  .kyb-sort-label { display: none; }
}

@media (min-width: 768px) {
  .kyb-sidebar {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
    width: 256px !important;
    padding: 0 !important;
  }
  .mob-filter-btn { display: none !important; }
  #mob-filter-overlay { display: none !important; }
}
/* ══ SORT BAR + BREADCRUMB — stiluri globale, toate paginile ══ */
.kyb-breadcrumb {
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 12px;
  border: 1px solid #F0F0F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #6B7280;
  font-family: 'Barlow', sans-serif;
}
.kyb-breadcrumb a { color: #6B7280; text-decoration: none; }
.kyb-breadcrumb a:hover { color: #E3000F; }

.kyb-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid #F0F0F0;
  border-top: 3px solid #E3000F;
  margin: 0 0 16px;
}
.kyb-product-count { font-family: 'Barlow', sans-serif; font-size: 0.85rem; color: #6B7280; }
.kyb-product-count strong { color: #111; font-weight: 700; }
.kyb-sort-wrap { display: flex; align-items: center; gap: 8px; }
.kyb-sort-label { font-family: 'Barlow', sans-serif; font-size: 0.82rem; color: #9CA3AF; white-space: nowrap; }

.kyb-custom-select { position: relative; }
.kyb-custom-select-btn {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow', sans-serif; font-size: 0.84rem; font-weight: 600; color: #374151;
  background: #fff; border: 1.5px solid #E5E7EB; border-radius: 10px;
  padding: 8px 14px; cursor: pointer; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap; min-width: 160px; justify-content: space-between;
}
.kyb-custom-select-btn:hover { border-color: #E3000F; }
.kyb-custom-select-btn.open { border-color: #E3000F; box-shadow: 0 0 0 3px rgba(227,0,15,0.08); }
.kyb-custom-select-btn svg { flex-shrink: 0; transition: transform 0.2s; }
.kyb-custom-select-btn.open svg { transform: rotate(180deg); }

.kyb-custom-select-menu {
  display: none; position: absolute;
  top: calc(100% + 6px); right: 0; min-width: 100%;
  background: #fff; border: 1.5px solid #E5E7EB; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 100;
  overflow: hidden; padding: 6px 0;
}
.kyb-custom-select-menu.open { display: block; animation: sortDdFade 0.15s ease; }
@keyframes sortDdFade { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.kyb-sort-option {
  padding: 10px 16px; font-family: 'Barlow', sans-serif; font-size: 0.84rem;
  color: #374151; cursor: pointer; transition: background 0.12s, color 0.12s; white-space: nowrap;
}
.kyb-sort-option:hover { background: #FFF5F5; color: #E3000F; }
.kyb-sort-option.active { color: #E3000F; font-weight: 700; background: #FFF5F5; }

/* ══════════════════════════════════════════════════════
   REDESIGN TIPOGRAFIE — Inter light, fără uppercase bold
   (override final, suprascrie tot ce e deasupra)
══════════════════════════════════════════════════════ */

/* Titluri de secțiuni — Inter medium, fără uppercase */
.section-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1.8rem !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: #111 !important;
}
.section-title .accent {
  font-weight: 600 !important;
  color: var(--color-primary) !important;
}
.section-title .badge-new {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
}

/* Titluri categorii în carduri */
.mob-cat-label,
.cat-item,
.fly-link {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Prețuri — Inter semibold, nu Barlow 900 */
.prod-price-new {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.02em !important;
}

/* Drawer titlu */
.drawer-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.drawer-item-name {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}
.drawer-item-price,
.drawer-footer-total {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

/* Butoane drawer */
.drawer-btn-primary,
.drawer-btn-secondary,
.drawer-btn-sm {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

/* Nav links */
.nav-link {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
.nav-link.hot {
  font-weight: 500 !important;
}

/* Mob cat (sidebar mobil) */
.mob-cat {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Titluri menu mobil */
.mob-menu-catalog-btn,
.mob-menu-item {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Popup call */
.cpop-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}
.cpop-opt-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}
.cpop-submit-btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

/* === Aliniere uniformă carduri produs (titlu, cod, stoc, rate) === */
/* Adaugă acest bloc în kyb.css, sau la finalul fișierului */

.prod-title {
  min-height: 2.8em;      /* rezervă spațiu pentru titluri de până la 2 rânduri */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-code {
  min-height: 1.2em;
}

.prod-stock {
  min-height: 1.4em;
}

/* === Header sticky — rămâne mereu vizibil cu search bar, la scroll === */
/* Adaugă acest bloc în kyb.css. ÎNLOCUIEȘTE conținutul anterior din
   kyb-topbar-scroll.css (acela nu mai e necesar — topbar e din nou normal). */

#site-header {
  position: sticky;
  top: 0;
  z-index: 550;
  margin-top: 6px; /* păstrăm același aspect ca înainte */
}

/* ══════════════════════════════════════════════════════════════
   MOBILE FIXES v7 — header un rând, limbă lângă search, bottom nav
   ══════════════════════════════════════════════════════════════ */

/* ── 1. site-header-hidden ── */
#site-header { transition: transform 0.3s ease; }
.site-header-hidden { transform: translateY(-110%) !important; }

/* ── 2. Butonul de limbă în header (vizibil pe mobile, ascuns pe desktop) ── */
.header-lang-dd { display: none; flex-shrink: 0; }

.header-lang-btn {
  display: flex; align-items: center; gap: 4px;
  background: #F3F4F6; border: none; border-radius: 8px;
  padding: 5px 8px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600;
  color: #374151; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-lang-btn:hover { background: #E5E7EB; color: #111; }
.header-lang-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }

/* ── 3. MOBILE: header compact un singur rând ── */
@media (max-width: 768px) {
  /* Topbar ascuns pe mobile — limba e acum în header */
  #topbar { display: none !important; }
  #main-nav { display: none !important; }

  #site-header {
    margin: 4px 6px 0 6px !important;
    border-radius: 10px !important;
  }
  #header-inner {
    height: 50px !important;
    flex-wrap: nowrap !important;
    padding: 0 8px !important;
    gap: 6px !important;
    align-items: center !important;
  }

  /* Logo: fără tagline */
  .logo-kyb { font-size: 1.15rem !important; }
  .header-tagline { display: none !important; }

  /* Search: ocupă spațiu disponibil */
  #search-wrap, .search-wrap {
    flex: 1 1 auto !important;
    flex-basis: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    order: 0 !important;
    max-width: none !important;
  }
  .search-area {
    height: 34px !important;
    border-radius: 20px !important;
  }
  #search-input {
    font-size: 16px !important;
    padding-left: 10px !important;
    padding-right: 6px !important;
  }
  #search-btn {
    padding: 0 10px !important;
    border-radius: 0 20px 20px 0 !important;
  }
  #search-btn span { display: none !important; }

  /* Butonul de limbă — apare în header pe mobile */
  .header-lang-dd { display: flex !important; }

  /* Coș + wishlist din header — ascunse pe mobile (sunt în bottom nav) */
  .header-cart-wish { display: none !important; }

  /* Hamburger compact */
  #hamburger { padding: 4px !important; flex-shrink: 0; }
}

/* ── 4. DESKTOP: butonul de limbă din header ascuns ── */
@media (min-width: 769px) {
  .header-lang-dd { display: none !important; }
  .header-cart-wish { display: flex !important; }

  /* Topbar sticky — rămâne vizibil la scroll, la fel ca nav bar-ul.
     Nav bar-ul (#site-header) se lipește imediat sub el (36px = h-9,
     înălțimea rândului din interior), ca să nu se suprapună. */
  #topbar {
    position: sticky;
    top: 0;
    z-index: 551;
  }
  #site-header {
    top: 36px;
  }
}

/* ── 5. Sidebar filtre ── */
@media (max-width: 767px) {
  .kyb-sidebar { z-index: 700 !important; top: 0 !important; }
  #mob-filter-overlay { z-index: 695 !important; }
  body.mob-filters-active #site-header { z-index: 1 !important; }
}

/* ── 6. Section title ── */
@media (max-width: 640px) {
  .section-title { font-size: 1.1rem !important; display: block !important; margin-bottom: 12px !important; line-height: 1.3 !important; }
  .section-title::after { display: none !important; }
}

/* ── 7. Bottom nav ── */
#mob-bottom-nav { display: none; }

@media (max-width: 768px) {
  #mob-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    height: 58px; background: #fff; border-top: 1px solid #E5E7EB;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08); z-index: 800;
    align-items: stretch; justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mob-nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    background: none; border: none; cursor: pointer;
    color: #6B7280; font-family: 'Inter', sans-serif;
    font-size: 0.58rem; font-weight: 500; padding: 5px 4px;
    transition: color 0.15s; position: relative;
  }
  .mob-nav-item:active { color: #E3000F; }
  .mob-nav-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
  .mob-nav-badge {
    display: none; position: absolute; top: -5px; right: -7px;
    min-width: 15px; height: 15px; background: #E3000F; color: #fff;
    border-radius: 99px; font-size: 0.48rem; font-weight: 700;
    align-items: center; justify-content: center; padding: 0 3px; border: 2px solid #fff;
  }
  #mob-nav-curr-popup {
    display: none; position: fixed; bottom: 62px; right: 8px;
    background: #fff; border: 1px solid #E5E7EB; border-top: 2px solid #E3000F;
    border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    z-index: 810; overflow: hidden; min-width: 200px;
  }
  #mob-nav-curr-popup.open { display: block; }
  .mob-nav-curr-opt {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 12px 16px; background: none; border: none;
    border-bottom: 1px solid #F3F4F6; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500;
    color: #111; text-align: left; transition: background 0.13s;
  }
  .mob-nav-curr-opt:last-child { border-bottom: none; }
  .mob-nav-curr-opt:hover { background: #FFF1F2; color: #E3000F; }
  .mob-nav-curr-flag {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 18px; background: #F3F4F6; border-radius: 4px;
    font-size: 0.62rem; font-weight: 700; color: #374151; padding: 0 4px;
  }
  .mob-nav-curr-code { margin-left: auto; font-size: 0.65rem; color: #9CA3AF; font-weight: 700; }

  body { padding-bottom: 58px; }
  #call-widget { bottom: 70px !important; right: 16px !important; }

  /* Popup centrat pe mobil, nu ancorat la buton */
  #cpop-overlay {
    position: fixed !important;
    inset: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0,0,0,0.45) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    z-index: 99999 !important;
  }
  #cpop-overlay[style*="display: block"] {
    display: flex !important;
  }
  #cpop-card {
    width: calc(100vw - 40px) !important;
    max-width: 340px !important;
    transform-origin: center center !important;
  }
}

/* ── 8. Carduri height:auto ── */
@media (max-width: 640px) {
  :root { --card-w: 155px; }
  .prod-card { height: auto !important; min-height: 0 !important; }
  /* Lățimea fixă (155px) e corectă DOAR pentru cardurile din sliderele
     orizontale (au nevoie de o lățime fixă ca să poată derula). Cardurile
     dintr-un grid normal (categorie, "Lichidare de stoc" etc.) trebuie
     să se întindă pe toată coloana lor — altfel rămân mici, "lipite" în
     stânga celulei din grid, cu spațiu gol inutil în dreapta. */
  .slider-container .prod-card { width: var(--card-w, 155px) !important; }
  .prod-img-wrap { height: 130px !important; padding: 8px !important; flex-shrink: 0 !important; }
  .prod-body { padding: 8px 9px 9px !important; gap: 2px !important; justify-content: flex-start !important; }
  .prod-title { font-size: 0.74rem !important; line-height: 1.3 !important; min-height: 0 !important; }
  .prod-code { font-size: 0.58rem !important; }
  .prod-stock { font-size: 0.6rem !important; gap: 3px !important; }
  .prod-stock::before { width: 5px !important; height: 5px !important; }

  .prod-rate-wrap { margin-top: 3px !important; }
  .prod-rate-badge {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: center !important; gap: 2px !important; padding: 3px 6px !important;
    width: 100% !important; border-radius: 6px !important; overflow: hidden !important;
  }
  .prod-rate-icon { width: 9px !important; height: 9px !important; flex-shrink: 0 !important; margin-right: 1px !important; }
  .prod-rate-label { font-size: 0.52rem !important; flex-shrink: 0 !important; white-space: nowrap !important; }
  .prod-rate-amount { font-size: 0.62rem !important; font-weight: 800 !important; line-height: 1 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; flex-shrink: 1 !important; min-width: 0 !important; }
  .prod-rate-detail { font-size: 0.5rem !important; white-space: nowrap !important; flex-shrink: 0 !important; margin: 0 !important; }

  .prod-price-row { margin-top: auto !important; padding-top: 4px !important; flex-wrap: nowrap !important; align-items: center !important; gap: 4px !important; }
  .prod-price-new { font-size: 0.88rem !important; white-space: nowrap !important; letter-spacing: -0.01em !important; }
  .prod-price-old { font-size: 0.58rem !important; white-space: nowrap !important; }
  .prod-cart-btn { width: 28px !important; height: 28px !important; flex-shrink: 0 !important; }
  .prod-cart-btn svg { width: 13px !important; height: 13px !important; }
  .prod-wish-btn { width: 26px !important; height: 26px !important; }
  .prod-badge { font-size: 0.58rem !important; padding: 2px 6px !important; top: 6px !important; left: 6px !important; }
  .prod-badge.prod-badge-save { font-size: 0.68rem !important; padding: 4px 9px !important; }
}

/* ── 9. Grid categorie ── */
@media (max-width: 767px) {
  .category-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .category-products-grid .prod-card { width: 100% !important; height: auto !important; }
  .category-products-grid .prod-img-wrap { height: 130px !important; }
}

/* ── 10. Search dropdown ── */
@media (max-width: 768px) {
  .search-dropdown {
    position: fixed !important;
    left: 6px !important;
    right: 6px !important;
    top: 54px; /* fallback — JS (kyb.js) o suprascrie cu înălțimea reală a header-ului */
    max-height: calc(100dvh - 134px) !important;
    border-radius: 16px !important;
    width: auto !important;
  }
  .sd-grid { grid-template-columns: 1fr !important; max-height: calc(100dvh - 190px) !important; overflow-y: auto !important; scrollbar-width: none !important; }
  .sd-col-cats { display: none !important; }
  .sd-grid::-webkit-scrollbar, .sd-col::-webkit-scrollbar { display: none !important; }
  .sd-col { scrollbar-width: none !important; padding: 10px 8px !important; width: 100% !important; }
  .search-dropdown { scrollbar-width: none !important; -ms-overflow-style: none !important; }
  .search-dropdown::-webkit-scrollbar,
  .sd-grid::-webkit-scrollbar-button,
  .sd-col::-webkit-scrollbar-button,
  .search-dropdown::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Titlul coloanei */
  .sd-col-title {
    font-size: 0.68rem !important;
    margin-bottom: 10px !important;
  }

  /* Rânduri de produse — totul mai mic și uniform */
  .sd-prod-row {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 2px !important;
  }
  .sd-prod-thumb {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }
  .sd-prod-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .sd-prod-name {
    font-size: 0.74rem !important;
    line-height: 1.22 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
  }
  .sd-prod-sku {
    font-size: 0.62rem !important;
    margin-top: 2px !important;
  }
  .sd-prod-price {
    flex: 0 0 auto !important;
    text-align: right !important;
    padding-left: 6px !important;
    margin-top: 0 !important;
  }
  .sd-prod-price-old {
    display: block !important;
    font-size: 0.62rem !important;
    margin-right: 0 !important;
  }
  .sd-prod-price-new {
    display: inline-block !important;
    font-size: 0.82rem !important;
  }

  /* Categorii — aceeași scară ca produsele */
  .sd-cat-link {
    font-size: 0.74rem !important;
    padding: 9px 10px !important;
  }

  /* Buton "Toate rezultatele" — aceeași scară */
  .sd-all-results {
    padding: 9px 22px !important;
    font-size: 0.66rem !important;
  }
}




/* ── Fix: popup valută pe mobile ── */
@media (max-width: 768px) {
  #mob-nav-curr-popup {
    bottom: 130px !important;
    right: 8px !important;
    z-index: 920 !important;
  }
}

/* ── Popup valută eliminat — toggle direct, fără popup ── */
#mob-nav-curr-popup { display: none !important; }
.mob-nav-curr-opt, .mob-nav-curr-flag, .mob-nav-curr-code { display: none !important; }
/* Preț redus — forțat bold, indiferent de regulile tipografice generale de mai sus */
.price-sale { font-weight: 900 !important; -webkit-text-stroke: 0.4px currentColor; }