/**
 * Casa de Vis — Theme Custom (WOW + state-of-the-art)
 *
 * Paleta: verde Porta Doors (var(--color-primary) jad + var(--color-primary-dark) padure) + accent auriu
 * Tipografie: Nunito (rotunjit, friendly) peste tot — header, body, footer
 *
 * Ultima modificare: 2026-05-19 16:25
 * Modificari:
 *   2026-05-19 16:25 — Font Nunito (rotunjit) override pe tot site-ul, header
 *                       + footer nav cu bold, story button centrat cu spatiu,
 *                       hide price filter (catalog mode), USP/brand-uri.
 *   2026-05-19 16:05 — Refacere completa: paleta verde din logo, sectiuni rich
 *                       (cdv-hero-page, cdv-stats, cdv-split, cdv-brands,
 *                       cdv-usp, cdv-cta), button accent auriu, glassmorphism.
 *   2026-05-19 10:30 — Versiune initiala onboarding.
 */

/* ============================================================================
   FONT OVERRIDE — Nunito peste tot (rotunjit, friendly, premium)
   ============================================================================ */

body,
.cs-header, .cs-header *,
.site-footer, .site-footer *,
.cs-footer, .cs-footer *,
header, header *,
footer, footer *,
.btn, .btn *,
nav, nav *,
input, button, textarea, select,
.cs-product-card, .product-card, .blog-card, .testimonial-card,
.cdv-hero-page, .cdv-stats, .cdv-split, .cdv-brands, .cdv-usp, .cdv-cta,
.cdv-hero-page *, .cdv-stats *, .cdv-split *, .cdv-brands *, .cdv-usp *, .cdv-cta * {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.section-title, .cdv-section-header h2,
.cdv-hero-page h1, .page-hero h1,
.cdv-split__content h2, .cdv-brand-card h3,
.cdv-usp__item h3, .cdv-cta__card h2,
.cs-hero__slide-title, .cs-product-card__title, .product-card__title,
.blog-card__title, .footer-title, .cs-footer h4, .cs-footer h5 {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
}

/* CRITICAL: NU suprascrie font-ul iconitelor (FontAwesome + Lucide) */
/* Folosesc [class~="X"] (whitespace-separated) pentru a prinde clasa indiferent
   de pozitie in classList: "fa-brands fa-facebook-f" sau "fa-facebook-f fa-brands" */
.fa, .fas, .far, .fal, .fa-solid, .fa-regular,
[class~="fa-solid"], [class~="fa-regular"] {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
}
.fab, .fa-brands,
[class~="fa-brands"],
.fa-facebook, .fa-facebook-f, .fa-instagram, .fa-tiktok, .fa-youtube,
.fa-twitter, .fa-linkedin, .fa-whatsapp, .fa-pinterest,
.fa-cc-visa, .fa-cc-mastercard, .fa-cc-paypal, .fa-cc-stripe, .fa-cc-amex {
  font-family: 'Font Awesome 6 Brands' !important;
  font-weight: 400 !important;
}
[class^="icon-"], [class*=" icon-"] {
  font-family: 'lucide' !important;
  font-weight: 400 !important;
}

/* Aliasuri pentru iconite lucide redenumite — fallback safe */
.icon-home::before { content: "\e9d4"; }   /* icon-house glyph */
.icon-tool::before { content: "\ea9d"; }   /* icon-wrench glyph */

body {
  font-feature-settings: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

h1, .h1 { font-weight: 800; letter-spacing: -0.03em; }

p { line-height: 1.7; }

/* Eyebrow text (uppercase tracking, mic) — pattern showroom */
.cdv-eyebrow,
.eyebrow,
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.cdv-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.cdv-section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}
.cdv-section-header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

/* ============================================================================
   HEADER — premium minimal cu logo
   ============================================================================ */

.cs-header,
header.cs-header,
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.cs-header__logo img,
.site-logo img,
header img {
  max-height: 56px;
  width: auto;
}

.cs-header__nav a,
header nav a {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color 0.2s ease;
  letter-spacing: 0.005em;
}
.cs-header__nav a:hover,
header nav a:hover {
  color: var(--color-primary);
}

/* ============================================================================
   PAGE HERO GRADIENT (Garantie, T&C, Cookies) — full-width, NU înalt
   ============================================================================ */

/* Ascund breadcrumbs default + h1.h2 default pe paginile cu hero custom */
body.page-page .container.mt-3,
body.page-legal .container.mt-3,
body.page-faq .container.mt-3,
body.page-about .container.mt-3,
body.page-about > nav.breadcrumb,
body.page-about > .breadcrumb,
body.page-page .page-section:first-of-type h1.h2,
body.page-legal .page-section:first-of-type h1.h2,
body.page-faq .faq-section h1.h2,
body.page-faq .faq-section > .container > .row > .col-lg-8 > p:first-of-type {
    display: none !important;
}

/* Pe pagina despre-noi, breadcrumbs default sunt randerate ca
   <main><nav><ol class="breadcrumb">...</ol></nav><div class="page-content">...
   Ascund nav-ul cu breadcrumb default (avem hero cu breadcrumbs incluse). */
body.page-about main > nav:first-child,
body.page-about main#main-content > nav,
body.page-about #main-content > nav {
    display: none !important;
}

