/* ═══════════════════════════════════════════════
   DUSHANBE CARPETS .TJ
   Apple-inspired Matte Layered 3D Design System
   ═══════════════════════════════════════════════ */

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

:root {
  /* ── Palette ── */
  --bg-primary:     #1a3f3c;
  --bg-secondary:   #213f3d;
  --bg-deep:        #0f2422;
  --bg-surface:     #1e3835;
  --bg-glass:       rgba(26,63,60,0.72);
  --bg-glass-light: rgba(255,255,255,0.045);
  --accent:         #4f8f88;
  --accent-h:       #3e7a73;
  --accent-glow:    rgba(79,143,136,0.18);
  --text-primary:   #f2f4f3;
  --text-secondary: rgba(242,244,243,0.65);
  --text-muted:     rgba(242,244,243,0.35);
  --border:         rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.13);
  --fh: 'Playfair Display', serif;
  --fb: 'Inter', sans-serif;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* ── Matte shadow system (multi-layer, no sharp edges) ── */
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.10);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.22), 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.28), 0 3px 8px rgba(0,0,0,0.14);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.36), 0 8px 20px rgba(0,0,0,0.18);
  --shadow-xl:    0 36px 80px rgba(0,0,0,0.42), 0 14px 30px rgba(0,0,0,0.20);
  --shadow-float: 0 48px 100px rgba(0,0,0,0.48), 0 20px 40px rgba(0,0,0,0.22), 0 6px 12px rgba(0,0,0,0.12);

  /* ── Motion ── */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easeOut:    cubic-bezier(0.16, 1, 0.3, 1);
  --spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth:     cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s var(--smooth);
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: clip;   /* clip (not hidden) so position:sticky works for the scrub hero */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageEnter 0.7s var(--easeOut) both;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

a { color: var(--text-primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 52px; }
.relative  { position: relative; }

/* ── FLOATING WATERMARK ── */
.watermark-logo {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  object-fit: contain;
  filter: brightness(2);
  animation: wmFloat linear infinite;
}
@keyframes wmFloat {
  0%   { opacity: 0;    transform: translateY(0)    rotate(0deg)   scale(1); }
  15%  { opacity: 0.06; }
  50%  { opacity: 0.04; transform: translateY(-18px) rotate(6deg)  scale(1.05); }
  85%  { opacity: 0.06; }
  100% { opacity: 0;    transform: translateY(0)    rotate(0deg)   scale(1); }
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-h), var(--accent), rgba(79,143,136,0.35));
  z-index: 9999;
  transition: width 0.06s linear;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(79,143,136,0.5);
}

