/* ============================================
   CLOPEN V2 - Full-Width Immersive Design
   Transparent Header + Mega Menu + Cinematic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* === Tokens === */
:root {
  --dark: #0a0a0a;
  --dark-90: #141414;
  --dark-80: #1a1a1a;
  --dark-70: #222;
  --dark-60: #333;
  --surface: #fafafa;
  --surface-alt: #f0f0f0;
  --white: #ffffff;
  --accent: #00a6ff;
  --accent-dim: rgba(0,166,255,0.12);
  --accent-hover: #33bbff;
  --warm: #ff6b35;
  --text: #0a0a0a;
  --text-mid: #555;
  --text-light: #888;
  --text-inv: #f5f5f5;
  --text-inv-mid: rgba(255,255,255,0.6);
  --border: #e0e0e0;
  --border-dark: rgba(255,255,255,0.1);

  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 80px;
  --max-w: 1320px;
  --radius: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* === Typography === */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-desc {
  color: var(--text-mid);
  font-size: 1.15rem;
  max-width: 520px;
  line-height: 1.75;
}

/* === Header - Transparent to Solid === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: all 0.5s var(--ease);
}

/* Transparent state (default on hero pages) */
.header--transparent {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header--transparent .logo-dark { display: none; }
.header--transparent .logo-light { display: block; }
.header--transparent .nav-link { color: rgba(255,255,255,0.8); }
.header--transparent .nav-link:hover { color: white; }
.header--transparent .header-cta { border-color: rgba(255,255,255,0.3); color: white; }
.header--transparent .header-cta:hover { background: white; color: var(--dark); border-color: white; }
.header--transparent .hamburger span { background: white; }
.header--transparent .lang-btn { color: rgba(255,255,255,0.5); }
.header--transparent .lang-btn.active { color: white; }

/* Solid state (on scroll or inner pages) */
.header--solid {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.header--solid .nav-link { color: var(--text-mid); }
.header--solid .nav-link:hover { color: var(--dark); }
.header--solid .header-cta { border-color: var(--dark); color: var(--dark); }
.header--solid .header-cta:hover { background: var(--dark); color: white; }
.header--solid .lang-btn { color: var(--text-light); }
.header--solid .lang-btn.active { color: var(--dark); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 40px; transition: opacity 0.3s; }
.logo-light { display: none; }
.logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-link:hover .nav-icon, .nav-link.active .nav-icon {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-1px);
}
.mobile-nav-inner a { display: inline-flex; align-items: center; gap: 12px; }
.mobile-nav-inner .nav-icon { width: 20px; height: 20px; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  gap: 2px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-btn .flag { width: 18px; height: 12px; flex-shrink: 0; border-radius: 1px; }

.header-cta {
  padding: 10px 24px;
  border: 1.5px solid;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
}

/* === Mega Menu === */
.mega-trigger { position: relative; }
.mega-trigger .nav-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s;
}
.mega-trigger:hover .nav-arrow { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: var(--header-h);
  left: 50%;
  width: min(960px, calc(100% - 32px));
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  z-index: 999;
  pointer-events: none;
}
.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s;
}
.mega-menu .mega-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.mega-menu.active .mega-inner { pointer-events: auto; }

.mega-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 32px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 360px;
}

.mega-col { display: flex; flex-direction: column; min-width: 0; }
.mega-col-cats { border-right: 1px solid var(--border); padding-right: 16px; }
.mega-col-subs { padding-left: 24px; }
.mega-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 4px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.mega-cats {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.mega-cat > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.25s var(--ease);
  border-left: 2px solid transparent;
}
.mega-cat-thumb {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: all 0.25s var(--ease);
}
.mega-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.35s var(--ease);
}
.mega-cat-label { flex: 1; }
.mega-cat-arrow {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}
.mega-cat:hover > a,
.mega-cat.is-active > a {
  color: var(--dark);
  background: var(--surface);
  border-left-color: var(--accent);
}
.mega-cat:hover .mega-cat-arrow,
.mega-cat.is-active .mega-cat-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}
.mega-cat:hover .mega-cat-thumb,
.mega-cat.is-active .mega-cat-thumb {
  border-color: var(--accent);
  background: var(--white);
}
.mega-cat:hover .mega-cat-thumb img {
  transform: scale(1.08);
}

