/* ==========================================================================
   STIGMA SOUTH — design system
   Thesis: the site *is* the room they build. Cold slate, one warm light.
   · Canvas  = a room at night (deep, slightly blue slate — never pure black)
   · Accent  = 2700K warm white, the actual colour of their LED strips
   · Brand   = green→cyan gradient, reserved for the mark and "live" states
   · Signature = a conductor line running the page, like a single-line diagram
   No heavy imagery in the chrome: everything structural is drawn in CSS.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #0A0D11;
  --surface:   #11161D;
  --surface-2: #171E27;
  --surface-3: #1E2732;

  /* Ink */
  --ink:   #EEF2F6;
  --ink-2: #9AA6B4;
  --ink-3: #6A7683;

  /* Hairlines */
  --line:   rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);

  /* The light — warm LED, 2700K */
  --led:      #FFD7A0;
  --led-hot:  #FFF1DC;
  --led-glow: rgba(255,215,160,.30);

  /* Brand — mark + live states only */
  --brand:      #2FE06B;
  --grad-green: linear-gradient(105deg, #35E15B 0%, #1FE0AE 52%, #14D6EA 100%);

  --danger: #FF6B6B;

  --font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --rail-w: 140px;
  --header-h: 76px;

  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px;
  --s6:32px; --s7:48px; --s8:72px; --s9:112px; --s10:160px;

  --radius: 6px;
  --radius-lg: 14px;
  --maxw: 1220px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-in: cubic-bezier(.55,.06,.68,.19);
  --dur: 260ms;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--led); color: #17120A; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: .012em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); letter-spacing: .02em; }

/* Section label */
.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  font-size: .8rem; color: var(--led);
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--led); color: #17120A; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- Side rail ------------------------------------------------------------ */
.side-rail {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--rail-w);
  background: #06080B; border-right: 1px solid var(--line);
  z-index: 70; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 22px 0 18px;
}
.rail-logo { display: block; width: 94px; height: clamp(324px, calc(100dvh - 250px), 684px); position: relative; }
.side-rail .rail-mark {
  display: block; width: clamp(324px, calc(100dvh - 250px), 684px); height: 94px;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(90deg);
  -webkit-mask: url('../assets/brand/logo-mask.png') left center / contain no-repeat;
          mask: url('../assets/brand/logo-mask.png') left center / contain no-repeat;
  background: var(--grad-green);
  transition: filter var(--dur) var(--ease);
}
.rail-logo:hover .rail-mark { filter: brightness(1.2) saturate(1.15); }
.rail-company {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .7rem; letter-spacing: .34em; color: var(--ink-3);
  white-space: nowrap; user-select: none;
}

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: var(--rail-w); right: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 0 clamp(16px, 3vw, 36px); z-index: 60; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,11,15,.92), rgba(8,11,15,0));
  backdrop-filter: blur(6px);
}
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 30px); }
.site-nav a {
  position: relative; padding: 6px 0;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--led); box-shadow: 0 0 12px -2px var(--led-glow);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--led); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header > * { pointer-events: auto; }
.site-header .brand-logo { display: none; }
.header-tools { display: flex; align-items: center; gap: var(--s2); }
.icon-btn {
  height: 40px; min-width: 40px; padding: 0 14px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .06em;
  color: var(--ink); border: 1px solid var(--line-2);
  background: rgba(17,22,29,.72); backdrop-filter: blur(10px);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--led); color: var(--led); }
.shop-btn {
  height: 42px; padding: 0 22px; gap: 10px; border-radius: var(--radius);
  background: var(--led); color: #17120A; border-color: var(--led);
  font-size: .84rem; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 26px -14px var(--led-glow);
}
.shop-btn:hover { background: var(--led-hot); color: #17120A; border-color: var(--led-hot); transform: translateY(-1px); }

.icon-btn svg { width: 18px; height: 18px; }
.cart-btn { letter-spacing: .1em; text-transform: uppercase; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--led); color: #17120A;
  font-size: .68rem; font-weight: 700; line-height: 19px; text-align: center; display: none;
}
.cart-count.show { display: block; }

/* ---- App ------------------------------------------------------------------ */
#app { position: relative; z-index: 10; padding-left: var(--rail-w); min-height: 100dvh; }
.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 820px); margin-inline: auto; }

