@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

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

:root {
  --bg: #0b0b0b;
  --bg-2: #111;
  --ink: #f3f3f3;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, .12);
  --accent: #67d04e;
  --accent-2: #3aa028;

  --pure-bg: #0b0b0b;
  --pure-text: #ffffff;
  --always-white: #ffffff;
  --rgba-line: rgba(255, 255, 255, 0.1);
  --rgba-hover: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(10, 10, 10, 0.95);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
  --thumb-bg: rgba(255, 255, 255, 0.2);
  --track-bg: rgba(0, 0, 0, 0.2);
  --nav-text: #ffffff;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #3aa028;
  /* darker green for contrast */
  --accent-2: #2d7a1e;

  --pure-bg: #ffffff;
  --pure-text: #111111;
  --rgba-line: rgba(0, 0, 0, 0.1);
  --rgba-hover: rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.98);
  --card-bg: rgba(0, 0, 0, 0.03);
  --card-hover: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.1);
  --thumb-bg: rgba(0, 0, 0, 0.2);
  --track-bg: rgba(0, 0, 0, 0.05);
  --nav-text: #ffffff;
}

:root[data-theme="light"] .topbar.solid {
  --nav-text: #111111;
  background: rgba(255, 255, 255, 0.90);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Google Sans Flex", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: visible;
}

body {
  overflow-y: scroll;
}

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

p {
  padding-bottom: 15px;
}

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

/* ====== Header (transparent, fixed over hero) ====== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent
}

.topbar.solid {
  background: rgba(11, 11, 11, .85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line)
}

.topbar nav .pull-right svg {
  fill: var(--nav-text);
}

h2, h3{
  font-weight: 500;
}

.util {
  font-size: 12px;
  color: var(--nav-text);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

:root[data-theme="light"] .topbar.solid .util {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.util-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.util a {
  opacity: .85
}

.util a:hover {
  color: var(--accent)
}

.nav {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.logo {
  font-family: "Google Sans Flex", sans-serif;;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--nav-text)
}

.logo span {
  color: var(--accent)
}

.pull-right{
      display: flex;
    }

.pull-right a{
  padding-left: 10px;
  
}

.menu {
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  align-items: center;
}

.menu a {
  position: relative;
  padding: 4px 15px;
  color: var(--nav-text)
}

.menu a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease
}

.menu a:hover:after {
  transform: scaleX(1)
}

/* --- Mega Menu Styles --- */
.has-dropdown {
  /* padding to increase hover area */
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.caret {
  font-size: 10px;
  vertical-align: middle;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 28px;
  right: 28px;
  background: var(--pure-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 1000;
  box-shadow: 0 10px 40px var(--shadow);
  display: flex;
  flex-direction: column;
}

@media (min-width: 961px) {
  .has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.has-dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  display: flex;
  height: 600px;
  max-height: 80vh;
  position: relative;
}

.scroll-indicator-wrapper {
  position: absolute;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg) 10%, transparent 100%);
  pointer-events: none;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 16px;
  transition: opacity 0.3s ease;
}

.scroll-indicator-wrapper.hidden {
  opacity: 0;
}

.scroll-indicator-left {
  left: 0;
  width: 250px;
  border-right: 1px solid var(--border-light);
  /* match mega-tabs border */
}

.scroll-indicator-right {
  left: 250px;
  right: 0;
}