.mega-subs {
  position: relative;
  padding: 8px 24px;
}
.mega-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  position: absolute;
  inset: 8px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
  align-content: start;
}
.mega-sub.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-sub li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-radius: 2px;
  transition: all 0.2s var(--ease);
  position: relative;
}
.mega-sub-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: all 0.25s var(--ease);
}
.mega-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.35s var(--ease);
}
.mega-sub li a:hover {
  color: var(--dark);
  background: var(--surface);
}
.mega-sub li a:hover .mega-sub-thumb {
  border-color: var(--accent);
  background: var(--white);
}
.mega-sub li a:hover .mega-sub-thumb img {
  transform: scale(1.1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  background: var(--dark);
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === Mobile Nav === */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 8px;
}
.mobile-nav a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-inv);
  padding: 12px 24px;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent); }

.mobile-mega-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mobile-mega-links a {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--accent);
}
.mobile-mega-links a:hover { color: var(--accent); }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  overflow: hidden;
  padding-bottom: 80px;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  transform: scale(1.05);
}
.hero-slide.is-active {
  opacity: 0.5;
  transform: scale(1);
  transition: opacity 1.2s var(--ease), transform 8s var(--ease);
}
.hero-slide-placeholder {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a2332 50%, #0a0a0a 100%);
}
.hero-slide-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,166,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,166,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.85) 100%),
    linear-gradient(135deg, rgba(0,166,255,0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 36px;
  height: 2px;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.hero-dot:hover { background: rgba(255,255,255,0.5); }
.hero-dot.is-active { background: rgba(255,255,255,0.25); }
.hero-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: dotFill 5s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 768px) {
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 76px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
  max-width: 800px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--text-inv-mid);
  font-size: 1.2rem;
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-fill:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,166,255,0.3); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-line:hover { border-color: white; background: rgba(255,255,255,0.05); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === Stats Band === */
.stats-band {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 0;
}
.stats-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 48px 40px;
  border-right: 1px solid var(--border-dark);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-inv-mid);
  letter-spacing: 0.04em;
}

/* === Products Section === */
.products-section {
  padding: 120px 0 0;
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.products-header-text { max-width: 500px; }
.products-header .section-title { margin-bottom: 12px; }

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.product-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.product-card-bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
}
.product-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.6s var(--ease);
}
.product-card:hover .product-card-bg img {
  opacity: 0.4;
  transform: scale(1.05);
}

.product-card-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}
.product-card-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
  z-index: -1;
}

.product-card-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.product-card h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 8px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.product-card:hover h3 { transform: translateY(0); }

.product-card-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s var(--ease) 0.05s;
  margin-bottom: 16px;
}
.product-card:hover .product-card-desc { opacity: 1; transform: translateY(0); }

.product-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease) 0.1s;
}
.product-card-arrow svg { width: 18px; height: 18px; transition: transform 0.3s; }
.product-card:hover .product-card-arrow { opacity: 1; transform: translateX(0); }
.product-card:hover .product-card-arrow svg { transform: translateX(4px); }