/* ── SPLASH SCREEN ── */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(ellipse at 50% 55%, #163832 0%, #07161a 70%, #050e10 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.8s var(--smooth) 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
#splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(79,143,136,0.12) 0%, transparent 70%);
  pointer-events: none;
}
body.has-splash .header,
body.has-splash main,
body.has-splash .footer { opacity: 0; transition: opacity 1s var(--easeOut); }
body.page-revealed .header,
body.page-revealed main,
body.page-revealed .footer { opacity: 1; }
#splash-screen.splash-exit { opacity: 0; pointer-events: none; }
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: splashEnter 1.2s var(--easeOut) 0.1s both;
  transition: transform 0.85s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease 0.05s;
}
#splash-screen.splash-exit .splash-content { transform: translate(-38vw,-44vh) scale(0.14); opacity: 0; }
.splash-logo-img { width: 110px; height: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.55)); }
.splash-logo-text {
  font-family: var(--fb);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-align: center;
  color: #fff;
  line-height: 1.3;
  text-transform: uppercase;
}
.splash-tap {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
  animation: tapPulse 3s ease-in-out infinite 2s;
}
@keyframes splashEnter {
  from { opacity: 0; transform: scale(0.68); filter: blur(12px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}
@keyframes tapPulse {
  0%,100% { opacity: 0.32; } 50% { opacity: 0.72; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--easeOut), transform 0.8s var(--easeOut);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* stagger children inside a revealed container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--easeOut), transform 0.7s var(--easeOut);
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0ms; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:80ms; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:160ms; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:240ms; }

/* ═══════════════════════════════════════════════
   HEADER — Matte Glass
   ═══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
  background: rgba(8,20,18,0.88);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.28);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-image { width: 40px; height: auto; object-fit: contain; }
.logo-text {
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  color: var(--text-secondary);
  transition: color var(--transition);
  opacity: 1;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--easeOut);
}
.nav-links a:hover { color: var(--text-primary); opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-icons { display: flex; gap: 20px; align-items: center; }
.nav-icons svg { width: 19px; height: 19px; cursor: pointer; stroke-width: 1.5; transition: opacity var(--transition); }
.nav-icons svg:hover { opacity: 0.6; }

/* Lang dropdown */
.lang-selector { position: relative; display: flex; align-items: center; cursor: pointer; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(12,30,28,0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: none;
  flex-direction: column;
  min-width: 130px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lang-selector.active .lang-dropdown { display: flex; }
.lang-item { padding: 11px 18px; font-size: 0.84rem; cursor: pointer; transition: background var(--transition); }
.lang-item:hover { background: rgba(255,255,255,0.06); }
.lang-item.active { color: var(--accent); font-weight: 600; }
.nav-phone {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 1;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-phone:hover { color: var(--text-primary); opacity: 1; }

/* ═══════════════════════════════════════════════
   HERO — Layered 3D Parallax
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-bottom: 88px;
  overflow: hidden;
  perspective: 1200px;
}
@supports (height: 100svh) { .hero { height: 100svh; } }

.hero-layer { position: absolute; inset: 0; transform-style: preserve-3d; }

/* BG: pulled back in Z space */
.hero-layer-bg {
  z-index: 0;
  transform: translateZ(-30px) scale(1.08);
  will-change: transform;
}
.hero-layer-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.55s var(--easeOut);
}

/* Ethereal animated wave shadow — brand teal version of the Framer effect */
.hero-ethereal {
  position: absolute;
  inset: 0;
  z-index: 4;            /* above the dark overlay (z2) so the wave is visible, below content (z5) */
  overflow: hidden;
  pointer-events: none;
}
.ethereal-defs { position: absolute; }
.ethereal-distort {
  position: absolute;
  inset: -60px;          /* matches displacement scale so edges stay covered */
  filter: url(#etherealFilter) blur(4px);
  will-change: filter;   /* hint compositor; perf rule: main-thread-budget */
}
.ethereal-shape {
  width: 100%;
  height: 100%;
  /* Brand teal instead of the original grey/black */
  background-color: var(--accent);
  -webkit-mask-image: url('images/fx/ethereal-mask.png');
          mask-image: url('images/fx/ethereal-mask.png');
  -webkit-mask-size: cover;
          mask-size: cover;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  opacity: 0.85;
  mix-blend-mode: screen; /* lets the teal glow blend with the photo */
}
.ethereal-noise {
  position: absolute;
  inset: 0;
  background-image: url('images/fx/noise.png');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* Accessibility — honour reduced-motion: drop the heavy animated filter,
   keep a soft static teal glow so the brand accent still reads. (rule: reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .ethereal-distort { filter: blur(8px); }
  .ethereal-shape   { opacity: 0.4; }
}

/* Mobile — keep the wave but use a smaller displacement inset so it's
   lighter on the GPU while still visibly moving. (rules: performance, input-latency) */
@media (max-width: 640px) {
  .ethereal-distort { inset: -40px; }
  .ethereal-shape   { opacity: 0.7; }
}

/* Mid: subtle depth fog */
.hero-layer-mid {
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(8,22,20,0.80) 0%, transparent 70%),
    radial-gradient(ellipse 70% 35% at 50% -5%,  rgba(8,22,20,0.45) 0%, transparent 75%);
  transform: translateZ(-10px) scale(1.03);
}

/* Overlay: text readability gradient */
.hero-layer-overlay {
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(8,22,20,0.96) 0%,
    rgba(8,22,20,0.55) 30%,
    rgba(8,22,20,0.10) 60%,
    rgba(8,22,20,0.22) 100%
  );
}

/* Depth edges — vignette frame */
.hero-depth-edge { position: absolute; z-index: 3; pointer-events: none; }
.hero-depth-left  { top:0; left:0;  width:140px; height:100%; background: linear-gradient(to right, rgba(8,22,20,0.60) 0%, transparent 100%); }
.hero-depth-right { top:0; right:0; width:140px; height:100%; background: linear-gradient(to left,  rgba(8,22,20,0.60) 0%, transparent 100%); }
.hero-depth-top   { top:0; left:0;  width:100%;  height:160px; background: linear-gradient(to bottom, rgba(8,22,20,0.70) 0%, transparent 100%); }

/* Parallax on mouse */
.hero.parallax-active .hero-layer-bg { transition: transform 0.07s linear; }

/* Diamond arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  cursor: pointer;
}
.hero-arrow.arrow-left  { left: 36px; }
.hero-arrow.arrow-right { right: 36px; }
.arrow-content {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  transition: background var(--transition), border-color var(--transition);
}
.arrow-content svg { transform: rotate(-45deg); }
.hero-arrow:hover .arrow-content { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.25); }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  margin-bottom: 40px;
  padding: 0 28px;
}
.hero-eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}
.hero-title {
  font-family: var(--fh);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.18;
  color: var(--text-primary);
  max-width: 740px;
  margin: 0 auto 36px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}
.hero-cta {
  display: inline-block;
  position: relative;
  padding: 16px 46px;
  background: rgba(79,143,136,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(79,143,136,0.45);
  transition: background var(--transition), transform 0.35s var(--spring), box-shadow var(--transition);
  text-decoration: none;
  opacity: 1;
  box-shadow: 0 4px 24px rgba(79,143,136,0.28), 0 1px 4px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}
.hero-cta:hover {
  background: rgba(79,143,136,0.98);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(79,143,136,0.42), 0 4px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.15);
  opacity: 1;
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--spring);
}
.dot.active  { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 8px rgba(79,143,136,0.6); }
.dot.outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); }

/* ═══════════════════════════════════════════════
   STATS — Floating Matte Tiles
   ═══════════════════════════════════════════════ */
.stats {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.stats-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 60px 52px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}
.stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-glass-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--smooth);
}
.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.stat-num {
  font-family: var(--fh);
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(79,143,136,0.3);
}
.stat-plus { font-family: var(--fh); font-size: 32px; color: var(--accent); vertical-align: super; }
.stat p {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 12px;
}
.stat-divider { width: 1px; height: 56px; background: var(--border); margin: 0 44px; }

/* ═══════════════════════════════════════════════
   SECTION TITLE BADGE
   ═══════════════════════════════════════════════ */
.section-title-wrap { display: flex; justify-content: center; margin-bottom: 64px; }
.section-title-badge {
  display: inline-block;
  border: 1px solid var(--border-strong);
  padding: 10px 32px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.04);
}
.badge-brand { color: var(--accent); }