.scroll-indicator {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite ease-in-out;
  font-weight: 500;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.mega-tabs {
  width: 250px;
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
  padding: 16px 0;
}

.mega-tabs::-webkit-scrollbar {
  width: 4px;
}

.mega-tabs::-webkit-scrollbar-thumb {
  background: var(--rgba-line);
  border-radius: 4px;
}

.mega-tab {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Google Sans Flex", sans-serif;
  font-size: 13px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-tab:hover {
  color: var(--pure-text);
  background: var(--card-bg);
}

.mega-tab.active {
  color: var(--accent);
  background: var(--rgba-hover);
  font-weight: 500;
}

.mega-panels {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  position: relative;
  /* subtle inset shadow to indicate scrollability */
  box-shadow: inset 0 -15px 15px -15px var(--shadow);
}

.mega-panels::-webkit-scrollbar {
  width: 6px;
}

.mega-panels::-webkit-scrollbar-track {
  background: var(--track-bg);
}

.mega-panels::-webkit-scrollbar-thumb {
  background: var(--thumb-bg);
  border-radius: 4px;
}

.mega-panel-header {
  position: sticky;
  top: -24px;
  /* matches padding of mega-panels */
  background: var(--pure-bg);
  padding: 12px 0 8px 0;
  margin-top: -24px;
  margin-bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rgba-line);
  height: 40px;
  box-sizing: border-box;
}

.mega-panel-title {
  font-family: "Google Sans Flex", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mega-panel-header .view-all-btn {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}

.mega-panel-header .view-all-btn:hover {
  text-decoration: underline;
}

.mega-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.mega-panel.active {
  display: block;
}

.subcategory-section {
  margin-bottom: 32px;
}

.subcategory-section:last-child {
  margin-bottom: 0;
}

.subcategory-header {
  position: sticky;
  top: 16px;
  /* Sits right beneath the 40px tall mega-panel-header starting at -24px */
  background: var(--pure-bg);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 -24px 12px -24px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--rgba-hover);
}

.subcategory-header h5 {
  font-family: "Google Sans Flex", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--pure-text);
  margin: 0;
}

.subcategory-header .view-all-link {
  display: none;
  /* removed per user request */
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.subcategory-header .view-all-link:hover {
  text-decoration: underline;
}

.subcategory-products-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}

.mega-product-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  background: #111;
  aspect-ratio: 1/1;
  transition: transform 0.2s;
}

.mega-product-card:hover {
  transform: translateY(-3px);
}

.mega-product-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mega-product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8));
}

.mega-product-code {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 10px;
  color: var(--pure-text);
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 2;
}

.view-all-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--pure-bg);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 12px;
  transition: all 0.2s;
  aspect-ratio: 1/1;
  font-weight: 500;
}

.view-all-card:hover {
  background: var(--pure-text);
  border-color: var(--pure-text);
  transform: translateY(-3px);
  color: var(--pure-bg);
}

.view-all-card svg {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
  stroke: currentColor;
}

.mega-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--track-bg);
  text-align: right;
}

.mega-footer a {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.mega-footer a:after {
  display: none;
}

.mega-footer a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}





.cta {
   color: var(--nav-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: all .3s;
  border-radius: 4px;
  position: relative;
}

.cta span.count{  
  position: absolute;
  top: -6px;
  right: -6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--pure-bg);
  font-size: 10px;
  width: 18px;
  height: 18px;
  padding: 1px 7px;
}
/*
.cta {
  padding: 8px 16px;
  border: 1px solid var(--nav-text);
  color: var(--nav-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: all .3s;
  border-radius: 4px;
}*/


a.cta:after {
  height: 0
}

.burger {
  display: none;
  width: 28px;
  height: 18px;
  position: relative;
  cursor: pointer;
  margin-left: 15px;
}

.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nav-text)
}

.burger span:nth-child(1) {
  top: 0
}

.burger span:nth-child(2) {
  top: 8px
}

.burger span:nth-child(3) {
  top: 16px
}

/* ====== Hero slider (sticky parallax) ====== */
.hero {
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  z-index: 1
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  background-size: cover;
  background-position: center
}

.slide.active {
  opacity: 1
}

.slide::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(var(--z, 1)) translate3d(0, var(--ty, 0), 0);
  transition: transform .1s linear;
  z-index: 0
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 35%, rgba(0, 0, 0, .75) 100%);
  pointer-events: none;
  z-index: 1
}

.slide-inner {
  z-index: 2
}

.slide .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  transform: scale(var(--z, 1)) translate3d(0, var(--ty, 0), 0);
  transition: transform .1s linear
}

.slide.has-video::before {
  display: none
}

@keyframes kenburns {
  0% {
    transform: scale(1.05) translate3d(0, var(--ty, 0), 0)
  }

  100% {
    transform: scale(1.4) translate3d(0, var(--ty, 0), 0)
  }
}

.slide.active::before {
  animation: kenburns 22s ease-out both
}

.slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8% 14vh;
  z-index: 2;
  color: var(--always-white)
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s .3s ease
}

.slide.active .eyebrow {
  opacity: 1;
  transform: none
}

.slide-title {
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.02;
  max-width: 1100px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.1s .45s ease
}

