/* ============================================================
   AirForge v3 — Professional Automotive Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  /* Core palette — carbon fibre / brushed metal feel */
  --black:        #080a0e;
  --dark:         #0e1117;
  --deep:         #131720;
  --surface:      #181d28;
  --card:         #1d2330;
  --card-hover:   #222839;
  --border:       #252c3d;
  --border-light: #2e3852;
  --muted:        #5a6380;
  --dim:          #8a93aa;
  --text:         #dde3f0;
  --white:        #f0f4ff;

  /* Accent — BMW M Performance inspired */
  --accent:       #1565c0;
  --accent-mid:   #1976d2;
  --accent-light: #42a5f5;
  --accent-glow:  rgba(21,101,192,.22);
  --accent-glow2: rgba(66,165,245,.12);

  /* Signal colors */
  --red:          #d32f2f;
  --red-soft:     rgba(211,47,47,.12);
  --green:        #2e7d32;
  --green-light:  #43a047;
  --green-soft:   rgba(46,125,50,.12);
  --gold:         #b8860b;
  --gold-light:   #d4a017;
  --gold-soft:    rgba(184,134,11,.12);

  /* Typography */
  --ff-display: 'Barlow Condensed', sans-serif;
  --ff-body:    'Barlow', sans-serif;

  /* Spacing */
  --radius:   6px;
  --radius-md:10px;
  --radius-lg:14px;
  --radius-xl:20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow:    0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.65);
  --glow:      0 0 30px rgba(21,101,192,.3);

  /* Nav */
  --nav-h: 70px;

  /* Transitions */
  --t: .18s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-mid); }

/* ── Typography scale ───────────────────────────────────── */
h1 { font-size: clamp(2.6rem,6.5vw,5.5rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem,3.8vw,3rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem,2.2vw,1.8rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--dim); line-height: 1.75; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1260px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }
.section    { padding: clamp(4.5rem,9vw,8rem) 0; }
.section--dark { background: var(--deep); }
.section--darker { background: var(--dark); }
.page-offset { padding-top: var(--nav-h); }

/* Grid utils */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-accent { color: var(--accent-light); }
.text-dim { color: var(--dim); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-5{margin-top:2.5rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.hidden { display: none !important; }

/* ── Section labels ─────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-display); font-size: .72rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: .85rem;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--accent-light);
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .72rem 1.8rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: .95rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  transition: var(--t); white-space: nowrap; cursor: pointer;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-mid); border-color: var(--accent-mid);
  box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 3px var(--accent-glow2);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--accent-light); border-color: var(--accent-mid);
}
.btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost {
  background: rgba(255,255,255,.06); color: var(--dim); border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm  { padding: .45rem 1.1rem; font-size: .82rem; }
.btn-lg  { padding: .95rem 2.5rem; font-size: 1.05rem; }
.btn-xl  { padding: 1.1rem 3rem; font-size: 1.15rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .spin { animation: spin .7s linear infinite; }

/* ── Divider ────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,10,14,.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
#navbar.scrolled {
  background: rgba(8,10,14,.97);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 30px rgba(0,0,0,.5);
}

.nav-inner {
  height: var(--nav-h); display: flex;
  align-items: center; justify-content: space-between; gap: 2rem;
}

/* Logo image — responsive, fitted, no forced raw dimensions */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: 44px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  object-position: left center;
  /* Trim the brushed-metal background and lift it */
  border-radius: 5px;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.7));
  transition: opacity var(--t), transform var(--t);
  display: block;
}
.nav-logo:hover .nav-logo-img { opacity: .88; transform: scale(1.03); }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: .15rem;
  margin: 0; padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  display: flex; align-items: center;
  padding: .5rem 1.05rem;
  font-family: var(--ff-display);
  font-size: .9rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); border-radius: var(--radius);
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; right: 50%;
  height: 2px; background: var(--accent-light);
  transition: left var(--t), right var(--t); border-radius: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { left: 1rem; right: 1rem; }

