/* ============================================================
   SMARTMAISON — Warm Domotique Theme (overlays voltcasa.css)
   Loaded AFTER voltcasa.css for shop_id == 2
   Palette: amber #B45309 + gold #F59E0B + cream #FFFBEB + navy #0C1A2E + teal #0891B2
   Inspiration: Lutron, Nest (warm), Apple HomeKit, RH, Vipp, Cassina
   ============================================================ */

/* Optional serif accent for big headlines (warmth + luxury) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

:root {
  /* Warm Smartmaison palette */
  --sm-amber-deep:   #78350F;
  --sm-amber:        #B45309;
  --sm-amber-mid:    #D97706;
  --sm-gold:         #F59E0B;
  --sm-gold-soft:    #FCD34D;
  --sm-cream:        #FFFBEB;
  --sm-cream-soft:   #FEF3C7;
  --sm-cream-warm:   #FDE68A;
  --sm-navy:         #0C1A2E;
  --sm-navy-soft:    #1E3A5F;
  --sm-teal:         #0891B2;
  --sm-teal-soft:    #67E8F9;
  --sm-sand:         #FAF5EA;
  --sm-line:         #F3E8D2;
  --sm-line-strong:  #E7D7B3;
  --sm-text:         #1A1410;
  --sm-muted:        #6B5B47;
  --sm-faint:        #A89478;

  /* Override base voltcasa vars so cascaded rules pick warm tints */
  --vc-blue:        var(--sm-amber);
  --vc-electric:    var(--sm-gold);
  --vc-violet:      var(--sm-teal);
  --vc-ink:         var(--sm-navy);
  --vc-ink-soft:    var(--sm-navy-soft);
  --vc-yellow:      var(--sm-gold-soft);
  --vc-bg:          var(--sm-cream);
  --vc-line:        var(--sm-line);
  --vc-line-soft:   var(--sm-sand);
  --vc-shadow-glow: 0 12px 48px rgba(180, 83, 9, 0.22);
  --vc-shadow:      0 8px 32px rgba(120, 53, 15, 0.08);
  --vc-shadow-sm:   0 1px 2px rgba(120, 53, 15, 0.05);
}

/* ============================================================
   BASE — warm cream background, deeper text
   ============================================================ */
body, body.classic {
  background: var(--sm-cream);
  color: var(--sm-text);
}
h1, h2, h3, h4, h5, h6 { color: var(--sm-navy); }

a { color: var(--sm-amber); }
a:hover { color: var(--sm-amber-deep); }

::selection { background: var(--sm-cream-warm); color: var(--sm-navy); }

/* ============================================================
   HEADER — warm cream glass instead of cold white
   ============================================================ */
#header {
  background: rgba(255, 251, 235, 0.88);
  border-bottom-color: var(--sm-line);
}
#header .header-nav {
  background: var(--sm-navy);
  /* The top nav inherits monospace from base — keep it */
}
#header .header-nav a:hover { color: var(--sm-gold) !important; }

.top-menu a[data-depth="0"]:hover {
  background: var(--sm-cream-soft);
  color: var(--sm-amber) !important;
}

#search_widget input[type="text"],
#search_widget input[type="search"] {
  background: var(--sm-sand);
  border-color: var(--sm-line) !important;
}
#search_widget input:focus {
  border-color: var(--sm-amber) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12) !important;
}

/* ============================================================
   HERO — warm amber/teal/cream mesh (replace cool blue mesh)
   ============================================================ */
.carousel-inner {
  background: var(--sm-navy);
}
.carousel-inner::before {
  background:
    radial-gradient(circle 600px at 18% 28%, rgba(180, 83, 9, 0.62), transparent 60%),
    radial-gradient(circle 700px at 78% 68%, rgba(217, 119, 6, 0.55), transparent 60%),
    radial-gradient(circle 520px at 50% 100%, rgba(245, 158, 11, 0.45), transparent 65%),
    radial-gradient(circle 420px at 92% 12%, rgba(8, 145, 178, 0.32), transparent 70%);
  filter: blur(46px);
}
/* Slightly cosier headline gradient */
.carousel .carousel-item .caption .display-1,
.carousel .display-1 {
  font-family: 'Fraunces', 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #FFFBEB 0%, #FCD34D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.carousel .caption p strong { color: var(--sm-gold-soft) !important; }
.carousel .caption a.slide-cta {
  background: var(--sm-cream);
  color: var(--sm-navy) !important;
}
.carousel .caption a.slide-cta:hover {
  background: var(--sm-gold);
  color: var(--sm-navy) !important;
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.45);
}