/* === About Section === */
.about-section {
  padding: 120px 0;
  background: var(--surface);
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.about-visual {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.about-slides {
  position: absolute;
  inset: 0;
}
.about-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s var(--ease);
  transform: scale(1.04);
}
.about-slide.is-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1s var(--ease), transform 8s var(--ease);
}
.about-slide-placeholder {
  background: linear-gradient(135deg, #0a1828 0%, #1a3554 50%, #0a1828 100%);
}
.about-slide-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,166,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,166,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,166,255,0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.about-dots {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.about-dot {
  width: 28px;
  height: 2px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.about-dot:hover { background: rgba(255,255,255,0.55); }
.about-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: dotFill 5s linear forwards;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: var(--white);
}
.about-text .section-desc { margin-bottom: 36px; }
.about-text .btn-dark { align-self: flex-start; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.trust-tag {
  padding: 6px 16px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  transition: all 0.3s;
}
.trust-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--dark);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-dark:hover { background: var(--dark-80); transform: translateY(-2px); }

/* === CTA Section === */
.cta-section {
  padding: 120px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-section h2 { color: white; margin-bottom: 16px; position: relative; }
.cta-section .section-desc {
  color: var(--text-inv-mid);
  margin: 0 auto 40px;
  text-align: center;
}
.cta-btns { display: flex; justify-content: center; gap: 16px; position: relative; }

/* === Footer === */
.footer {
  background: var(--dark-90);
  color: var(--text-inv-mid);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand .logo-img { height: 36px; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 20px; font-size: 0.9rem; line-height: 1.8; }

.footer h4 {
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer li { margin-bottom: 12px; }
.footer li a {
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer li a:hover { color: white; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}
.footer-contact-item span { font-size: 0.9rem; }

.footer-bottom {
  padding: 24px 0;
  font-size: 0.78rem;
  color: var(--text-inv-mid);
}

/* === Page Header (Inner Pages) === */
.page-hero {
  min-height: 360px;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.page-hero-bg-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.3;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%),
    linear-gradient(135deg, rgba(0,166,255,0.08) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-family: var(--mono);
}
.page-hero .breadcrumb a { color: var(--text-inv-mid); transition: color 0.3s; }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb .sep { color: var(--text-inv-mid); }
.page-hero .breadcrumb .current { color: var(--accent); }

.page-hero h1 { color: white; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 10px; }

/* Subcategory Grid (product detail pages) */
.subcat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 80px;
}
.subcat-card {
  flex: 0 1 calc(25% - 15px);
  max-width: calc(25% - 15px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
}
@media (max-width: 1100px) { .subcat-card { flex-basis: calc(33.333% - 14px); max-width: calc(33.333% - 14px); } }
@media (max-width: 760px)  { .subcat-card { flex-basis: calc(50% - 10px); max-width: calc(50% - 10px); min-width: 0; } }
@media (max-width: 480px)  { .subcat-card { flex-basis: 100%; max-width: 100%; } }
.subcat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 2;
}
.subcat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.subcat-card:hover::before { transform: scaleX(1); }
.subcat-card-img {
  aspect-ratio: 4/3;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.subcat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.5s var(--ease);
}
.subcat-card:hover .subcat-card-img img { transform: scale(1.08); }
.subcat-card h4 {
  padding: 16px 18px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  border-top: 1px solid var(--border);
}

/* === CATEGORY PAGE LAYOUT (e.g. ATEX as category with variants) === */
.category-page { padding: 40px 0 80px; background: #fafbfc; }
/* Override generic .product-detail .container 2-col grid for category pages */
.category-page > .container {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

/* 2-col layout: main + sticky sidebar */
.cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}
@media (max-width: 1024px) { .cat-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } }
@media (max-width: 900px)  { .cat-layout { grid-template-columns: 1fr; gap: 28px; } }

.cat-main { min-width: 0; }
.cat-sidebar { position: sticky; top: 110px; }
@media (max-width: 900px) { .cat-sidebar { position: static; } }

/* Header (left-aligned now, inside main) */
.cat-header {
  text-align: left;
  max-width: none;
  margin: 0 0 28px;
}
.cat-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cat-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--dark);
}
.cat-lead {
  color: var(--text-mid);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

/* Spec sidebar card — compact single-column for sidebar use */
.cat-spec-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 22px 22px 10px;
  box-shadow: 0 6px 24px rgba(15,23,42,0.04);
}

.cat-spec-card-head {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-spec-card-head::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}
.cat-spec-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0;
}

.cat-spec-list {
  display: flex;
  flex-direction: column;
}
.cat-spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f1f4;
}
.cat-spec-row:last-child { border-bottom: none; }
.cat-spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.cat-spec-value {
  font-size: 0.86rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.5;
}

/* === HUB PAGE (subcategory selector e.g. ball-threaded.php) === */
.hub-header {
  text-align: center;
  max-width: 760px;
  margin: 32px auto 40px;
}
.hub-header .cat-eyebrow { margin-bottom: 12px; }
.hub-header .cat-title { margin: 0 0 14px; }
.hub-header .cat-lead { margin: 0; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr; gap: 20px; } }

.hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.hub-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 38px rgba(15,23,42,0.10);
}
.hub-card-img {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #fbfbfc 0%, #eef0f3 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hub-card-img img {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(15,23,42,0.10));
  transition: transform .4s var(--ease);
}
.hub-card:hover .hub-card-img img { transform: scale(1.06); }
.hub-card-body {
  padding: 24px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.hub-card-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.02em;
  transition: gap .25s var(--ease);
}
.hub-card:hover .hub-card-cta { gap: 12px; }
.hub-card-cta svg { transition: transform .25s var(--ease); }
.hub-card:hover .hub-card-cta svg { transform: translateX(2px); }