/* Body main wrapper — scot constrangerea col-lg-8 pentru hero */
body.page-page .page-section:first-of-type,
body.page-legal .page-section:first-of-type,
body.page-faq .faq-section {
    padding-top: 0 !important;
}

/* SPARG col-lg-8 pe primul page-hero din pagini statice cu margin negativ + full-bleed */
body.page-page .page-section .page-hero,
body.page-legal .page-section .page-hero,
body.page-faq .faq-section .page-hero,
.page-section > .container > .row > .col-lg-8 > .page-hero,
.faq-section > .container > .row > .col-lg-8 > .page-hero,
.page-content > .page-hero:first-child {
    /* Full-bleed trick: viewport width breakout */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: -1px !important;
    margin-bottom: 48px !important;
}

/* Hero stylish cu gradient verde, full-width, CENTRAT (la fel ca .contact-hero) */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, color-mix(in srgb, var(--color-primary) 55%, var(--color-primary-dark)) 45%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 56px 0 64px !important;
    overflow: hidden;
    min-height: unset !important;
    text-align: center;
}

/* Pattern subtle in fundal */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--color-accent) 12%, transparent) 0%, transparent 45%);
    z-index: 0;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
    max-width: 1200px !important;
}

/* Breadcrumbs inline in hero — CENTRATE */
.page-hero__breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 20px;
}

/* Badge stylish ("Showroom Targu-Mures · din 2010") — pill semi-transparent */
.page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-hero__badge i {
    font-size: 0.9em;
}

.page-hero__breadcrumbs a {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-hero__breadcrumbs a:hover {
    color: var(--color-white) !important;
    text-decoration: underline;
}

.page-hero__breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
}

.page-hero__breadcrumbs .current {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.page-hero h1 {
    color: var(--color-white) !important;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem) !important;
    font-weight: 800 !important;
    margin: 0 auto 12px !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-align: center !important;
}

/* Tot continutul hero centrat (text-align pe container ca inline-flex
   children — badge, breadcrumbs — sa fie centrate la fel) */
.page-hero > .container,
.page-hero .container {
    text-align: center;
}
.page-hero > .container > *,
.page-hero .container > * {
    text-align: center;
}

.page-hero__lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
    margin: 0 auto !important;
    max-width: 720px;
    line-height: 1.55;
}

/* Pe mobile: padding mai mic */
@media (max-width: 768px) {
    .page-hero {
        padding: 36px 0 40px !important;
    }
    .page-hero h1 {
        font-size: 1.6rem !important;
    }
    .page-hero__breadcrumbs {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
}

/* ============================================================================
   HERO PAGE (Despre noi, Contact, etc.)
   ============================================================================ */

.cdv-hero-page,
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--color-white);
  background: var(--color-primary-dark);
}

.cdv-hero-page__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.85);
  z-index: 0;
}

.cdv-hero-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary-dark) 85%, transparent) 0%, color-mix(in srgb, var(--color-primary-dark) 55%, transparent) 100%);
  z-index: 1;
}

.cdv-hero-page__content,
.page-hero .container {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
}

.cdv-hero-page__content .cdv-eyebrow,
.page-hero .cdv-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.cdv-hero-page h1,
.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.cdv-hero-page__lead,
.page-hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  max-width: 720px;
}

/* ============================================================================
   STATS SECTION (numere mari, impact vizual)
   ============================================================================ */

.cdv-stats {
  padding: 60px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.cdv-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.cdv-stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cdv-stats__number {
  font-family: var(--font-family-heading);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cdv-stats__label {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================================================
   SPLIT SECTION (img | text alternating)
   ============================================================================ */

.cdv-split {
  padding: 100px 0;
  background: var(--color-bg);
}

.cdv-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cdv-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg, 10px);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--color-primary-dark) 12%, transparent);
  display: block;
}

