/* ==========================================================================
   Brutăria Glincor — design system
   ========================================================================== */
:root {
  --bg: #120d09;
  --bg-2: #1c150f;
  --surface: rgba(255, 236, 210, 0.04);
  --surface-2: rgba(255, 236, 210, 0.07);
  --line: rgba(255, 232, 200, 0.1);
  --line-2: rgba(255, 232, 200, 0.2);
  --text: #f6ecdc;
  --muted: #b5a38c;
  --lime: #f0b93a;
  --lime-ink: #1d1206;
  --coral: #c8412e;
  --violet: #9a5a2a;
  --accent: var(--lime);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Atmosphere: drifting smoke + grain ---------- */
.atmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atmos i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32;
  animation: drift 26s var(--ease) infinite alternate;
}
.atmos i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--violet); }
.atmos i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 22vh; background: var(--coral); opacity: 0.18; animation-duration: 32s; animation-delay: -8s; }
.atmos i:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: var(--lime); opacity: 0.12; animation-duration: 38s; animation-delay: -15s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.92); }
}
.grain {
  position: fixed; inset: -50%; z-index: 1000; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ---------- Scroll progress + page curtain + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.curtain {
  position: fixed; inset: 0; z-index: 900; background: var(--lime); pointer-events: none;
  transform: translateY(-100%);
}
.curtain.enter { animation: curtainOut 0.75s var(--ease) both; }
.curtain.leave { animation: curtainIn 0.4s var(--ease) both; }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes curtainIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.curtain span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: clamp(40px, 10vw, 120px); color: var(--lime-ink); letter-spacing: -0.04em;
}