/* Subcategory blocks (e.g. 1pc / 2pc / 3pc within a category page) */
.subcat-block { margin: 0 0 36px; scroll-margin-top: 110px; }
.subcat-block:last-of-type { margin-bottom: 0; }
.subcat-block-head {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.03);
}
.subcat-block-title {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.subcat-block-lead {
  font-size: 0.86rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.55;
}

/* Sidebar quick-jump nav (under spec card) */
.cat-spec-nav {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
}
.cat-spec-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0 0 8px;
}
.cat-spec-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-spec-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 0.84rem;
  color: var(--text-mid);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all .2s var(--ease);
}
.cat-spec-nav a:hover {
  color: var(--dark);
  background: #f7f8fa;
  border-left-color: var(--accent);
}

/* Section divider for "Ürün Çeşitleri" — left-aligned now */
.variant-section { margin: 0; }
.section-divider {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-divider h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e5ea;
}

/* Variant cards */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) { .variant-grid { gap: 16px; } }
@media (max-width: 700px)  { .variant-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px)  { .variant-grid { grid-template-columns: 1fr; } }

.variant-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.variant-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(15,23,42,0.10);
}

.variant-card-img {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #fbfbfc 0%, #eef0f3 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.variant-card-img img {
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,0.10));
  transition: transform .4s var(--ease);
}
.variant-card:hover .variant-card-img img { transform: scale(1.06); }

.variant-card-body {
  padding: 20px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.variant-card-num {
  position: absolute;
  top: -14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(15,23,42,0.16);
  z-index: 2;
}
.variant-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--dark);
  margin: 0 0 4px;
  line-height: 1.4;
}
.variant-card-desc {
  font-size: 0.86rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
  white-space: pre-line;
}

/* CTA bar — directly under variants */
.category-cta {
  margin-top: 28px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(15,23,42,0.04);
}
.category-cta-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin: 0;
  flex: 1 1 280px;
}
.category-cta .product-cta { margin: 0; }

/* Make variant cards clearly clickable */
.variant-card { cursor: zoom-in; }
.variant-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* === Variant Modal === */
.variant-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: vm-fade .2s ease-out;
}
.variant-modal[hidden] { display: none; }
@keyframes vm-fade { from { opacity: 0; } to { opacity: 1; } }
.variant-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.variant-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  animation: vm-pop .25s var(--ease);
}
@keyframes vm-pop {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@media (max-width: 720px) {
  .variant-modal-dialog { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
}
.variant-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 0;
}
.variant-modal-close:hover { background: var(--accent); color: #fff; }
.variant-modal-close:active { transform: scale(0.92); }
.variant-modal-img {
  background: linear-gradient(160deg, #fbfbfc 0%, #eef0f3 100%);
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 32px;
}
@media (max-width: 720px) { .variant-modal-img { min-height: 260px; padding: 24px; } }
.variant-modal-img img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(15,23,42,0.16));
}
.variant-modal-body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 720px) { .variant-modal-body { padding: 24px 24px 28px; } }
.variant-modal-body h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.variant-modal-body p {
  font-size: 0.98rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.65;
  white-space: pre-line;
}
body.modal-open { overflow: hidden; }

/* === PRODUCT DETAIL — REDESIGNED === */
.product-page-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 48px;
  box-shadow: 0 6px 32px rgba(15, 23, 42, 0.05);
}
@media (max-width: 1024px) { .product-page-layout { padding: 36px; gap: 40px; } }
@media (max-width: 900px)  { .product-page-layout { grid-template-columns: 1fr; padding: 24px; gap: 32px; border-radius: 14px; } }

.product-gallery { position: sticky; top: 110px; }
@media (max-width: 900px) { .product-gallery { position: static; } }

/* --- Main image stage --- */
.gallery-main {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #fbfbfc 0%, #eef0f3 100%);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  user-select: none;
}
.gallery-main img {
  max-width: 84%;
  max-height: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
  filter: drop-shadow(0 8px 18px rgba(15,23,42,0.08));
}
.gallery-main:hover img { transform: scale(1.04); }