.cdv-split__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.cdv-split__content p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.cdv-split__content .btn {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .cdv-split__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cdv-split {
    padding: 60px 0;
  }
}

/* ============================================================================
   BRANDS SECTION
   ============================================================================ */

.cdv-brands {
  padding: 100px 0;
  background: var(--color-white);
}

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

.cdv-brand-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg, 10px);
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.cdv-brand-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-primary-dark) 8%, transparent);
}

.cdv-brand-card h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
}

.cdv-brand-card__origin {
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cdv-brand-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cdv-brand-card__link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.cdv-brand-card__link:hover {
  color: var(--color-primary-dark);
}

/* ============================================================================
   USP GRID (de ce noi)
   ============================================================================ */

.cdv-usp {
  padding: 100px 0;
  background: var(--color-bg);
}

.cdv-usp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.cdv-usp__item {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--border-radius-lg, 10px);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  text-align: left;
}

.cdv-usp__item:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.cdv-usp__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-lightest);
  color: var(--color-primary-dark);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.cdv-usp__item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.cdv-usp__item p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================================
   CTA SECTION (vino la showroom)
   ============================================================================ */

.cdv-cta {
  padding: 100px 0;
  background: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
}

.cdv-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--color-primary) 15%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--color-accent) 10%, transparent) 0%, transparent 50%);
  z-index: 0;
}

.cdv-cta__card {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-white);
}

.cdv-cta__card .cdv-eyebrow {
  color: var(--color-primary-light);
}

.cdv-cta__card h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.cdv-cta__card > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cdv-cta__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--border-radius-lg, 10px);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.cdv-cta__info a {
  color: var(--color-primary-light);
  text-decoration: none;
}

.cdv-cta__info a:hover {
  color: var(--color-white);
}

.cdv-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cdv-cta__actions .btn {
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
}

.cdv-cta__actions .btn-outline-primary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.cdv-cta__actions .btn-outline-primary:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-color: var(--color-white);
}

/* ============================================================================
   BUTTONS — premium showroom
   ============================================================================ */

.btn {
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--border-radius, 6px);
  padding: 11px 24px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 30%, transparent);
  color: var(--color-white);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-accent,
.btn-cta {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ============================================================================
   PRODUCT CARD — showroom feel
   ============================================================================ */

.cs-product-card,
.product-card,
.cs-shop-product {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius, 6px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cs-product-card:hover,
.product-card:hover,
.cs-shop-product:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-primary-dark) 10%, transparent);
}

.cs-product-card__image,
.product-card__image,
.cs-shop-product img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* ============================================================================
   CATEGORY CARDS (homepage)
   ============================================================================ */

.category-card,
.cs-category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg, 10px);
  aspect-ratio: 1/1;
  cursor: pointer;
}

.category-card img,
.cs-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img,
.cs-category-card:hover img {
  transform: scale(1.08);
}

/* ============================================================================
   HERO SLIDER homepage
   ============================================================================ */

.cs-hero,
.cs-hero__slide {
  min-height: 75vh;
}

.cs-hero__slide::before {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary-dark) 0%, transparent) 30%,
    color-mix(in srgb, var(--color-primary-dark) 75%, transparent) 100%
  );
}

.cs-hero__slide-title {
  font-family: var(--font-family-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ============================================================================
   BLOG CARD
   ============================================================================ */

.blog-card,
.cs-blog-card,
article.blog-post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg, 10px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover,
.cs-blog-card:hover,
article.blog-post-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-primary-dark) 8%, transparent);
}