.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none; border-radius: 50%; display: none; }
.cursor { width: 6px; height: 6px; background: var(--lime); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(240, 185, 58, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.cursor-ring.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(240, 185, 58, 0.08); border-color: var(--lime); }
@media (pointer: fine) { .has-cursor .cursor, .has-cursor .cursor-ring { display: block; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(18, 13, 9, 0.6); border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.45s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(18, 13, 9, 0.82); }
.header.hide { transform: translateY(-100%); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; }
.logo svg circle { transform-origin: 50% 50%; animation: spin 9s linear infinite; }
.logo svg circle:nth-child(2) { animation-duration: 6s; animation-direction: reverse; }
.logo svg circle:nth-child(3) { animation-duration: 4s; }
.logo b { color: var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  transition: transform 0.3s var(--ease-back), background 0.3s;
}
.cart-btn:hover { background: var(--lime); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff;
  font-size: 12px; display: grid; place-items: center; font-weight: 800;
}
.cart-count[data-n='0'] { background: rgba(0, 0, 0, 0.15); color: inherit; }
.cart-btn.bump { animation: bump 0.6s var(--ease-back); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(0.95) rotate(2deg); } 100% { transform: scale(1); } }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .header-actions { display: flex; gap: 8px; align-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; height: calc(100dvh - 72px); flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter); background: var(--bg); clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease); visibility: hidden;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a {
    font-family: var(--display); font-size: clamp(28px, 8vw, 40px); font-weight: 700; color: var(--text); background: none !important;
    padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; opacity: 0; transform: translateY(30px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: 0.05s; } .menu-open .nav a:nth-child(3) { transition-delay: 0.1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: 0.15s; } .menu-open .nav a:nth-child(5) { transition-delay: 0.2s; }
  .cart-btn .cart-label { display: none; }
}
@media (min-width: 861px) { .header-actions { display: flex; align-items: center; gap: 8px; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 800; font-size: 15px; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, color 0.35s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 40px -10px rgba(240, 185, 58, 0.55); }
.btn-primary::before { background: var(--text); }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(240, 185, 58, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 185, 58, 0.6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(240, 185, 58, 0); } }
.h-display { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; }
.h-section { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head .h-section em { font-style: normal; color: var(--lime); }

/* split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--base, 0ms)); }
.split.in .w > span { transform: none; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal='scale'] { transform: scale(0.92); }
[data-reveal='left'] { transform: translateX(-40px); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(46px, 8.6vw, 122px); margin: 22px 0 26px; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero h1 .lime { color: var(--lime); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; }
.hero-visual .disc {
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c2017, #140e0a 60%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -20px rgba(154, 90, 42, 0.45);
}
.hero-visual .ring { position: absolute; width: 100%; aspect-ratio: 1; animation: spin 30s linear infinite; }
.hero-visual .ring text { font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.32em; fill: var(--muted); text-transform: uppercase; }
.hero-visual .p { position: absolute; width: 50%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); transition: transform 0.2s linear; }
.hero-visual .p img { animation: bob 6s ease-in-out infinite; }
.hero-visual .p1 { left: -2%; top: 4%; width: 46%; opacity: 0.9; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)) saturate(0.9); }
.hero-visual .p1 img { transform: rotate(-12deg); animation-name: bobL; }
.hero-visual .p2 { left: 20%; top: 12%; width: 72%; z-index: 1; }
.hero-visual .p2 img { animation-delay: -3s; animation-name: bobR; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes bobL { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-20px) rotate(-8deg); } }
@keyframes bobR { 0%, 100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.hero-visual .sticker {
  position: absolute; z-index: 2; left: 4%; bottom: 10%; width: 120px; height: 120px; border-radius: 50%; background: var(--coral); color: #fff;
  display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; line-height: 1; transform: rotate(-14deg);
  box-shadow: 0 20px 40px -10px rgba(200, 65, 46, 0.6); animation: wobble 4s ease-in-out infinite;
}
.hero-visual .sticker small { display: block; font-size: 11px; letter-spacing: 0.1em; font-weight: 700; margin-top: 4px; }
.hero-visual .sticker strong { font-size: 30px; }
@keyframes wobble { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.06); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
.stat { background: var(--bg); padding: 22px 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; order: -1; }
  .hero-visual .sticker { width: 92px; height: 92px; } .hero-visual .sticker strong { font-size: 22px; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); transform: rotate(-1.5deg); margin: 0 -2vw; }
.marquee.alt { background: var(--lime); color: var(--lime-ink); transform: rotate(1.2deg); margin-top: -14px; border: 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee.alt .marquee-track { animation-direction: reverse; animation-duration: 30s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track span::after { content: '✦'; color: var(--lime); font-size: 0.7em; }
.marquee.alt .marquee-track span::after { color: var(--lime-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.card {
  --c: var(--lime);
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
  isolation: isolate;
}
.card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.card.tilting { transition: transform 0.12s linear, box-shadow 0.4s; }
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.1), transparent 45%);
}
.card:hover::after { opacity: 1; }
.card-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 68%);
  filter: blur(20px); opacity: 0.55; transition: opacity 0.5s, transform 0.8s var(--ease);
}
.card:hover .card-media::before { opacity: 0.95; transform: scale(1.2); }
.card-media img, .card-media .ph { position: relative; width: 78%; transform: translateZ(40px); transition: transform 0.8s var(--ease); }
.card-media .float { animation: bob 5s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.card:hover .card-media img, .card:hover .card-media .ph { transform: translateZ(60px) scale(1.08) rotate(-4deg); }
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--coral); color: #fff; transform: translateZ(50px);
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; transform: translateZ(30px); }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.price del { color: var(--muted); font-size: 14px; font-weight: 500; font-family: var(--body); }
.card-go {
  width: 46px; height: 46px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; flex: none;
  transition: transform 0.5s var(--ease-back), background 0.3s;
}
.card-go svg { width: 18px; height: 18px; }
.card:hover .card-go { background: var(--c); transform: rotate(-45deg) scale(1.08); color: #000; }
.card-link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }

/* device placeholder (products without photo) */
.ph { aspect-ratio: 1; }
.ph svg { width: 100%; height: 100%; overflow: visible; }
.ph .smoke { animation: smoke 4s ease-in-out infinite; transform-origin: 50% 100%; opacity: 0; }
.ph .smoke:nth-child(2) { animation-delay: 1.3s; } .ph .smoke:nth-child(3) { animation-delay: 2.6s; }
@keyframes smoke { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 30% { opacity: 0.5; } 100% { transform: translateY(-40px) scale(1.6); opacity: 0; } }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.cat:hover { transform: translateY(-6px); }
.cat.active { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.cat-num { font-family: var(--display); font-size: 13px; font-weight: 700; opacity: 0.6; }
.cat h3 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.03em; line-height: 1.05; }
.cat p { font-size: 13px; opacity: 0.7; margin-top: 6px; }
.cat-count { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.6; }
.cat .blob { position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--violet); filter: blur(30px); opacity: 0.4; transition: transform 0.8s var(--ease); }
.cat:hover .blob { transform: scale(1.6) translate(-20px, -20px); }
.cat.active .blob { background: #fff; opacity: 0.5; }
@media (max-width: 860px) { .cats { grid-template-columns: repeat(2, 1fr); } .cat { min-height: 150px; } }

/* filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s, color 0.3s;
}
.chip.active { background: var(--text); color: var(--bg); }
.grid .card.leaving { animation: cardOut 0.25s var(--ease) both; }
.grid .card.entering { animation: cardIn 0.6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes cardOut { to { opacity: 0; transform: scale(0.94); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } }
.empty { padding: 60px 20px; text-align: center; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.empty b { display: block; font-family: var(--display); color: var(--text); font-size: 22px; margin-bottom: 6px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.step::before {
  counter-increment: s; content: '0' counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: 26px; transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.step:hover::before { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.step h3 { font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.step.in .bar { transform: scaleX(1); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 6vw, 72px);
  background: var(--lime); color: var(--lime-ink); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.band h2 { font-family: var(--display); font-size: clamp(28px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.band p { margin-top: 12px; font-weight: 600; opacity: 0.75; }
.band .btn-primary { background: var(--lime-ink); color: var(--lime); box-shadow: none; }
.band .btn-primary::before { background: #fff; }
.band .btn-primary:hover { color: var(--lime-ink); }
.band .orb { position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.2); animation: spin 20s linear infinite; }
.band .orb::after { content: ''; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime-ink); }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(40px, 8vw, 96px); border-top: 1px solid var(--line); padding: 56px 0 28px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { position: relative; transition: color 0.3s; }
.footer a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.4s var(--ease); }
.footer a:hover { color: var(--lime); }
.footer a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.footer p { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 12px; }
.footer-big {
  font-family: var(--display); font-weight: 800; font-size: clamp(56px, 16vw, 230px); line-height: 0.8; letter-spacing: -0.06em;
  margin-top: 48px; color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; user-select: none;
  background: linear-gradient(90deg, var(--lime), var(--coral), var(--violet), var(--lime)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; transition: color 0.6s;
  animation: hue 10s linear infinite;
}
.footer-big:hover { color: transparent; -webkit-text-stroke-color: transparent; }
@keyframes hue { to { background-position: 300% 0; } }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.badge18 { display: inline-flex; align-items: center; gap: 8px; }
.badge18 b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--coral); color: var(--coral); font-size: 11px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(44px, 9vw, 120px); margin-top: 16px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.crumbs a:hover { color: var(--text); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding: clamp(20px, 3vw, 40px) 0 0; }
.stage {
  --c: var(--lime);
  position: sticky; top: 96px; aspect-ratio: 1; border-radius: calc(var(--radius) + 8px); overflow: hidden;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 35%, transparent), transparent 60%), var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background 0.8s var(--ease);
}
.stage::before {
  content: ''; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--c) 30%, transparent), transparent 40%);
  animation: spin 12s linear infinite; opacity: 0.6;
}
.stage-name {
  position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 92px);
  letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12); white-space: nowrap; pointer-events: none;
}
.stage-img { position: relative; width: 70%; aspect-ratio: 1; display: grid; place-items: center; transition: transform 0.25s linear; }
.stage-img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.stage-img .swap-out { animation: swapOut 0.45s var(--ease) both; }
.stage-img .swap-in { animation: swapIn 0.7s var(--ease) both, bob 6s ease-in-out 0.7s infinite; }
@keyframes swapOut { to { opacity: 0; transform: translateX(-30%) rotate(-18deg) scale(0.8); } }
@keyframes swapIn { from { opacity: 0; transform: translateX(30%) rotate(18deg) scale(0.8); } }
.pdp-info h1 { font-size: clamp(34px, 4.8vw, 62px); margin: 14px 0 12px; }
.pdp-tag { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 13px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 6px; flex-wrap: wrap; }
.pdp-price .now { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; }
.pdp-price del { color: var(--muted); font-size: 18px; }
.pdp-price .off { padding: 4px 10px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 800; font-size: 13px; }
.bulk { color: var(--lime); font-weight: 700; font-size: 15px; }
.pdp-desc { color: var(--muted); margin: 18px 0 26px; max-width: 56ch; }
.label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.label span:last-child { color: var(--text); letter-spacing: 0; text-transform: none; font-size: 14px; }
.flavors { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin-bottom: 26px; }
.flavor {
  --fc: var(--lime);
  position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; overflow: hidden; transition: transform 0.4s var(--ease-back), box-shadow 0.3s;
}
.flavor::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--fc) 50%, transparent), transparent 70%); opacity: 0.5; transition: opacity 0.3s; }
.flavor img { position: relative; width: 82%; height: 82%; object-fit: contain; transition: transform 0.4s var(--ease); }
.flavor .emo { position: relative; font-size: 22px; }
.flavor:hover { transform: translateY(-4px); }
.flavor:hover img { transform: scale(1.12) rotate(-6deg); }
.flavor.active { box-shadow: inset 0 0 0 2px var(--fc), 0 10px 30px -10px var(--fc); }
.flavor.active::before { opacity: 1; }
.qty { display: inline-flex; align-items: center; height: 56px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 48px; height: 100%; font-size: 20px; font-weight: 700; border-radius: 999px; transition: background 0.2s; }
.qty button:hover { background: var(--surface-2); }
.qty output { min-width: 32px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty.sm { height: 40px; } .qty.sm button { width: 36px; font-size: 16px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.feat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; }
.feat i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--lime)) 18%, transparent); color: var(--c, var(--lime)); font-style: normal; flex: none; }
.feat i svg { width: 18px; height: 18px; }
.note18 { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .stage { position: relative; top: 0; } }

/* ---------- Cart & checkout ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(18px, 3vw, 28px); }
.panel h2 { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 18px; }
.sticky { position: sticky; top: 96px; }
.line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
  animation: cardIn 0.6s var(--ease) both; animation-delay: var(--d, 0ms);
}
.line:first-child { padding-top: 0; }
.line.removing { animation: lineOut 0.4s var(--ease) both; }
@keyframes lineOut { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; } }
.line-img { --c: var(--lime); width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%), var(--bg-2); }
.line-img img, .line-img .ph { width: 80%; height: 80%; object-fit: contain; }
.line h3 { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; }
.line small { color: var(--muted); display: block; }
.line-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.line-price { font-family: var(--display); font-weight: 700; text-align: right; white-space: nowrap; }
.link-btn { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--coral); }
.sum { display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.sum-row b { color: var(--text); font-weight: 700; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 6px; border-top: 1px dashed var(--line-2); }
.sum-total b { font-family: var(--display); font-size: 28px; letter-spacing: -0.03em; }
.free { margin: 4px 0 18px; }
.free-text { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.free-text b { color: var(--lime); }
.free-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.free-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--lime)); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); transition: transform 1s var(--ease); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; height: 58px; padding: 22px 16px 8px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.field textarea { height: 96px; resize: vertical; padding-top: 26px; }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: transform 0.3s var(--ease), font-size 0.3s, color 0.3s; transform-origin: 0 0; }
.field input:focus, .field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(240, 185, 58, 0.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px); font-size: 11px; color: var(--lime); font-weight: 700; letter-spacing: 0.04em; }
.field.err input { border-color: var(--coral); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt > span {
  display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.opt > span b { display: flex; justify-content: space-between; gap: 8px; }
.opt > span small { color: var(--muted); }
.opt:hover > span { transform: translateY(-2px); }
.opt input:checked + span { box-shadow: inset 0 0 0 2px var(--lime); background: rgba(240, 185, 58, 0.05); }
.opt input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.form-title { font-family: var(--display); font-size: 16px; margin: 10px 0 -4px; letter-spacing: -0.01em; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(200, 65, 46, 0.1); box-shadow: inset 0 0 0 1px rgba(200, 65, 46, 0.4); font-size: 14px; display: none; }
.form-msg.show { display: block; animation: cardIn 0.4s var(--ease); }

/* result screens */
.result { text-align: center; padding: clamp(40px, 8vw, 90px) 20px; max-width: 640px; margin: 0 auto; }
.result .mark {
  width: 110px; height: 110px; margin: 0 auto 26px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center;
  animation: pop 0.8s var(--ease-back) both;
}
.result .mark svg { width: 52px; height: 52px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s 0.4s var(--ease) forwards; }
.result.warn .mark { background: var(--coral); color: #fff; }
@keyframes pop { from { transform: scale(0) rotate(-90deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.result h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px; }
.result p { color: var(--muted); }
.result pre { text-align: left; white-space: pre-wrap; background: var(--bg-2); border-radius: var(--radius-sm); padding: 16px; margin: 20px 0; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); font-family: ui-monospace, monospace; }
.result .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 800; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--x), 110vh, 0) rotate(var(--r)); } }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.prose p, .prose li { color: #d6c7b2; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.prose .todo { background: rgba(200, 65, 46, 0.14); color: #f3b9a8; padding: 1px 6px; border-radius: 6px; font-weight: 700; }

/* ---------- Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 980; display: grid; place-items: center; padding: 20px;
  background: rgba(18, 13, 9, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.5s var(--ease) both;
}
.gate.out { animation: fadeOut 0.5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
.gate-box { max-width: 460px; width: 100%; text-align: center; padding: clamp(28px, 5vw, 44px); border-radius: calc(var(--radius) + 6px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -20px rgba(154, 90, 42, 0.5); animation: cardIn 0.8s 0.1s var(--ease) both; }
.gate-18 { font-family: var(--display); font-weight: 800; font-size: 84px; line-height: 1; letter-spacing: -0.06em; background: linear-gradient(120deg, var(--lime), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate h2 { font-family: var(--display); font-size: 22px; margin: 10px 0 8px; letter-spacing: -0.02em; }
.gate p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.gate .actions { display: grid; gap: 10px; }
.gate.denied .gate-box { animation: shake 0.4s; }

/* ---------- Toast + fly to cart ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 960; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6); transition: transform 0.6s var(--ease-back); max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.fly { position: fixed; z-index: 970; pointer-events: none; width: 80px; height: 80px; object-fit: contain; transition: transform 0.85s cubic-bezier(0.5, -0.4, 0.6, 1), opacity 0.85s; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(100px, 26vw, 300px); color: transparent; -webkit-text-stroke: 2px var(--lime); animation: wobble 5s ease-in-out infinite; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- Phone: two cards per row ---------- */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 14px; }
  .card-cat { font-size: 10px; }
  .price { font-size: 16px; }
  .price del { font-size: 12px; }
  .card-go { width: 34px; height: 34px; }
  .card-go svg { width: 15px; height: 15px; }
  .card-tag { top: 10px; left: 10px; font-size: 11px; padding: 4px 8px; }
  .feats { grid-template-columns: 1fr; }
}