/* --- Nav arrows (subtle, appear on hover desktop, always visible mobile) --- */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--dark);
  transition: opacity .25s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
  z-index: 2;
  padding: 0;
  opacity: 0;
}
.gallery-main:hover .gallery-nav,
.gallery-nav:focus-visible { opacity: 1; }
.gallery-nav:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(15,23,42,0.22);
}
.gallery-nav:active { transform: translateY(-50%) scale(0.92); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
@media (max-width: 900px) { .gallery-nav { opacity: 1; } }
@media (max-width: 540px) {
  .gallery-nav { width: 38px; height: 38px; }
  .gallery-prev { left: 10px; } .gallery-next { right: 10px; }
}

/* --- Counter badge (centered bottom) --- */
.gallery-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15,23,42,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.06em;
  z-index: 2;
  pointer-events: none;
}

/* --- Per-image caption (under main image, above thumbs) --- */
.image-caption {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid #ececec;
  border-radius: 10px;
  transition: opacity .25s var(--ease);
}
.image-caption[hidden] { display: none; }
.image-caption-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  line-height: 1.35;
}
.image-caption-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.55;
}
.image-caption:empty,
.image-caption-title:empty,
.image-caption-desc:empty { display: none; }

/* --- Thumbnail strip --- */
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 4px 2px;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  background: #f7f8fa;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), opacity .2s var(--ease);
  opacity: 0.7;
}
.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-thumb:hover {
  opacity: 1;
  background: #fff;
  border-color: #d8dde4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.gallery-thumb.is-active {
  opacity: 1;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(15,23,42,0.10);
}
@media (max-width: 540px) {
  .gallery-thumb { width: 56px; height: 56px; padding: 5px; border-radius: 8px; }
  .gallery-thumbs { gap: 8px; }
}

/* --- Product info --- */
.product-info { padding-top: 4px; }
.product-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.product-info h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--dark);
}
.product-info .product-lead {
  color: var(--text-mid);
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 14px 18px;
  background: #f7f8fa;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

/* Spec list — modern table look */
.product-info .specs-table {
  width: 100%;
  margin: 0 0 32px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.product-info .specs-table tr { transition: background .15s ease; }
.product-info .specs-table tr:nth-child(even) { background: #fafbfc; }
.product-info .specs-table tr:hover { background: #f3f5f8; }
.product-info .specs-table th,
.product-info .specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f1f4;
  vertical-align: top;
}
.product-info .specs-table tr:last-child th,
.product-info .specs-table tr:last-child td { border-bottom: none; }
.product-info .specs-table th {
  text-align: left;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 44%;
}
.product-info .specs-table td {
  font-size: 0.93rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 540px) {
  .product-info .specs-table th,
  .product-info .specs-table td { padding: 12px 14px; }
  .product-info .specs-table th { font-size: 0.7rem; }
  .product-info .specs-table td { font-size: 0.88rem; }
}

.product-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.88rem;
  transition: color 0.3s;
}
.product-back:hover { color: var(--accent); }
.product-back svg { width: 16px; height: 16px; }
.page-hero p { color: var(--text-inv-mid); font-size: 1.1rem; max-width: 560px; }

/* === Products Page === */
.products-page { padding: 80px 0; }

.product-category-block {
  margin-bottom: 72px;
}
.product-category-block h2 {
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-category-block h2::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}
.product-category-block > p { color: var(--text-mid); margin-bottom: 28px; font-size: 1.05rem; }

.category-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.category-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.category-images img:hover { border-color: var(--accent); }

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-list-card {
  display: block;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-list-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.product-list-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.product-list-card:hover::before { transform: scaleY(1); }

.product-list-card .card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-list-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-list-card h4 { font-size: 1rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.product-list-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 12px; line-height: 1.5; }
.product-list-card .tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-right: 4px;
}

/* === Product Detail === */
.product-detail { padding: 48px 0 80px; }
/* Content breadcrumb (light bg) */
.product-detail .breadcrumb,
.products-page .breadcrumb,
.about-page .breadcrumb,
.contact-page .breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  font-family: var(--mono);
}
.product-detail .breadcrumb a,
.products-page .breadcrumb a,
.about-page .breadcrumb a,
.contact-page .breadcrumb a { color: var(--text-light); transition: color 0.3s; }
.product-detail .breadcrumb a:hover,
.products-page .breadcrumb a:hover,
.about-page .breadcrumb a:hover,
.contact-page .breadcrumb a:hover { color: var(--dark); }
.product-detail .breadcrumb .sep,
.products-page .breadcrumb .sep,
.about-page .breadcrumb .sep,
.contact-page .breadcrumb .sep { color: var(--text-light); }
.product-detail .breadcrumb .current,
.products-page .breadcrumb .current,
.about-page .breadcrumb .current,
.contact-page .breadcrumb .current { color: var(--accent); }
.product-detail .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
}