/* ═══════════════════════════════════════════════
   CATALOG
   ═══════════════════════════════════════════════ */
.catalog { padding: 110px 0; background: var(--bg-primary); }

/* ── Filter Bar — Pill style ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 64px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(12px);
}
.filter {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: 100px;
  transition: color 0.2s, background 0.25s var(--smooth);
}
.filter:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.filter.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 12px rgba(79,143,136,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ── Sub-filter Bar ── */
.sub-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: -48px;
  margin-bottom: 48px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--easeOut), opacity 0.3s ease, margin-top 0.35s var(--easeOut), margin-bottom 0.35s var(--easeOut);
}
.sub-filter-bar.visible {
  max-height: 60px;
  opacity: 1;
  margin-top: -40px;
  margin-bottom: 48px;
}
.sub-filter {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--fb);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  cursor: pointer;
  border-radius: 100px;
  transition: color 0.2s, background 0.25s var(--smooth), border-color 0.25s;
}
.sub-filter:hover { color: var(--text-primary); border-color: var(--border-strong); background: rgba(255,255,255,0.05); }
.sub-filter.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(79,143,136,0.12);
}

/* ── Pagination ── */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--fb);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ── Product Card — Matte depth ── */
.product-card {
  background: var(--bg-surface);
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--smooth), border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xl);
}

/* Shine overlay */
.card-shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .card-shine { opacity: 1; }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--easeOut);
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(79,143,136,0.35);
}

.card-info {
  padding: 16px 18px;
  background: var(--bg-surface);
  transition: background 0.3s;
}
.product-card:hover .card-info { background: var(--bg-deep); }

.card-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.5px;
}
.card-bottom { display: flex; align-items: center; justify-content: space-between; }
.card-meta {
  display: block;
  font-size: 0.66rem;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  margin: -4px 0 10px;
  opacity: 0.85;
}
.card-price {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
}
.card-price .card-total {
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-secondary);
  margin-left: 2px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--spring);
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }

.card-try {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.22s var(--spring);
  flex-shrink: 0;
}
.card-try:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.1); }

.card-order {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--fb);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}
.card-order:hover { color: var(--accent); }
.card-order svg { transition: transform 0.25s var(--spring); }
.card-order:hover svg { transform: translateX(4px); }

/* ═══════════════════════════════════════════════
   ABOUT/CONTACT CTA CARDS
   ═══════════════════════════════════════════════ */
.about-cta-section { padding: 120px 0; background: var(--bg-deep); border-top: 1px solid var(--border); }

.about-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.55s var(--spring), box-shadow 0.55s var(--smooth), border-color 0.35s;
  opacity: 1;
}
.about-cta-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--shadow-float);
  border-color: rgba(79,143,136,0.25);
  opacity: 1;
}
.about-cta-bg { position: absolute; inset: 0; }
.about-cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--easeOut);
}
.about-cta-card:hover .about-cta-bg img { transform: scale(1.06); }
.about-cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,22,20,0.94) 0%, rgba(8,22,20,0.40) 55%, rgba(8,22,20,0.12) 100%);
}
.about-cta-text { position: relative; z-index: 2; padding: 44px 40px; }
.about-cta-text p {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.about-cta-text h3 {
  font-family: var(--fh);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 26px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.btn-outline {
  display: inline-block;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 12px 28px;
  border-radius: 100px;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform 0.3s var(--spring);
  opacity: 1;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.04);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); opacity: 1; }

/* ═══════════════════════════════════════════════
   CONTACT SECTION (inline on index — now removed,
   but kept for contact.html)
   ═══════════════════════════════════════════════ */
.contact-section { padding: 110px 0; background: var(--bg-primary); border-top: 1px solid var(--border); }
.contact-frame-wrapper { position: relative; margin-top: 8px; }
.contact-vector-shape {
  position: absolute;
  top: -40px; right: -30px;
  width: 240px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 2;
}
.contact-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.contact-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-overlay { position: absolute; inset: 0; background: rgba(8,22,20,0.82); backdrop-filter: blur(4px); }
.contact-form {
  position: relative; z-index: 2;
  width: 100%; max-width: 620px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--fb);
  font-size: 0.88rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.09); }
