:root {
  --primary: #1a5f7a;
  --primary-dark: #0f3d4f;
  --primary-light: #2a8bb0;
  --accent: #f0a500;
  --accent-hover: #d49200;
  --bg: #f8fafb;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-muted: #57687f; /* ≥4.5:1 și pe fundaluri gri deschis (WCAG AA) */
  --border: #e2e8f0;
  --success: #16a34a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

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

/* Header */
.header-top {
  background: var(--primary-dark);
  color: #fff;
  font-size: .85rem;
  padding: 8px 0;
}
.header-top a { color: #b8dce8; }
.header-top a:hover { color: #fff; }
.header-top-inner { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }

.header-main {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.logo { display: flex; align-items: center; color: var(--text); flex-shrink: 0; }
.logo:hover { opacity: .92; }
.logo-img {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(290px, 62vw);
}

/* Rezerva spatiu pentru header/footer injectate prin JS — reduce Cumulative Layout Shift (CLS).
   Valorile = inaltimea REALA a header-ului randat (header-top + header-main), masurata pe site (18 oct 2026):
   >900px: 44 + 92,64; 601–900px: 44 + 76; 431–600px: 75,2 + 76 (header-top pe 2 randuri); <=430px: 106,4 + 76 (3 randuri). */
#site-header { display: block; min-height: 136.64px; }
#site-footer { display: block; min-height: 580px; }
.products-grid:empty, #featured-products:empty { min-height: 900px; }
.std-grid:empty { min-height: 1000px; }
@media (max-width: 900px) {
  #site-header { min-height: 120px; }
  .logo-img { height: 48px; }
  .products-grid:empty, #featured-products:empty { min-height: 1200px; }
  .std-grid:empty { min-height: 1500px; }
}
@media (max-width: 600px) {
  #site-header { min-height: 151.2px; } /* header-top trece pe 2 rânduri pe telefon */
  .products-grid:empty, #featured-products:empty { min-height: 1800px; }
  .std-grid:empty { min-height: 2000px; }
}
@media (max-width: 430px) {
  #site-header { min-height: 182.4px; } /* header-top pe 3 rânduri */
}
.footer-brand .footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

.main-nav { display: flex; gap: 8px; margin-left: auto; }
.main-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover, .main-nav a.active { background: #e8f4f8; color: var(--primary); }

.cart-link {
  position: relative;
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}
.cart-link:hover { background: #e8f4f8; color: var(--primary); }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #3a2900; border-color: var(--accent); } /* text închis pe portocaliu — contrast AA */
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #3a2900; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-window {
  width: 280px; height: 340px;
  border: 12px solid rgba(255,255,255,.3);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(135,206,235,.4) 0%, rgba(100,180,220,.2) 100%);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-window::after {
  content: '';
  position: absolute;
  bottom: 40%; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 4px;
}
.hero-price {
  display: inline-block;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Features */
.features { padding: 64px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.feature-card p { font-size: .9rem; color: var(--text-muted); }

/* Section */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Product cards */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-link { color: inherit; flex: 1; display: flex; flex-direction: column; }
.product-card-link:hover { color: inherit; }
.product-card-image {
  height: 180px;
  background: linear-gradient(135deg, #e8f4f8, #d0e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.window-illustration {
  width: 100px; height: 130px;
  border: 6px solid var(--primary);
  border-radius: 2px;
  background: linear-gradient(180deg, #a8d8ea 0%, #7ec8e3 100%);
  position: relative;
}
.window-illustration::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 24px;
  background: #888;
  border-radius: 2px;
}
.product-card-body { padding: 20px; flex: 1; }
.product-category { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); font-weight: 700; }
.product-card h3 { font-size: 1.1rem; margin: 8px 0; }
.product-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; }
.product-card-price { font-size: .95rem; }
.product-card-price strong { color: var(--primary); font-size: 1.15rem; }
.product-card .btn { margin: 0 20px 20px; }

/* Product page */
.breadcrumb {
  padding: 16px 0;
  font-size: .9rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.product-hero { padding: 24px 0 48px; }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.product-info-compact { margin-bottom: 8px; }
.product-info-compact .lead { margin-bottom: 16px; }
.product-info-compact .specs-list { margin-bottom: 16px; }
.product-hero .configurator { margin-top: 8px; }
.product-info h1 { font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 16px; }
.product-info .lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }
.specs-list { list-style: none; margin-bottom: 24px; }
.specs-list li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.specs-list li::before { content: '✓'; color: var(--success); font-weight: bold; }
.price-highlight {
  background: #e8f4f8;
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.price-highlight strong { font-size: 1.5rem; color: var(--primary); }

/* Configurator */
.configurator { margin-top: 32px; }
.configurator-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.config-options {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.config-options h3 { margin-bottom: 24px; color: var(--primary-dark); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .9rem; }
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="search"],
.form-group input:disabled,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.form-group input:disabled {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 122, .12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280; /* contrast ≥4.5:1 pe alb (WCAG AA) */
}
.form-group .hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; display: block; }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all .2s;
}
.radio-card input { display: none; }
.radio-card { position: relative; }
.radio-card:hover { border-color: var(--primary); background: #f7fbfd; }
/* starea SELECTAT: clasa .active (pusă de JS, main.js) sau :has(input:checked) în browserele moderne — înainte exista doar :hover, deci opțiunea aleasă nu rămânea marcată */
.radio-card.active { border-color: var(--primary); background: #e6f3f8; box-shadow: inset 0 0 0 1px var(--primary); }
.radio-card.active::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; line-height: 20px; text-align: center; font-weight: 700; }
/* separat de regula de mai sus: un browser fără :has() ar ignora toată lista de selectori */
.radio-card:has(input:checked) { border-color: var(--primary); background: #e6f3f8; box-shadow: inset 0 0 0 1px var(--primary); }
.radio-card:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; line-height: 20px; text-align: center; font-weight: 700; }
/* opțiune indisponibilă (ex. „Livrare prin curier" blocată: produse cu sticlă sub pragul din Setări prețuri) */
.radio-card.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; border-style: dashed; }
.radio-card-content strong { display: block; margin-bottom: 4px; }
.radio-card-content span { font-size: .85rem; color: var(--text-muted); display: block; }
.price-tag { color: var(--primary) !important; font-weight: 600; margin-top: 8px !important; }

.color-picker { display: flex; flex-wrap: wrap; gap: 12px; }
.color-swatch { text-align: center; cursor: pointer; }
.color-swatch input { display: none; }
.color-swatch span {
  display: block;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--border);
  margin-bottom: 4px;
  transition: border-color .2s;
}
.color-swatch.active span, .color-swatch:hover span { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.color-swatch small { font-size: .7rem; color: var(--text-muted); }

.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 40px; height: 40px;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all .2s;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-control input { width: 60px; text-align: center; border-radius: 0; border-left: none; border-right: none; }

.summary-card {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.summary-card h3 { margin-bottom: 20px; color: var(--primary-dark); }
.window-preview { text-align: center; margin-bottom: 20px; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.window-frame {
  margin: 0 auto;
  border: 8px solid #ccc;
  border-radius: 2px;
  position: relative;
  transition: all .3s;
}
.window-glass {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #a8d8ea, #7ec8e3);
}
.window-handle {
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 20px;
  background: #888;
  border-radius: 2px;
}
.preview-dims { font-size: .85rem; color: var(--text-muted); margin-top: 12px; }
.summary-details { margin-bottom: 20px; }
.summary-details dt { font-size: .8rem; color: var(--text-muted); margin-top: 8px; }
.summary-details dd { font-weight: 600; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 2px solid var(--border);
  margin-bottom: 16px;
}
.summary-total strong { font-size: 1.5rem; color: var(--primary); }
.summary-note { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* Cart */
.cart-page { padding: 48px 0; }
.cart-item {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.cart-item-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 6px 6px;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}
.cart-preview-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.2;
}
.cart-preview-mount {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-preview-mount .preview-container,
.cart-preview-mount .cart-preview-svg-wrap,
.cart-preview-mount .preview-stage {
  width: 100%;
  max-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-preview-mount svg {
  display: block;
  margin: 0 auto;
  max-width: 124px;
  max-height: 108px;
  width: auto !important;
  height: auto !important;
}
.cart-item h4 { margin-bottom: 8px; }
.cart-item p { font-size: .9rem; color: var(--text-muted); }
.cart-item-price { color: var(--primary); font-weight: 600; }
.cart-item-actions { display: flex; align-items: center; gap: 16px; }
.cart-item-total { font-size: 1.1rem; min-width: 100px; text-align: right; }
.btn-remove {
  background: none; border: none;
  color: #dc2626; font-size: 1.2rem;
  cursor: pointer; padding: 8px;
  border-radius: 8px;
}
.btn-remove:hover { background: #fef2f2; }

.cart-summary {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 32px;
  overflow: visible;
  position: relative;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 16px 0;
  border-top: 2px solid var(--border);
  margin-bottom: 24px;
}
.checkout-form { margin-top: 32px; overflow: visible; }
.checkout-form h3 { margin-bottom: 24px; }
.checkout-form .form-group,
.checkout-form .form-row { overflow: visible; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cart-empty { text-align: center; padding: 64px 20px; }
.cart-empty h2 { margin-bottom: 16px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-section p { opacity: .9; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-header p { opacity: .85; }

/* Search */
.search-bar {
  max-width: 400px;
  margin: 0 auto 32px;
}
.search-bar input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 1rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info-card h3 { margin-bottom: 24px; color: var(--primary); }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-item-icon { font-size: 1.5rem; }

/* About */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { color: var(--primary-dark); margin: 32px 0 16px; }
.about-content p { margin-bottom: 16px; color: var(--text-muted); }
.about-content ul { margin: 16px 0 16px 24px; color: var(--text-muted); }
.about-content li { margin-bottom: 8px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 20px; color: var(--text-muted); }

/* Footer */
#site-footer { margin-top: auto; }
.footer-main { background: var(--primary-dark); color: #b8dce8; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b8dce8; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { background: #0a2a36; color: #7aafc0; padding: 16px 0; text-align: center; font-size: .85rem; }

/* Toast */
.cart-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--primary-dark);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s;
}
.cart-toast.visible { transform: translateY(0); opacity: 1; }
.cart-toast a { color: var(--accent); font-weight: 600; }

/* SEO content block */
.seo-content { padding: 48px 0; background: var(--bg-white); }
.seo-content .container { max-width: 900px; }
.seo-content h2 { color: var(--primary-dark); margin-bottom: 16px; }
.seo-content h3 { color: var(--primary); margin: 24px 0 12px; }
.seo-content p { color: var(--text-muted); margin-bottom: 12px; }

/* Category filters */
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.category-filters a {
  padding: 8px 20px;
  border-radius: 30px;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
}
.category-filters a:hover, .category-filters a.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

main { flex: 1; }

/* Form alerts */
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: .95rem;
}
.form-alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Blog */
.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--bg);
  border-radius: 999px;
  font-size: .95rem;
}
.reviews-summary-stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }
.reviews-summary-count { color: var(--text-muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card-stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.review-card-text {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: .85rem;
  color: var(--text-muted);
}
.review-card-meta strong { color: var(--primary-dark); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-body { padding: 24px; }
.blog-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.blog-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.blog-meta { font-size: .8rem; color: var(--primary-light); margin-bottom: 8px; }
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { color: var(--primary-dark); margin: 32px 0 16px; }
.article-content h3 { color: var(--primary); margin: 24px 0 12px; }
.article-content p, .article-content li { color: var(--text-muted); margin-bottom: 12px; }
.article-content ul, .article-content ol { margin: 12px 0 12px 24px; }
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: .95rem; }
.price-table th, .price-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.price-table th { background: var(--primary-dark); color: #fff; font-weight: 600; }
/* tabelul mare cu prețuri pe dimensiuni (45 modele) */
.price-table-dims { font-size: .86rem; min-width: 640px; }
.price-table-dims th, .price-table-dims td { padding: 8px 10px; white-space: nowrap; }
.price-table-dims td.num { text-align: right; font-variant-numeric: tabular-nums; }
.price-table-dims tbody tr:nth-child(even) { background: #f6fafc; }
.price-table-dims tbody tr:hover { background: #eaf4f9; }
.price-table-dims a { color: var(--primary); font-weight: 600; text-decoration: none; }
.price-table-dims a:hover { text-decoration: underline; }
.price-table tr:nth-child(even) td { background: #f8fafb; }
.price-table strong { color: var(--primary-dark); }
.article-figure { margin: 24px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { padding: 12px 16px; font-size: .85rem; color: var(--text-muted); background: var(--bg-white); }
.article-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .9rem; }
.article-table th, .article-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-table th { background: var(--bg); color: var(--primary-dark); }

.product-figure { margin: 0; text-align: center; }
.product-figure img { max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.product-figure figcaption { margin-top: 10px; font-size: .85rem; color: var(--text-muted); }
.product-seo-block { padding-top: 0; }

.gallery-intro { max-width: 720px; margin: 0 auto 32px; text-align: center; color: var(--text-muted); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.gallery-item { margin: 0; }
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.gallery-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-thumb img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-thumb-preview {
  position: relative;
  background: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-preview-mount {
  width: 100%;
  padding: 12px 8px 28px;
  pointer-events: none;
}
.gallery-preview-mount .preview-stage,
.gallery-preview-mount .preview-svg {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.gallery-preview-mount .preview-svg-tech { max-height: 180px; }
.gallery-preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-dark);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}
.gallery-item figcaption {
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
}
.gallery-cta { text-align: center; padding-top: 16px; }
.gallery-cta p { color: var(--text-muted); margin-bottom: 20px; }
.gallery-cta .btn { margin: 4px 8px; }

body.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, .85);
}
.gallery-lightbox-dialog {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
  z-index: 1;
}
.gallery-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.gallery-lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}
.gallery-lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 12px;
  font-size: .95rem;
}

.trust-badges { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.trust-badge { text-align: center; padding: 16px; }
.trust-badge strong { display: block; font-size: 1.4rem; color: var(--accent); }
.trust-badge span { font-size: .85rem; color: var(--text-muted); }

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

/* === CONFIGURATOR PRO === */
.configurator-pro .configurator-grid { grid-template-columns: 1fr 420px; gap: 28px; }
.config-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.config-section:last-child { border-bottom: none; }
.config-section h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .95rem; color: var(--primary-dark); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--primary); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700; }

.profile-badge { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: linear-gradient(135deg, #e8f4f8, #f0f8fb); border-radius: var(--radius); border: 1px solid #c5e0ea; }
.profile-badge strong { display: block; color: var(--primary-dark); font-size: 1.05rem; }
.profile-badge span { font-size: .8rem; color: var(--text-muted); }

.dim-inputs { display: flex; align-items: flex-end; gap: 12px; }
.dim-inputs .form-group { flex: 1; margin-bottom: 0; }
.dim-separator { font-size: 1.4rem; color: var(--text-muted); padding-bottom: 12px; font-weight: 300; }
.input-unit { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.input-unit:focus-within { border-color: var(--primary); }
.input-unit input { border: none !important; border-radius: 0 !important; }
.input-unit span { padding: 0 14px; background: var(--bg); color: var(--text-muted); font-size: .85rem; font-weight: 600; }
.dim-field-width, .dim-field-height { flex: 1; }
.dim-slider-track {
  position: relative; margin-top: 10px; padding: 14px 0; cursor: ew-resize; touch-action: none; user-select: none;
}
.dim-slider-track.is-dragging { cursor: grabbing; }
.dim-slider-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
}
.dim-slider {
  position: relative; z-index: 1; width: 100%; margin: 0; accent-color: var(--primary);
  cursor: ew-resize; height: 32px; background: transparent;
  -webkit-appearance: none; appearance: none;
}
.dim-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: transparent; }
.dim-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(26,95,122,.35); margin-top: -7px;
}
.dim-slider::-moz-range-track { height: 8px; border-radius: 999px; background: transparent; border: none; }
.dim-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary);
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(26,95,122,.35);
}
.dim-slider-hint { font-size: .72rem; color: var(--text-muted); margin-top: 6px; line-height: 1.3; }

.glass-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.glass-cards-door { grid-template-columns: repeat(3, 1fr); }
.glass-pvc { background: linear-gradient(180deg, #ececec, #d8d8d8) !important; }
.profile-badge-glass .profile-badge-icon { font-size: 1.6rem; line-height: 1; }
.glass-order-size-hint { font-size: .82rem; color: var(--primary); margin-top: 10px; font-weight: 600; }
.glass-pane-control { margin-top: 8px; }
.glass-pane-price-hint { font-size: .85rem; color: var(--primary); margin-top: 10px; font-weight: 600; }
.glass-bead-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.glass-bead-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.glass-bead-row label { font-size: .85rem; color: var(--text-muted); margin: 0; }
.glass-bead-row .input-unit { max-width: 120px; }
.glass-pvc-fill {
  display: block;
  width: 72%;
  height: 28px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    -45deg,
    #c8c8c8,
    #c8c8c8 4px,
    #b0b0b0 4px,
    #b0b0b0 8px
  );
  border: 1px solid #999;
}
.glass-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all .25s; background: var(--bg-white); }
.glass-card input { display: none; }
.glass-card:hover, .glass-card.active { border-color: var(--primary); background: #f0f9fc; box-shadow: 0 4px 16px rgba(26,95,122,.12); }
.glass-card-visual { display: flex; align-items: center; justify-content: center; gap: 3px; height: 48px; margin-bottom: 12px; background: linear-gradient(180deg, #e8f4f8, #d0e8f0); border-radius: 8px; padding: 8px; }
.glass-pane { width: 14px; height: 32px; background: linear-gradient(180deg, #B8E4F0, #7EC8E3); border: 1px solid #8BB8CC; border-radius: 1px; }
.glass-spacer { width: 4px; height: 28px; background: #999; border-radius: 1px; opacity: .6; }
.glass-3pan .glass-pane { width: 10px; }
.glass-card-info strong { display: block; font-size: .9rem; }
.glass-card-info span { font-size: .75rem; color: var(--text-muted); display: block; }
.glass-card-info em { font-size: .8rem; color: var(--primary); font-style: normal; font-weight: 600; margin-top: 4px; display: block; }

.opening-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opening-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 8px; text-align: center; cursor: pointer; transition: all .25s; background: var(--bg-white); }
.opening-card input { display: none; }
.opening-card:hover, .opening-card.active { border-color: var(--primary); background: #f0f9fc; }
.opening-card span { font-size: .75rem; font-weight: 600; color: var(--text); display: block; margin-top: 8px; }
.opening-icon { width: 48px; height: 56px; margin: 0 auto; border: 3px solid var(--primary); border-radius: 2px; position: relative; background: linear-gradient(180deg, #B8E4F0 60%, #fff 60%); }
.opening-icon-fix::after { display: none; }
.opening-icon-1-canat::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 5px; height: 14px; background: #888; border-radius: 2px; }
.opening-icon-oscilobatant { border-style: solid; }
.opening-icon-oscilobatant::before { content: '↗'; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--primary); }
.opening-icon-oscilobatant::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 5px; height: 14px; background: #888; border-radius: 2px; }

.color-picker-pro .color-swatch span { width: 52px; height: 52px; box-shadow: inset 0 2px 4px rgba(0,0,0,.1); }
.color-swatch-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.summary-details-pro #sum-color.sum-color-updated {
  color: var(--primary-dark);
  font-weight: 700;
  transition: color .3s ease;
}

.summary-card-pro { background: linear-gradient(180deg, #fff 0%, #f8fafb 100%); border: 1px solid var(--border); }
.preview-tech-note {
  font-size: .78rem; color: var(--text-muted); text-align: center; margin: -8px 0 12px;
}
.mullion-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.mullion-btn {
  flex: 1;
  min-width: 140px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  text-align: center;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.mullion-btn input { display: none; }
.mullion-btn.active, .mullion-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45, 138, 62, 0.12); }
.side-panel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-panel-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-panel-card input { display: none; }
.side-panel-card strong { font-size: .9rem; color: var(--primary-dark); }
.side-panel-card span { font-size: .78rem; color: var(--text-muted); }
.side-panel-card.active, .side-panel-card:hover { border-color: var(--primary); }
.preview-container { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 12px; margin-bottom: 20px; min-height: 360px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.preview-stage { width: 100%; text-align: center; }
.preview-stage-tech { user-select: none; }
.preview-badge { display: inline-block; background: var(--primary-dark); color: #fff; font-size: .7rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; letter-spacing: .03em; }
.preview-svg { width: 100%; max-width: 480px; height: auto; margin: 0 auto; display: block; }
.preview-svg-tech { max-width: 520px; }
.preview-dim-text { font-size: 11px; font-weight: 600; fill: #25783a; font-family: Arial, sans-serif; }
.preview-tech-caption { font-size: 10px; fill: var(--text-muted); font-family: Arial, sans-serif; }

.profile-detail-pvc text { font-family: 'Segoe UI', system-ui, sans-serif; }
.preview-fallback { text-align: center; color: var(--text-muted); padding: 24px; }
.preview-fallback p { margin-bottom: 12px; }
.summary-details-pro dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.btn-block { width: 100%; }
.qty-control-pro { max-width: 160px; }

.product-card-image-pro { height: 200px; background: linear-gradient(135deg, #e8f4f8, #d0e8f0); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-card-image-pro .mini-preview { transform: scale(0.7); pointer-events: none; }
.product-profile-tag { position: absolute; bottom: 8px; left: 8px; background: var(--primary-dark); color: #fff; font-size: .65rem; padding: 3px 8px; border-radius: 4px; font-weight: 600; }

@media (max-width: 1024px) {
  .configurator-pro .configurator-grid { grid-template-columns: 1fr; }
  .opening-cards { grid-template-columns: 1fr 1fr; }
}
/* Canaturi picker */
.canaturi-hint { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.canaturi-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.canat-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; height: 72px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .25s; background: var(--bg-white);
}
.canat-btn input { display: none; }
.canat-btn:hover, .canat-btn.active {
  border-color: var(--primary); background: #f0f9fc;
  box-shadow: 0 4px 12px rgba(26,95,122,.15);
}
.canat-num { font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1; display: flex; align-items: center; justify-content: center; min-height: 26px; }
.canat-num svg { display: block; }
.canat-btn-fix .canat-label { color: var(--primary); font-weight: 700; }
.canat-label { font-size: .65rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .03em; }
.canaturi-visual-hint { background: var(--bg); border-radius: 8px; padding: 12px; text-align: center; }

.sash-modes-list { display: flex; flex-direction: column; gap: 12px; }
.sash-mode-row {
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px 14px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border);
}
.sash-mode-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.sash-mode-width {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px 12px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.sash-width-inline-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.sash-mode-label { font-weight: 600; font-size: .9rem; color: var(--primary-dark); min-width: 72px; }
.sash-mode-options { display: flex; gap: 6px; flex-wrap: wrap; max-width: 100%; flex: 1; justify-content: flex-end; }
.sash-mode-btn {
  display: flex; align-items: center; gap: 5px; padding: 7px 10px;
  border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer;
  background: var(--bg-white); font-size: .82rem; transition: all .2s;
}
.sash-mode-btn input { display: none; }
.sash-mode-btn:hover, .sash-mode-btn.active {
  border-color: var(--primary); background: #f0f9fc;
}
.sash-mode-icon {
  width: 22px; height: 22px; border-radius: 3px; background: var(--bg);
  border: 1px solid var(--border); position: relative;
}
.sash-mode-icon-fix::after {
  content: ''; position: absolute; inset: 4px; background: linear-gradient(135deg, #c5ebc5, #8ecf8e); border-radius: 1px;
}
.sash-mode-icon-rabatant::after {
  content: '▴'; position: absolute; top: 1px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: #2d6b2d; line-height: 1;
}
.sash-mode-icon-rabatant::before {
  content: ''; position: absolute; inset: 4px 4px 6px 4px;
  background: linear-gradient(135deg, #c5ebc5, #8ecf8e); border-radius: 1px;
  border: 2px solid #888;
}
.sash-mode-icon-simpla::before {
  content: ''; position: absolute; inset: 4px;
  background: linear-gradient(135deg, #c5ebc5, #8ecf8e); border-radius: 1px;
  border: 2px solid #888;
}
.sash-mode-icon-simpla::after {
  content: ''; position: absolute; left: 6px; bottom: 5px; width: 12px; height: 12px;
  border-left: 2px solid #2d6b2d; border-bottom: 2px solid #2d6b2d;
  transform: skewY(-12deg);
}
.sash-mode-icon-oscilo::before {
  content: ''; position: absolute; inset: 4px;
  background: linear-gradient(135deg, #c5ebc5, #8ecf8e); border-radius: 1px;
  border: 2px solid #1a5f7a;
}
.sash-mode-icon-oscilo::after {
  content: '×'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #2d6b2d; line-height: 1;
}
.sash-mode-btn span:last-child { white-space: nowrap; font-size: .78rem; }

.sash-width-value { display: flex; align-items: center; gap: 6px; }
.sash-width-value input {
  width: 84px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px;
  font-weight: 600; text-align: right;
}
.sash-width-value span { font-size: .8rem; color: var(--text-muted); }
.sash-width-track {
  position: relative; height: 28px; display: flex; align-items: center;
  touch-action: none; grid-column: 1 / -1;
}
.sash-width-range {
  width: 100%; margin: 0; cursor: ew-resize;
}
.sash-widths-total {
  margin-top: 10px; font-size: .82rem; color: var(--text-muted); text-align: right;
}

.hinge-control {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hinge-control input {
  width: 72px; text-align: center; font-weight: 700; font-size: 1.1rem;
  padding: 8px; border: 2px solid var(--border); border-radius: var(--radius);
}
.hinge-control-label {
  font-size: .9rem; color: var(--text-muted); font-weight: 600;
}

@media (max-width: 768px) {
  .glass-cards, .glass-cards-door, .opening-cards { grid-template-columns: 1fr; }
  .dim-inputs { flex-direction: column; }
  .dim-separator { display: none; }

  .canaturi-picker { justify-content: center; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .configurator-grid { grid-template-columns: 1fr; }
  .product-hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .header-top-inner { font-size: .75rem; gap: 12px; }
  .hero h1 { font-size: 2rem; }
  .features-grid, .products-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; align-items: start; }
  .cart-item-preview { width: 100%; max-width: 200px; }
  .cart-item-actions { width: 100%; justify-content: space-between; }
  .account-order-item { grid-template-columns: 1fr; }
  .account-order-item-preview { max-width: 200px; }
  .form-row, .contact-grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  padding: 16px 20px;
}
.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-consent p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Consimțământ la comandă / contact / cont (T&C + GDPR) — bife neprecompletate */
.consent-box {
  margin: 18px 0 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 10px;
}
.consent-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}
.consent-check input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.consent-check a { color: var(--primary); text-decoration: underline; }

/* Comutator limbă (listă cu steaguri) + monedă (header) */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch-item { display: inline-flex; align-items: center; }
.lang-dd { position: relative; display: inline-block; }
.lang-dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 6px;
  padding: 3px 8px; min-height: 28px; font: inherit; font-size: .8rem; line-height: 1.2; cursor: pointer;
}
.lang-dd-btn:hover { background: rgba(255,255,255,.2); }
.lang-dd-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.lang-dd-caret { font-size: .75em; opacity: .85; }
.lang-dd-list {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 1200;
  min-width: 176px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  text-align: left;
}
.lang-dd-list[hidden] { display: none; }
.lang-dd-list li {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 6px; color: #1a202c; font-size: .85rem; white-space: nowrap; cursor: pointer;
}
.lang-dd-list li:hover, .lang-dd-list li:focus { background: #eef6f9; outline: none; }
.lang-dd-list li[aria-selected="true"] { font-weight: 700; color: var(--primary); }
.lang-flag { display: inline-block; width: 21px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.18); flex-shrink: 0; }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-switch select {
  appearance: auto;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: .8rem;
  min-height: 28px;
  cursor: pointer;
}
.lang-switch select option { color: #1a202c; background: #fff; }
.lang-switch select:focus { outline: 2px solid #fff; outline-offset: 1px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.checkout-subtitle { margin: 20px 0 12px; font-size: 1rem; color: var(--primary-dark); }
.field-hint { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.field-hint-warn { color: #b45309; }

.cart-total-final { font-size: 1.15rem; font-weight: 700; padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--border); }
/* Golește coșul + link partajabil către coș */
.cart-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cart-share { margin: -6px 0 24px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; }
.cart-share input[type="text"] { width: 100%; font: inherit; font-size: .9rem; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.cart-share-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cart-share .field-hint { margin-top: 8px; }
#cart-shipping.shipping-free { color: var(--success, #16803c); font-weight: 600; }

.account-page { padding: 48px 0 80px; }
.account-page h1 { color: var(--primary-dark); }
.account-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}
.account-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  max-width: 480px;
}
.account-tab {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.account-tab:hover { color: var(--primary); background: rgba(26, 95, 122, .06); }
.account-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 95, 122, .25);
}
.account-panel { display: none; }
.account-panel.active { display: block; }
.account-panel .checkout-form { margin-top: 0; }
.account-panel .btn-primary { min-width: 180px; }
.account-order-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.account-order-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.order-status {
  display: inline-block;
  margin-left: 8px;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(26,95,122,.1);
  color: var(--primary);
}
.order-meta { font-size: .85rem; color: var(--text-muted); margin: 8px 0 12px; }
.order-item-line { font-size: .9rem; margin-bottom: 8px; }
.order-item-line span { display: block; color: var(--text-muted); font-size: .85rem; margin-top: 2px; }
.account-order-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.account-order-item:last-child { border-bottom: none; padding-bottom: 0; }
.account-order-item-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 6px 6px;
  min-height: 120px;
}
.account-preview-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 6px;
}
.account-order-item-preview .cart-preview-mount {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-order-item-preview svg {
  max-width: 124px;
  max-height: 96px;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}
.account-order-item-details strong {
  display: block;
  margin-bottom: 4px;
}
.account-order-item-details span {
  display: block;
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.45;
}
.account-order-item-price {
  margin-top: 6px !important;
  font-weight: 600;
  color: var(--primary) !important;
}
.order-total { font-weight: 700; color: var(--primary); white-space: nowrap; }

.ac-wrap { position: relative; width: 100%; }
.ac-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5000;
  max-height: 220px;
  overflow-y: auto;
  margin-top: -2px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.ac-dropdown.open { display: block; }
.ac-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  cursor: pointer;
}
.ac-option:hover,
.ac-option.active { background: rgba(26,95,122,.08); color: var(--primary); }
.ac-wrap.ac-open input { border-color: var(--primary); border-radius: 8px 8px 0 0; }

/* (content-visibility:auto eliminat — colapsa dreptunghiurile elementelor din secțiunile
   neafișate și Lighthouse raporta fals „touch targets suprapuse"; câștigul de performanță era nul) */

/* ===== Configurator: live performance panel ===== */
.perf-panel {
  margin: 18px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f3f9fb 0%, #eef6f9 100%);
  padding: 14px 16px;
}
.perf-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.perf-panel-title { font-weight: 700; color: var(--primary-dark); font-size: .95rem; }
.perf-panel-sub { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.perf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perf-metric { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; }
.perf-metric-val { display: block; font-weight: 800; color: var(--primary); font-size: 1rem; line-height: 1.2; }
.perf-metric-lbl { display: block; font-size: .68rem; color: var(--text-muted); margin-top: 4px; }
.perf-note { font-size: .72rem; color: var(--text-muted); margin: 10px 0 0; }

/* ===== Content / SEO section ===== */
.section-alt { background: #f8fafc; border-top: 1px solid var(--border); }
.spec-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.spec-badge { background: #fff; border: 1px solid var(--border); color: var(--primary-dark); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
#sistem-profil-pvc h2 { font-size: 1.7rem; color: var(--primary-dark); margin-bottom: 14px; }
#sistem-profil-pvc h3 { font-size: 1.25rem; color: var(--primary-dark); margin: 32px 0 14px; }
.content-lead { color: var(--text); max-width: 880px; line-height: 1.75; font-size: 1.02rem; }
.content-lead strong { color: var(--primary-dark); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 26px 0 8px; }
.spec-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px; text-align: center; }
.spec-card-val { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.spec-card-lbl { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-width: 520px; }
.spec-table th, .spec-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.spec-table thead th { background: var(--primary); color: #fff; font-weight: 600; }
.spec-table tbody tr:nth-child(even) { background: #f8fafc; }
.spec-table td:first-child { font-weight: 600; color: var(--primary-dark); }
.content-note { font-size: .8rem; color: var(--text-muted); margin-top: 12px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 16px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--primary-light); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 16px; margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .92rem; }
.content-cta { margin-top: 28px; font-size: 1rem; }
@media (max-width: 520px) {
  .perf-metric-val { font-size: .85rem; }
  #sistem-profil-pvc h2 { font-size: 1.4rem; }
}

/* ============ Interactivity & polish (global) ============ */
/* Floating action buttons */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 950; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .18s ease, box-shadow .18s ease; }
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 24px rgba(0,0,0,.28); color: #fff; }
.fab-wa { background: #25d366; }
.fab-call { background: var(--primary); }
.fab-wa::after { content: ''; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: #25d366; opacity: .45; animation: fabPulse 2.4s ease-out infinite; z-index: -1; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .45; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }

/* Back to top */
.back-to-top { position: fixed; right: 20px; bottom: 86px; z-index: 949; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.16); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } .fab-wa::after { animation: none; } }

/* Trust / guarantee strip */
.trust-strip { background: var(--bg-white, #fff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 20px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .trust-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #eef6f9; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.trust-item strong { display: block; color: var(--primary-dark); font-size: .98rem; }
.trust-item span { font-size: .82rem; color: var(--text-muted); }
@media (max-width: 760px) { .trust-strip .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .trust-strip .container { grid-template-columns: 1fr; } }

/* Homepage FAQ accordion */
.home-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.home-faq .faq-item { background: #fff; }

/* Card polish: smoother hover */
.product-card, .feature-card, .blog-card { transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover, .feature-card:hover, .blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,61,79,.12); }

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Legal / policy pages */
.legal-content { max-width: 880px; }
.legal-content h2 { font-size: 1.25rem; color: var(--primary-dark); margin: 26px 0 10px; }
.legal-content p { color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.legal-content ul { margin: 0 0 14px 22px; }
.legal-content li { margin-bottom: 6px; line-height: 1.6; }
.legal-content .legal-note { font-size: .85rem; color: var(--text-muted); margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ================= Produse standard (gata de comandă) ================= */
.section-std { background: linear-gradient(180deg, #eef6f9 0%, #f8fafc 100%); }
.std-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.std-head h2 { font-size: 1.7rem; color: var(--primary-dark); margin-bottom: 6px; }
.std-head p { color: var(--text-muted); max-width: 640px; font-size: .95rem; }
.std-discount-pill { flex: 0 0 auto; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.25rem; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(240,165,0,.3); }

.std-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.std-filter { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .18s; }
.std-filter:hover { border-color: var(--primary-light); color: var(--primary); }
.std-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.std-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.std-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.std-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,61,79,.14); }
.std-card-flag { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--accent); color: #fff; font-weight: 800; font-size: .78rem; padding: 4px 9px; border-radius: 8px; box-shadow: 0 3px 8px rgba(240,165,0,.35); }
/* poza produsului: randare foto-realistă din motorul configuratorului, format pătrat uniform */
.std-card-media { display: block; position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid #edf1f4; overflow: hidden; }
.std-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.std-card:hover .std-card-media img { transform: scale(1.04); }
.std-card-media .preview-stage, .std-card-media svg { max-width: 100%; height: auto; }
.std-card-media .preview-tech-caption, .std-card-media .preview-dim-text { display: none; }
.std-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.std-card-type { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-light); font-weight: 700; }
.std-card-title { font-size: 1.02rem; color: var(--primary-dark); margin: 0; }
.std-card-dims { font-size: .95rem; font-weight: 700; color: var(--text); }
.std-card-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.std-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.std-price-new { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.std-price-old { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.std-card-media { text-decoration: none; cursor: pointer; }
.std-card-title a { color: inherit; text-decoration: none; }
.std-card-title a:hover { color: var(--primary); }
.std-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.std-card-actions .std-add { grid-column: 1 / -1; }
.std-card-actions .btn { justify-content: center; }
.btn-soft { background: #eef3f6; color: var(--primary-dark); border-color: transparent; }
.btn-soft:hover { background: #dde8ee; color: var(--primary-dark); }

/* Standard product detail page */
.std-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin: 18px 0 8px; }
.std-detail-media { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-height: 320px; }
.std-detail-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 12px; }
.std-detail-drawing { background: linear-gradient(135deg, #f4f8fa, #eaf2f5); border: 1px solid var(--border); border-radius: 12px; padding: 12px 10px 6px; }
.std-detail-drawing-title { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--primary); margin: 0 4px 6px; }
.std-detail-media .preview-tech-caption { display: none; }
.std-detail-flag { top: 14px; right: 14px; font-size: 1rem; padding: 6px 12px; }
.std-detail-info { display: flex; flex-direction: column; }
.std-detail-title { font-size: 1.8rem; color: var(--primary-dark); margin: 4px 0 14px; }
.std-detail-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.std-detail-price .std-price-new { font-size: 2rem; }
.std-detail-save { background: #e9f7ef; color: #15803d; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.std-detail-specs { list-style: none; padding: 0; margin: 0 0 22px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.std-detail-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: .92rem; border-bottom: 1px solid var(--border); }
.std-detail-specs li:nth-child(even) { background: #f8fafc; }
.std-detail-specs li:last-child { border-bottom: none; }
.std-detail-specs span { color: var(--text-muted); }
.std-detail-specs strong { color: var(--primary-dark); text-align: right; }
.std-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.std-detail-actions .btn { justify-content: center; }
.std-detail-note { font-size: .85rem; color: var(--text-muted); margin-top: 14px; }
.std-detail-desc { max-width: 880px; margin: 28px 0 0; }
.std-detail-desc h2 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 10px; }
.std-detail-desc p { color: var(--text); line-height: 1.7; margin-bottom: 12px; }
@media (max-width: 760px) {
  .std-detail { grid-template-columns: 1fr; gap: 20px; }
  .std-detail-actions { grid-template-columns: 1fr; }
  .std-detail-title { font-size: 1.45rem; }
}

/* Accesibilitate — contrast suficient pe cardurile de produse standard (WCAG AA) */
.std-card-flag, .std-detail-flag, .std-discount-pill { background: #b45309; color: #fff; }
.std-discount-pill { box-shadow: 0 8px 20px rgba(180, 83, 9, .3); }
.std-card-type { color: var(--primary); }
.std-price-old { color: #6b7280; }
@media (max-width: 520px) {
  .std-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .std-card-actions { grid-template-columns: 1fr; }
  .std-discount-pill { width: 58px; height: 58px; font-size: 1rem; }
}

/* Footer: linkuri legale + date firmă */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 10px; }
.footer-legal a { color: inherit; opacity: .85; font-size: .85rem; text-decoration: none; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
.footer-company { font-size: .8rem; opacity: .72; text-align: center; margin: 6px 0; line-height: 1.5; }
.footer-bottom .container > p { text-align: center; }
/* ===== Recenzii produs (on-site) ===== */
.std-reviews { max-width: 880px; margin: 36px 0 0; }
.std-reviews h2 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 14px; }
.std-reviews h3 { font-size: 1.1rem; color: var(--primary-dark); margin: 26px 0 6px; }
.rv-agg { font-size: .95rem; font-weight: 600; color: var(--text-muted); margin-left: 10px; }
.rv-stars { color: var(--accent); letter-spacing: 2px; }
.rv-empty, .rv-note { color: var(--text-muted); font-size: .92rem; margin-bottom: 12px; }
.rv-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.rv-date { color: var(--text-muted); font-size: .82rem; }
.rv-text { line-height: 1.6; margin: 0; white-space: normal; }
#rv-form { max-width: 560px; }
.rv-star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv-star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rv-star-input label { font-size: 1.9rem; line-height: 1; color: var(--border); cursor: pointer; transition: color .12s; }
.rv-star-input label:hover, .rv-star-input label:hover ~ label,
.rv-star-input input:checked ~ label { color: var(--accent); }
.rv-star-input input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
#rv-msg { margin-top: 12px; font-weight: 600; }
.rv-msg-ok { color: var(--success); }
.rv-msg-err { color: #b3261e; }

/* a11y: footer folosește h3 (ordine corectă a titlurilor) + ținte tactile mobile */
.footer-col h3 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
@media (max-width: 640px) {
  .footer-col a { display: inline-block; padding: 8px 0; }
  .footer-legal a { display: inline-block; padding: 8px 6px; }
  .breadcrumb a { display: inline-block; padding: 8px 4px; }
  .btn-sm { padding: 12px 18px; min-height: 44px; }
  .cookie-consent-actions { gap: 14px; }
  .cookie-consent p a { display: inline-block; padding: 6px 2px; }
}

/* A11y: linkurile din text se disting și fără culoare (Lighthouse: link-in-text-block) */
p a:not(.btn):not(.hm-btn-accent):not(.hm-btn-ghost):not(.hm-btn-wa),
.article-content li a,
.legal-content li a,
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
/* A11y: contrast mai bun pentru textul juridic din subsol */
.footer-company { opacity: .85; }

/* Configurator: partea balamalelor per canat + varianta de profil */
.sash-side-toggle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; padding: 6px 10px; background: #f1f7fa; border: 1px dashed var(--border); border-radius: 8px; font-size: .85rem; }
.sash-side-label { color: var(--text-muted); font-weight: 600; }
.sash-side-btn { position: relative; display: inline-flex; align-items: center; padding: 5px 12px; border: 1.5px solid var(--border); border-radius: 99px; cursor: pointer; font-weight: 600; background: #fff; color: var(--text-muted); transition: all .15s; }
.sash-side-btn input { position: absolute; opacity: 0; pointer-events: none; }
.sash-side-btn.active { border-color: var(--primary); color: var(--primary); background: #e8f4f9; }
.sash-side-hint { color: var(--text-muted); font-size: .8rem; }
.cfx-profile-select { font: inherit; font-size: .78rem; font-weight: 600; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; width: 100%; background: #fff; }
/* rândul „Profil" din sumar trece pe două linii ca selectul să încapă întreg */
.cfx-mini-sum > div.cfx-sum-profile { flex-direction: column; align-items: stretch; gap: 3px; }
.cfx-mini-sum > div.cfx-sum-profile .v { text-align: left; width: 100%; }

/* ---------- trust strip în configurator (sub cantitate) ---------- */
.cfx-trust { list-style: none; margin: 10px 0 0; padding: 12px 14px; background: #f0f9f2; border: 1px solid #cdeed6; border-radius: 12px; display: grid; gap: 5px; }
.cfx-trust li { color: #14532d; font-size: .84rem; font-weight: 600; line-height: 1.45; }

/* ---------- butoane flotante de contact: pe configurator, deasupra barei sticky de total ---------- */
body:has(.cfx-bar) .floating-actions { bottom: 96px; }
body:has(.cfx-bar) .back-to-top { bottom: 164px; }