.slide.active .slide-title {
  opacity: 1;
  transform: none
}

.slide-sub {
  margin-top: 22px;
  max-width: 560px;
  color: #dadada;
  font-size: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.1s .65s ease
}

.slide.active .slide-sub {
  opacity: 1;
  transform: none
}

.slide-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.1s .85s ease
}

.slide.active .slide-actions {
  opacity: 1;
  transform: none
}

.slide-actions .btn:not(.primary) {
  color: var(--always-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.slide-actions .btn:not(.primary):hover {
  background: var(--always-white);
  color: #111111;
  border-color: var(--always-white);
}

.btn {
  padding: 14px 28px;
  font-size: 13px;
  text-transform: uppercase;
  border: 1px solid var(--accent-2);
  color: var(--pure-text);
  transition: all .3s;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pure-bg)
}

.btn:hover {
  background: var(--accent);
  color: var(--always-white);
  border-color: var(--accent)
}

.btn.primary:hover {
  background: var(--pure-text)
}

/* slider controls  */
.slider-ctrl {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6vh;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 3;
  color: var(--always-white);
}

.lines {
  display: flex;
  gap: 16px;
  flex: 1
}

.line {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  overflow: hidden
}

.line .fill {
  position: absolute;
  inset: 0;
  background: var(--always-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s linear
}

.line.active .fill {
  transform: scaleX(var(--p, 0))
}

.line.done .fill {
  transform: scaleX(1)
}

.pp {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--always-white);
  cursor: pointer;
  transition: all .3s;
  flex-shrink: 0
}

.pp:hover {
  background: var(--always-white);
  color: #111111;
  border-color: var(--always-white);
}

.pp svg {
  width: 14px;
  height: 14px
}

.counter {
  color: var(--always-white);
  font-size: 12px;
  letter-spacing: .2em;
  min-width: 60px;
  text-align: right
}

.counter b {
  font-size: 14px
}

.counter span {
  opacity: .5
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: var(--always-white);
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  opacity: .7;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.scroll-cue .l {
  width: 1px;
  height: 30px;
  background: var(--always-white);
  animation: drop 1.8s ease-in-out infinite
}

@keyframes drop {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  50% {
    transform: scaleY(1);
    transform-origin: top
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom
  }
}

/* --- Page Layout & Breadcrumbs --- */
.product-page-wrapper {
  padding-top: 140px; /* offset for fixed topbar */
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  transition: background 0.4s ease, color 0.4s ease;
}

.breadcrumbs {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  opacity: 0.5;
}

/* ====== Intro / value props ====== */
section {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px
}

.wrap-sm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px
}

.section-pad {
  padding: 140px 0
}

.kicker {
  font-size: 13px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.h2 {
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.01em
}

.lead {
  color: var(--muted);
  max-width: 680px;
  margin-top: 22px;
  font-size: 17px
}

.intro {
  padding: 140px 0 140px;
  text-align: center;
  background: radial-gradient(900px 500px at 85% 10%, rgba(103, 208, 78, .18), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(103, 208, 78, .08), transparent 60%);
}

.audience {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px
}

.audience a {
  padding: 14px 26px;
  border: 1px solid var(--line);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: all .35s;
  color: #ddd
}

.audience a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px)
}

.card-in {
  text-align: center;
  padding: 100px 0 0 0;
  background: var(--bg);
}

/* value grid — pinned scroll storytelling */
.values {
  padding: 0;
  background: var(--bg)
}

.pin-track {
  position: relative;
  height: 320vh
}

.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0
}

.pin-stage .wrap {
  width: 100%
}

.v-head {
  overflow: hidden
}

.v-head .kicker,
.v-head .h2 {
  display: block;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 1.1s cubic-bezier(.22, .61, .36, 1), transform 1.1s cubic-bezier(.22, .61, .36, 1)
}

.v-head.on .kicker {
  opacity: 1;
  transform: none
}

.v-head.on .h2 {
  opacity: 1;
  transform: none;
  transition-delay: .15s
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 60px
}

.value {
  padding: 50px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  transform: translateX(140px);
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1), background .4s
}

.value.on {
  opacity: 1;
  transform: none
}

.value:hover {
  background: #141414
}

.value .n {
  font-family: "Google Sans Flex", sans-serif;;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 30px
}