/* ---------- Adăugiri ---------- */
.card-cat b { color: var(--lime); font-weight: 800; }
/* Poze cu fundal: le încadrăm ca o fotografie rotunjită. */
img.photo { border-radius: 18px; object-fit: cover; aspect-ratio: 1; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7); }
.card-media img.photo { width: 70%; }
.stage-img > img.photo { inset: 6%; width: 88%; height: 88%; }
.flavors img { border-radius: 10px; }

/* variante ca butoane */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill {
  --fc: var(--lime);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; text-align: left;
  transition: transform 0.35s var(--ease-back), box-shadow 0.3s, background 0.3s;
}
.pill .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--fc); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 12px -2px var(--fc); flex: none; transition: transform 0.4s var(--ease-back); }
.pill small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pill .emo { font-size: 15px; }
.pill:hover { transform: translateY(-2px); }
.pill:hover .dot { transform: scale(1.3); }
.pill.active { box-shadow: inset 0 0 0 2px var(--fc); background: color-mix(in srgb, var(--fc) 12%, transparent); }

/* buton flotant de contact */
.tg-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 150; display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #2aabee; color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 14px 34px -10px rgba(42, 171, 238, 0.7); transition: transform 0.4s var(--ease-back);
  animation: tgIn 0.8s 1.2s var(--ease-back) both;
}
.tg-float svg { width: 20px; height: 20px; }
.tg-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.6); animation: ping 2.4s 2s infinite; }
.tg-float:hover { transform: translateY(-3px) scale(1.04); }
@keyframes tgIn { from { transform: translateY(120px); } }
@media (max-width: 600px) { .tg-float span { display: none; } .tg-float { width: 52px; padding: 0; justify-content: center; } }
.hero-grid { grid-template-columns: 1fr 1fr; }
.hero h1 { font-size: clamp(44px, 7.2vw, 108px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Mobil: nimic nu iese din ecran ---------- */
html, body { overflow-x: clip; }
.marquees { overflow: hidden; padding: 14px 0 22px; margin: -14px 0 -22px; }
.marquee { margin: 0 -12px; }
.grid > *, .two-col > *, .cats > *, .steps > *, .form-row > *, .opts > *, .grid2 > *, .feats > * { min-width: 0; }
.line { grid-template-columns: 84px minmax(0, 1fr) auto; }
.line h3, .card-title { overflow-wrap: anywhere; }
.cat h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 600px) {
  .page-hero h1 { font-size: clamp(38px, 12vw, 64px); }
  .hero h1 { font-size: clamp(36px, 12.5vw, 64px); }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { min-height: 132px; padding: 16px; border-radius: 18px; }
  .cat h3 { font-size: 18px; }
  .cat p { font-size: 12px; line-height: 1.4; }
  .cat-count { width: 30px; height: 30px; right: 12px; top: 12px; font-size: 12px; }
  .panel { padding: 16px; }
  .line { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .line-img { width: 60px; height: 60px; border-radius: 12px; }
  .line-price { grid-column: 2; text-align: left; }
  .sum-total b { font-size: 24px; }
  .section-head { gap: 14px; }
  .h-section { font-size: clamp(26px, 8vw, 40px); }
  .pdp-info h1 { font-size: clamp(30px, 10vw, 44px); }
  .pdp-price .now { font-size: 32px; }
  .buy-row .btn { min-width: 0; }
  .stage-name { font-size: 15vw; }
  .footer-big { font-size: 22vw; }
}
@media (max-width: 360px) {
  .grid { gap: 8px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 13px; }
  .price { font-size: 14px; }
  .card-go { width: 30px; height: 30px; }
  .card-tag { font-size: 10px; }
  .btn { padding: 0 20px; }
  .opt > span { padding: 12px; }
}
.logo span { white-space: nowrap; }

/* ---------- Performanță pe telefoane ----------
   Efectele cu filter/backdrop-filter și zgomotul animat sunt scumpe pentru GPU-ul
   telefoanelor (mai ales iPhone). Pe ecrane tactile le înlocuim cu variante ieftine. */
@media (hover: none), (max-width: 860px) {
  .grain { display: none; }
  .atmos i { filter: none; opacity: 0.5; background: radial-gradient(circle, var(--c, #9a5a2a) 0%, transparent 65%) !important; animation-duration: 40s; }
  .atmos i:nth-child(1) { --c: rgba(154, 90, 42, 0.55); }
  .atmos i:nth-child(2) { --c: rgba(200, 65, 46, 0.35); }
  .atmos i:nth-child(3) { --c: rgba(240, 185, 58, 0.22); }
  .header, .header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 13, 9, 0.94); }
  .hero-visual .p, .stage-img > * { filter: none; }
  .card-media::before { filter: none; }
  .card:hover .card-media::before { transform: none; }
  .cursor, .cursor-ring { display: none !important; }
}
/* Animațiile continue rulează doar pentru ce e pe ecran. */
.card:not(.vis) .float, .marquee:not(.vis) .marquee-track { animation-play-state: paused; }

/* ==========================================================================
   GLINCOR — stratul vizual al brutăriei (peste sistemul de bază)
   ========================================================================== */
:root { --gold: var(--lime); --ember: var(--coral); --crust: var(--violet); }

/* Tipografie: serif cald, cu italice aurii */
.h-display, .h-section { font-weight: 600; letter-spacing: -0.025em; font-optical-sizing: auto; }
.h-display { line-height: 0.98; }
.h-section em, .hero h1 em, .page-hero h1 em, .band h2 em, .story h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
.logo { font-family: var(--body); }
.logo img { height: 60px; width: auto; transition: transform 0.6s var(--ease-back); }
.logo:hover img { transform: rotate(-4deg) scale(1.05); }
.footer .logo img { height: 96px; }
.card-title, .step h3, .panel h2, .line h3, .result h2, .prose h2, .empty b, .cat h3 { letter-spacing: -0.01em; font-weight: 600; }
.price, .pdp-price .now, .sum-total b, .line-price, .stat b { font-weight: 600; letter-spacing: -0.01em; }
.marquee-track span { font-weight: 500; font-style: italic; letter-spacing: -0.01em; }
.marquee-track span::after { content: '❋'; font-style: normal; }
.btn { font-family: var(--body); }
.btn-primary { box-shadow: 0 12px 40px -12px rgba(240, 185, 58, 0.6); }

/* Atmosfera: lumina caldă a cuptorului, nu fum */
.atmos i:nth-child(1) { background: #b8661f; opacity: 0.28; }
.atmos i:nth-child(2) { background: var(--ember); opacity: 0.16; }
.atmos i:nth-child(3) { background: var(--gold); opacity: 0.14; }
.grain { opacity: 0.07; }
.curtain span { font-family: var(--display); font-style: italic; font-weight: 600; letter-spacing: -0.02em; text-transform: none; }

/* Motiv de broderie (ie moldovenească): romburi în punct în cruce */
.broderie {
  height: 26px; opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Cg fill='%23c8412e'%3E%3Crect x='24' y='2' width='4' height='4'/%3E%3Crect x='20' y='6' width='4' height='4'/%3E%3Crect x='28' y='6' width='4' height='4'/%3E%3Crect x='16' y='10' width='4' height='4'/%3E%3Crect x='32' y='10' width='4' height='4'/%3E%3Crect x='24' y='10' width='4' height='4' fill='%23f0b93a'/%3E%3Crect x='20' y='14' width='4' height='4'/%3E%3Crect x='28' y='14' width='4' height='4'/%3E%3Crect x='24' y='18' width='4' height='4'/%3E%3Crect x='4' y='10' width='4' height='4'/%3E%3Crect x='44' y='10' width='4' height='4'/%3E%3Crect x='0' y='12' width='52' height='1.4' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 52px 26px; background-position: 0 50%;
  animation: stitch 40s linear infinite;
}
.broderie.rev { animation-direction: reverse; }
@keyframes stitch { to { background-position: 520px 50%; } }
.broderie-wrap { padding: 6px 0; border-block: 1px solid var(--line); background: var(--bg-2); }

/* Hero */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero h1 { font-size: clamp(46px, 7.4vw, 112px); }
.hero h1 em { display: inline-block; }
.hero .eyebrow::before { background: var(--gold); }
.oven { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; }
.oven .glow {
  position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(240, 150, 50, 0.45), rgba(200, 65, 46, 0.18) 45%, transparent 70%);
  filter: blur(10px); animation: flicker 5s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: 0.85; transform: scale(1); } 30% { opacity: 1; transform: scale(1.04); } 60% { opacity: 0.75; transform: scale(0.98); } }
.oven .ring { position: absolute; width: 100%; aspect-ratio: 1; animation: spin 40s linear infinite; }
.oven .ring text { font-family: var(--body); font-weight: 700; font-size: 10px; letter-spacing: 0.34em; fill: var(--muted); text-transform: uppercase; }
.arch {
  position: absolute; overflow: hidden; border-radius: 999px 999px 26px 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line-2);
  background: var(--bg-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.18) translate(-2%, -3%); } }
