/* ============================================
   ALPHAGEAR — foaie de stil
   Poți schimba culorile principale aici, jos la ":root"
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #14161a;
  --text-muted: #5c6270;
  --accent: #2f6fed;
  --accent-dark: #1f4fc0;
  --brand-bar: #ee2737; /* Pantone 1788 C */
  --brand-bar-dark: #c81f2c;
  --border: #e6e8ec;
  --radius: 14px;
  --max-width: 1160px;
  --header-row-height: 52px;
  --top-bar-height: 52px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Navigație ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.top-bar {
  height: var(--top-bar-height);
  background: var(--brand-bar);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-row-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand img { display: block; width: auto; }
.brand .logo-icon { height: 40px; }
.brand .logo-wordmark { height: 20px; }

.brand.lockup-lg { gap: 6px; }
.brand.lockup-lg .logo-icon { height: 58px; }
.brand.lockup-lg .logo-wordmark { height: 32px; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
}

.main-nav li { position: relative; }

.main-nav a {
  font-weight: 700;
  font-size: 26px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-bar);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Dropdown „Produse” ---------- */

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"] {
  color: var(--brand-bar);
}

.nav-dropdown-btn .chevron {
  width: 13px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  margin-top: -6px;
  transition: transform 0.15s ease;
}

.nav-dropdown-btn[aria-expanded="true"] .chevron {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 22, 26, 0.14);
  padding: 10px;
  min-width: 240px;
  z-index: 60;
}

.dropdown-panel.open { display: block; }

.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.dropdown-panel a:hover { background: var(--bg-soft); color: var(--brand-bar); }

.dropdown-panel .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}

.dropdown-panel a.dropdown-all {
  color: var(--brand-bar);
  font-weight: 600;
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-row-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-row-height));
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
  }
  .main-nav li { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }

  .nav-dropdown-btn { width: 100%; justify-content: space-between; }

  .dropdown-panel {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 4px;
    min-width: 0;
  }
  .dropdown-panel.open { display: block; }
}

/* ---------- Butoane ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary.btn-brand { background: var(--brand-bar); color: #fff; }
.btn-primary.btn-brand:hover { background: var(--brand-bar-dark); }

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

.hero {
  padding: 96px 0 80px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

/* Paginile de categorie (carcase, coolere, ventilatoare, accesorii, surse):
   textul de sub titlu ocupă jumătate din lățimea paginii, nu doar 46ch. */
.hero p.lead.lead-wide {
  max-width: 50%;
}
@media (max-width: 768px) {
  .hero p.lead.lead-wide { max-width: 100%; }
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Hero pagini de categorie (eyebrow + linie) ---------- */

.category-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-bar);
  margin-bottom: 8px;
}

.category-rule {
  width: 96px;
  height: 3px;
  background: var(--brand-bar);
  border-radius: 2px;
  margin: 14px 0 16px;
}

/* ---------- Hero (varianta cu fotografie, doar homepage) ---------- */

.hero.hero-photo {
  padding: 56px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-photo .container { display: block; }

.hero-photo-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #f14d4d 0%, #ea6f6a 32%, #dd9a92 62%, #c9b2ae 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,11,14,0.2) 0%, rgba(10,11,14,0.08) 30%, rgba(10,11,14,0) 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding: 48px 56px;
}

@media (max-width: 768px) {
  .hero-content { max-width: 100%; padding: 32px 24px; }
  .hero-photo-box { min-height: auto; }
}