.form-textarea { resize: vertical; min-height: 120px; }
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.35s var(--spring), box-shadow var(--transition);
  text-decoration: none;
  opacity: 1;
  box-shadow: 0 4px 18px rgba(79,143,136,0.28);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(79,143,136,0.38); opacity: 1; }

/* ═══════════════════════════════════════════════
   FOOTER — Matte Deep
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 88px 0 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.9fr 0.9fr;
  gap: 60px;
}
.footer-col h4 {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 26px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-logo-image { width: 36px; height: auto; object-fit: contain; }
.footer-logo-text { font-family: var(--fb); font-size: 0.92rem; font-weight: 700; letter-spacing: 1.5px; line-height: 1.3; }
.footer-contact p { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 7px; line-height: 1.5; }
.payment-title {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 22px; margin-bottom: 14px;
}
.payment-icons-img { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pay-logo {
  height: 22px; object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.3;
  transition: opacity var(--transition), filter var(--transition), transform var(--transition);
}
.pay-logo:hover { opacity: 0.9; transform: scale(1.08); }
.pay-logo[alt="Oriyonbank"] { height: 48px; max-width: 120px; }
.support-links ul, .info-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.support-links a, .info-col a {
  font-size: 0.83rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  opacity: 1;
}
.support-links a:hover, .info-col a:hover { color: var(--text-primary); opacity: 1; }

/* Footer news list */
.footer-news-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-news-list a { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-secondary); transition: color var(--transition); opacity: 1; }
.footer-news-list a:hover { color: var(--text-primary); opacity: 1; }
.footer-news-date { font-size: 0.66rem; color: var(--accent); font-weight: 700; letter-spacing: 1.2px; }

.footer-social-icons { display: flex; gap: 16px; align-items: center; }
.footer-social-icons svg { width: 21px; height: 21px; cursor: pointer; stroke-width: 1.5; color: var(--text-secondary); transition: color var(--transition), transform 0.3s var(--spring); }
.footer-social-icons svg:hover { color: var(--accent); transform: scale(1.15); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 52px; padding-top: 26px; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   NEWS — Matte 3D cards
   ═══════════════════════════════════════════════ */
.news-preview-section { padding: 110px 0; background: var(--bg-deep); border-top: 1px solid var(--border); }
.news-page-section    { padding: 80px 0 110px; }

.news-article {
  margin-bottom: 64px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 4px 4px 0 rgba(79,143,136,0.55), 10px 10px 0 rgba(22,46,44,0.50), 18px 18px 0 rgba(0,0,0,0.32);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--smooth);
}
.news-article:hover {
  transform: translate(-3px,-3px);
  box-shadow: 7px 7px 0 rgba(79,143,136,0.60), 14px 14px 0 rgba(22,46,44,0.55), 22px 22px 0 rgba(0,0,0,0.36);
}
.news-img-slider {
  position: relative;
  width: 55%; max-width: 600px;
  height: 520px;
  overflow: hidden;
  background: var(--bg-deep);
  margin: 0 auto;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.news-img-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-blur-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.52) saturate(1.3);
  transform: scale(1.08);
  z-index: 0;
  transition: background-image 0.35s ease;
}
.news-img-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.news-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(8,22,20,0.35) 100%);
  z-index: 2;
}
.news-article-content { padding: 36px 44px 44px; }
.news-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.news-date {
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(79,143,136,0.30);
}
.news-source-link { color: var(--accent); text-decoration: none; font-size: 0.82rem; font-weight: 500; border-bottom: 1px solid rgba(79,143,136,0.4); transition: opacity 0.2s; opacity: 1; }
.news-source-link:hover { opacity: 0.7; }
.news-title { font-family: var(--fh); font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 600; font-style: italic; line-height: 1.35; color: var(--text-primary); margin: 0 0 16px; }
.news-body { font-size: 0.88rem; line-height: 1.85; color: var(--text-secondary); margin: 0; }
.news-read-more { text-align: center; margin-top: 24px; }

/* ═══════════════════════════════════════════════
   PAGE HERO (about/contact/news pages)
   ═══════════════════════════════════════════════ */