.arch.a1 { width: 56%; height: 74%; left: 22%; top: 8%; z-index: 1; }
.arch.a2 { width: 34%; height: 40%; right: -2%; bottom: 4%; z-index: 2; border-radius: 26px; }
.arch.a2 img { animation-delay: -6s; }
.arch.a3 { width: 30%; height: 34%; left: -2%; top: 46%; z-index: 2; border-radius: 26px; }
.arch.a3 img { animation-delay: -3s; }
.steam { position: absolute; left: 38%; top: -2%; width: 24%; z-index: 3; pointer-events: none; }
.steam path { fill: none; stroke: rgba(246, 236, 220, 0.5); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 140; animation: steam 4.2s ease-in-out infinite; opacity: 0; }
.steam path:nth-child(2) { animation-delay: 1.4s; } .steam path:nth-child(3) { animation-delay: 2.8s; }
@keyframes steam { 0% { stroke-dashoffset: 0; opacity: 0; transform: translateY(20px); } 30% { opacity: 0.8; } 100% { stroke-dashoffset: -200; opacity: 0; transform: translateY(-30px); } }
.seal {
  position: absolute; z-index: 4; left: 6%; top: 4%; width: 112px; height: 112px; border-radius: 50%; background: var(--gold); color: var(--lime-ink);
  display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 700; line-height: 1; transform: rotate(-12deg);
  box-shadow: 0 20px 40px -12px rgba(240, 185, 58, 0.6); animation: wobble 4.5s ease-in-out infinite;
}
.seal strong { font-size: 26px; font-style: italic; } .seal small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: 0.14em; font-weight: 800; margin-top: 4px; text-transform: uppercase; }
.flour { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.flour i { position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: rgba(246, 236, 220, 0.7); animation: dust linear infinite; opacity: 0; }
@keyframes dust { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translate(var(--x, 20px), -420px); opacity: 0; } }
@media (max-width: 860px) {
  .oven { max-width: 440px; margin: 0 auto; width: 100%; order: -1; }
  .seal { width: 86px; height: 86px; } .seal strong { font-size: 20px; }
}