/* ============================================================
   SECTION HEADERS — warm eyebrow
   ============================================================ */
.featured-products h2,
.products-section-title,
section h2.h2 {
  color: var(--sm-navy);
}
.featured-products h2::before,
.products-section-title::before {
  content: 'COLLECTION DOMOTIQUE';
  color: var(--sm-amber);
}
.featured-products h2::after,
.products-section-title::after {
  background: var(--sm-amber);
}

.vc-eyebrow {
  color: var(--sm-amber);
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.18);
}

/* ============================================================
   PRODUCT CARDS — cream surfaces with warm gold hover
   ============================================================ */
.vc-p {
  background: linear-gradient(135deg, var(--p-tint, var(--sm-cream)), #fff);
  border-color: var(--p-border, var(--sm-line));
}
.vc-p-default {
  --p-tint: #FFFBEB;
  --p-border: #FDE68A;
  --p-shadow: rgba(180, 83, 9, 0.06);
  --p-shadow-hover: rgba(180, 83, 9, 0.18);
  --p-color: #B45309;
  --p-color-deep: #78350F;
}
/* Brand palette: Schneider Wiser (electric green tint) */
.vc-p-wiser {
  --p-tint: #ECFDF5;
  --p-border: #A7F3D0;
  --p-shadow: rgba(5, 150, 105, 0.06);
  --p-shadow-hover: rgba(5, 150, 105, 0.18);
  --p-color: #059669;
  --p-color-deep: #064E3B;
}
/* Netatmo / Legrand — slate */
.vc-p-netatmo {
  --p-tint: #F8FAFC;
  --p-border: #CBD5E1;
  --p-shadow: rgba(30, 41, 59, 0.06);
  --p-shadow-hover: rgba(30, 41, 59, 0.16);
  --p-color: #334155;
  --p-color-deep: #0F172A;
}
/* Somfy — warm orange */
.vc-p-somfy {
  --p-tint: #FFF7ED;
  --p-border: #FED7AA;
  --p-shadow: rgba(234, 88, 12, 0.06);
  --p-shadow-hover: rgba(234, 88, 12, 0.18);
  --p-color: #EA580C;
  --p-color-deep: #7C2D12;
}
/* Zigbee/KNX gateway — teal */
.vc-p-gateway {
  --p-tint: #ECFEFF;
  --p-border: #A5F3FC;
  --p-shadow: rgba(8, 145, 178, 0.06);
  --p-shadow-hover: rgba(8, 145, 178, 0.18);
  --p-color: #0891B2;
  --p-color-deep: #164E63;
}

/* ============================================================
   BUTTONS — warm gradient primary
   ============================================================ */
.btn, .btn-primary,
.btn.btn-primary {
  font-family: 'Inter', sans-serif !important;
}
.btn-primary, .btn.btn-primary {
  background: linear-gradient(135deg, var(--sm-amber) 0%, var(--sm-amber-mid) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.22);
}
.btn-primary:hover, .btn.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--sm-amber-deep) 0%, var(--sm-amber) 100%) !important;
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.35);
}
.btn-secondary, .btn.btn-secondary {
  background: var(--sm-cream) !important;
  color: var(--sm-navy) !important;
  border: 1px solid var(--sm-line-strong) !important;
}
.btn-secondary:hover {
  background: var(--sm-cream-soft) !important;
  border-color: var(--sm-amber) !important;
}

/* Product page add-to-cart */
#product .add-to-cart {
  background: linear-gradient(135deg, var(--sm-amber) 0%, var(--sm-amber-mid) 100%) !important;
}
#product .add-to-cart:hover {
  background: linear-gradient(135deg, var(--sm-amber-deep) 0%, var(--sm-amber) 100%) !important;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.35);
}

