/* =========================================================
   SMART CAMERA — FINAL POLISH LAYER
   Loaded after style.css so the storefront can evolve without
   adding more overrides to the legacy master stylesheet.
========================================================= */

:root {
  --smart-green: #4cad38;
  --smart-green-dark: #31842a;
  --smart-navy: #071a2a;
  --smart-ink: #0b1e2d;
  --smart-muted: #72808a;
  --smart-line: #dce5df;
  --smart-soft: #f3f8f4;
  --smart-radius: 22px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--smart-green);
  transition: right .2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

/* Dynamic hero */
.smart-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 64px 0 58px !important;
}

.smart-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 73% 35%, rgba(76, 173, 56, .18), transparent 22%),
    linear-gradient(90deg, rgba(3, 16, 29, .15), transparent 46%);
}

.smart-hero .nova-hero-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  gap: clamp(30px, 5vw, 74px) !important;
}

.smart-hero .nova-hero-content h1 {
  max-width: 720px;
  font-size: clamp(48px, 5.8vw, 82px) !important;
}

.smart-hero .nova-hero-description {
  max-width: 650px;
}

.smart-hero .nova-hero-actions {
  align-items: center;
}

.smart-hero .primary-button,
.smart-hero .secondary-button {
  min-height: 52px;
  border-radius: 12px;
  padding-inline: 22px;
}

.smart-hero .hero-main-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.hero-product-link {
  display: block;
  height: 100%;
  min-height: 470px;
  background: #fff;
}

.smart-hero .hero-main-card img,
.smart-hero #heroImageDisplay {
  width: 100% !important;
  height: 470px !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform .45s ease, opacity .24s ease;
}

.smart-hero .hero-product-link:hover img {
  transform: scale(1.018);
}

.smart-hero-changing #heroImageDisplay {
  animation: smartHeroReveal .46s ease both;
}