.value h3 {
  font-family: "Google Sans Flex", sans-serif;;
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 14px
}

.value p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7
}

/* ====== Product marquee (auto scroll R->L, pause on hover) ====== */
.products {
  padding: 100px 0;
  background: var(--bg);
  overflow: hidden
}

.products .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px
}

.products-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}

.products-main {
  min-width: 0;
}

.products-sidebar {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  position: sticky;
  top: 120px;
  width: 100%;
  margin: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-header h3 {
  font-family: "Google Sans Flex", sans-serif;;
  font-size: 22px;
  margin: 0;
}

.close-sidebar {
  display: none;
  background: none;
  border: none;
  color: var(--pure-text);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s;
}

.category-list a:hover,
.category-list a.active {
  color: var(--accent);
}

.mobile-filter-bar {
  display: none;
  margin-bottom: 20px;
}

.products-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.products-filters::-webkit-scrollbar {
  height: 4px;
}

.products-filters::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.filter-pill {
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  color: var(--pure-text);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.compact-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.compact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.compact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.compact-card .img-wrap {
  height: 130px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  display: block;
}

.compact-card .info {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.compact-card h4 {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--pure-text);
  font-weight: 600;
  line-height: 1.3;
}

.compact-card .specs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: auto;
}

.compact-card .specs strong {
  color: var(--pure-text);
  font-weight: 500;
}

.cart-action {
  margin-top: 8px;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  display: block;
}

@media (max-width: 960px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .mobile-filter-bar {
    display: block;
  }

  .products-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 280px;
    z-index: 100;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--line);
    transition: left 0.4s ease;
    padding: 30px;
  }

  .products-sidebar.open {
    left: 0;
  }

  .close-sidebar {
    display: block;
  }
}

/* ====== Projects ====== */
.projects {
  padding: 140px 0;
  background: var(--bg)
}

.projects .grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px
}

.proj {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 380px;
  cursor: pointer;
  border-radius: 4px;
}

.proj img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 1.4s ease;
  opacity: .78
}

.proj:hover img {
  transform: scale(1.07);
  opacity: 1
}

.proj .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px;
  color: var(--always-white);
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.proj .cap small {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent)
}

.proj .cap h3 {
  font-family: "Google Sans Flex", sans-serif;;
  font-weight: 500;
  font-size: 26px;
  margin-top: 8px
}

.project-products {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  opacity: 1;
  transition: all 0.4s ease;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pp-card {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
}

.pp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: static;
  opacity: 1;
  transition: transform 0.3s ease;
}

.pp-card:hover img {
  transform: scale(1.1);
}

.pp-view-all {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
  padding: 4px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.pp-view-all:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.proj.p1 {
  grid-column: span 7;
  min-height: 520px
}

.proj.p2 {
  grid-column: span 5;
  min-height: 520px
}

.proj.p3 {
  grid-column: span 5
}

.proj.p4 {
  grid-column: span 7
}

/* ====== Stats CTA ====== */
.stats {
  padding: 140px 0;
  background: url('../img/bg.jpg') center/cover fixed;
  position: relative;
  color: var(--always-white)
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, .82)
}

.stats .wrap {
  position: relative;
  z-index: 2
}

.stats-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center
}

.stat .num {
  font-family: "Google Sans Flex", sans-serif;;
  font-size: 72px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1
}

.stat .lbl {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ccc
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ====== Footer ====== */
footer {
  background: var(--bg);
  padding: 90px 0 30px;
  border-top: 1px solid var(--line)
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 50px
}

.foot h5 {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pure-text);
  margin-bottom: 22px
}

.foot a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color .3s
}

.foot a:hover {
  color: var(--accent)
}

.foot p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
  line-height: 1.7
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--pure-text)
}

.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000
}

.socials svg {
  width: 14px;
  height: 14px
}

.copy {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 12px;
  letter-spacing: .1em
}

@media (max-width:960px) {

  .menu,
  .util {
    display: none
  }

  .burger {
    display: block
  }

  .value-grid {
    grid-template-columns: 1fr 1fr
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px
  }

  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 40px
  }

  .proj.p1,
  .proj.p2,
  .proj.p3,
  .proj.p4 {
    grid-column: span 12;
    min-height: 340px
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card .img {
    height: 200px
  }

  .slide-inner {
    padding: 0 6% 18vh
  }

  .slider-ctrl {
    left: 6%;
    right: 6%
  }
}