/* Cart button */
.nav-actions { display: flex; align-items: center; gap: .65rem; }
#cart-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius);
  padding: .52rem 1.1rem;
  font-family: var(--ff-display); font-size: .88rem; font-weight: 600;
  letter-spacing: .06em;
  transition: var(--t); cursor: pointer;
}
#cart-btn:hover { border-color: var(--accent-mid); color: var(--accent-light); }
#cart-count {
  background: var(--accent); color: #fff;
  border-radius: 20px; padding: 0 .45rem;
  font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: .5rem; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--t);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: var(--dark); border-bottom: 1px solid var(--border);
  padding: .75rem;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a {
  display: block; padding: .9rem 1rem;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  transition: color var(--t), background var(--t);
}
.nav-mobile-menu a:hover { color: var(--white); background: var(--surface); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 40%, rgba(21,101,192,.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 15% 75%, rgba(66,165,245,.06) 0%, transparent 55%);
}
/* Carbon-fibre grid */
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* Speed lines */
.hero-lines {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-lines::before, .hero-lines::after {
  content: ''; position: absolute;
  width: 2px; height: 40%; background: linear-gradient(to bottom, transparent, rgba(21,101,192,.25), transparent);
  animation: speed-line 3s ease-in-out infinite;
}
.hero-lines::before { right: 20%; animation-delay: 0s; }
.hero-lines::after  { right: 30%; animation-delay: 1.5s; }
@keyframes speed-line {
  0%   { top: -40%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-content { position: relative; z-index: 2; max-width: 700px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .38rem 1rem;
  background: rgba(21,101,192,.15);
  border: 1px solid rgba(66,165,245,.35);
  border-radius: 99px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1.8rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-light); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

.hero h1 { color: var(--white); margin-bottom: 1.5rem; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent-light); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .05em;
  height: 3px; background: linear-gradient(90deg,var(--accent),var(--accent-light));
  border-radius: 2px;
}
.hero-desc {
  font-size: 1.1rem; color: var(--dim); max-width: 550px;
  margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 900;
  color: var(--white); line-height: 1;
}
.hero-stat-label {
  font-size: .72rem; color: var(--dim);
  letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem;
}

/* Hero visual — decorative car silhouette */
.hero-visual {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  width: 52%; max-width: 700px; opacity: .07; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.25rem;
}
.feature-card {
  padding: 2rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.feature-card:hover { border-color: var(--accent-mid); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 1.6rem; margin-bottom: 1.1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--white); }
.feature-card p  { font-size: .88rem; color: var(--dim); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════════ */
.products-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px,1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.product-card:hover {
  border-color: var(--accent-mid); transform: translateY(-5px); box-shadow: var(--shadow);
}
.product-card-image {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; background: var(--surface);
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--accent); color: #fff;
  padding: .2rem .75rem; border-radius: 99px;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.product-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-card-category {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: .4rem;
}
.product-card-name {
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem; line-height: 1.2;
}
.product-card-desc {
  font-size: .86rem; color: var(--dim); flex: 1; line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-price {
  font-family: var(--ff-display); font-size: 1.55rem; font-weight: 900; color: var(--accent-light);
}
.product-price small { font-size: .78rem; color: var(--dim); font-weight: 400; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL
═══════════════════════════════════════════════════════════ */
.product-detail-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start;
}

/* Gallery */
.gallery { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.gallery-main {
  position: relative; aspect-ratio: 4/3;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: .85rem;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s ease;
}
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(8,10,14,.75); border: 1px solid var(--border);
  color: var(--text); width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; backdrop-filter: blur(4px);
  transition: background var(--t), border-color var(--t);
  cursor: pointer; z-index: 2;
}
.gallery-btn:hover { background: var(--accent); border-color: var(--accent); }
.gallery-btn--prev { left: .65rem; }
.gallery-btn--next { right: .65rem; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumb {
  flex-shrink: 0; width: 68px; height: 52px;
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color var(--t);
}
.gallery-thumb.active { border-color: var(--accent-light); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info panel */
.product-info { }
.product-badge {
  display: inline-block; padding: .22rem .75rem;
  background: rgba(21,101,192,.15); border: 1px solid rgba(66,165,245,.3);
  border-radius: 99px; font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light);
  margin-bottom: 1rem;
}
.product-info h1 { font-size: clamp(1.6rem,3.2vw,2.4rem); margin-bottom: .85rem; }

/* Price display */
.price-wrap { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.price-main {
  font-family: var(--ff-display); font-size: 2.4rem; font-weight: 900;
  color: var(--accent-light); line-height: 1;
}
.price-main small { font-size: 1rem; color: var(--dim); font-weight: 400; }
.price-surcharge {
  font-family: var(--ff-display); font-size: 1rem; font-weight: 700;
  color: var(--gold-light);
  padding: .2rem .65rem; border-radius: 99px;
  background: var(--gold-soft); border: 1px solid rgba(212,160,23,.35);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.price-surcharge.visible { opacity: 1; transform: translateY(0); }

/* Product description blocks */
.product-desc-block { color: var(--dim); line-height: 1.75; margin-bottom: 1.5rem; }
.product-desc-block p { margin-bottom: .75rem; font-size: .92rem; }
.product-desc-section {
  margin-top: 1rem; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.product-desc-section-title {
  font-family: var(--ff-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: .65rem;
  display: flex; align-items: center; gap: .4rem;
}
.product-desc-list { padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.product-desc-list li {
  font-size: .87rem; color: var(--dim);
  display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5;
}
.product-desc-list li::before { content: '✔'; color: var(--accent-light); font-size: .75rem; flex-shrink: 0; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   RAL COLOR PICKER — CSS HEX SWATCHES
═══════════════════════════════════════════════════════════ */
.ral-picker { margin-bottom: 1.75rem; }
.ral-picker-label {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--ff-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  margin-bottom: 1rem;
}
.ral-picker-label svg { color: var(--accent-light); }

/* Selected preview strip */
.ral-selected-display {
  display: none; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); margin-bottom: 1rem;
  font-size: .88rem; transition: border-color var(--t);
}
.ral-selected-display.visible { display: flex; }
.ral-color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Section headers */
.ral-section { margin-bottom: .6rem; }
.ral-section-title {
  font-family: var(--ff-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem .85rem;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; gap: .5rem;
}
.ral-section-title.base {
  background: rgba(46,125,50,.12); color: #81c784;
  border: 1px solid rgba(46,125,50,.25); border-bottom: none;
}
.ral-section-title.custom {
  background: rgba(184,134,11,.1); color: var(--gold-light);
  border: 1px solid rgba(212,160,23,.25); border-bottom: none;
}
.ral-custom-badge {
  margin-left: auto; padding: .12rem .5rem;
  background: rgba(212,160,23,.2); border: 1px solid rgba(212,160,23,.4);
  border-radius: 99px; font-size: .68rem; font-weight: 700; color: var(--gold-light);
}

/* Swatch grid */
.ral-swatch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(46px,1fr)); gap: .5rem;
  padding: .85rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.ral-swatch-grid.base   { border-color: rgba(46,125,50,.2); }
.ral-swatch-grid.custom { border-color: rgba(212,160,23,.2); }

/* Individual swatch */
.ral-swatch-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.ral-swatch-circle {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%; cursor: pointer;
  border: 2.5px solid transparent;
  outline: 2px solid rgba(255,255,255,.08);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  position: relative;
}
.ral-swatch-circle::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: #fff; font-weight: 700;
  opacity: 0; transition: opacity var(--t);
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.ral-swatch-item:hover .ral-swatch-circle { transform: scale(1.18); border-color: rgba(255,255,255,.5); }
.ral-swatch-item.selected .ral-swatch-circle {
  border-color: #fff; transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--accent-light), 0 4px 14px rgba(0,0,0,.5);
}
.ral-swatch-item.selected .ral-swatch-circle::after { opacity: 1; }
.ral-swatch-code {
  font-size: .58rem; color: var(--muted); text-align: center; line-height: 1;
  max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Custom warning notice */
.ral-custom-notice {
  display: none; align-items: flex-start; gap: .6rem;
  margin-top: .85rem; padding: .85rem 1rem;
  background: rgba(184,134,11,.09);
  border: 1px solid rgba(212,160,23,.35); border-left: 3px solid var(--gold-light);
  border-radius: var(--radius); font-size: .87rem; color: var(--gold-light);
  line-height: 1.55; animation: fade-in .2s ease;
}
.ral-custom-notice.visible { display: flex; }
@keyframes fade-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

/* RAL validation warning */
.ral-warning {
  font-size: .82rem; color: var(--red); margin-top: .5rem;
  display: none;
}
.ral-warning.visible { display: block; }

/* ═══════════════════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════════════════ */
.cart-layout {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 3rem; align-items: start;
}
.cart-empty {
  text-align: center; padding: 5rem 2rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.cart-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.cart-empty h3 { margin-bottom: .5rem; }
.cart-empty p  { margin-bottom: 1.5rem; }

/* Cart item */
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 1rem; align-items: start;
  padding: 1.2rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 1rem; transition: border-color var(--t);
}
.cart-item:hover { border-color: var(--border-light); }
.cart-item-img {
  width: 80px; height: 62px; border-radius: var(--radius);
  overflow: hidden; background: var(--surface); flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.cart-item-color {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--dim); margin-bottom: .4rem;
}
.cart-item-color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); flex-shrink: 0; }
.cart-item-qty { display: flex; align-items: center; gap: .45rem; }
.qty-btn {
  width: 26px; height: 26px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); border-radius: 4px;
  font-size: .9rem; display: flex; align-items: center; justify-content: center;
  transition: var(--t); cursor: pointer;
}
.qty-btn:hover { border-color: var(--accent-mid); color: var(--accent-light); }
.qty-num { width: 28px; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-item-price {
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700;
  color: var(--accent-light); text-align: right; white-space: nowrap;
}
.cart-item-remove { color: var(--muted); font-size: 1rem; margin-top: .3rem; transition: color var(--t); cursor: pointer; }
.cart-item-remove:hover { color: var(--red); }

/* Order Summary */
.order-summary {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.order-summary h3 {
  font-size: 1.2rem; color: var(--white); margin-bottom: 1.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0; font-size: .9rem; color: var(--dim);
}
.summary-row.total {
  border-top: 1px solid var(--border); margin-top: .75rem; padding-top: 1rem;
  font-size: 1.1rem; color: var(--white); font-weight: 700;
}
.summary-row.total .val { color: var(--accent-light); font-family: var(--ff-display); font-size: 1.5rem; }
.summary-surcharge { color: var(--gold-light) !important; }

/* ═══════════════════════════════════════════════════════════
   CHECKOUT FORM
═══════════════════════════════════════════════════════════ */
.checkout-form { margin-top: 2.5rem; }
.checkout-form > h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .38rem; margin-bottom: .9rem; }
.form-group label {
  font-family: var(--ff-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.req { color: var(--accent-light); margin-left: 2px; }
.form-control {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius);
  padding: .72rem 1rem; font-size: .92rem; width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus {
  outline: none; border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(21,101,192,.2);
}
.form-control::placeholder { color: var(--muted); }
.form-control.error { border-color: var(--red); }
.form-error { font-size: .78rem; color: var(--red); display: none; }
.form-error.visible { display: block; }

/* Delivery radio buttons */
.delivery-options { display: flex; gap: .75rem; flex-wrap: wrap; }
.delivery-option { flex: 1; min-width: 130px; }
.delivery-option input { display: none; }
.delivery-option label {
  display: flex; align-items: center; gap: .65rem;
  padding: .9rem 1.1rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-family: var(--ff-display); font-size: .88rem; font-weight: 600;
  letter-spacing: .05em; color: var(--dim);
  transition: var(--t);
}
.delivery-option input:checked + label {
  border-color: var(--accent-mid); background: rgba(21,101,192,.1); color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   CAPTCHA
═══════════════════════════════════════════════════════════ */
.captcha-block {
  margin: 1.25rem 0; padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.captcha-block label {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--ff-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  margin-bottom: .85rem;
}
.captcha-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.captcha-eq-box {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.3rem;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700;
  color: var(--accent-light); letter-spacing: .05em; user-select: none;
  min-width: 110px; text-align: center;
}
.captcha-eq { color: var(--dim); font-weight: 700; font-size: 1.1rem; }
.captcha-input {
  width: 80px; background: var(--card); border: 1.5px solid var(--border-light);
  color: var(--text); border-radius: var(--radius);
  padding: .6rem .75rem; font-family: var(--ff-display);
  font-size: 1.1rem; font-weight: 700; text-align: center;
  transition: border-color var(--t);
}
.captcha-input:focus { outline: none; border-color: var(--accent-mid); }
.captcha-input.error { border-color: var(--red); }
.captcha-refresh {
  background: var(--card); border: 1px solid var(--border);
  color: var(--dim); border-radius: var(--radius);
  padding: .55rem .75rem; font-size: .8rem; cursor: pointer;
  display: flex; align-items: center; gap: .3rem; transition: var(--t);
}
.captcha-refresh:hover { border-color: var(--accent-mid); color: var(--accent-light); }
.captcha-hint { font-size: .75rem; color: var(--muted); margin-top: .6rem; display: flex; align-items: center; gap: .3rem; }

/* Honeypot — NEVER visible */
.hp-trap { display: none !important; visibility: hidden !important; position: absolute !important; left: -9999px !important; }

/* ═══════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 3rem 2.5rem;
  max-width: 460px; width: 100%; text-align: center;
  animation: modal-pop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-pop {
  from { opacity:0; transform:scale(.85) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-check {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(21,101,192,.15); border: 2px solid var(--accent-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 2rem; color: var(--accent-light);
}
.modal h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.modal p  { color: var(--dim); line-height: 1.7; margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 3000; display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1.4rem;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent-mid);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .9rem; color: var(--text); max-width: 320px;
  animation: toast-in .3s ease;
}
.toast.success { border-left-color: var(--green-light); }
.toast.error   { border-left-color: var(--red); }
@keyframes toast-in { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }

/* ═══════════════════════════════════════════════════════════
   PAGE HEADERS & BREADCRUMBS
═══════════════════════════════════════════════════════════ */
.page-header {
  background: var(--deep); border-bottom: 1px solid var(--border); padding: 3rem 0;
}
.page-header h1 { font-size: clamp(1.9rem,4.5vw,3.2rem); }
.page-header p  { margin-top: .5rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8rem; color: var(--muted); margin-bottom: .75rem;
}
.breadcrumb a { color: var(--muted); transition: color var(--t); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep { color: var(--border-light); }

/* ═══════════════════════════════════════════════════════════
   ABOUT & CONTACT
═══════════════════════════════════════════════════════════ */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(21,101,192,.1) 0%, transparent 70%);
}
.about-text p { margin-bottom: 1.15rem; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 2rem; }
.value-item {
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  position: relative;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.value-item:hover {
  border-color: var(--accent-mid);
  border-left-color: var(--accent-light);
  box-shadow: 0 4px 16px rgba(21,101,192,.15);
  transform: translateY(-2px);
}
.value-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; color: var(--white); }
.value-item p  { font-size: .82rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.contact-item {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.35rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.contact-item-icon {
  width: 42px; height: 42px; background: rgba(21,101,192,.12);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem; flex-shrink: 0; color: var(--accent-light);
}
.contact-item h4 {
  font-family: var(--ff-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: .3rem;
}
.contact-item p { font-size: .9rem; color: var(--text); }
.contact-form-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem;
}
.contact-form-wrap h3 { margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: var(--dark); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border);
}
.footer-logo-img {
  height: 46px; width: auto; max-width: 160px; object-fit: contain;
  object-position: left center; border-radius: 4px;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.6));
  margin-bottom: .85rem; display: block;
}
.footer-brand > p { font-size: .88rem; line-height: 1.65; max-width: 300px; }
.footer-about-snippet { margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.footer-col-title {
  font-family: var(--ff-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .3rem; }
.footer-col a {
  color: var(--dim); font-size: .88rem; padding: .2rem 0;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--accent-light); }
.footer-contact-desc { font-size: .85rem; color: var(--dim); line-height: 1.6; margin-bottom: 1rem; }
.footer-contact-btn { margin-bottom: 1rem; }
.footer-delivery {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--muted);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; gap: .5rem;
}
.footer-made { }

/* ═══════════════════════════════════════════════════════════
   PRODUCT NOTES INFO BOX
═══════════════════════════════════════════════════════════ */
.product-info-box {
  margin-top: 2rem; padding: 1.25rem;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.product-info-box-title {
  font-family: var(--ff-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem;
}
.product-info-box ul { list-style: disc; padding-left: 1.1rem; }
.product-info-box li { font-size: .85rem; color: var(--dim); line-height: 1.9; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-visual { display: none; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .about-content,.contact-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.2rem,8vw,3.5rem); }
}
@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item > :last-child { grid-column: 2; }
  .nav-logo-img { height: 36px; max-width: 120px; }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT PURCHASE BLOCK — full-width row below gallery+info
═══════════════════════════════════════════════════════════ */
.product-purchase-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.75rem 3rem;
  align-items: start;
}

/* RAL picker spans left column, both rows */
.product-purchase-block .ral-picker {
  grid-column: 1;
  grid-row: 1 / 3;
  margin-bottom: 0;
}

/* Buttons — right column, top row */
.product-action-buttons {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 240px;
}

/* Order info box — right column, bottom row */
.product-purchase-block .product-info-box {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  min-width: 240px;
}

/* Responsive: stack everything on mobile */
@media (max-width: 900px) {
  .product-purchase-block {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }
  .product-purchase-block .ral-picker   { grid-column: 1; grid-row: auto; }
  .product-action-buttons               { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  .product-action-buttons .btn          { flex: 1; min-width: 160px; justify-content: center; }
  .product-purchase-block .product-info-box { grid-column: 1; grid-row: auto; min-width: unset; }
}

@media (max-width: 520px) {
  .product-action-buttons { flex-direction: column; }
  .product-action-buttons .btn { flex: unset; }
}

/* ═══════════════════════════════════════════════════════════
   DISCOUNT — product page price block
═══════════════════════════════════════════════════════════ */
.price-discount-row {
  display: flex; align-items: baseline; gap: .85rem;
  flex-wrap: wrap; margin-bottom: .35rem;
}
.price-original-wrap {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.price-original {
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600;
  color: var(--muted); text-decoration: line-through;
  text-decoration-color: rgba(211,47,47,.6);
}
.price-badge {
  display: inline-flex; align-items: center;
  padding: .22rem .65rem;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff; border-radius: 99px;
  font-family: var(--ff-display); font-size: .8rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(211,47,47,.4);
  white-space: nowrap;
}
.price-savings {
  font-size: .82rem; color: #ef9a9a;
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .35rem;
}
.price-savings::before { content: '🏷'; font-size: .85rem; }

/* Discount badge on gallery image */
.gallery-discount-badge {
  position: absolute; top: .85rem; right: .85rem; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff; border-radius: 50%;
  width: 56px; height: 56px;
  justify-content: center;
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 900;
  letter-spacing: -.02em; line-height: 1;
  box-shadow: 0 4px 14px rgba(211,47,47,.5);
  animation: discount-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes discount-pop {
  from { opacity:0; transform:scale(.5) rotate(-12deg); }
  to   { opacity:1; transform:scale(1)  rotate(0deg); }
}
.gallery-discount-label {
  display: block; font-size: .5rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  opacity: .85; margin-top: 2px; text-align: center; line-height: 1.1;
}

/* Discount badge on product CARDS (listing + homepage) */
.product-card-discount {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff; border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: .85rem; font-weight: 900;
  box-shadow: 0 3px 10px rgba(211,47,47,.5);
  line-height: 1;
}

/* About visual position fix for image hint overlay */
.about-visual { position: relative; }

/* ═══════════════════════════════════════════════════════════
   MOBILE FIX — hero "Разгледайте продуктите" button
   On small screens: full width, centred, readable size
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: .98rem;
    padding: .95rem 1.5rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  /* Keep the SVG icon aligned */
  .hero-actions .btn svg { flex-shrink: 0; }
}

/* Remove the product-purchase-block styles we added in update1 (no longer used) */
.product-purchase-block { display: none; }

/* ═══════════════════════════════════════════════════════════
   МОНТАЖ PAGE
═══════════════════════════════════════════════════════════ */
.montaj-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.montaj-tab {
  padding: .5rem 1.25rem;
  border-radius: 99px;
  font-family: var(--ff-display); font-size: .85rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.05); color: var(--dim);
  border: 1px solid var(--border); text-decoration: none;
  transition: var(--t);
}
.montaj-tab:hover { border-color: var(--accent-mid); color: var(--text); text-decoration: none; }
.montaj-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.montaj-category-block { margin-bottom: 3.5rem; }
.montaj-category-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.montaj-category-header h2 { font-size: clamp(1.4rem,2.5vw,2rem); }

.montaj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.montaj-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.montaj-card:hover { border-color: var(--accent-mid); transform: translateY(-3px); box-shadow: var(--shadow); }

.montaj-video-wrap {
  position: relative; aspect-ratio: 16/9;
  background: #000; overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.montaj-video-thumb {
  position: absolute; inset: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.montaj-video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, opacity .3s;
}
.montaj-video-thumb:hover img { transform: scale(1.04); opacity: .85; }
.montaj-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--card2) 100%);
}
.montaj-play-btn {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  transition: transform .2s;
}
.montaj-play-btn > svg {
  width: 64px; height: 64px;
  background: rgba(21,101,192,.85);
  border-radius: 50%; padding: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  transition: background .2s, transform .2s;
}
.montaj-video-thumb:hover .montaj-play-btn > svg {
  background: var(--accent); transform: scale(1.1);
}

.montaj-card-body { padding: 1.25rem; flex: 1; }
.montaj-card-title {
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem; line-height: 1.25;
}
.montaj-card-desc {
  font-size: .875rem; color: var(--dim); line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   DISCOUNT — enhanced visibility
═══════════════════════════════════════════════════════════ */
/* Pulsing glow on big discount badge in gallery */
.gallery-discount-badge {
  animation: discount-pop .4s cubic-bezier(.34,1.56,.64,1), discount-glow 2.5s 0.5s ease-in-out infinite;
}
@keyframes discount-glow {
  0%,100% { box-shadow: 0 4px 14px rgba(211,47,47,.5); }
  50%      { box-shadow: 0 4px 28px rgba(211,47,47,.85), 0 0 0 4px rgba(211,47,47,.15); }
}

/* Strikethrough on product cards */
.product-card-footer .price-strike {
  text-decoration: line-through;
  color: var(--muted);
  font-size: .8rem;
  margin-left: .3rem;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE FIX — hero buttons (max-width: 600px)
   Override the btn-xl padding that causes overflow
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column !important;
    gap: .85rem !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: .9rem 1.2rem !important;
    font-size: .92rem !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }
  .hero-actions .btn svg { flex-shrink: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT SHOW DELIVERY toggle — styling for "free shipping" badge
═══════════════════════════════════════════════════════════ */
.price-free-delivery {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #81c784;
  background: rgba(46,125,50,.12); border: 1px solid rgba(46,125,50,.25);
  border-radius: 99px; padding: .18rem .65rem;
  margin-top: .3rem;
}

/* ═══════════════════════════════════════════════════════════
   RAL COLOR VISUALIZER
═══════════════════════════════════════════════════════════ */
.ral-visualizer {
  --viz-color: #888;
  margin-bottom: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t);
}
.ral-visualizer:has(.viz-colored-part) { border-color: var(--border-light); }

.ral-viz-car {
  padding: 1rem 1.25rem .5rem;
  background: linear-gradient(160deg, #0e1117 0%, #131720 100%);
}
.ral-viz-car svg {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
}
.viz-colored-part {
  fill: var(--viz-color);
  transition: fill .3s ease;
}

.ral-viz-info {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.ral-viz-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--border);
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transition: background .3s ease;
}
.ral-viz-text {
  font-size: .82rem; color: var(--dim); line-height: 1.4;
  transition: color .2s;
}

/* ═══════════════════════════════════════════════════════════
   ORDER TRACKING PAGE — track.php
═══════════════════════════════════════════════════════════ */
.track-search-form { margin-bottom: 2rem; }
.track-search-wrap {
  display: flex; gap: .75rem;
  max-width: 520px;
}
.track-search-input {
  flex: 1;
  background: var(--surface); border: 1.5px solid var(--border-light);
  color: var(--white); border-radius: var(--radius);
  padding: .85rem 1.25rem;
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  transition: border-color var(--t), box-shadow var(--t);
}
.track-search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.track-search-input::placeholder { color: var(--muted); font-weight: 400; letter-spacing: .06em; }

.track-error {
  display: flex; align-items: center; gap: .65rem;
  padding: 1rem 1.25rem;
  background: var(--red-soft); border: 1px solid rgba(211,47,47,.35);
  border-radius: var(--radius-lg); color: #fca5a5;
  font-size: .9rem; margin-bottom: 1.5rem;
}

.track-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color var(--t);
}

.track-card-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.track-ref {
  font-family: var(--ff-display); font-size: 1.4rem; font-weight: 900;
  color: var(--white); letter-spacing: .04em;
}
.track-date { font-size: .8rem; color: var(--dim); margin-top: .2rem; }

.track-status-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1.1rem; border-radius: 99px;
  font-family: var(--ff-display); font-size: .85rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}

.track-note {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: 1rem; padding: .85rem 1rem;
  background: rgba(21,101,192,.08); border: 1px solid rgba(21,101,192,.2);
  border-radius: var(--radius); font-size: .88rem; color: var(--accent-light);
  line-height: 1.55;
}

/* Progress steps */
.track-progress {
  display: flex; align-items: flex-start;
  gap: 0; overflow-x: auto; padding-bottom: .5rem;
}
.track-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 70px; position: relative;
}
.track-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: .7rem; flex-shrink: 0; z-index: 1;
  transition: background var(--t), border-color var(--t);
}
.track-step.done .track-step-dot {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.track-step.active .track-step-dot {
  background: var(--surface); border-color: var(--accent-light); border-width: 3px;
}
.track-step-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}
.track-step-line {
  position: absolute; top: 13px; left: calc(50% + 14px);
  right: calc(-50% + 14px); height: 2px;
  background: var(--border); z-index: 0;
  transition: background var(--t);
}
.track-step-line.done { background: var(--accent); }
.track-step-label {
  font-size: .7rem; color: var(--dim); margin-top: .6rem;
  text-align: center; line-height: 1.3;
  font-family: var(--ff-display); font-weight: 600; letter-spacing: .04em;
}
.track-step.done .track-step-label,
.track-step.active .track-step-label { color: var(--accent-light); }

/* History list */
.track-history { display: flex; flex-direction: column; }
.track-history-item {
  display: flex; gap: 1rem; padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.track-history-item:last-child { border-bottom: none; }
.track-history-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: .35rem;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}
.track-history-body { flex: 1; min-width: 0; }
.track-history-status {
  display: flex; align-items: center; gap: .4rem;
  font-size: .9rem; color: var(--text); flex-wrap: wrap;
}
.track-history-note {
  font-size: .84rem; color: var(--dim); margin-top: .3rem; line-height: 1.5;
}
.track-history-time {
  font-size: .74rem; color: var(--muted); margin-top: .25rem;
}

@media (max-width: 600px) {
  .track-search-wrap { flex-direction: column; }
  .track-progress { gap: 0; }
  .track-step-label { font-size: .62rem; }
}

/* ── Tracking nav link — subtle accent pill ─────────────── */
.nav-track-link {
  display: flex !important;
  align-items: center;
  gap: .4rem;
  background: rgba(21,101,192,.12) !important;
  border: 1px solid rgba(66,165,245,.25) !important;
  border-radius: 99px !important;
  padding: .35rem .9rem !important;
  color: var(--accent-light) !important;
  font-size: .82rem !important;
  transition: var(--t) !important;
  white-space: nowrap;
}
.nav-track-link:hover {
  background: rgba(21,101,192,.22) !important;
  border-color: rgba(66,165,245,.5) !important;
  color: var(--white) !important;
}
.nav-track-link::after { display: none !important; } /* no underline animation */

/* ── Mobile menu tracking card ─────────────────────────── */
.nav-mobile-track {
  display: flex !important;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem !important;
  margin: .5rem 0 !important;
  background: rgba(21,101,192,.1) !important;
  border: 1px solid rgba(66,165,245,.25) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--accent-light) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .9rem !important;
}
.nav-mobile-track:hover {
  background: rgba(21,101,192,.18) !important;
  color: var(--white) !important;
}
.nav-mobile-track-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(21,101,192,.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
}
.nav-mobile-track-text {
  display: flex; flex-direction: column; gap: .1rem; flex: 1;
}
.nav-mobile-track-text strong {
  font-size: .95rem; font-weight: 700;
  font-family: var(--ff-display); letter-spacing: .04em;
}
.nav-mobile-track-text small {
  font-size: .72rem; color: var(--dim); font-weight: 400;
}

/* ── Track page — mobile improvements ─────────────────── */
@media (max-width: 600px) {
  .track-search-wrap { flex-direction: column; gap: .65rem; }
  .track-search-input { font-size: .95rem; padding: 1rem 1.1rem; }
  .track-search-wrap .btn { width: 100%; justify-content: center; padding: .95rem; }
  .track-card { padding: 1.1rem; }
  .track-ref  { font-size: 1.15rem; }
  .track-step-label { font-size: .6rem; }
  .track-progress { gap: 0; padding-bottom: .35rem; }
  .track-step { min-width: 52px; }
  .track-card-head { gap: .5rem; }
  .track-status-badge { font-size: .75rem; padding: .35rem .85rem; }
  /* Stack status badge below ref on very small screens */
  .track-card-head { flex-direction: column; align-items: flex-start; }
}