.blog-card__image,
.cs-blog-card__image {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */

.testimonial-card,
.cs-testimonial-card {
  background: var(--color-primary-lightest);
  padding: 32px;
  border-radius: var(--border-radius-lg, 10px);
  border-left: 4px solid var(--color-primary);
}

.testimonial-card__content {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* ============================================================================
   FOOTER — dark green premium
   ============================================================================ */

.cs-footer,
footer.cs-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
}

.cs-footer h4,
.cs-footer h5,
footer h4,
footer h5 {
  color: var(--color-white);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.cs-footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.cs-footer a:hover {
  color: var(--color-primary-light);
}

/* ============================================================================
   SECTIONS — spacing
   ============================================================================ */

.section,
.cs-section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section, .cs-section { padding: 56px 0; }
  .cdv-brands, .cdv-usp, .cdv-cta, .cdv-split { padding: 60px 0; }
  .cdv-section-header { margin-bottom: 36px; }
}

/* ============================================================================
   PAGE SECTION (default pagini statice)
   ============================================================================ */

.page-section {
  padding: 60px 0;
}

.page-section h2 {
  font-family: var(--font-family-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-top: 48px;
  margin-bottom: 20px;
}

.page-section h2:first-child {
  margin-top: 0;
}

.page-section p {
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.page-section ul, .page-section ol {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-section li {
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ============================================================================
   WARRANTY TABLE (pagina Garantie)
   ============================================================================ */

.warranty-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary-dark) 5%, transparent);
}

.warranty-table th {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warranty-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.warranty-table tr:last-child td {
  border-bottom: none;
}

.warranty-table tr:nth-child(even) td {
  background: var(--color-bg);
}

/* ============================================================================
   CONTACT
   ============================================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

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

.contact-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-block:last-child { border-bottom: none; }

.contact-block h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.contact-block p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.map-section .map-embed {
  border-radius: var(--border-radius-lg, 10px);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ============================================================================
   USP GRID (custom Despre noi) — backup if .cdv-usp not used
   ============================================================================ */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.usp-item {
  background: var(--color-white);
  padding: 28px 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}

.usp-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .cdv-hero-page { min-height: 320px; padding: 56px 0; }
  .cdv-hero-page h1 { font-size: 2rem; }
  .cdv-stats__grid { gap: 24px; }
  .cdv-stats__number { font-size: 2.2rem; }
}

/* ============================================================================
   PRINT
   ============================================================================ */

@media print {
  .cs-header__nav, .cs-footer, .btn, .cs-hero, .cdv-cta { display: none; }
}

/* ============================================================================
   MOBILE FIXES (tablet + phone) — verificate cu Chrome 414px viewport
   ============================================================================ */

@media (max-width: 768px) {

  /* DRAWER MOBILE: iconitele in chenare perfect centrate (specificity boost) */
  .navbar-menu-collapse .nav-link .nav-icon,
  .navbar-menu-collapse .nav-dropdown-item .nav-dropdown-icon,
  .nav-link .nav-icon,
  .nav-dropdown-item .nav-dropdown-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background: var(--color-primary-lightest) !important;
    color: var(--color-primary-dark) !important;
    border-radius: 10px !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin-right: 14px !important;
  }
  /* Glyph-ul lucide perfect aliniat in centru */
  .nav-link .nav-icon::before,
  .nav-dropdown-item .nav-dropdown-icon::before {
    display: block !important;
    line-height: 1 !important;
    text-align: center !important;
    width: auto !important;
    height: auto !important;
  }

  /* HOMEPAGE CATEGORIES: .categories-grid foloseste FLEX, schimb la grid 2 cols */
  .categories-grid,
  .section-categories .categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  .categories-grid > *,
  .categories-grid > .category-card,
  .categories-grid > .cs-category-card {
    width: 100% !important;
    min-width: 0 !important;
    flex: unset !important;
    max-width: 100% !important;
  }
  .section-categories .row,
  .section-categories .container > .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .section-categories .row > [class*="col-"] {
    width: 100% !important;
    flex: unset !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .section-categories .category-card,
  .section-categories .cs-category-card {
    aspect-ratio: 1/1 !important;
    width: 100%;
  }
  .section-categories .category-card__title,
  .section-categories .cs-category-card__title {
    font-size: 0.95rem !important;
    padding: 0 8px;
  }

  /* SHOP: layout column + sidebar above, grid 2 cols */
  .shop-layout {
    display: block !important;
    flex-direction: column !important;
  }
  .shop-sidebar,
  aside.shop-sidebar,
  .sidebar-overlay {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px;
    position: static !important;
    flex: unset !important;
  }
  .shop-content,
  .shop-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
  }
  /* Grid produse: 2 cols pe mobile (era 3) */
  .shop-grid,
  .shop-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .shop-grid-item {
    width: 100% !important;
  }
  .product-card,
  .cs-product-card {
    width: 100% !important;
  }

  /* BLOG: 1 col pe mobile (era 3 cols zdrobit la 109px width per card) */
  .blog-grid,
  .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .blog-grid > *,
  .posts-grid > *,
  .blog-list .row > [class*="col-"],
  .blog-posts > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 16px;
  }
  .blog-card,
  article.blog-post-card {
    width: 100%;
    margin-bottom: 16px;
  }
  .blog-card__title,
  .blog-card .blog-card__title {
    font-size: 1.1rem !important;
  }

  /* Hero text mai mic */
  .cs-hero__slide-title,
  .hero-title {
    font-size: 1.7rem !important;
    line-height: 1.2;
  }
  .cs-hero__slide-content p,
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  .cs-hero,
  .cs-hero__slide {
    min-height: 50vh !important;
  }

  /* Page hero (despre, contact) padding redus */
  .cdv-hero-page,
  .page-hero {
    min-height: 240px !important;
    padding: 48px 0 !important;
  }
  .cdv-hero-page h1,
  .page-hero h1 {
    font-size: 1.8rem !important;
  }

  /* Bestsellers / Recommended: 2 cols pe mobile */
  .section-bestsellers .row > [class*="col-"],
  .section-recommended .row > [class*="col-"],
  .section-products .row > [class*="col-"] {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 6px !important;
  }
  .cs-product-card__title,
  .product-card__title {
    font-size: 0.9rem !important;
    line-height: 1.3;
  }

  /* Footer: 1 col pe mobile (Bootstrap fix) */
  .site-footer .row > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 32px;
  }
  .site-footer .footer-bottom .row > [class*="col-"] {
    text-align: center !important;
    margin-bottom: 16px;
  }
  .footer-anpc {
    justify-content: center;
    display: flex;
    gap: 16px;
  }

  /* Container padding pe mobile */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Section padding redus */
  .section, .cs-section,
  .cdv-brands, .cdv-usp, .cdv-cta, .cdv-split,
  .section-categories, .section-story, .section-bestsellers {
    padding: 48px 0 !important;
  }

  /* Section header margin */
  .cdv-section-header,
  .section-header {
    margin-bottom: 24px !important;
  }
  .section-title,
  .cdv-section-header h2 {
    font-size: 1.6rem !important;
  }

  /* Story image: padding inferior redus */
  .section-story .story-image,
  img.story-image {
    max-height: 240px !important;
    height: 240px !important;
  }

  /* USP/Brand/Stats: 1 col stack */
  .cdv-usp__grid,
  .cdv-brands__grid,
  .cdv-stats__grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .cdv-stats__number {
    font-size: 2.4rem !important;
  }

  /* CTA actions stivuite */
  .cdv-cta__actions {
    flex-direction: column;
    gap: 12px;
  }
  .cdv-cta__actions .btn {
    width: 100%;
  }
  .cdv-cta__info {
    grid-template-columns: 1fr !important;
  }

  /* Filter tabs blog scroll horizontal */
  .blog-filters,
  .blog-tabs,
  .category-filters {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
}

  /* SORT DROPDOWN SHOP — meniul aliniat la dreapta sa NU depaseasca ecranul */
  .sort-dropdown {
    position: relative;
  }
  .sort-dropdown-menu,
  .sort-dropdown-list,
  .sort-dropdown__menu,
  .sort-dropdown .dropdown-menu,
  .sort-dropdown [role="listbox"] {
    right: 0 !important;
    left: auto !important;
    max-width: calc(100vw - 32px) !important;
    width: auto !important;
    min-width: 220px !important;
  }

  /* BLOG FILTRE CAROUSEL — prima + ultima categorie complet vizibile */
  .blog-filters {
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .blog-filters > *:first-child {
    scroll-snap-align: start;
    margin-left: 0;
  }
  .blog-filters > *:last-child {
    scroll-snap-align: end;
    margin-right: 16px;
  }
  /* Pune padding interior pe carousel sa nu aibe items lipiti de margine */
  .blog-filters-section .blog-filters {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: -16px;
    margin-right: -16px;
  }

@media (max-width: 480px) {
  /* Phone foarte mic — Categories 1 col cu aspect 4/3 */
  .cs-hero__slide-title,
  .hero-title {
    font-size: 1.4rem !important;
  }
  .cdv-stats__number {
    font-size: 2rem !important;
  }
  .section-categories .row,
  .categories-grid {
    grid-template-columns: 1fr !important;
  }
  .section-categories .category-card,
  .section-categories .cs-category-card {
    aspect-ratio: 16/10 !important;
  }
}

/* ============================================================================
   CASA DE VIS — overrides specifice cerute de client (2026-05-19)
   ============================================================================ */

/* Header nav links — BOLD */
.cs-header__nav a,
header nav a,
.main-menu a,
.navbar a {
  font-weight: 700 !important;
}

/* Footer links — BOLD */
.site-footer a,
.cs-footer a,
.footer-links a,
.footer-contact a {
  font-weight: 700 !important;
}

/* Story section button — CENTRAT cu spatiu jos */
.section-story .story-content,
.section-story .container,
.section-story .row,
.section-story .col,
.cs-section-story .story-content {
  text-align: center;
}

.section-story .story-content,
.cs-section-story .story-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-story .btn,
.cs-section-story .btn {
  margin: 1rem auto 4rem !important;  /* spatiu generos jos */
  display: inline-flex;
  align-items: center;
}

/* Forteaza centrare daca template-ul are alta clasa */
.section-story .row > [class*="col-"]:has(.btn),
.section-story .container [class*="col-"]:last-child {
  text-align: center !important;
}

/* Mai mult spatiu intre section-story si benefits-bar */
.section-story {
  padding-bottom: 80px !important;
}

.benefits-bar {
  margin-top: 0 !important;
}

/* SHOP — Hide price filter slider (catalog mode, fara preturi) */
.shop-sidebar-section:has(#priceSlider),
.shop-sidebar-section:has(.price-slider-wrap),
#priceSlider,
.price-slider-wrap,
.shop-sidebar-section .shop-sidebar-title:has(.fa-tag) {
  display: none !important;
}
/* Fallback (browsers fara :has support) — selecte directe */
.price-slider-wrap { display: none !important; }
.shop-sidebar h4.shop-sidebar-title i.fa-tag { display: none; }

/* Footer column titles (Magazin, Informatii, Contact) — BOLD prominent */
.footer-title,
.cs-footer h4, .cs-footer h5,
.site-footer h4, .site-footer h5 {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

/* Scot "Plata securizata" din footer (nu avem plati online) */
.footer-payment,
.footer-bottom .footer-payment {
  display: none !important;
}

/* SHOP HERO — scot background-image atmospheric din ::after (imagine showroom blurat
   nu se potriveste pe Casa de Vis — este o usa care arata ciudat ca decor.
   Pastrez doar dots-pattern minimal. */
.category-hero.has-random-bg .category-hero-inner::after {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 22%, transparent) 1.5px, transparent 1.5px) !important;
  background-size: 14px 14px !important;
  background-color: transparent !important;
  filter: none !important;
  opacity: 0.4 !important;
  width: 200px !important;
  height: 200px !important;
  top: auto !important;
  bottom: -40px !important;
  left: -40px !important;
  right: auto !important;
}
.category-hero.has-random-bg:hover .category-hero-inner::after {
  filter: none !important;
  opacity: 0.55 !important;
  transform: none !important;
}

/* Centrez ANPC pe TOATA latimea cand footer-payment lipseste */
.footer-bottom .row {
  justify-content: space-between;
}

/* Header nav: icoane lucide vizibile + spacing fata de text */
.cs-header__nav .nav-link,
.navbar-nav .nav-link,
.cs-header__nav a,
header nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link .nav-icon,
header nav a .nav-icon,
header nav a i[class^="icon-"] {
  font-size: 1.1em;
  line-height: 1;
  display: inline-block;
}

/* Footer Contact: icoane FontAwesome vizibile */
.footer-contact i,
.cs-footer .footer-contact i,
.site-footer .footer-contact i {
  color: var(--color-primary-light);
  font-size: 0.95em;
  width: 18px;
  text-align: center;
}

/* Story section — imagine mai joasa, crop centrat, spatiu generos sub */
.section-story .story-image,
img.story-image,
.section-story .story-image-wrap img,
.story-image-wrap img {
  max-height: 300px !important;
  height: 300px !important;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--border-radius-lg, 10px);
  display: block;
}

.section-story .story-image-wrap {
  max-height: 300px;
  overflow: hidden;
  border-radius: var(--border-radius-lg, 10px);
}

/* Spatiu intre imagine si badge "POVESTEA NOASTRA" */
.section-story .story-content {
  padding-top: 40px !important;
  text-align: center;
}

.section-story .story-content .section-badge,
.section-story .section-badge {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Buton Despre noi centrat sub story (deja avem, intaresc) */
.section-story .story-content .btn,
.section-story .btn {
  margin: 24px auto 0 !important;
}

@media (min-width: 768px) {
  .section-story .story-image,
  img.story-image {
    max-height: 360px !important;
    height: 360px !important;
  }
}