.view { position: relative; padding: calc(var(--header-h) + var(--s7)) 0 var(--s9); min-height: 100dvh; }
.view-enter { opacity: 0; transform: translateY(14px); }
.view-enter-active { opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.view-exit-active { opacity: 0; transition: opacity 220ms var(--ease-in); }

.page-head { margin-bottom: var(--s8); }
.page-head h1 { margin-top: var(--s4); }
.page-head .lead { color: var(--ink-2); font-size: clamp(1.08rem, 1.7vw, 1.3rem); margin-top: var(--s4); max-width: 58ch; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s6);
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.back-link:hover { color: var(--led); gap: 13px; }
.back-link svg { width: 15px; height: 15px; }

/* ==========================================================================
   HOME — cinematic, image-driven. Motion is transform-only CSS plus one
   IntersectionObserver; nothing runs per frame.
   ========================================================================== */
.home { position: relative; }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100dvh; display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 8px); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 42% at 74% 40%, rgba(255,215,160,.10), transparent 64%),
    radial-gradient(38% 44% at 12% 86%, rgba(31,224,174,.05), transparent 66%);
}
.hero-ghost {
  position: absolute; left: -1.5vw; bottom: 8vh; z-index: 0;
  font-family: var(--font-display); font-weight: 700; line-height: .78;
  font-size: clamp(8rem, 23vw, 24rem); letter-spacing: .01em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.055);
  pointer-events: none; user-select: none;
}
.hero-grid {
  position: relative; z-index: 1; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: var(--s6);
}
.hero-copy > * { animation: rise 700ms var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 90ms; }
.hero-copy > :nth-child(3) { animation-delay: 180ms; }
.hero-copy > :nth-child(4) { animation-delay: 270ms; }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 5.4rem); max-width: 14ch; margin-top: var(--s4); }
.hero h1 .lit {
  background: linear-gradient(92deg, var(--led-hot), var(--led));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 52ch; margin-top: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s7); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; animation: rise 900ms var(--ease) 200ms backwards; }
.hero-glow {
  position: absolute; inset: 6% 2%; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 46%, rgba(255,215,160,.20), transparent 70%);
}
.hero-prod {
  position: relative; width: min(82%, 440px);
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.6));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(10px); } }
.hero-chip {
  position: absolute; right: 2%; bottom: 7%; display: grid; gap: 2px;
  padding: 12px 18px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(17,22,29,.78); backdrop-filter: blur(8px);
}
.hero-chip b { font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--led); }
.hero-chip span { font-size: .78rem; color: var(--ink-2); }

/* ---- Marquee (hero bottom edge) ------------------------------------------- */
.marquee {
  position: relative; z-index: 1; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 15px 0; background: rgba(6,8,11,.6);
}
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; will-change: transform; }
.marquee-half { display: flex; align-items: center; }
.marquee-half span {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
  padding: 0 26px;
}
.marquee-half i { font-style: normal; color: var(--led); font-size: .8rem; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---- Home sections --------------------------------------------------------- */
.hsec { position: relative; padding: var(--s9) 0; }
.hsec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s7); }
.hsec-head h2 { max-width: 18ch; }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease) var(--d, 0ms), transform 700ms var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---- Services: full-bleed photo tiles -------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4); }
.tile { position: relative; display: block; grid-column: span 6; min-height: clamp(300px, 34vw, 430px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.tile:nth-child(1), .tile:nth-child(4) { grid-column: span 7; }
.tile:nth-child(2), .tile:nth-child(3) { grid-column: span 5; }
.tile > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) brightness(.72); transform: scale(1.01);
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}
.tile:hover > img { transform: scale(1.06); filter: saturate(1) brightness(.9); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(185deg, rgba(7,9,12,.05) 34%, rgba(7,9,12,.94) 100%); }
.tile-num {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .24em; color: var(--led);
}
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 8px; }
.tile-body h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); text-transform: uppercase; max-width: 18ch; }
.tile-body p {
  color: var(--ink-2); font-size: .92rem; line-height: 1.55; max-width: 54ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-go {
  position: absolute; right: clamp(18px, 2.6vw, 30px); bottom: clamp(18px, 2.6vw, 30px);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--ink-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile:hover .tile-go { border-color: var(--led); color: var(--led); transform: translateX(4px); }
.tile-go svg { width: 16px; height: 16px; }

/* ---- Q-Tech showcase ------------------------------------------------- */
.qtech {
  position: relative; overflow: hidden; padding: var(--s9) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(56% 70% at 26% 40%, rgba(255,215,160,.07), transparent 62%), #07090C;
}
.qtech-ghost {
  position: absolute; top: 20px; right: -1vw;
  font-family: var(--font-display); font-weight: 700; line-height: .8; text-transform: uppercase;
  font-size: clamp(5rem, 15vw, 15rem);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05);
  pointer-events: none; user-select: none;
}
.qtech-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.qtech-media { position: relative; display: grid; place-items: center; }
.qtech-media::before {
  content: ''; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,215,160,.17), transparent 70%);
}
.qtech-media img { position: relative; width: min(86%, 430px); filter: drop-shadow(0 36px 60px rgba(0,0,0,.65)); }
.qtech-copy h2 { margin: var(--s4) 0; max-width: 16ch; }
.qtech-copy p { color: var(--ink-2); max-width: 48ch; }
.spot-list { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: 10px; }
.spot-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.spot-list li::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: var(--led); box-shadow: 0 0 10px -1px var(--led-glow); flex: none; }