/* Spic de grâu care se desenează */
.wheat { width: 64px; height: auto; display: block; margin-bottom: 8px; }
.wheat path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 2.2s var(--ease); }
.in .wheat path, .wheat.in path { stroke-dashoffset: 0; }

/* Carduri cu fotografii reale (fundal întunecat, ca în studio) */
.card { background: var(--bg-2); overflow: hidden; }
.card-media { aspect-ratio: 4 / 5; border-radius: 0; background: #0d0907; }
.card-media::before { display: none; }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 13, 9, 0.85)); pointer-events: none; }
.card-media img.photo, .card-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; box-shadow: none; transform: scale(1.02); transition: transform 1.1s var(--ease), filter 0.6s; animation: none; }
.card:hover .card-media img { transform: scale(1.1); filter: saturate(1.1) brightness(1.06); }
.card-tag { background: var(--gold); color: var(--lime-ink); }
.card-weight { position: absolute; z-index: 2; right: 14px; bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; background: rgba(18, 13, 9, 0.7); box-shadow: inset 0 0 0 1px var(--line-2); }
.card-body { transform: none; }
.card-title { font-size: 19px; }
.card:hover { box-shadow: inset 0 0 0 1px rgba(240, 185, 58, 0.5), 0 30px 60px -30px rgba(240, 150, 50, 0.5); }
.card:hover .card-go { background: var(--gold); color: var(--lime-ink); }
.price .ask { font-family: var(--body); font-size: 14px; font-weight: 800; color: var(--gold); letter-spacing: 0.02em; }
.card-cat b { color: var(--gold); }