.page-hero {
  padding: 160px 0 84px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(79,143,136,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--fh);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.page-hero p { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase; margin-top: 12px; }

/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */
.about-page-section { padding: 110px 0; background: var(--bg-primary); }
.about-page-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; margin-bottom: 80px;
}
.about-page-grid h3 {
  font-family: var(--fh); font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-style: italic; font-weight: 500; margin-bottom: 26px;
}
.about-page-grid p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 14px; }
.about-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease, transform 0.5s ease; }
.about-visual-badge {
  position: absolute; bottom: 22px; left: 22px;
  background: rgba(8,22,20,0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent);
}
.partners-section { padding: 80px 0 110px; background: var(--bg-deep); border-top: 1px solid var(--border); }
.partners-desc { text-align: center; max-width: 700px; margin: 0 auto 60px; font-size: 0.87rem; color: var(--text-secondary); line-height: 1.85; }
.partners-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 52px; }
.partner-cube-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.partner-name { font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.cube-scene { width: 160px; height: 160px; perspective: 520px; cursor: pointer; position: relative; }
.cube-scene::after {
  content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 12px;
  background: radial-gradient(ellipse, rgba(79,143,136,0.35) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cube { width: 160px; height: 160px; position: relative; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(0.45,0.05,0.55,0.95); will-change: transform; }
.cube-face { position: absolute; width: 160px; height: 160px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xs); box-shadow: inset 0 0 16px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,143,136,0.18); backface-visibility: hidden; }
.cube-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-front  { transform: rotateY(  0deg) translateZ(80px); }
.face-back   { transform: rotateY(180deg) translateZ(80px); }
.face-right  { transform: rotateY( 90deg) translateZ(80px); }
.face-left   { transform: rotateY(-90deg) translateZ(80px); }
.face-top    { transform: rotateX( 90deg) translateZ(80px); }
.face-bottom { transform: rotateX(-90deg) translateZ(80px); }

/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */
.contact-info-section { padding: 110px 0; background: var(--bg-primary); }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info-left { display: flex; flex-direction: column; gap: 36px; }
.contact-info-item { display: flex; gap: 22px; align-items: flex-start; }
.contact-info-item > svg { flex-shrink: 0; width: 21px; height: 21px; stroke: var(--accent); stroke-width: 1.5; margin-top: 3px; }
.contact-info-item h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 8px; }
.contact-info-item p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.75; }
.contact-social-row { display: flex; gap: 16px; margin-top: 12px; }
.contact-social-row svg { width: 21px; height: 21px; stroke-width: 1.5; transition: color var(--transition), transform 0.3s var(--spring); }
.contact-social-row a:hover svg { color: var(--accent); transform: scale(1.12); }
.contact-right-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); border: 1px solid var(--border); transition: opacity 0.4s ease; }
.contact-page-form-section { padding: 80px 0 110px; background: var(--bg-deep); border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════
   HAMBURGER MENU TOGGLE
   ═══════════════════════════════════════════════ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  z-index: 200;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.35s var(--easeOut), opacity 0.25s ease;
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Nav Overlay (backdrop) ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* ── Large tablet (≤1100px) ── */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ── Tablet (≤991px) — hamburger kicks in ── */
@media (max-width: 991px) {
  .container { padding: 0 24px; }

  .menu-toggle { display: flex; }
  .nav-phone   { display: none; }

  .nav-links {
    position: fixed;
    top: 0; right: -110%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10,24,22,0.97);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 100;
    border-left: 1px solid var(--border-strong);
    box-shadow: -12px 0 48px rgba(0,0,0,0.55);
    transition: right 0.5s cubic-bezier(0.19,1,0.22,1);
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-primary);
    opacity: 1;
  }
  .nav-links a::after { display: none; }
}

/* ── Small tablet / large phone (≤860px) ── */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-inner { grid-template-columns: 1fr; gap: 0; padding: 40px 22px; }
  .stat { padding: 20px; }
  .stat-divider { display: none; }
  .about-cta-grid { grid-template-columns: 1fr; }
  .about-cta-card { min-height: 300px; }
  .about-page-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-form { padding: 32px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-arrow.arrow-left  { left: 12px; }
  .hero-arrow.arrow-right { right: 12px; }
  .news-img-slider { width: 90%; height: 300px; }
  .news-article-content { padding: 22px 20px 28px; }
  .cube-scene, .cube, .cube-face { width: 120px; height: 120px; }
  .face-front  { transform: rotateY(  0deg) translateZ(60px); }
  .face-back   { transform: rotateY(180deg) translateZ(60px); }
  .face-right  { transform: rotateY( 90deg) translateZ(60px); }
  .face-left   { transform: rotateY(-90deg) translateZ(60px); }
  .face-top    { transform: rotateX( 90deg) translateZ(60px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(60px); }
  .partners-grid { gap: 28px; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  .header { padding: 16px 0; }
  .logo-image { width: 34px; }

  .hero { padding-bottom: 60px; min-height: 480px; }
  .hero-title { font-size: 1.65rem; }
  .hero-cta { padding: 13px 32px; font-size: 0.8rem; }

  .stat-num { font-size: 44px; }
  .stat-plus { font-size: 24px; }

  .sub-filter-bar { flex-wrap: wrap; gap: 6px; }
  .sub-filter-bar.visible { max-height: 140px; }

  .catalog { padding: 70px 0; }
  .about-cta-section { padding: 70px 0; }

  .page-hero { padding: 120px 0 60px; }

  .news-img-slider { width: 100%; height: 260px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer { padding: 52px 0 32px; }
  .footer-bottom { margin-top: 36px; }
}

/* ── Small phone (≤520px) ── */
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-title { font-size: 1.45rem; }
  .filter-bar { border-radius: var(--radius-md); padding: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-logo, .payment-icons-img, .footer-social-icons { justify-content: flex-start; }
  .news-img-slider { height: 220px; }
  .about-cta-text { padding: 28px 24px; }
  .hero-arrow.arrow-left  { left: 8px; }
  .hero-arrow.arrow-right { right: 8px; }
}

/* ── Extra small (≤400px) ── */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.25rem; }
  .logo-text { font-size: 0.82rem; }
  .logo-image { width: 28px; }
  .hero-cta { padding: 12px 26px; font-size: 0.76rem; }
  .stat-num { font-size: 36px; }
}

/* ═══════════════════════════════════════════════
   ✦ PREMIUM LAYER — $10 000 FEEL
   ═══════════════════════════════════════════════ */

/* ── Film grain ── */
body::after {
  content: '';
  position: fixed;
  inset: -200px;
  z-index: 9993;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.032;
  animation: grainShift 0.4s steps(1) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-3%, 2%); }
  33%  { transform: translate(4%, -3%); }
  50%  { transform: translate(-2%, -4%); }
  66%  { transform: translate(3%, 3%); }
  83%  { transform: translate(-4%, 1%); }
  100% { transform: translate(2%, -1%); }
}