.qtech-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s8); }
.qmini {
  display: flex; align-items: center; gap: var(--s4);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: var(--s4) var(--s5);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.qmini:hover { border-color: var(--led); transform: translateY(-3px); }
.qmini img { width: 60px; height: 60px; object-fit: contain; flex: none; }
.qmini span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.qmini b { font-family: var(--font-display); font-weight: 600; font-size: .96rem; letter-spacing: .02em; }
.qmini em { font-style: normal; color: var(--led); font-family: var(--font-display); font-size: .88rem; font-variant-numeric: tabular-nums; }
.qmini svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.qmini:hover svg { color: var(--led); transform: translateX(3px); }

/* ---- Final CTA -------------------------------------------------------------- */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--surface) 30%, #191510 100%);
  padding: clamp(32px, 6vw, 84px) clamp(24px, 5vw, 72px); position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(56% 130% at 88% 10%, rgba(255,215,160,.13), transparent 62%); }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--ink-2); margin-top: var(--s4); max-width: 52ch; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-primary, .btn-led { background: var(--led); color: #17120A; }
.btn-primary:hover, .btn-led:hover { background: var(--led-hot); transform: translateY(-2px); box-shadow: 0 14px 30px -16px var(--led-glow); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--led); color: var(--led); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---- Prose / Despre ------------------------------------------------------- */
.prose p { color: var(--ink-2); font-size: 1.1rem; line-height: 1.75; margin-bottom: var(--s4); max-width: 66ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.legal .legal-sec { margin-bottom: var(--s6); }
.legal h2 { font-size: 1.2rem; margin-bottom: var(--s3); text-transform: none; letter-spacing: .02em; }
.legal p { font-size: 1.02rem; }
.legal a { color: var(--led); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--led-hot); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s7); }
.value-card { padding: var(--s6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--ink-2); font-size: .97rem; }

/* "Știai că?" */
.fact-box { margin-top: var(--s5); }
.fact-rotator {
  min-height: 7em; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.6;
  color: var(--ink); padding-left: var(--s5); border-left: 2px solid var(--led);
}
.fact-nav { display: flex; gap: var(--s2); margin-top: var(--s5); }
.fact-arrow {
  width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--ink-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.fact-arrow:hover { border-color: var(--led); color: var(--led); }
.fact-arrow svg { width: 18px; height: 18px; }

/* ---- Instalatii ----------------------------------------------------------- */
.cat-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cat {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: center;
  padding: var(--s6); background: var(--surface); cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.cat:hover { background: var(--surface-2); }
.cat h3 { margin-bottom: 8px; }
.cat p { color: var(--ink-2); font-size: 1rem; max-width: 70ch; }
.cat .led-tick { width: 6px; height: 40px; border-radius: 3px; background: var(--line-2); transition: all var(--dur) var(--ease); }
.cat:hover .led-tick { background: var(--led); box-shadow: 0 0 16px -2px var(--led-glow); }
.cat-page { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s8); align-items: start; }
.cat-page.no-gallery { grid-template-columns: 1fr; max-width: 780px; }
.cat-gallery { grid-template-columns: 1fr 1fr; margin-top: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s6); }
.gallery-grid figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }

/* ---- Shop ----------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.product-media::before { content: ''; position: absolute; inset: 0; background: radial-gradient(58% 52% at 50% 26%, rgba(255,215,160,.13), transparent 72%); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: var(--s5); transition: transform 500ms var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-tag {
  align-self: start; display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--led); background: rgba(255,215,160,.10);
  border: 1px solid rgba(255,215,160,.28); padding: 5px 10px; border-radius: 999px;
}
.product-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.product-body h3 { font-size: 1.15rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: auto; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-oncall { font-size: 1rem; color: var(--ink-3); }

/* ---- Product detail ------------------------------------------------------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px,5vw,72px); align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-hero { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.pd-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(58% 52% at 50% 24%, rgba(255,215,160,.14), transparent 72%); }
/* absolut + inset:0 dă înălțime sigură; cu height:100% pe un container cu
   aspect-ratio imaginea ieșea din cadru și apărea tăiată */
.pd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: var(--s7); }
.pd-thumbs { display: flex; gap: var(--s2); margin-top: var(--s3); }
.pd-thumb { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 7px; cursor: pointer; transition: border-color var(--dur) var(--ease); }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--led); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-price { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--led); margin: var(--s4) 0 var(--s6); font-variant-numeric: tabular-nums; }
.pd-features { list-style: none; padding: 0; display: grid; gap: 10px; margin: var(--s5) 0; }
.pd-features li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.pd-features li::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: var(--led); flex: none; }
.pd-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s5) 0; }
.pd-section { margin-top: var(--s7); }
.pd-section h2 { font-size: 1.25rem; margin-bottom: var(--s4); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.spec-table td:first-child { color: var(--ink-3); width: 46%; }
.spec-table td:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.sellers { display: flex; gap: var(--s2); flex-wrap: wrap; }
.seller-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border: 1px solid var(--line-2); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .06em; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.seller-link:hover { border-color: var(--led); color: var(--led); }
.seller-link[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.seller-link svg { width: 15px; height: 15px; }

/* ---- Variante de culoare --------------------------------------------------- */
.pd-variants { margin: 0 0 var(--s5); }
.pd-variants .field-label { display: block; margin-bottom: 10px; }
.swatches { display: flex; gap: var(--s2); flex-wrap: wrap; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; letter-spacing: .05em;
  color: var(--ink-2); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.swatch:hover { border-color: var(--led); color: var(--ink); }
.swatch.active { border-color: var(--led); color: var(--ink); box-shadow: 0 0 0 1px var(--led); }
.swatch-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); }
.swatch-alb { background: #F2F3F5; }
.swatch-negru { background: #17191C; }
.ci-variant { color: var(--led); font-size: .8rem; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }

/* ---- Recenzii -------------------------------------------------------------- */
/* Stelele: un rând gri de ★ peste care se suprapune unul cald, tăiat procentual,
   ca 4.5 să arate chiar ca patru stele și jumătate. */
.stars { position: relative; display: inline-block; white-space: nowrap; color: var(--ink-3); line-height: 1; }
.stars::before, .stars-fill::before { content: '★★★★★'; letter-spacing: .12em; }
.stars-fill { position: absolute; inset: 0; overflow: hidden; color: var(--led); }
.stars-sm { font-size: .95rem; }
.stars-lg { font-size: 1.5rem; }

.card-rating { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: .8rem; }
.card-rating:hover { color: var(--ink-2); }
.tag-best { color: #17120A; background: var(--led); border-color: var(--led); }

.rev-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.rev-avg { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--ink); line-height: 1; }
.rev-n { color: var(--ink-3); font-size: .9rem; }
.rev-empty { color: var(--ink-3); margin-bottom: var(--s5); max-width: 52ch; }
.rev-list { display: grid; gap: var(--s5); }
.rev-item { border-top: 1px solid var(--line); padding-top: var(--s4); }
.rev-meta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: 8px; }
.rev-meta strong { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.rev-meta time { color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.rev-badge {
  font-family: var(--font-display); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); border: 1px solid rgba(47,224,107,.35); background: rgba(47,224,107,.08);
  padding: 3px 8px; border-radius: 999px;
}
.rev-item p { color: var(--ink-2); line-height: 1.6; }
.rev-open { margin-top: var(--s5); }
.rev-form { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.rev-form[hidden] { display: none; }
.rate { display: flex; gap: 4px; }
.rate-star {
  font-size: 1.9rem; line-height: 1; color: var(--ink-3); padding: 0 2px;
  transition: color 120ms var(--ease), transform 120ms var(--ease);
}
.rate-star:hover { transform: translateY(-2px); }
.rate-star.on { color: var(--led); }
.rev-policy { color: var(--ink-3); font-size: .84rem; line-height: 1.55; margin-top: var(--s5); max-width: 62ch; }

/* ---- Cart drawer ---------------------------------------------------------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(4,6,9,.72); opacity: 0; visibility: hidden; z-index: 90; transition: opacity var(--dur) var(--ease), visibility var(--dur); }
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(430px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line); z-index: 100;
  transform: translateX(100%); transition: transform 340ms var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s5); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s5); }
.drawer-foot { padding: var(--s5); border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius); padding: 6px; }
.cart-item .ci-name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.cart-item .ci-price { color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin-top: 6px; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); }
.qty button:hover { background: var(--surface-2); color: var(--led); }
.qty span { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; font-size: .9rem; }
.ci-remove { color: var(--ink-3); font-size: .78rem; }
.ci-remove:hover { color: var(--danger); }
.cart-empty { text-align: center; color: var(--ink-3); padding: var(--s8) 0; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s4); }
.cart-total .price { font-size: 1.5rem; color: var(--led); }
.secured { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); font-size: .76rem; margin-top: var(--s3); }

/* ---- Forms / Checkout ----------------------------------------------------- */
.form-grid { display: grid; gap: var(--s4); }
.form-row { display: grid; gap: 6px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: var(--s4); }
label.field-label { font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
label.field-label .req { color: var(--led); }
.input, .textarea, .select {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface-2); color: var(--ink); min-height: 48px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--led); background: var(--surface-3); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.field-hint { color: var(--ink-3); font-size: .8rem; line-height: 1.45; }
.field-error { color: var(--danger); font-size: .78rem; display: none; }
.form-row.invalid .field-error { display: block; }
.form-row.invalid .input, .form-row.invalid .textarea, .form-row.invalid .select { border-color: var(--danger); }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-status.ok { display: block; background: rgba(47,224,107,.1); color: var(--brand); border: 1px solid rgba(47,224,107,.3); }
.form-status.err { display: block; background: rgba(255,107,107,.08); color: var(--danger); border: 1px solid rgba(255,107,107,.3); }

.checkout { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(24px,4vw,56px); align-items: start; }
.ship-opt {
  display: flex; align-items: center; gap: var(--s4);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: var(--s4) var(--s5); cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.ship-opt:has(input:checked) { border-color: var(--led); box-shadow: 0 0 0 1px var(--led); }
.ship-opt input { accent-color: #FFD7A0; width: 17px; height: 17px; flex: none; }
.ship-body { flex: 1; display: grid; gap: 2px; }
.ship-body b { font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .03em; }
.ship-body small { color: var(--ink-3); font-size: .84rem; }
.ship-price { font-family: var(--font-display); font-weight: 600; color: var(--led); font-variant-numeric: tabular-nums; }
.ship-soon { opacity: .45; cursor: not-allowed; }
.co-line { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .95rem; padding: 6px 0; font-variant-numeric: tabular-nums; }
.locker-block { margin: 6px 0 2px; padding-left: 30px; display: grid; gap: 10px; }
.locker-block[hidden] { display: none; }
.locker-pick { height: 42px; padding: 0 20px; align-self: start; }
.locker-chosen { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.locker-chosen[hidden] { display: none; }
.locker-chosen strong { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--led); }
.locker-chosen span { color: var(--ink-2); font-size: .86rem; }
.locker-block.invalid .locker-pick { border-color: var(--danger); color: var(--danger); }
.co-summary { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); background: var(--surface); }
.co-rows { margin: var(--s4) 0; display: grid; gap: var(--s3); }
.co-row { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s3); align-items: center; }
.co-row img { width: 52px; height: 52px; object-fit: contain; background: var(--surface-2); border-radius: 8px; padding: 5px; }
.co-name { font-family: var(--font-display); font-weight: 600; font-size: .94rem; line-height: 1.2; }
.co-qty { color: var(--ink-3); font-size: .84rem; }
.co-hint { color: var(--ink-3); font-size: .86rem; line-height: 1.5; margin-top: var(--s2); }
.checkout .cart-total { border-top: 1px solid var(--line); padding-top: var(--s3); margin-bottom: 0; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); margin-top: var(--s9); background: #070A0D; }
.footer-grid { display: flex; justify-content: space-between; gap: var(--s7); flex-wrap: wrap; }
.footer-contact a { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.footer-contact a:hover { color: var(--led); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--ink-2); font-size: .92rem; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--led); }
.footer-links .eyebrow { margin-bottom: 6px; }
.footer-meta {
  color: var(--ink-2); font-size: .86rem; margin-top: var(--s7);
  padding-top: var(--s5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
}
.footer-meta a { color: var(--ink-3); }
.footer-meta a:hover { color: var(--led); }
.logo-green { display: block; width: 150px; height: 30px; background: var(--grad-green);
  -webkit-mask: url('../assets/brand/logo-mask.png') left center / contain no-repeat;
          mask: url('../assets/brand/logo-mask.png') left center / contain no-repeat; }

/* ---- Veil ----------------------------------------------------------------- */
#veil { position: fixed; inset: 0; background: var(--bg); z-index: 300; display: grid; place-items: center; transition: opacity 480ms var(--ease); }
#veil.hide { opacity: 0; pointer-events: none; }
#veil .v-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
#veil .v-bar { width: 150px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
#veil .v-bar::after { content: ''; display: block; width: 40%; height: 100%; background: var(--led); animation: veilsweep 1.05s var(--ease) infinite; }
@keyframes veilsweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---- Entrance ------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.value-card, .product-card, .cat { animation: rise 480ms var(--ease) backwards; }
.value-card:nth-child(2), .product-card:nth-child(2), .cat:nth-child(2) { animation-delay: 60ms; }
.value-card:nth-child(3), .product-card:nth-child(3), .cat:nth-child(3) { animation-delay: 120ms; }
.product-card:nth-child(4), .cat:nth-child(4) { animation-delay: 180ms; }
.product-card:nth-child(n+5) { animation-delay: 240ms; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: var(--s6); }
  .hero-visual { min-height: 0; margin-top: var(--s6); }
  .hero-prod { width: min(56%, 320px); animation: none; }
  .hero-chip { display: none; }
  .hero-ghost { font-size: clamp(6rem, 26vw, 12rem); bottom: 4vh; }
  .tile, .tile:nth-child(1), .tile:nth-child(2), .tile:nth-child(3), .tile:nth-child(4) { grid-column: span 12; min-height: clamp(240px, 44vw, 340px); }
  .qtech-grid { grid-template-columns: 1fr; }
  .qtech-media img { width: min(60%, 320px); }
  .qtech-row { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .cat-page { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .values { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header { justify-content: flex-end; }
  .shop-btn { padding: 0 16px; font-size: .78rem; }
}
@media (max-width: 720px) {
  :root { --rail-w: 56px; --header-h: 64px; }
  .side-rail { padding: 16px 0 14px; }
  .rail-logo { width: 34px; height: clamp(190px, calc(100dvh - 300px), 340px); }
  .side-rail .rail-mark { width: clamp(190px, calc(100dvh - 300px), 340px); height: 34px; }
  .rail-company { font-size: .54rem; letter-spacing: .26em; }
  .container, .container-narrow { width: min(100% - 26px, var(--maxw)); }
  /* magazinul rămâne pe două coloane și pe telefon */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .product-media img { padding: var(--s5); }
  .product-body { padding: var(--s4); gap: 8px; }
  .product-body h3 { font-size: .92rem; line-height: 1.25; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 9px; }
  .product-foot .btn { width: 100%; height: 40px; padding: 0 8px; font-size: .7rem; letter-spacing: .03em; white-space: nowrap; }
  .price { font-size: 1.05rem; }
  /* .46rem/.04em = exact cât încape "Nu necesită alimentare" pe un rând
     în cardul de jumătate de ecran, fără să fie tăiat cu "..." */
  .product-tag {
    font-size: .46rem; padding: 3px 7px; letter-spacing: .04em; max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* încadrare: titlurile lungi nu mai lățesc coloana */
  .product-body h3 a { overflow-wrap: anywhere; }
  .pd-hero img { padding: var(--s5); }
  .pd-thumb { width: 62px; height: 62px; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: var(--s5); }
  .hsec, .qtech { padding: var(--s8) 0; }
  .marquee-half span { font-size: .76rem; padding: 0 16px; }
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