/* Categorii: 5 plăci cu poză */
.cats { grid-template-columns: repeat(5, 1fr); }
.cat { min-height: 210px; color: var(--text); }
.cat .cat-bg { position: absolute; inset: 0; z-index: -1; }
.cat .cat-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: transform 1s var(--ease), opacity 0.5s; }
.cat .cat-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 13, 9, 0.2), rgba(18, 13, 9, 0.9)); }
.cat { isolation: isolate; }
.cat:hover .cat-bg img { transform: scale(1.08); opacity: 0.6; }
.cat .blob { display: none; }
.cat.active { background: var(--gold); color: var(--lime-ink); }
.cat.active .cat-bg img { opacity: 0.18; }
.cat.active .cat-bg::after { background: linear-gradient(180deg, rgba(240, 185, 58, 0.35), rgba(240, 185, 58, 0.92)); }
@media (max-width: 1080px) { .cats { grid-template-columns: repeat(3, 1fr); } }

/* Pagina produsului: fotografia pe toată scena */
.stage { background: #0d0907; }
.stage::before { display: none; }
.stage-img { width: 100%; height: 100%; aspect-ratio: auto; }
.stage-img > img, .stage-img > img.photo { inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; filter: none; animation: kenburns 16s ease-in-out infinite alternate; }
.stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(18, 13, 9, 0.75)); pointer-events: none; }
.stage-name { z-index: 2; -webkit-text-stroke: 1px rgba(246, 236, 220, 0.35); font-style: italic; font-weight: 600; }
.pdp-tag svg { color: var(--gold); }
.ask-box { margin-top: 6px; padding: 18px; border-radius: var(--radius-sm); background: rgba(240, 185, 58, 0.08); box-shadow: inset 0 0 0 1px rgba(240, 185, 58, 0.35); }
.ask-box p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.line-img { background: #0d0907; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fly { border-radius: 50%; object-fit: cover; }

/* Povestea */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.story-photo { position: relative; aspect-ratio: 4 / 5; }
.story-photo .clip { position: absolute; inset: 0; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line-2); }
.story-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.story-photo .seal { left: auto; right: -4%; top: 10%; }
.story h2.split .w { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.story h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.025em; font-weight: 600; margin-bottom: 20px; }
.story p { color: var(--muted); margin-bottom: 14px; max-width: 54ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.fact { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fact b { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--gold); line-height: 1; }
.fact span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-photo { max-width: 420px; width: 100%; margin: 0 auto; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } .fact:last-child { grid-column: 1 / -1; } }