/* ── Custom cursor (desktop only) ── */
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100001;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.25s var(--spring), height 0.25s var(--spring), background 0.25s, opacity 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(79,143,136,0.42);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.45s var(--easeOut), height 0.45s var(--easeOut), border-color 0.3s, opacity 0.2s;
}
.cursor-dot.hover  { width: 10px; height: 10px; background: rgba(255,255,255,0.7); }
.cursor-ring.hover { width: 52px; height: 52px; border-color: rgba(79,143,136,0.75); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ── Marquee strip ── */
.marquee-section {
  overflow: hidden;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: relative;
  z-index: 2;
  cursor: default;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 38px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-item:hover { color: var(--text-secondary); }
.marquee-sep { color: var(--accent); margin: 0 2px; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero — decorative line ── */
.hero-line {
  width: 54px;
  height: 1px;
  margin: 22px auto 30px;
  position: relative;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.hero-line::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79,143,136,0.7), 0 0 20px rgba(79,143,136,0.3);
}

/* ── Hero — scroll cue ── */
.hero-scroll-cue {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: cueAppear 1s ease 2.8s forwards;
}
.cue-label {
  font-size: 0.48rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}
.cue-line {
  width: 1px; height: 44px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.cue-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: cueDrop 2s ease-in-out infinite 3.2s;
}
@keyframes cueAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes cueDrop {
  0%   { top: -100%; }
  100% { top: 200%; }
}
@media (max-width: 768px) { .hero-scroll-cue { display: none; } }

/* ── Stats — editorial redesign ── */
.stats { background: var(--bg-primary); }
.stats-inner { padding: 80px 52px; }

.stat {
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 44px 28px;
  position: relative;
}
.stat:hover { transform: none; box-shadow: none; }
.stat::after {
  content: '';
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.stat-num  { font-size: 74px; text-shadow: 0 0 60px rgba(79,143,136,0.25); }
.stat-plus { font-size: 36px; }
.stat-divider { height: 80px; }

/* ── Section ambient glows ── */
.catalog { position: relative; overflow: hidden; }
.catalog::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 340px;
  background: radial-gradient(ellipse at center top, rgba(79,143,136,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.catalog > .container { position: relative; z-index: 1; }

.about-cta-section { position: relative; }
.about-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(79,143,136,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero CTA — shimmer on hover ── */
.hero-cta { overflow: hidden; }
.hero-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--easeOut);
  pointer-events: none;
}
.hero-cta:hover::after { left: 160%; }

/* ── Product cards — bottom glow accent ── */
.product-card { border-color: rgba(255,255,255,0.04); }
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--smooth);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.product-card:hover { border-color: rgba(255,255,255,0.10); }
.product-card:hover::after { opacity: 0.55; }

/* ── CTA cards — taller, more dramatic ── */
.about-cta-card { min-height: 460px; }
.about-cta-text { padding: 44px 40px; }

/* ── Footer — large watermark ── */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: 'DUSHANBE CARPETS';
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--fb);
  font-size: clamp(32px, 7vw, 100px);
  font-weight: 900;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.016);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }

/* ── Btn outline — refined ── */
.btn-outline {
  position: relative;
  overflow: hidden;
}
.btn-outline::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--easeOut);
}
.about-cta-card:hover .btn-outline::after { left: 180%; }

/* ── Touch: always show card actions ── */
@media (pointer: coarse) {
  .card-actions { opacity: 1; transform: none; }
}

/* ── Marquee responsive ── */
@media (max-width: 520px) {
  .marquee-item { font-size: 0.52rem; letter-spacing: 3.5px; padding: 0 22px; }
}

/* ── Stats responsive overrides ── */
@media (max-width: 768px) {
  .stats-inner { padding: 50px 22px; }
  .stat { padding: 28px 16px; }
  .stat-num { font-size: 52px; }
  .stat-plus { font-size: 26px; }
  .stat::after { bottom: 10px; }
}
@media (max-width: 400px) {
  .stat-num { font-size: 42px; }
}