@keyframes smartHeroReveal {
  from { opacity: .28; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

.smart-hero .hero-floating-badge {
  left: 22px !important;
  right: auto !important;
  bottom: 22px !important;
  width: min(290px, calc(100% - 44px));
  padding: 16px 18px;
  border-radius: 14px;
}

.smart-hero .hero-floating-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.smart-hero .hero-floating-badge small {
  display: block;
  margin-top: 7px;
  color: var(--smart-green-dark);
  font-size: 15px;
  font-weight: 900;
}


/* Use case navigation */
.use-cases {
  padding: 30px 0 34px !important;
  background: #fff;
}

.use-case-grid {
  gap: 16px !important;
}

.use-case-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 0;
  border-radius: var(--smart-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(96, 215, 74, .25), transparent 24%),
    linear-gradient(145deg, #173346, #071a2a 72%);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.use-case-card:nth-child(2) { background: radial-gradient(circle at 85% 15%, rgba(96, 215, 74, .28), transparent 24%), linear-gradient(145deg, #27452b, #07160c 74%); }
.use-case-card:nth-child(3) { background: radial-gradient(circle at 85% 15%, rgba(125, 160, 255, .18), transparent 24%), linear-gradient(145deg, #263947, #111820 74%); }
.use-case-card:nth-child(4) { background: radial-gradient(circle at 85% 15%, rgba(96, 215, 74, .22), transparent 24%), linear-gradient(145deg, #304231, #071a2a 74%); }

.use-case-card:hover,
.use-case-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(7, 26, 42, .16);
}

.use-case-kicker {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #73dd60 !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: .13em;
}

.use-case-card strong {
  font-size: 20px !important;
  line-height: 1.15;
}

.use-case-card > span:not(.use-case-kicker) {
  margin-top: 8px !important;
  max-width: 240px;
  color: rgba(255,255,255,.68);
  font-size: 12px !important;
  line-height: 1.45;
}

.use-case-card i {
  margin-top: 17px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .06em;
}

/* Benefits */
.smart-benefits-grid > article:last-child,
.smart-benefits-grid > .benefit-intro:last-child {
  border-right: 0;
}

/* Product cards */
.product-card-specs {
  display: -webkit-box !important;
  min-height: 34px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-button,
.filter-chip,
.mobile-filter-open,
.advanced-filter-panel button,
.product-sort-select,
.product-toolbar input {
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.product-horizontal-rail.compact-static-rail {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: start;
  gap: 18px;
  overflow: visible !important;
}

.product-horizontal-rail.compact-static-rail .product-card {
  width: auto !important;
}

/* Editorial promos */
.smart-editorial-promos {
  padding: 36px 0 76px;
  background: #03101d;
}

.smart-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.smart-editorial-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 26px;
  padding: 42px;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}

.smart-editorial-solar {
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(96, 215, 74, .28), transparent 28%),
    linear-gradient(135deg, #0a2537, #04111d 70%);
}

.smart-editorial-4g {
  color: var(--smart-navy);
  background: linear-gradient(135deg, #dff3d9, #8fd47f);
}

.smart-editorial-copy {
  position: relative;
  z-index: 4;
  width: 56%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.smart-editorial-copy p {
  margin: 0 0 14px;
  color: var(--smart-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.smart-editorial-4g .smart-editorial-copy p {
  color: #245f1b;
}

.smart-editorial-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 62px);
  line-height: .92;
  letter-spacing: -.055em;
}

.smart-editorial-copy > span {
  max-width: 310px;
  margin-top: 18px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.55;
}

.smart-editorial-4g .smart-editorial-copy > span {
  color: rgba(7,26,42,.66);
}

.smart-editorial-copy button {
  margin-top: 24px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0 0 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
}

.smart-editorial-card > img {
  position: absolute;
  z-index: 2;
  right: -5%;
  bottom: -8%;
  width: 58%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 24px 24px rgba(0,0,0,.18));
  transform: rotate(-2deg);
}

.smart-editorial-4g > img {
  right: -3%;
  transform: rotate(2deg);
}

.smart-editorial-watermark {
  position: absolute;
  z-index: 1;
  right: -14px;
  bottom: -42px;
  color: rgba(255,255,255,.28);
  font-size: clamp(150px, 20vw, 280px);
  line-height: .8;
  letter-spacing: -.1em;
  pointer-events: none;
}

/* Checkout: improve hierarchy without touching order logic */
.checkout-header {
  background: linear-gradient(180deg, #fff, #fbfcfb);
}

.checkout-customer-section {
  background: #fff !important;
}

.checkout-summary-section,
.checkout-payment-section {
  position: relative;
}

.checkout-summary-section::before,
.checkout-payment-section::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 0;
  height: 1px;
  background: #edf1ee;
}

.checkout-payment-section::before { top: -12px; }
.checkout-summary-section::before { top: -4px; }

.checkout-form-group input:focus,
.checkout-form-group textarea:focus,
.checkout-form-group select:focus,
.checkout-promo-row input:focus {
  outline: 3px solid rgba(76, 173, 56, .12) !important;
  border-color: var(--smart-green) !important;
}

/* Newsletter */
.smart-newsletter {
  border-top: 1px solid #e6ece8;
}

/* Accessibility */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(76, 173, 56, .32);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .smart-hero {
    min-height: auto;
  }

  .smart-hero .nova-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .smart-editorial-card {
    min-height: 360px;
    padding: 32px;
  }

  .smart-editorial-copy {
    width: 62%;
  }
}

@media (max-width: 760px) {
  .smart-hero {
    padding: 42px 0 34px !important;
  }

  .smart-hero .nova-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .smart-hero .nova-hero-content h1,
  .smart-hero #heroTitleDisplay {
    font-size: clamp(44px, 13vw, 62px) !important;
  }

  .smart-hero .nova-hero-visual {
    display: block !important;
    order: 2 !important;
  }

  .smart-hero .hero-main-card,
  .hero-product-link {
    min-height: 320px !important;
    height: 320px !important;
  }

  .smart-hero .hero-main-card img,
  .smart-hero #heroImageDisplay {
    height: 320px !important;
  }

  .smart-hero .hero-floating-badge {
    bottom: 16px !important;
    left: 14px !important;
    width: min(230px, calc(100% - 28px));
  }


  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .use-case-card {
    min-height: 170px;
    padding: 20px;
  }

  .use-case-kicker {
    top: 18px;
    left: 20px;
  }

  .smart-benefits-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .benefit-intro {
    grid-column: 1 / -1;
    padding-bottom: 28px !important;
    border-right: 0 !important;
  }

  .smart-benefits-grid > article {
    padding: 22px !important;
  }

  .smart-editorial-grid {
    grid-template-columns: 1fr;
  }

  .smart-editorial-card {
    min-height: 380px;
  }

  .checkout-summary-section::before,
  .checkout-payment-section::before {
    left: 0;
  }
}

@media (max-width: 520px) {
  .smart-hero .nova-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .smart-hero .nova-hero-actions a {
    justify-content: center;
    padding-inline: 12px !important;
    font-size: 9px !important;
  }

  .hero-stats {
    gap: 5px !important;
  }

  .hero-stat strong {
    font-size: 14px !important;
  }

  .use-case-grid {
    grid-template-columns: 1fr !important;
  }

  .use-case-card {
    min-height: 155px;
  }

  .smart-benefits-grid {
    grid-template-columns: 1fr !important;
  }

  .smart-benefits-grid > article {
    border-right: 0 !important;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .smart-editorial-card {
    min-height: 430px;
    padding: 28px 24px;
    align-items: flex-start;
  }

  .smart-editorial-copy {
    width: 78%;
    justify-content: flex-start;
  }

  .smart-editorial-copy h2 {
    font-size: 42px;
  }

  .smart-editorial-card > img {
    right: -10%;
    bottom: -3%;
    width: 72%;
  }

  .product-horizontal-rail.compact-static-rail {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }

  .smart-hero-changing #heroImageDisplay,
  .product-horizontal-rail > .continuous-product-track {
    animation: none !important;
  }
}