:root {
  --card-height: min(80svmax, 80svh);
  --card-margin: 0;
  --card-top-offset: 2rem;
  --outline-width: 0px;
}

#cards {
  /* Make place at bottom, as items will slide to that position*/
  padding-bottom: calc(var(--numcards) * var(--card-top-offset));
  /* Don't include the --card-margin in padding, as that will affect the scroll-timeline*/
  margin-bottom: var(--card-margin);

}

#card_1 {
  --index: 1;
}

#card_2 {
  --index: 2;
}

#card_3 {
  --index: 3;
}

#card_4 {
  --index: 4;
}

.card-main {
  position: sticky;
  top: 0;
  padding-top: calc(var(--index) * var(--card-top-offset));
}

.card__content {
  min-height: 70svh;
  transform-origin: 50% 0%;
  will-change: transform;
  border-radius: 4px;
}


/** PAGE STYLING **/

#cards {
  list-style: none;
  outline: calc(var(--outline-width) * 10) solid hotpink;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--numcards), var(--card-height));
  gap: calc(var(--card-margin) + calc(var(--card-height) / 3));
  padding-top: 50px;
}

.card-main {
  outline: var(--outline-width) solid lime;
}

.card__content {
  box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.1), 0 1em 2em rgba(0, 0, 0, 0.1);
  background: var(--bg-2);
  overflow: hidden;
  border: 1px solid var(--line);
  ;
  display: grid;
  grid-template-areas: "text img";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;

  align-items: stretch;
  outline: var(--outline-width) solid blue;
}

.card__content>div {
  grid-area: text;
  width: 80%;
  place-self: center;
  text-align: left;

  display: grid;
  gap: 1em;
  place-items: start;
}

.card__content>figure {
  grid-area: img;
  overflow: hidden;
}

.card__content>figure>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main h1 {
  font-weight: 300;
  font-size: 3.5em;
}

main h2 {
  font-weight: 300;
  font-size: 2.5em;
}

main p {
  font-family: sans-serif;
  font-weight: 300;
  line-height: 1.42;
}

main .btn {
  background: rgb(188 87 36);
  color: rgb(255 255 255);
  text-decoration: none;
  display: inline-block;
  padding: 0.5em;
  border-radius: 0.25em;
}

aside {
  width: 50vw;
  margin: 0 auto;
  text-align: left;
}

aside p {
  margin-bottom: 1em;
}

/* Position warning box */
.warning {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  width: max-content;
  text-align: center;
  max-width: 90vw;
  margin: auto;
  z-index: 2;
  font-size: 0.8em;
  color: #333;
}

/*anim*/
@supports (animation-timeline: view()) {
  .card-main {
    --index0: calc(var(--index) - 1);
    /* 0-based index */
    --reverse-index: calc(var(--numcards) - var(--index0));
    /* reverse index */
    --reverse-index0: calc(var(--reverse-index) - 1);
    /* 0-based reverse index */
  }

  @keyframes scale {
    to {
      transform: scale(calc(1.1 - calc(0.1 * var(--reverse-index))));
    }
  }

  #cards {
    --numcards: 4;
    view-timeline-name: --cards-element-scrolls-in-body;
    view-timeline-inset: 20%;
  }

  .card__content {
    --start-range: calc(var(--index0) / var(--numcards) * 80%);
    --end-range: calc((var(--index)) / var(--numcards) * 100%);

    animation: linear scale forwards;
    animation-timeline: --cards-element-scrolls-in-body;
    animation-range: exit-crossing var(--start-range) exit-crossing var(--end-range);
  }
}

.cityscape {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255, 106, 19, .10), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(40, 120, 255, .12), transparent 60%),
    var(--bg);
}

.cityscape .city-intro {
  max-width: 1280px;
  margin: 0 auto 36px;
  padding: 100px 28px 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.cityscape .eyebrow2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.cityscape .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent)
}

.cityscape h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  margin: 14px 0 0;
  letter-spacing: -.02em;
  font-weight: 400;
  font-family: "Google Sans Flex", sans-serif;;
}