/* ═══════════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════════ */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10010;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--smooth);
}
.cart-overlay.active {
  display: block;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(480px, 100vw);
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  z-index: 10011;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--spring);
  overflow: hidden;
}
.cart-drawer.active { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 36px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-eyebrow {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.cart-title {
  font-family: var(--fb);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}
.cart-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cart-close:hover { border-color: var(--accent); color: var(--accent); background: rgba(79,143,136,0.08); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
}
.cart-empty svg { opacity: 0.3; }
.cart-empty p { font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin: 0; }
.cart-empty span { font-size: 0.8rem; color: var(--text-muted); }

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color 0.25s;
}
.cart-item-card:hover { border-color: rgba(79,143,136,0.3); }

.cart-item-img {
  width: 68px; height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-deep);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.cart-item-size  { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 2px; }
.cart-item-price { font-size: 0.74rem; color: var(--accent); }

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-primary);
}
.qty-btn {
  background: none;
  border: none;
  width: 28px; height: 28px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.qty-btn:hover { color: var(--accent); background: rgba(79,143,136,0.1); }
.qty-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}
.cart-item-remove {
  background: none;
  border: none;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: #e05; }

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 24px 36px 32px;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  background: var(--bg-primary);
}
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cart-count-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}
.cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}
.cart-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.cart-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.cart-status {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
}
.cart-status.success { color: var(--accent); }

/* ── Cart icon button in header ── */
.cart-icon-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  flex-shrink: 0;
}
.cart-icon-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(79,143,136,0.08); }

.cart-badge {
  display: none;
  position: absolute;
  top: -5px; right: -5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 10px;
  padding: 0 4px;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--bg-primary);
}
.cart-badge.visible { display: block; }

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  40%       { transform: scale(1.4); }
}
.cart-badge.bounce { animation: badgeBounce 0.4s var(--spring); }

@media (max-width: 520px) {
  .cart-drawer { width: 100vw; }
  .cart-header { padding: 28px 20px 20px; }
  .cart-items  { padding: 18px 20px; }
  .cart-footer { padding: 18px 20px 28px; }
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ============================================================
   Interactive Wave Divider  (see wave-divider.js)
   Usage: <div class="wave-divider"></div>  between sections.
   ============================================================ */
.wave-divider {
  position: relative;
  width: 70vw;
  max-width: 880px;
  height: 1px;
  margin: 64px auto;            /* 8pt rhythm */
  color: var(--accent);         /* path uses currentColor */
}
.wave-divider__hit {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 10;
  transition: top 0.3s var(--smooth), height 0.3s var(--smooth);
}
.wave-divider__hit:hover {
  top: -150px;
  height: 300px;
}
.wave-divider__svg {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 300px;
  overflow: visible;
  pointer-events: none;
}
.wave-divider__path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

@media (max-width: 768px) {
  .wave-divider { width: 86vw; margin: 44px auto; }
}

/* Reduced motion: flat, non-interactive line (rule: reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .wave-divider__hit { display: none; }
}

/* ============================================================
   Animated Nav Dock  (see nav-dock.js)
   Desktop replaces .nav-links; mobile keeps the drawer.
   ============================================================ */
.nav-dock {
  display: none;
  align-items: flex-end;
  gap: 14px;
  height: 56px;
  padding: 0 14px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-light);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-dock__item {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  will-change: width, height;
  transition: color 0.2s var(--smooth), background 0.2s var(--smooth);
}
.nav-dock__item:hover,
.nav-dock__item:focus-visible {
  color: var(--text-primary);
  background: var(--accent-glow);
  border-color: var(--accent);
}
.nav-dock__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav-dock__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nav-dock__label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--smooth), transform 0.18s var(--smooth);
}
.nav-dock__item:hover .nav-dock__label,
.nav-dock__item:focus-visible .nav-dock__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Desktop: dock on, old text links off */
@media (min-width: 992px) {
  .nav-links { display: none; }
  .nav-dock  { display: flex; }
}

/* Bubble feel: squish on press, springy release */
.nav-dock__item:active {
  transform: scale(0.88);
}
.nav-dock__item {
  transition:
    color 0.2s var(--smooth),
    background 0.2s var(--smooth),
    transform 0.35s var(--spring);
}

/* =========================================
   SCROLL-SCRUB VIDEO HERO (catalog.html)
   ========================================= */
.scrub-hero {
  position: relative;
  height: 300vh;            /* scroll distance that drives the video */
}
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.scrub-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(15,36,34,0.55) 0%,
      rgba(15,36,34,0.20) 45%,
      rgba(15,36,34,0.88) 100%);
}
.scrub-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 48px);
}
.scrub-title {
  font-family: var(--fh);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 28px rgba(0,0,0,0.55);
}
.scrub-title::after {
  content: '';
  display: block;
  width: 64px; height: 2px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
}
.scrub-sub {
  margin: 1.4rem 0 0;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 768px) {
  .scrub-hero { height: 220vh; }
}