/* ============================================================
   FEATURES — warm tints
   ============================================================ */
.vc-feat { background: #fff; border-color: var(--sm-line); }
.vc-feat-blue {
  --feat-color: #B45309;
  --feat-glow: rgba(180, 83, 9, 0.08);
  --feat-shadow: rgba(180, 83, 9, 0.18);
  --feat-bg: #FFFBEB;
}
.vc-feat-amber {
  --feat-color: #D97706;
  --feat-glow: rgba(217, 119, 6, 0.1);
  --feat-shadow: rgba(217, 119, 6, 0.2);
  --feat-bg: #FEF3C7;
}
.vc-feat-green {
  --feat-color: #0891B2;
  --feat-glow: rgba(8, 145, 178, 0.08);
  --feat-shadow: rgba(8, 145, 178, 0.18);
  --feat-bg: #ECFEFF;
}
.vc-feat-pink {
  --feat-color: #DC2626;
  --feat-glow: rgba(220, 38, 38, 0.07);
  --feat-shadow: rgba(220, 38, 38, 0.16);
  --feat-bg: #FEF2F2;
}

/* ============================================================
   FOOTER — deep navy with amber mesh (force-override theme.css)
   ============================================================ */
body #footer,
body .page-footer,
body .footer-container,
body .footer-container .container,
body .block_newsletter {
  background-color: #0C1A2E !important;
  background-image: radial-gradient(ellipse 600px at 20% 0%, rgba(180,83,9,.22), transparent), radial-gradient(ellipse 700px at 80% 100%, rgba(8,145,178,.18), transparent) !important;
  color: rgba(255, 255, 255, .82) !important;
}
body #footer .links ul,
body .footer-container .links ul,
body #footer .links a span.link-item,
body .footer-container .links a span.link-item,
body #footer .wrapper,
body .footer-container .wrapper {
  background-color: transparent !important;
  background-image: none !important;
}
body #footer h3, body .footer-container h3,
body #footer h4, body .footer-container h4,
body #footer .h3, body .footer-container .h3,
body #footer .h4, body .footer-container .h4 { color: #fff !important; }
body #footer a, body .footer-container a,
body #footer p, body .footer-container p,
body #footer li, body .footer-container li,
body #footer span, body .footer-container span,
body #footer div, body .footer-container div { color: rgba(255, 255, 255, .72) !important; }
body #footer a:hover, body .footer-container a:hover { color: var(--sm-gold, #F59E0B) !important; }
body #footer input[type="email"], body .footer-container input[type="email"] {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}
body #footer input[type="email"]::placeholder, body .footer-container input[type="email"]::placeholder { color: rgba(255, 255, 255, .45) !important; }
body .copyright, body #footer .copyright { background: #050813 !important; color: rgba(255, 255, 255, .45) !important; }
.block_newsletter button {
  background: linear-gradient(135deg, var(--sm-gold) 0%, var(--sm-amber-mid) 100%) !important;
  color: var(--sm-navy) !important;
}

/* ============================================================
   FORMS — warm focus ring
   ============================================================ */
input:focus, textarea:focus, .form-control:focus {
  border-color: var(--sm-amber) !important;
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12) !important;
}

/* Cart bubble */
.blockcart .cart-products-count {
  background: var(--sm-gold) !important;
  color: var(--sm-navy) !important;
}

/* Accessibility focus ring — warm */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--sm-amber);
  outline-offset: 3px;
}

/* ============================================================
   SMARTMAISON HERO BLOCK (sm-hero)
   ============================================================ */
.sm-hero {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: 1320px;
  padding: 0 1.5rem;
}
.sm-hero-inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--sm-navy);
  isolation: isolate;
  padding: 5rem 4.5rem 4.5rem;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sm-hero-inner::before {
  content: '';
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle 620px at 18% 28%, rgba(180, 83, 9, 0.62), transparent 60%),
    radial-gradient(circle 720px at 80% 70%, rgba(217, 119, 6, 0.55), transparent 60%),
    radial-gradient(circle 520px at 50% 105%, rgba(245, 158, 11, 0.45), transparent 65%),
    radial-gradient(circle 420px at 95% 8%, rgba(8, 145, 178, 0.32), transparent 70%);
  filter: blur(48px);
  animation: smMesh 24s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes smMesh {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-30px, 18px) rotate(6deg); }
  100% { transform: translate(22px, -28px) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sm-hero-inner::before { animation: none; }
}