.cityscape h2 em {
  font-style: normal;
  color: var(--accent)
}

.cityscape p.lede {
  color: var(--muted);
  max-width: 460px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65
}

.stage {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line) inset;
  background: #000;
}

.stage img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, transparent 25%, transparent 70%, rgba(0, 0, 0, .55) 100%),
    radial-gradient(60% 50% at 50% 60%, transparent 0%, rgba(0, 0, 0, .25) 100%);
}

/* Hotspots */
.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: pointer;
}

.hotspot .dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 21, 21, 0.25), 0 0 18px rgba(0, 0, 0, 0.65);
}

.hotspot .ring,
.hotspot .ring2 {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .7;
  animation: ripple 2.4s ease-out infinite;
}

.hotspot .ring2 {
  animation-delay: 1.2s
}

@keyframes ripple {
  0% {
    transform: scale(.6);
    opacity: .85
  }

  80% {
    transform: scale(2.6);
    opacity: 0
  }

  100% {
    transform: scale(2.6);
    opacity: 0
  }
}

/* Tooltip */
.tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  transform: translate(-50%, 8px);
  width: 170px;
  background: rgba(15, 18, 24, .92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  z-index: 5;
}

:root[data-theme="light"] .tip {
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hotspot:hover .tip,
.hotspot:focus-within .tip {
  opacity: 1;
  transform: translate(-50%, 0)
}

.tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(15, 18, 24, .92);
}

:root[data-theme="light"] .tip::after {
  border-top-color: rgba(255, 255, 255, 0.95);
}

.tip .thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--pure-text) center/contain no-repeat;
  margin-bottom: 10px;
}

.tip .code {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600
}

.tip .name {
  font-size: 13px;
  line-height: 1.35;
  margin: 4px 0 0;
  color: var(--pure-text);
  font-weight: 600
}

:root[data-theme="light"] .tip .name {
  color: #111111;
}

.tip .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px
}

/* Place tooltip above by default; flip below when near top */
.hotspot.bottom .tip {
  bottom: auto;
  top: calc(100% + 18px);
  transform: translate(-50%, -8px)
}

.hotspot.bottom:hover .tip {
  transform: translate(-50%, 0)
}

.hotspot.bottom .tip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(15, 18, 24, .92)
}

:root[data-theme="light"] .hotspot.bottom .tip::after {
  border-bottom-color: rgba(255, 255, 255, 0.95);
}

/* Legend */
.legend {
  max-width: 1280px;
  margin: 22px auto 0;
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--always-white);
  font-size: 13px;
  flex-wrap: wrap;
  position: absolute;
  top: 20px;
  right: 50px;
}

.legend .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02)
}

.legend .pill .ldot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent)
}

.legend .spacer {
  flex: 1
}