/* Banda de final */
.band { background: linear-gradient(120deg, #f0b93a, #e39a2c); }
.band h2 em { color: var(--lime-ink); }
.footer-big { font-style: italic; font-weight: 600; letter-spacing: -0.04em; background: linear-gradient(90deg, var(--gold), var(--ember), #e39a2c, var(--gold)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; }
.footer .addr { margin-top: 10px; color: var(--muted); font-size: 14px; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Buton flotant: telefon */
.tg-float { background: var(--gold); color: var(--lime-ink); box-shadow: 0 14px 34px -10px rgba(240, 185, 58, 0.7); }
.tg-float::before { box-shadow: 0 0 0 0 rgba(240, 185, 58, 0.6); animation-name: pingGold; }
@keyframes pingGold { 0% { box-shadow: 0 0 0 0 rgba(240, 185, 58, 0.6); } 80%, 100% { box-shadow: 0 0 0 14px rgba(240, 185, 58, 0); } }
.cart-btn:hover { background: var(--gold); color: var(--lime-ink); }

@media (max-width: 600px) {
  .card-title { font-size: 15px; }
  .card-weight { font-size: 10px; right: 8px; bottom: 8px; padding: 3px 7px; }
  .price .ask { font-size: 12px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cats .cat:last-child { grid-column: 1 / -1; }
  .logo img { height: 46px; }
}
@media (hover: none), (max-width: 860px) {
  .atmos i:nth-child(1) { --c: rgba(184, 102, 31, 0.5); }
  .atmos i:nth-child(2) { --c: rgba(200, 65, 46, 0.3); }
  .atmos i:nth-child(3) { --c: rgba(240, 185, 58, 0.22); }
  .oven .glow { filter: none; }
  .arch img, .stage-img > img { animation: none; }
}
.oven:not(.vis) *, .broderie:not(.vis) { animation-play-state: paused; }

/* Logo în loc de text: cortina dintre pagini, subsolul și sigiliul */
.curtain { background: radial-gradient(circle at 50% 55%, #2a1c10, #120d09 70%); box-shadow: inset 0 -3px 0 var(--gold); }
.curtain span img { width: clamp(200px, 34vw, 420px); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.curtain.enter { animation: curtainOut 0.85s var(--ease) var(--hold, 0.7s) both; }
.curtain span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.curtain span::after { content: ''; width: clamp(120px, 18vw, 220px); height: 2px; border-radius: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); opacity: 0.8; }
.curtain.enter span::after { animation: loadbar var(--hold, 0.7s) var(--ease) both; }
.curtain.enter span img { animation: logoShow 0.9s var(--ease-back) both, logoOut 0.7s var(--ease) var(--hold, 0.7s) forwards; }
.curtain.leave span img { animation: logoShow 0.4s var(--ease) both; }
@keyframes logoShow { from { transform: scale(0.82); opacity: 0; filter: drop-shadow(0 0 0 rgba(240, 185, 58, 0)); } to { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 36px rgba(240, 185, 58, 0.35)); } }
@keyframes logoOut { from { transform: scale(1); opacity: 1; } to { transform: scale(0.9) translateY(-40px); opacity: 0; } }
@keyframes loadbar { to { transform: scaleX(1); } }
.footer-big { background: none; -webkit-text-stroke: 0; animation: none; line-height: 0; margin-top: 40px; }
.footer-big img { width: clamp(220px, 40vw, 520px); height: auto; opacity: 0.95; transition: transform 0.8s var(--ease-back), filter 0.6s; animation: glowLogo 6s ease-in-out infinite; }
.footer-big:hover img { transform: rotate(-3deg) scale(1.04); }
@keyframes glowLogo { 0%, 100% { filter: drop-shadow(0 0 0 rgba(240, 185, 58, 0)); } 50% { filter: drop-shadow(0 0 28px rgba(240, 185, 58, 0.35)); } }
.seal-logo { background: #120d09; box-shadow: inset 0 0 0 2px var(--gold), 0 20px 40px -12px rgba(0, 0, 0, 0.7); width: 128px; height: 128px; }
.seal-logo img { width: 92px; height: auto; display: block; margin: 0 auto; }
.seal-logo small { color: var(--gold); margin-top: 0; }
@media (max-width: 600px) { .footer-big img { width: 62vw; } .seal-logo { width: 104px; height: 104px; } .seal-logo img { width: 76px; } }
@media (hover: none), (max-width: 860px) { .footer-big img { animation: none; } }

/* Până pornește scriptul (și cortina cu logo), conținutul nu „clipește”. Plasă de siguranță: apare oricum după 3 s. */
body:not(.booted) > main { visibility: hidden; animation: showMain 0s 3s forwards; }
@keyframes showMain { to { visibility: visible; } }

/* ---------- Locații: carduri, subsol și fereastra cu poze + hartă ---------- */
.locs { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(14px, 2vw, 22px); }
.loc-card {
  position: relative; display: block; min-height: clamp(360px, 40vw, 520px); border-radius: calc(var(--radius) + 6px); overflow: hidden; text-align: left; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, 0.9); isolation: isolate; transition: transform 0.6s var(--ease), box-shadow 0.5s;
}
.loc-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(240, 185, 58, 0.55), 0 40px 90px -40px rgba(240, 150, 50, 0.55); }
.loc-card-img { position: absolute; inset: 0; z-index: -1; }
.loc-card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.loc-card:hover .loc-card-img img { transform: scale(1.12); }
.loc-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 13, 9, 0.1) 30%, rgba(18, 13, 9, 0.92)); }
.loc-card-top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.loc-tag, .loc-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.loc-tag { background: rgba(18, 13, 9, 0.72); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.loc-badge { background: var(--gold); color: var(--lime-ink); }
.loc-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 6px; }
.loc-card-name { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.loc-card-name em, .loc-info h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
.loc-card-addr { color: rgba(246, 236, 220, 0.75); font-size: 15px; }
.loc-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: 14px; color: var(--gold); }
.loc-card-go svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.loc-card:hover .loc-card-go svg { transform: translateX(6px); }
.loc-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.loc-status i { width: 9px; height: 9px; border-radius: 50%; background: #e0574a; flex: none; }
.loc-status.on i { background: #5ccf7a; box-shadow: 0 0 0 0 rgba(92, 207, 122, 0.6); animation: pingGreen 2s infinite; }
@keyframes pingGreen { 0% { box-shadow: 0 0 0 0 rgba(92, 207, 122, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(92, 207, 122, 0); } }
@media (max-width: 760px) { .locs { grid-template-columns: 1fr; } .loc-card { min-height: 380px; } }

/* subsol */
.footer-grid { grid-template-columns: 1.4fr 1fr 1.25fr 1fr; }
.loc-list { gap: 12px !important; }
.loc-link { display: grid; gap: 2px; text-align: left; color: var(--text); transition: color 0.3s; }
.loc-link b { font-weight: 600; }
.loc-link small { color: var(--muted); font-size: 13px; }
.loc-link:hover { color: var(--gold); }
.loc-link:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* fereastra locației */
html.loc-lock { overflow: hidden; }
.loc-modal { position: fixed; inset: 0; z-index: 990; display: grid; place-items: center; padding: clamp(0px, 3vw, 32px); }
.loc-backdrop { position: absolute; inset: 0; background: rgba(10, 7, 5, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.45s var(--ease); }
.loc-sheet {
  position: relative; width: min(1180px, 100%); max-height: min(860px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  border-radius: calc(var(--radius) + 8px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 140px -30px rgba(0, 0, 0, 0.9);
  opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.loc-modal.show .loc-backdrop { opacity: 1; }
.loc-modal.show .loc-sheet { opacity: 1; transform: none; }
.loc-x { position: absolute; z-index: 5; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(18, 13, 9, 0.75); color: var(--text); font-size: 26px; line-height: 1; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.4s var(--ease-back), background 0.3s; }
.loc-x:hover { transform: rotate(90deg); background: var(--gold); color: var(--lime-ink); }
.loc-gallery { position: relative; min-height: 420px; background: #0d0907; overflow: hidden; touch-action: pan-y; }
.loc-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1s var(--ease), transform 6s linear; }
.loc-slide.on { opacity: 1; transform: scale(1.02); }
.loc-gallery::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13, 9, 7, 0.8)); pointer-events: none; }
.loc-nav { position: absolute; z-index: 2; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: rgba(18, 13, 9, 0.6); color: var(--text); font-size: 28px; line-height: 1; box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.3s, transform 0.3s var(--ease-back); }
.loc-nav:hover { background: var(--gold); color: var(--lime-ink); transform: scale(1.08); }
.loc-nav.prev { left: 14px; } .loc-nav.next { right: 14px; }
.loc-dots { position: absolute; z-index: 2; left: 20px; bottom: 18px; display: flex; gap: 8px; }
.loc-dots button { width: 34px; height: 18px; display: grid; place-items: center; }
.loc-dots i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(246, 236, 220, 0.35); overflow: hidden; position: relative; }
.loc-dots button.on i::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; animation: dotFill 4.8s linear both; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.loc-caption { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 150px; text-align: right; font-size: 12px; color: rgba(246, 236, 220, 0.75); }
.loc-info { overflow-y: auto; padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; align-content: start; }
.loc-head { display: flex; gap: 8px; flex-wrap: wrap; }
.loc-info h2 { font-family: var(--display); font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.loc-status.big { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; font-size: 14px; }
.loc-status.big span { color: var(--muted); font-weight: 600; }
.loc-text { color: var(--muted); }
.loc-rows { display: grid; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.loc-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.loc-row:last-child { border-bottom: 0; }
.loc-row > span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.loc-row b { font-weight: 600; }
.loc-row a:hover { color: var(--gold); }
.loc-copy { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.loc-copy:hover { background: var(--gold); color: var(--lime-ink); }
.loc-map { position: relative; height: 230px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg); }
.loc-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }
.loc-pin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.loc-pin i { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); animation: radar 2.4s ease-out infinite; }
@keyframes radar { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.loc-sub { font-family: var(--display); font-size: 20px; font-weight: 600; margin-top: 4px; }
.loc-find { list-style: none; counter-reset: f; display: grid; gap: 10px; }
.loc-find li { counter-increment: f; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 14px; opacity: 0; transform: translateX(16px); }
.loc-modal.show .loc-find li { animation: findIn 0.6s var(--ease) both; animation-delay: var(--d); }
@keyframes findIn { to { opacity: 1; transform: none; } }
.loc-find li::before { content: counter(f); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(240, 185, 58, 0.14); color: var(--gold); font-weight: 800; font-size: 13px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-actions .btn { height: 48px; padding: 0 20px; font-size: 14px; }
.loc-actions .btn-primary { flex: 1 1 100%; }
@media (max-width: 860px) {
  .loc-modal { padding: 0; place-items: end center; }
  .loc-sheet { grid-template-columns: 1fr; max-height: 100%; height: 100%; border-radius: 0; overflow-y: auto; transform: translateY(60px); }
  .loc-gallery { min-height: 0; height: 52vh; flex: none; }
  .loc-info { overflow: visible; padding-bottom: 40px; }
  .loc-caption { display: none; }
  .loc-row { grid-template-columns: 74px 1fr; }
  .loc-row .loc-copy { grid-column: 2; justify-self: start; }
}
@media (hover: none), (max-width: 860px) { .loc-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; } .loc-tag { backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* trei locații: cafeneaua mai mare, celelalte două alături */
.locs { grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 1080px) { .locs { grid-template-columns: 1fr 1fr; } .locs .loc-card:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .locs { grid-template-columns: 1fr; } }

/* patru locații: grilă 2 × 2 */
.locs { grid-template-columns: repeat(2, 1fr); }
.locs .loc-card:first-child { grid-column: auto; }
@media (max-width: 760px) { .locs { grid-template-columns: 1fr; } }