.sm-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sm-gold);
  background: rgba(255, 251, 235, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.25);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: max-content;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.sm-hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sm-gold);
  box-shadow: 0 0 12px var(--sm-gold);
  animation: smPulse 2.2s ease-in-out infinite;
}
@keyframes smPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.75); }
}

.sm-hero h1 {
  font-family: 'Fraunces', 'Space Grotesk', serif !important;
  font-weight: 500 !important;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 820px;
  color: #FFFBEB;
  position: relative;
  z-index: 2;
}
.sm-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sm-hero p.sm-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 251, 235, 0.82);
  max-width: 580px;
  margin: 0 0 2rem;
  position: relative;
  z-index: 2;
}
.sm-hero p.sm-sub strong {
  color: var(--sm-gold-soft);
  font-weight: 600;
}

.sm-hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}
.sm-cta-primary,
.sm-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(.22,.61,.36,1);
  min-height: 48px; /* touch target */
}
.sm-cta-primary {
  background: linear-gradient(135deg, var(--sm-gold) 0%, var(--sm-amber-mid) 100%);
  color: var(--sm-navy) !important;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.38);
}
.sm-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.55);
  color: var(--sm-navy) !important;
}
.sm-cta-primary span { transition: transform 0.25s; display: inline-block; }
.sm-cta-primary:hover span { transform: translateX(4px); }
.sm-cta-ghost {
  background: rgba(255, 251, 235, 0.08);
  color: #FFFBEB !important;
  border: 1px solid rgba(255, 251, 235, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sm-cta-ghost:hover {
  background: rgba(255, 251, 235, 0.16);
  border-color: var(--sm-gold);
  color: var(--sm-gold-soft) !important;
}

.sm-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  position: relative;
  z-index: 2;
}
.sm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 251, 235, 0.85);
  background: rgba(255, 251, 235, 0.07);
  border: 1px solid rgba(255, 251, 235, 0.14);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sm-chip svg { color: var(--sm-gold); }

/* ============================================================
   MOBILE BREAKPOINTS — 320, 375, 414, 768, 1024
   ============================================================ */
@media (max-width: 1024px) {
  .sm-hero-inner { padding: 4rem 3rem 3.5rem; min-height: 480px; }
}
@media (max-width: 768px) {
  .sm-hero { padding: 0 1rem; margin-top: 1rem; }
  .sm-hero-inner {
    padding: 3rem 1.75rem 2.5rem;
    min-height: 460px;
    border-radius: 22px;
  }
  .sm-hero h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
  .sm-hero-ctas { gap: 0.65rem; }
  .sm-cta-primary, .sm-cta-ghost {
    padding: 0.9rem 1.4rem;
    font-size: 0.92rem;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 140px;
  }
}
@media (max-width: 414px) {
  .sm-hero-inner { padding: 2.5rem 1.25rem 2rem; border-radius: 18px; min-height: 420px; }
  .sm-hero h1 { font-size: 1.95rem; line-height: 1.08; }
  .sm-hero p.sm-sub { font-size: 0.95rem; }
  .sm-chip { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
}
@media (max-width: 375px) {
  .sm-hero-inner { padding: 2.25rem 1rem 1.75rem; min-height: 400px; }
  .sm-hero h1 { font-size: 1.78rem; }
  .sm-hero-eyebrow { font-size: 0.68rem; padding: 0.32rem 0.75rem; }
}
@media (max-width: 320px) {
  .sm-hero-inner { padding: 2rem 0.85rem 1.5rem; min-height: 380px; }
  .sm-hero h1 { font-size: 1.6rem; }
  .sm-hero p.sm-sub { font-size: 0.88rem; margin-bottom: 1.5rem; }
  .sm-cta-primary, .sm-cta-ghost {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ============================================================
   REDUCED MOTION — kill animations
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sm-hero-inner::before,
  .carousel-inner::before { animation: none; }
}