.legend .cta {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.legend .cta::after {
  content: "→";
  transition: transform .25s ease
}

.legend .cta:hover::after {
  transform: translateX(4px)
}

@media (max-width:990px) {
  .tip .thumb {
    display: none;
  }
}

@media (max-width:640px) {
  .tip {
    width: 170px
  }
}

/* Theme Toggle Button */
.theme-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.theme-btn:hover {
  opacity: 1;
}

.theme-btn svg {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.theme-btn .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

:root[data-theme="light"] .theme-btn .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

:root[data-theme="light"] .theme-btn .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ==========================================================================
   3-LEVEL RECURSIVE MEGA MENU STYLES
   ========================================================================== */
.mega-menu-inner {
  display: flex;
  height: 600px;
  max-height: 80vh;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
}

.mega-menu-column {
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Sidebar Columns (First, Second, etc.) */
.mega-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

:root[data-theme="light"] .mega-sidebar {
  background: rgba(0, 0, 0, 0.02);
}

.mega-sidebar.level-2 {
  background: rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .mega-sidebar.level-2 {
  background: rgba(0, 0, 0, 0.01);
}

.mega-sidebar-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Google Sans Flex", sans-serif;
  font-size: 13px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.mega-sidebar-btn:hover {
  color: var(--pure-text);
  background: var(--card-bg);
}

.mega-sidebar-btn.active {
  color: var(--accent);
  background: var(--rgba-hover);
  font-weight: 600;
}

.mega-sidebar-btn svg {
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-5px);
}

.mega-sidebar-btn.active svg,
.mega-sidebar-btn:hover svg {
  opacity: 0.5;
  transform: translateX(0);
}

/* Product Area Column (Rightmost panel) */
.mega-products-view {
  flex: 1;
  min-width: 450px;
  padding: 24px;
  background: var(--pure-bg);
}

.mega-products-view::-webkit-scrollbar {
  width: 6px;
}

.mega-products-view::-webkit-scrollbar-track {
  background: var(--track-bg);
}

.mega-products-view::-webkit-scrollbar-thumb {
  background: var(--thumb-bg);
  border-radius: 4px;
}

/* Product Row Container */
.mega-product-row {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.mega-product-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mega-product-row-title {
  font-family: "Google Sans Flex", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--pure-text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mega-product-row-title::after {
  content: "";
  flex-grow: 1;
}

/* Variants Grid & Mini Cards */
.mega-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.mega-variant-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 4px;
  padding: 6px!important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mega-variant-card:hover {
  border-color: var(--accent) !important;
  background: #f9f9f9 !important;
  transform: translateY(-2px);
}

a.mega-variant-card:after{
  height: 0;
}

.mega-variant-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 2px;
  background-color: #ffffff !important;
}

.mega-variant-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Green loading line style */
.mega-variant-img-container.loading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  animation: loading-bar-pulse 1.4s infinite ease-in-out;
}

@keyframes loading-bar-pulse {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }

  50.1% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

.mega-variant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-variant-name {
  font-family: "Google Sans Flex", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #111111 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.mega-variant-specs {
  font-family: "Google Sans Flex", sans-serif;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* View All Buttons & Cards in Mega Menu */
.view-all-range-btn {
  display: block;
  width: 100%;
  padding: 8px!important;
  margin-top: 24px;
  text-align: center;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "Google Sans Flex", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.view-all-range-btn:hover {
  background: var(--accent);
  color: var(--pure-bg);
  transform: translateY(-2px);
}

.view-all-range-btn:after{
  height: 0!important;
}

.view-all-card {
  border-color: rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.view-all-card:hover {
  background: #f9f9f9 !important;
  border-color: var(--accent) !important;
}

.view-all-card-inner{
  display: flex; 
  align-items: center; 
  justify-content: center; 
  height: 100%; 
  text-align: center; 
  gap: 8px;
  flex-direction: row-reverse;
}

.view-all-card-inner svg {
  transition: transform 0.2s ease;
}

.view-all-card:hover .view-all-card-inner svg {
  transform: translateX(4px);
}

/* Mega Menu Collapsible Accordions */
.mega-accordions-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.mega-accordion-group {
  border: none;
  background: #f1f1f1;
  overflow: hidden;
  transition: all 0.25s ease;
}

.mega-direct-products-container{
  padding:10px 15px 0 15px
}

.mega-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-light);
  transition: opacity 0.2s ease;
}

.mega-accordion-header:hover {
  background: transparent;
  opacity: 0.8;
}

.mega-accordion-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.mega-accordion-chevron {
  color: var(--muted);
  transition: transform 0.25s ease;
}

.mega-accordion-content {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease, opacity 0.25s ease;
}

/* Open State */
.mega-accordion-group.open {
  border: none;
  background: transparent;
}

.mega-accordion-group.open .mega-accordion-header {
  background: #f1f1f1;
  border-bottom: 1px solid var(--border-light);
  padding: 5px 15px;
  font-weight: 400;
  font-size: 11px;
}

.mega-accordion-group.open .mega-accordion-title {
  color: var(--ink);
}

.mega-accordion-group.open .mega-accordion-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.mega-accordion-group.open .mega-accordion-content {
  max-height: 2000px;
  padding: 10px 15px;
  opacity: 1;
  overflow-y: auto;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease, opacity 0.25s ease;
}

/* Placeholder Logo, Metadata, and Subfolder Styling */
.mega-variant-img.placeholder-logo {
  object-fit: contain !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  opacity: 0.9 !important;
}

.mega-variant-product {
  font-family: "Google Sans Flex", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1px;
}

.mega-product-subfolder-title {
  font-family: "Google Sans Flex", sans-serif;;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 20px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}

.mega-product-subfolder-container {
  padding-left: 0;
  margin-bottom: 16px;
}