.hero-photo .eyebrow { color: var(--brand-bar); }
.hero-photo h1 { color: #fff; }
.hero-photo p.lead { color: #d7d9de; max-width: 46ch; }
.hero-photo .hero-actions { flex-wrap: nowrap; }
.hero-photo .btn-secondary { border-color: var(--brand-bar); color: #fff; white-space: nowrap; }
.hero-photo .btn-secondary:hover { border-color: var(--brand-bar-dark); color: #fff; transform: translateY(-1px); }
.hero-photo .btn-primary { background: transparent; border-color: var(--brand-bar); color: #fff; white-space: nowrap; }
.hero-photo .btn-primary:hover { background: transparent; border-color: var(--brand-bar-dark); color: #fff; transform: translateY(-1px); }

@media (max-width: 560px) {
  .hero-photo .hero-actions { flex-wrap: wrap; }
}
.hero-photo .hero-stats { border-top-color: rgba(255,255,255,0.2); }
.hero-photo .hero-stat-num { color: #fff; }
.hero-photo .hero-stat-label { color: #b7bac2; }

.hero-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { max-height: 260px; }

/* ---------- Secțiuni generice ---------- */

section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Bannere homepage ---------- */

.banner-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.banner-link:hover {
  box-shadow: 0 12px 28px rgba(20, 22, 26, 0.15);
  transform: translateY(-3px);
}

.banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Carduri produse ---------- */

.category-block { margin-bottom: 56px; scroll-margin-top: calc(var(--header-row-height) + 20px); }
.category-block h3 {
  font-size: 22px;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* La carcase și surse imaginile de produs sunt suficient de mari (1400x1400)
   încât să rămână clare chiar și întinse pe tot rândul cu puține rezultate
   filtrate — păstrăm boxul mare (auto-fit) doar aici. */
.product-grid.grid-stretch {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(20, 22, 26, 0.08);
  transform: translateY(-3px);
}

.product-card .product-image {
  background: #fff;
  aspect-ratio: 4 / 3;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card .product-info { padding: 20px; }

.product-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.product-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-bar);
  background: rgba(238, 39, 55, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Grid piloni (avantaje / valori) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Varianta cu exact 3 carduri pe rând (ex: "Valorile noastre" din pagina Despre) */
.feature-grid.feature-grid-3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 720px) {
  .feature-grid.feature-grid-3col {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  text-align: left;
  background: #0a0b0e;
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/hero/hero-banner-2.png');
  background-size: 400% 100%;
  background-repeat: no-repeat;
  z-index: 0;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(10,11,14,0.15) 0%, rgba(10,11,14,0.55) 100%);
  z-index: 0;
}

.feature-grid .feature-card:nth-child(1)::before { background-position: 0% 45%; }
.feature-grid .feature-card:nth-child(2)::before { background-position: 33% 45%; }
.feature-grid .feature-card:nth-child(3)::before { background-position: 66% 45%; }
.feature-grid .feature-card:nth-child(4)::before { background-position: 100% 45%; }
.feature-grid .feature-card:nth-child(5)::before { background-position: 15% 45%; }
.feature-grid .feature-card:nth-child(6)::before { background-position: 85% 45%; }

.feature-card > *:not(.feature-index) { position: relative; z-index: 2; }

.feature-card:hover {
  box-shadow: 0 12px 28px rgba(20, 22, 26, 0.35);
  transform: translateY(-3px);
  border-color: var(--brand-bar-dark);
}

.feature-index {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  opacity: 1;
  z-index: 2;
}

.feature-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-bar);
  margin: 0 0 8px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  color: #fff;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h4 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; color: #fff; }
.feature-card p { color: #c7cad1; font-size: 14px; margin: 0; line-height: 1.6; }

/* ---------- CTA final ---------- */

.cta-band {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 40px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 { margin: 0 0 12px; font-size: 30px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0 0 28px; }
.cta-band .btn-primary { background: var(--brand-bar); }
.cta-band .btn-primary:hover { background: var(--brand-bar-dark); }

/* ---------- Sisteme construite ---------- */

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .system-grid { grid-template-columns: 1fr; }
}

.system-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.system-card:hover {
  box-shadow: 0 12px 28px rgba(20, 22, 26, 0.08);
  transform: translateY(-3px);
}

.system-card .system-image {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
}

.system-card .system-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.system-card .system-info { padding: 18px 20px; }

.system-card h4 { margin: 0 0 4px; font-size: 15px; }

.system-card p { margin: 0; font-size: 13px; color: var(--text-muted); }

.system-card.is-hidden { display: none; }

/* ---------- Recenzii ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-stars {
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 2px;
}

.review-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  flex-grow: 1;
}

.review-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.review-source .review-site { font-weight: 600; color: var(--text); }

.review-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 28px auto 0;
  max-width: 640px;
}

/* ---------- Despre / Contact ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}
.info-list strong { min-width: 110px; color: var(--text-muted); font-weight: 600; }

form.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status:empty { display: none; }

.form-status-success,
.form-status-error {
  display: block;
}

.form-status-success {
  background: #e6f7ec;
  color: #1e7e34;
  border: 1px solid #b7e4c7;
}

.form-status-error {
  background: #fdecea;
  color: #b02a37;
  border: 1px solid #f5c2c7;
}

/* ---------- Retaileri (De unde cumpăr) ---------- */

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.retailer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.retailer-card:hover {
  box-shadow: 0 12px 28px rgba(20, 22, 26, 0.08);
  transform: translateY(-3px);
}

.retailer-logo {
  height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
}

.retailer-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  flex-grow: 1;
}

.retailer-card .btn { align-self: flex-start; }

.featured-retailer {
  border: 2px solid var(--brand-bar);
  position: relative;
}

.featured-retailer .tag { position: absolute; top: -12px; left: 24px; background: #fff; }
.featured-retailer .btn-primary { background: var(--brand-bar); }
.featured-retailer .btn-primary:hover { background: var(--brand-bar-dark); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .brand .logo-icon { height: 28px; }
.site-footer .brand .logo-wordmark { height: 13px; }

.site-footer .copyright {
  flex-basis: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- Galerie produs ---------- */

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--brand-bar); }
.breadcrumb .crumb-sep { color: var(--border); margin: 0 2px; }
.breadcrumb .breadcrumb-current { color: var(--text); font-weight: 600; }

.product-gallery {
  position: relative;
  /* Galeria (pătrat 1:1) nu trebuie să depășească niciodată fereastra:
     capul de 860px rămâne ca maxim "de design", dar pe ecrane late-joase
     (1080p etc.) se plafonează la 60% din înălțimea vizibilă a ferestrei,
     iar pe ferestre înguste nu depășește lățimea disponibilă. */
  width: min(995px, 69vh, 100%);
  margin: 0 auto;
}

.gallery-main {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 22, 26, 0.14);
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 5;
}
.gallery-arrow:hover { background: #fff; color: var(--accent); }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs img {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  background: var(--bg-soft);
}
.gallery-thumbs img:hover { opacity: 0.9; }
.gallery-thumbs img.active {
  border-color: var(--accent);
  opacity: 1;
}

.product-title-block { margin-bottom: 20px; }
.product-title-block h1 { margin: 0 0 10px; font-size: clamp(28px, 3.5vw, 40px); }
.product-title-block p.lead { margin: 0; }

.product-highlights {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.product-highlights li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.product-highlights li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 12px; }
.spec-table th {
  width: 240px;
  color: var(--text-muted);
  font-weight: 600;
  vertical-align: top;
}
.spec-table td { color: var(--text); }
.spec-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.spec-section-title:first-child { margin-top: 0; }

/* ---------- Prezentare produs (poveste, imagine + text) ---------- */

.feature-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.feature-story:last-child { margin-bottom: 0; }

/* Chenarul are dimensiune fixă (raport 3:2, ca majoritatea pozelor ASCEND),
   indiferent de dimensiunea reală a imaginii — imaginea nu este modificată,
   doar încadrată în chenar (object-fit: contain, fără decupare). */
.feature-story-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.feature-story img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-story-text h3 {
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.feature-story-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

@media (max-width: 800px) {
  .feature-story { grid-template-columns: 1fr; }
  .feature-story .feature-story-image { order: -1; }
}

/* ---------- Listing categorie (ex: Carcase) ---------- */

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover { border-color: var(--brand-bar); color: var(--brand-bar); }
.filter-pill.active {
  background: var(--brand-bar);
  border-color: var(--brand-bar);
  color: #fff;
}

.result-count {
  font-size: 14px;
  color: var(--text-muted);
}

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.product-card { position: relative; }

.product-image { position: relative; }
.color-variant { display: none; width: 100%; height: 100%; }
.color-variant.active { display: block; }
.product-image svg { width: 100%; height: 100%; display: block; }

.color-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 0;
}
.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--swatch-color, #fff);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.color-swatch:hover { border-color: var(--brand-bar); }
.color-swatch.active {
  border-color: var(--brand-bar);
  box-shadow: 0 0 0 3px rgba(238, 39, 55, 0.15);
}

.product-card.is-hidden { display: none; }

/* Align title start position across cards in the same row: cards without
   color swatches get extra top padding equal to the swatches row height
   (14px padding + 20px circle = 34px) so all h4 titles line up. */
.product-card:not(:has(.color-swatches)) .product-info {
  padding-top: 54px;
}

.product-card .product-info .spec-line {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.product-card .product-info .spec-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-card .product-info .spec-line span::before {
  content: "•";
  color: var(--border);
}
.product-card .product-info .spec-line span:first-child::before { content: ""; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: none;
}
.empty-state.show { display: block; }

/* ---------- Filtre avansate ---------- */

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--brand-bar); color: var(--brand-bar); }
.filter-btn[aria-expanded="true"] {
  background: var(--brand-bar);
  color: #fff;
  border-color: var(--brand-bar);
}
.filter-btn .filter-count {
  background: var(--brand-bar);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  display: none;
}
.filter-btn .filter-count.show { display: inline-block; }

.advanced-filter-panel {
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0 28px;
}
.advanced-filter-panel.open { display: flex; }


.filter-group h5 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  margin-bottom: 11px;
  cursor: pointer;
  color: var(--text);
}

.filter-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.filter-checkbox-row .filter-checkbox {
  margin-bottom: 0;
}
.filter-checkbox input {
  accent-color: var(--brand-bar);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-actions {
  flex: 1 0 100%;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

/* ---------- Descărcări (Manuale / Software) — pagina Suport ---------- */

.support-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.support-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.support-tab:hover { border-color: var(--brand-bar); color: var(--brand-bar); }
.support-tab.active {
  background: var(--brand-bar);
  border-color: var(--brand-bar);
  color: #fff;
}
.support-tab.active:hover { color: #fff; }

.support-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 24px;
}
.support-search:focus { outline: none; border-color: var(--brand-bar); }

.manual-group { margin-bottom: 26px; }
.manual-group:last-of-type { margin-bottom: 0; }
.manual-group h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.manual-group-count { color: var(--border); font-weight: 400; margin-left: 2px; }
.manual-group.is-hidden { display: none; }

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}
@media (max-width: 560px) {
  .manual-grid { grid-template-columns: 1fr; }
}

.manual-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.manual-row:hover { color: var(--brand-bar); }
.manual-row-extra { display: none; }
.manual-group.show-extra .manual-row-extra { display: flex; }
.manual-row.is-hidden { display: none !important; }
.manual-row.is-truncated { display: none !important; }
.manual-download { color: var(--brand-bar); font-weight: 600; font-size: 13px; flex-shrink: 0; }

.manual-more {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 9px 0 0;
  margin: 0;
  cursor: pointer;
}
.manual-more-arrow { color: var(--brand-bar); font-weight: 600; font-size: 13px; }
.manual-more:hover { color: var(--text); }

.manual-empty { display: none; font-size: 14px; color: var(--text-muted); padding: 8px 0 0; }
.manual-empty.show { display: block; }

/* ---------- Resource cards (Suport → Manuale / Software) ---------- */

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 8px 0 8px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.resource-card:hover { border-color: var(--brand-bar); transform: translateY(-2px); }

.resource-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(238, 39, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-card-icon svg { width: 22px; height: 22px; stroke: var(--brand-bar); }

.resource-card h4 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.resource-card p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ---------- Accordion (pagini Manuale / Software) ---------- */

.support-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.accordion-header:hover { color: var(--brand-bar); }

.accordion-header .manual-group-count {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.accordion-chevron {
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-header[aria-expanded="true"] .accordion-chevron {
  transform: rotate(-135deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #fff;
}

.accordion-item.open .accordion-body { max-height: 2000px; }

.accordion-body-inner { padding: 18px 22px 22px; }

.accordion-item.is-hidden { display: none; }

/* ---------- Listă unică Manuale (varianta B) ---------- */

.manual-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.manual-filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.manual-filter-pill:hover { border-color: var(--brand-bar); color: var(--brand-bar); }
.manual-filter-pill.active {
  background: var(--brand-bar);
  border-color: var(--brand-bar);
  color: #fff;
}

.manual-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.manual-list .manual-row { padding: 13px 0; }
.manual-list .manual-row:last-child { border-bottom: none; }

.manual-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.manual-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 84px;
  text-align: center;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.btn-text:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

.copyright { font-size: 13px; color: var(--text-muted); }

/* Marcaje pentru specificații confirmate vs. neconfirmate (sursă externă) */
.spec-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.spec-tag.confirmed {
  background: rgba(47, 111, 237, 0.12);
  color: var(--accent);
}
.spec-tag.unconfirmed {
  background: rgba(154, 163, 175, 0.16);
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}
.spec-legend {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

/* ---------- Ecrane late — folosește mai mult din ecranele foarte late ----------
   Pe monitoare foarte late (1600px+, ex. ultrawide 3440px) containerul
   principal crește de la 1160px la 1500px, ca informația să nu mai fie
   comprimată pe o bandă îngustă în mijlocul ecranului. */
@media (min-width: 1600px) {
  :root { --max-width: 1500px; }
}

/* Wrapper-ul de 860px din paginile de produs (galerie + specificații tehnice)
   — pe ecrane foarte late, crește la 1500px (test: aceeași lățime ca restul
   site-ului). Secțiunile de text (ex. "Prezentare produs") rămân
   intenționat la 860px, pentru lizibilitate. */
.content-wide-lg {
  max-width: 860px;
}
@media (min-width: 1600px) {
  .content-wide-lg { max-width: 1500px; }
}