.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-detail .container .breadcrumb,
.product-detail .container .section-label,
.product-detail .container .subcat-grid,
.product-detail .container .product-page-layout {
  grid-column: 1 / -1;
}

.sub-product {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.sub-product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.sub-product:hover { border-color: var(--accent); }
.sub-product:hover::before { transform: scaleY(1); }

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.product-gallery img:hover { border-color: var(--accent); }

.sub-product h3 {
  margin-bottom: 24px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-product-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.sub-product-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.sub-product-images img:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table th, .specs-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.specs-table th {
  background: var(--surface);
  font-weight: 600;
  width: 220px;
  color: var(--dark);
}
.specs-table tr:hover td { background: var(--accent-dim); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

.specs-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--mono);
}

/* === About Page === */
.about-page { padding: 80px 0; }
.about-page-body { max-width: 760px; margin: 0 auto; }
.about-page-body p { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.85; }
.about-page-body h2 { margin-top: 56px; margin-bottom: 16px; }

.about-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.18), transparent);
  margin: 56px 0 8px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  margin: 40px 0;
}
.value-card {
  padding: 40px 32px;
  background: var(--white);
  text-align: center;
  transition: background 0.3s;
}
.value-card:hover { background: var(--surface); }
.value-card svg { margin: 0 auto 16px; }
.value-card h4 { margin-bottom: 8px; font-size: 1rem; }
.value-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

.standards-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.std-badge {
  padding: 8px 18px;
  background: var(--dark);
  color: white;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* About page stats */
.about-page .stats-band {
  border-radius: 0;
  margin: 48px -40px;
  width: calc(100% + 80px);
}

/* === Contact Page === */
.contact-page { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.contact-form {
  padding: 48px;
  background: var(--white);
}
.contact-form h3 { margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--surface);
  transition: all 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info {
  padding: 48px;
  background: var(--dark);
  color: var(--text-inv);
}
.contact-info h3 { color: white; margin-bottom: 28px; }

.contact-cards { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-dark);
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card .ico {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card .ico svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; }
.contact-card h4 { font-size: 0.88rem; margin-bottom: 4px; color: white; }
.contact-card p { color: var(--text-inv-mid); font-size: 0.85rem; }

.map-wrap {
  overflow: hidden;
  border: 1px solid var(--border-dark);
  height: 220px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1); transition: filter 0.3s; }
.map-wrap:hover iframe { filter: none; }

/* === Scroll Animations === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.lightbox-close:hover { border-color: #fff; }

/* === Responsive === */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }

  .hero h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
  .stat-item { padding: 36px 24px; }

  .product-showcase { grid-template-columns: 1fr; }
  .product-card { aspect-ratio: 16/8; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 16/9; }
  .about-text { padding: 48px 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .mega-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-links, .header-cta, .mega-menu { display: none; }
  .hamburger { display: block; }
  .mobile-nav { display: block; }

  .hero { min-height: 100svh; padding-bottom: 60px; }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-fill, .btn-line { width: 100%; justify-content: center; }

  .stats-band-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 20px; }
  .stat-num { font-size: 2.2rem; }

  .products-section { padding: 80px 0; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .page-hero { min-height: 280px; }

  .product-list { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 1fr; gap: 16px; }
  .category-images { grid-template-columns: 1fr; gap: 16px; }
  .product-detail .container { grid-template-columns: 1fr; }
  .sub-product { padding: 24px 20px; }
  .sub-product-images { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-band-inner { grid-template-columns: 1fr; }
  .stat-item { padding: 24px 16px; border-right: none; border-bottom: 1px solid var(--border-dark); }
  .stat-item:last-child { border-bottom: none; }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* === Leaf showcase (single product image + body, used by leaf-simple pages) === */
.leaf-showcase {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 28px;
  align-items: center;
  margin: 24px 0 28px;
}
@media (max-width: 760px) {
  .leaf-showcase { grid-template-columns: 1fr; }
}
.leaf-showcase-img {
  min-height: 280px;
  background: linear-gradient(160deg, #fbfbfc 0%, #eef0f3 100%);
  border: 1px solid #ececec;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
}
.leaf-showcase-img img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(15,23,42,0.10));
}
.leaf-showcase-body p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-mid);
  white-space: pre-line;
}