/* ═══ Sparkles payment logos ═══ */
.payment-icons-img.sparkle-host {
  position: relative;
  padding: 18px 14px 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sparkle-host::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.sparkle-host::after {
  content: '';
  position: absolute;
  top: -14px; left: 18%; right: 18%;
  height: 28px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(6px);
}
.sparkle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sparkle-host .pay-logo {
  position: relative;
  z-index: 2;
  filter: grayscale(1) brightness(1.25);
  opacity: 0.75;
  transition: filter 0.3s var(--smooth), opacity 0.3s var(--smooth), transform 0.35s var(--spring);
}
.sparkle-host .pay-logo:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-3px) scale(1.07);
}

/* ═══════════════════════════════════════════
   MARKET SWITCHER + CITY MODAL
   ═══════════════════════════════════════════ */
.market-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  margin-right: 4px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.market-switcher:hover { border-color: var(--accent); color: var(--accent); }
.market-switcher .ms-pin { display: inline-flex; align-items: center; line-height: 1; }
.market-switcher .ms-pin svg { width: 14px; height: 14px; }
.market-switcher .ms-caret { font-size: 10px; opacity: 0.7; flex: 0 0 auto; }
.market-switcher .ms-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Keep the header on one row when the market pill appears: the pill is the
   only element allowed to shrink/truncate — the language globe, cart and menu
   never collapse, so the lang switcher can't be pushed off-screen. */
.nav-icons { min-width: 0; flex-wrap: nowrap; }
.lang-selector, .cart-icon-btn, .menu-toggle, .nav-phone { flex: 0 0 auto; }
.market-switcher { flex: 0 1 auto; min-width: 0; }

.market-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 20, 19, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: mm-fade 0.25s ease;
}
@keyframes mm-fade { from { opacity: 0; } to { opacity: 1; } }

.market-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 28px 24px 20px;
  animation: mm-rise 0.3s cubic-bezier(0.34, 1.4, 0.5, 1);
}
@keyframes mm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.market-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.market-modal-close:hover { background: var(--bg-glass-light); color: var(--text-primary); }

.market-modal-title {
  font-family: var(--fh);
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.market-modal-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  line-height: 1.5;
}

.market-search {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--fb);
  font-size: 14px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.market-search:focus { border-color: var(--accent); }
.market-search::placeholder { color: var(--text-muted); }

.market-city-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.market-city-list::-webkit-scrollbar { width: 6px; }
.market-city-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.market-city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-glass-light);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--fb);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.market-city-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateX(3px);
}
.market-city-item .mci-city { font-weight: 600; }
.market-city-item .mci-branch { font-size: 12px; color: var(--text-secondary); }

.market-none {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 24px 0;
}

@media (max-width: 480px) {
  .nav-icons { gap: 12px; }
  .market-switcher { padding: 6px 9px; }
  .market-switcher .ms-label { max-width: 64px; }
  .market-modal { padding: 24px 18px 16px; }
}
@media (max-width: 360px) {
  .nav-icons { gap: 9px; }
  .market-switcher .ms-label { max-width: 46px; }
}

/* ═══════════════════════════════════════════════
   FIT-ANY-PHONE — viewport safety & sizing
   ═══════════════════════════════════════════════ */

/* Nothing ever forces sideways scrolling */
html, body { max-width: 100%; overflow-x: clip; }
/* Cap intrinsic width only — never force height (keeps object-fit cover intact) */
svg, canvas { max-width: 100%; }

/* Full-screen sections fit the *visible* area on phones (address-bar aware) */
@supports (height: 100dvh) {
  .scrub-sticky { height: 100dvh; }
}


/* Long words / codes (QR, emails) never push the layout wide */
.product-card, .card-info, .card-title, .contact-info-grid, .footer-col {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Mid-size phones (≤480px): comfortable 2-up catalog, tighter chrome */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scrub-hero { height: 200vh; }
}

/* Small phones (≤360px) */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.15rem; }
  .scrub-hero { height: 180vh; }
}

/* Avoid iOS auto-zoom: form fields at least 16px on touch */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea { font-size: 16px; }
}

/* ═══════════════════════════════════════════════
   TOUCH DEVICES — hover styles never fire on phones,
   so reveal hover-only actions, enlarge tap targets,
   and add press feedback. (UX §2: touch & interaction)
   ═══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {

  /* Card actions are hidden behind :hover on desktop — always show on touch,
     otherwise Try / Add-to-Cart are unreachable. */
  .card-actions { opacity: 1; transform: none; }

  /* Keep the price + actions row from crowding on narrow cards */
  .card-bottom { gap: 10px; flex-wrap: wrap; }

  /* Touch targets ≥ 44px (Apple HIG / Material 48dp) */
  .card-try {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
  }
  .card-order {
    min-height: 44px;
    padding: 0 4px;
    font-size: 0.66rem;
  }

  /* Press feedback (no hover to rely on) */
  .product-card:active { transform: scale(0.985); }
  .card-try:active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .card-order:active { color: var(--accent); }
  .card-order:active svg { transform: translateX(3px); }
}

/* Very small phones: let the action row sit under the price so nothing clips */
@media (max-width: 380px) {
  .card-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-actions { justify-content: space-between; }
}
