/* ============================================================
   PREMIERHOUSE — Editorial luxury redesign
   Fraunces (display) + Manrope (UI) · espresso + champán
   ============================================================ */

:root {
  --bg: #0c0a08;
  --bg-soft: #14110d;
  --ink: #f6f0e6;
  --muted: #aaa091;
  --line: rgba(246, 240, 230, .13);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .12);
  --gold: #e3b873;
  --gold-soft: #f4dca8;
  --gold-deep: #a47c3b;
  --blue: #9fd7ff;
  --danger: #ff8077;
  --ok: #9ef0b8;
  --shadow: 0 30px 90px rgba(0, 0, 0, .5);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-color: #4a3d2a #14110d;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #1c1610 0%, transparent 55%),
    linear-gradient(180deg, #0d0b08 0%, #0a0908 100%);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: rgba(227, 184, 115, .35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0c0a08; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a3128, #221d17);
  border-radius: 99px;
  border: 2px solid #0c0a08;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ---------- Texture & ambient background ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(8) infinite;
}

.stage-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}
.stage-bg span {
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .14;
  animation: backgroundDrift 22s ease-in-out infinite alternate;
}
.stage-bg span:nth-child(1) { left: -16rem; top: 6rem; background: #c89a52; }
.stage-bg span:nth-child(2) { right: -16rem; top: 38vh; background: #7c5a2e; animation-delay: -7s; }
.stage-bg span:nth-child(3) { left: 30vw; bottom: -22rem; background: #4a3a22; animation-delay: -13s; }

/* ---------- Glass surfaces ---------- */

.glass-surface {
  border: 1px solid rgba(246, 240, 230, .16);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)),
    rgba(18, 15, 11, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--shadow);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: .8rem;
  z-index: 50;
  width: min(1200px, calc(100% - 1.4rem));
  margin: .8rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .75rem;
  border-radius: 20px;
  transition: box-shadow .4s ease, border-color .4s ease, background .4s ease, transform .4s var(--ease-out);
  animation: topbarIn .9s var(--ease-out) both;
}
.topbar.scrolled {
  border-color: rgba(227, 184, 115, .25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 60px rgba(0,0,0,.65);
}

.brand { display: flex; align-items: center; gap: .75rem; min-width: 13rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 18%, #ffffff, transparent 45%),
    linear-gradient(160deg, #faf5ea, #e8dcc4);
  border: 1px solid rgba(227, 184, 115, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 30px rgba(227, 184, 115, .22);
  transition: transform .4s var(--ease-spring);
  overflow: hidden;
}
.brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand small { display: block; color: var(--muted); margin-top: .05rem; letter-spacing: .14em; text-transform: uppercase; font-size: .62rem; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; }
.nav a {
  color: rgba(246, 240, 230, .72);
  padding: .72rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  transition: color .25s ease;
}
.nav a:hover, .nav a.active { color: var(--gold-soft); }

/* ---------- Buttons (liquid glass) ---------- */

.primary-btn, .secondary-btn, .ghost-btn, .cart-btn, .icon-btn {
  min-height: 2.7rem;
  padding: .78rem 1.15rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.liquid-btn {
  --tint: 255, 255, 255;
  --tint-a: .14;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 230, .22);
  background:
    linear-gradient(155deg,
      rgba(var(--tint), calc(var(--tint-a) + .14)) 0%,
      rgba(var(--tint), var(--tint-a)) 45%,
      rgba(var(--tint), calc(var(--tint-a) - .04)) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .4),
    inset 0 -1px 8px rgba(0, 0, 0, .22),
    0 10px 28px rgba(0, 0, 0, .3);
  transform: translateZ(0);
  transition: transform .35s var(--ease-spring), box-shadow .35s ease, border-color .25s ease, background .35s ease;
}
.liquid-lens {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(140px 100px at var(--mx, 30%) var(--my, -20%), rgba(255, 255, 255, .45), transparent 70%);
  mix-blend-mode: overlay;
  opacity: .85;
  transition: opacity .3s ease;
}
.liquid-rim {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 62%, rgba(0, 0, 0, .18) 100%);
  mix-blend-mode: soft-light;
}
.liquid-content {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 0;
}
.liquid-btn:hover {
  transform: translateY(-2px) scale(1.03) translateZ(0);
  border-color: rgba(227, 184, 115, .5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .55),
    inset 0 -1px 8px rgba(0, 0, 0, .22),
    0 16px 40px rgba(0, 0, 0, .4);
}
.liquid-btn:hover .liquid-lens { opacity: 1; }
.liquid-btn:active {
  transform: translateY(0) scale(.97) translateZ(0);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .26);
}
.liquid-btn:focus-visible { outline: 2px solid rgba(244, 220, 168, .85); outline-offset: 3px; }

.primary-btn.liquid-btn {
  --tint: 227, 184, 115;
  --tint-a: .85;
  color: #1d1507;
  border-color: rgba(255, 240, 205, .55);
  background: linear-gradient(135deg, #f4dca8 0%, #e3b873 48%, #c2944c 100%);
  background-size: 160% 160%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -2px 8px rgba(120, 80, 20, .35),
    0 14px 36px rgba(227, 184, 115, .26);
  animation: goldBreath 5s ease-in-out infinite;
}
.primary-btn.liquid-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 8px rgba(120, 80, 20, .3),
    0 18px 48px rgba(227, 184, 115, .42);
}
.btn-arrow {
  display: inline-block;
  transition: transform .3s var(--ease-spring);
}
.primary-btn:hover .btn-arrow { transform: translateX(4px); }

.danger.liquid-btn { --tint: 255, 138, 130; --tint-a: .14; }

.cart-btn { gap: .5rem; white-space: nowrap; }
.cart-label { display: inline-flex; align-items: center; }
.cart-btn .cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  color: #1d1507;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  border: 1px solid rgba(255,255,255,.4);
  font-size: .76rem;
  font-weight: 900;
  transition: transform .3s var(--ease-spring);
}
.cart-btn:hover .cart-count { transform: scale(1.15); }
.icon-btn { width: 2.4rem; height: 2.4rem; padding: 0; display: grid; place-items: center; font-size: 1.1rem; }
.full { width: 100%; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  margin: .6rem 0;
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.02;
  letter-spacing: -.02em;
}
h1 em, h2 em, .compact-hero h1 em {
  font-style: italic;
  font-weight: 420;
  color: var(--gold);
}
h1 { font-size: clamp(2.9rem, 7.5vw, 7.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 4.2rem); }
h3 { font-size: 1.3rem; font-weight: 560; }
p { color: var(--muted); line-height: 1.75; }

.eyebrow {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .2em;
  font-size: .7rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.pulse-dot {
  position: relative;
  width: .5rem;
  height: .5rem;
  border-radius: 99px;
  background: var(--gold);
  flex: 0 0 auto;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 99px;
  border: 1px solid var(--gold);
  animation: pulseRing 2.2s ease-out infinite;
}

/* ---------- Pages ---------- */

.page { display: none; min-height: calc(100vh - 5rem); }
.page.active { display: block; animation: pageIn .65s var(--ease-out) both; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  padding: clamp(7rem, 13vw, 11rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  margin-top: -4.6rem;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 6, 4, .94) 8%, rgba(8, 6, 4, .55) 52%, rgba(8, 6, 4, .18)),
    linear-gradient(0deg, var(--bg) 2%, transparent 36%),
    linear-gradient(180deg, rgba(8,6,4,.55), transparent 30%);
}
.hero-glow {
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 60rem;
  height: 36rem;
  background: radial-gradient(ellipse at center, rgba(227, 184, 115, .2), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite alternate;
}
.hero-content { position: relative; max-width: 62rem; z-index: 2; }
.hero-eyebrow { animation: fadeUp .9s var(--ease-out) .15s both; }

.hero-title { margin: 1.1rem 0 .4rem; }
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}
.hero-line > span {
  display: inline-block;
  transform: translateY(112%) rotate(2deg);
  animation: lineReveal 1.1s var(--ease-out) forwards;
}
.hero-line:nth-child(1) > span { animation-delay: .25s; }
.hero-line:nth-child(2) > span { animation-delay: .4s; }
.hero-line:nth-child(3) > span { animation-delay: .55s; }

.hero-sub {
  max-width: 38rem;
  font-size: 1.12rem;
  color: rgba(246, 240, 230, .78);
  animation: fadeUp 1s var(--ease-out) .85s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero .hero-actions { animation: fadeUp 1s var(--ease-out) 1.05s both; }

.hero-float {
  position: absolute;
  z-index: 3;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  display: grid;
  gap: .2rem;
  animation: floatY 6s ease-in-out infinite, fadeUp 1s var(--ease-out) 1.2s backwards;
}
.hero-float strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-soft);
}
.hero-float span { color: var(--muted); font-size: .82rem; }
.hero-float-a { right: clamp(1rem, 7vw, 7rem); top: 26vh; animation-delay: 0s, 1.2s; }
.hero-float-b { right: clamp(2rem, 14vw, 16rem); bottom: 18vh; animation-delay: -3s, 1.45s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: .5rem;
  color: var(--muted);
  animation: fadeUp 1s ease 1.8s both;
}
.scroll-cue span {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, transparent, var(--gold));
  overflow: hidden;
  position: relative;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: scrollDrop 2s ease-in-out infinite;
}
.scroll-cue small { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(227,184,115,.06), rgba(227,184,115,.02), rgba(227,184,115,.06));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(246, 240, 230, .8);
  white-space: nowrap;
}
.marquee-track i {
  color: var(--gold);
  font-style: normal;
  animation: spinSlow 8s linear infinite;
}

/* ---------- Metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 4rem auto 5.5rem;
}
.metrics div {
  min-height: 8.5rem;
  padding: 1.2rem;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: border-color .35s ease, transform .35s var(--ease-out);
}
.metrics div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(227,184,115,.12), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
}
.metrics div:hover { border-color: rgba(227,184,115,.4); transform: translateY(-4px); }
.metrics div:hover::after { opacity: 1; }
.metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--gold-soft);
  margin-bottom: .3rem;
}
.metrics span { color: var(--muted); font-size: .92rem; }

/* ---------- Section layout ---------- */

.home-featured, .home-collections, .home-process, .home-cta, .testimonials {
  width: min(1200px, calc(100% - 2rem));
  margin: 6rem auto;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.section-head h2 { margin: .4rem 0 0; }
.section-kicker {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.6rem;
}
.section-kicker h2 { margin: 0; }

/* ---------- Featured row (home) ---------- */

.featured-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(17.5rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(227, 184, 115, .35) transparent;
}
.featured-row::-webkit-scrollbar { height: 6px; }
.featured-row::-webkit-scrollbar-track { background: transparent; }
.featured-row::-webkit-scrollbar-thumb {
  background: rgba(227, 184, 115, .35);
  border-radius: 99px;
  border: 0;
}
.featured-row:hover { scrollbar-color: rgba(227, 184, 115, .6) transparent; }
.featured-card {
  scroll-snap-align: start;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-out), border-color .35s ease, box-shadow .45s ease;
}
.featured-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227,184,115,.45);
  box-shadow: 0 28px 70px rgba(0,0,0,.5);
}
.featured-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #161310;
}
.featured-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.featured-card:hover figure::after { transform: translateX(120%); }
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.featured-card:hover img { transform: scale(1.08); }
.featured-card > div { padding: 1.1rem; display: grid; gap: .45rem; }
.featured-cat {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .66rem;
  font-weight: 800;
}
.featured-card h3 { margin: 0; font-size: 1.18rem; }
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .3rem;
}
.featured-foot strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-soft); }
.mini-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--ink);
  padding: .5rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.mini-btn:hover {
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  border-color: transparent;
  color: #1d1507;
}

/* ---------- Collections ---------- */

.collection-grid {
  display: grid;
  grid-template-columns: .9fr 1.2fr .9fr;
  gap: 1rem;
  align-items: end;
}
.collection-card {
  min-height: 29rem;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.collection-card:hover { transform: translateY(-8px); border-color: rgba(227,184,115,.4); }
.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
  transition: transform .8s var(--ease-out), opacity .4s ease;
}
.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 6, 4, .94), rgba(8,6,4,.25) 55%, transparent);
}
.collection-card:hover img { transform: scale(1.07); opacity: .92; }
.collection-card > div { position: relative; z-index: 2; display: grid; gap: .3rem; }
.collection-card span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
}
.collection-card h3 { margin: 0; font-size: 1.7rem; }
.collection-card p { margin: 0; font-size: .94rem; max-width: 26rem; }
.collection-card.featured { min-height: 35rem; }
.card-link {
  margin-top: .6rem;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
}
.card-link i {
  font-style: normal;
  transition: transform .3s var(--ease-spring);
}
.collection-card:hover .card-link i { transform: translateX(5px); }

/* ---------- Process ---------- */

.home-process {
  display: grid;
  grid-template-columns: minmax(20rem, .9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: start;
}
.home-process h2 { max-width: 12ch; }
.process-intro { max-width: 30rem; }
.process-list { display: grid; gap: .8rem; }
.process-list article {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1.1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .35s ease;
}
.process-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.process-list article:hover { transform: translateX(8px); border-color: rgba(227,184,115,.35); }
.process-list article:hover::before { opacity: 1; }
.process-list strong {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.9rem;
  font-weight: 380;
  font-style: italic;
}
.process-list h3, .process-list p { grid-column: 2; margin: 0; min-width: 0; }
.process-list p { max-width: 38rem; line-height: 1.65; }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.testimonial-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.3rem;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .45s var(--ease-out), border-color .35s ease;
}
.testimonial-card:hover { transform: translateY(-6px); border-color: rgba(227,184,115,.35); }
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: .6;
  color: var(--gold);
  opacity: .6;
}
.testimonial-card p { margin: 0; color: rgba(246,240,230,.85); font-size: 1rem; flex: 1; }
.testimonial-card footer { display: grid; gap: .1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.testimonial-card footer strong { font-size: .95rem; }
.testimonial-card footer span { color: var(--muted); font-size: .8rem; }
.testimonial-card footer em { color: var(--gold); font-style: normal; letter-spacing: .18em; font-size: .8rem; margin-top: .25rem; }

/* ---------- Home CTA ---------- */

.home-cta {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(227,184,115,.25);
  background: linear-gradient(120deg, #181208 0%, #221708 45%, #181208 100%);
  padding: clamp(1.6rem, 5vw, 3.4rem);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}
.cta-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(227,184,115,.16), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(227,184,115,.12), transparent 30%);
  animation: backgroundDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.home-cta > div { position: relative; }
.home-cta h2 { max-width: 18ch; }
.home-cta p { max-width: 38rem; }

/* ---------- Page hero (productos / contacto) ---------- */

.page-hero {
  width: min(1200px, calc(100% - 2rem));
  margin: 4rem auto 1.4rem;
  padding: 4.5rem 0 1rem;
}
.compact-hero h1 {
  max-width: none;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  animation: fadeUp .8s var(--ease-out) .1s both;
}
.compact-hero .eyebrow { animation: fadeUp .7s var(--ease-out) both; }
.compact-hero p { max-width: 46rem; animation: fadeUp .8s var(--ease-out) .25s both; }

/* ---------- Shop ---------- */

.shop-layout, .contact {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 5rem;
}
.shop-layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 1.1rem;
  align-items: start;
}
.filters {
  position: sticky;
  top: 6.7rem;
  padding: 1.1rem;
  border-radius: 26px;
  display: grid;
  gap: .95rem;
  min-width: 0;
  overflow: hidden;
  animation: fadeUp .7s var(--ease-out) .3s both;
}

label { display: grid; gap: .45rem; color: var(--muted); font-size: .86rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(246,240,230,.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  padding: .85rem .95rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
select option { color: #111; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(227, 184, 115, .7);
  box-shadow: 0 0 0 4px rgba(227, 184, 115, .14);
  background: rgba(255,255,255,.09);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  max-height: 7.5rem;
  overflow: auto;
  padding-right: .15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(227, 184, 115, .35) transparent;
}
.category-pills::-webkit-scrollbar { width: 6px; }
.category-pills::-webkit-scrollbar-track { background: transparent; }
.category-pills::-webkit-scrollbar-thumb {
  background: rgba(227, 184, 115, .35);
  border-radius: 99px;
  border: 0;
}
.category-pills button {
  border: 1px solid rgba(246,240,230,.16);
  border-radius: 999px;
  padding: .45rem .72rem;
  color: rgba(246,240,230,.82);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  font-weight: 700;
  font-size: .76rem;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.category-pills button:hover { transform: translateY(-2px); border-color: rgba(227,184,115,.4); }
.category-pills button.active {
  color: #1d1507;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  border-color: rgba(255,255,255,.5);
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.product-card {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow: 0 22px 56px rgba(0,0,0,.3);
  animation: riseIn .6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  display: flex;
  flex-direction: column;
  min-height: 33rem;
  transition: transform .5s var(--ease-out), border-color .4s ease, box-shadow .5s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227,184,115,.45);
  box-shadow: 0 34px 80px rgba(0,0,0,.55);
}
.product-card figure {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / .78;
  overflow: hidden;
  background: #161310;
}
.product-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.16) 48%, transparent 62%);
  transform: translateX(-130%) skewX(-8deg);
  transition: transform .8s ease;
  pointer-events: none;
}
.product-card:hover figure::after { transform: translateX(130%) skewX(-8deg); }
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.product-card:hover img { transform: scale(1.08); }
.badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  padding: .42rem .7rem;
  border-radius: 999px;
  color: #1d1507;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(227,184,115,.35);
}
.product-info {
  padding: 1.15rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.product-meta span:last-child { color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: .82rem; flex: 0 0 auto; }
.product-meta span:first-child,
.product-info h3,
.product-info p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta span:first-child { -webkit-line-clamp: 2; }
.product-info h3 { -webkit-line-clamp: 2; margin: 0; font-size: 1.35rem; }
.product-info p { -webkit-line-clamp: 4; margin: 0; color: var(--muted); line-height: 1.6; font-size: .94rem; }
.price {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin: auto 0 .1rem;
}
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }

/* ---------- Product detail ---------- */

.product-detail {
  width: min(1480px, calc(100% - 2rem));
  margin: 4.8rem auto 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, .55fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(227,184,115,.08), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(227,184,115,.06), transparent 26rem),
    rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(.75rem, 2vw, 1.2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: fadeUp .7s var(--ease-out) both;
}
.product-detail-media {
  min-height: min(70vh, 48rem);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.product-detail-media img {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 48rem);
  object-fit: cover;
  transition: opacity .25s ease, transform .5s ease;
}
.product-detail-media:hover img { transform: scale(1.025); }

/* Sofás, colchones y sillones: foto completa, el cuadro se adapta a la imagen */
.product-detail-media.fit-natural {
  align-self: start;
  min-height: 0;
  display: flex;
  background:
    radial-gradient(circle at 50% 30%, rgba(227,184,115,.06), transparent 70%),
    rgba(255,255,255,.04);
}
.product-detail-media.fit-natural img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 82vh;
  object-fit: contain;
}
[data-theme="light"] .product-detail-media.fit-natural { background: rgba(255,255,255,.5); }
.product-detail-panel {
  padding: clamp(1rem, 2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.product-detail-panel h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 3vw, 3.4rem);
}
.product-detail-panel p, .product-detail-panel small { color: var(--muted); }
.detail-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-soft);
}
.detail-divider { border: 0; border-top: 1px solid var(--line); width: 100%; margin: .6rem 0; }
.variant-group { display: grid; gap: .7rem; }
.variant-group small { text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 800; color: var(--gold); }
.variant-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}
.variant-options button {
  min-height: 3rem;
  border: 1px solid rgba(246,240,230,.16);
  background: rgba(255,255,255,.05);
  color: var(--ink);
  border-radius: 14px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.variant-options button:hover { transform: translateY(-2px); border-color: rgba(227,184,115,.45); }
.variant-options button.active {
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  border-color: transparent;
  color: #1d1507;
  font-weight: 800;
}
.detail-actions {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: .7rem;
}
.qty-box {
  min-height: 3.3rem;
  border: 1px solid rgba(246,240,230,.22);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.qty-box button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  transition: background .25s ease, color .25s ease;
}
.qty-box button:hover { background: rgba(227,184,115,.18); color: var(--gold-soft); }
.detail-cart {
  min-height: 3.3rem;
  border: 0;
  border-radius: 14px;
  color: #1d1507;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 14px 36px rgba(227,184,115,.25);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, filter .3s ease;
}
.detail-cart:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(227,184,115,.4); filter: brightness(1.05); }
.detail-cart:active { transform: scale(.97); }
.paypal-btn {
  min-height: 3.4rem;
  border: 0;
  border-radius: 14px;
  background: #ffc33d;
  color: #111;
  font-size: 1.12rem;
  font-weight: 900;
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, filter .3s ease;
}
.paypal-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,195,61,.3); filter: brightness(1.04); }
.paypal-btn em { color: #0066c9; font-style: italic; }
.payment-more { text-align: center; color: var(--muted); text-decoration: underline; font-size: .86rem; }
.detail-copy h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-style: italic;
}
.detail-copy ul {
  margin: .75rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.7;
}
.detail-copy ul li::marker { color: var(--gold); }
.detail-meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.detail-meta span {
  max-width: 100%;
  border: 1px solid rgba(246,240,230,.16);
  border-radius: 999px;
  padding: .45rem .72rem;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.back-link {
  color: var(--muted);
  width: fit-content;
  font-size: .9rem;
  position: relative;
  transition: color .3s ease;
}
.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(.4);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.back-link:hover { color: var(--gold-soft); }
.back-link:hover::after { transform: scaleX(1); }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1rem;
  align-items: start;
}
.contact-copy, .lead-form {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 28px;
}
.contact-lines { display: grid; gap: .65rem; margin-top: 1.2rem; }
.contact-lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.contact-lines div:hover {
  border-color: rgba(227,184,115,.4);
  transform: translateX(6px);
  background: rgba(227,184,115,.06);
}
.contact-lines span { color: var(--muted); font-size: .88rem; }
.lead-form { display: grid; gap: .9rem; }
.lead-form h3 { margin: 0 0 .2rem; }

/* ---------- Footer ---------- */

.site-footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 5rem auto 1.2rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 20px 70px rgba(0,0,0,.3);
  overflow: hidden;
}
.footer-inner {
  padding: 1.6rem 1.6rem 1.2rem;
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  gap: 1.4rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-brand small, .site-footer p { color: var(--muted); }
.site-footer nav { display: flex; justify-content: center; gap: .45rem; }
.site-footer nav a {
  color: var(--muted);
  padding: .55rem .8rem;
  border-radius: 999px;
  transition: color .3s ease, background .3s ease;
}
.site-footer nav a:hover { color: var(--gold-soft); background: rgba(227,184,115,.08); }
.site-footer .footer-inner > p { justify-self: end; max-width: 22rem; margin: 0; text-align: right; font-size: .9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .06em;
}

/* ---------- Drawer & modal ---------- */

.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.drawer.open, .modal.open { display: block; }
.drawer-backdrop, .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px);
  animation: fadeIn .3s ease both;
}
.drawer-panel {
  position: absolute;
  top: .75rem;
  right: .75rem;
  bottom: .75rem;
  width: min(31rem, calc(100% - 1.5rem));
  padding: 1.2rem;
  overflow: auto;
  border-radius: 28px;
  animation: slideIn .4s var(--ease-out) both;
}
.drawer-panel > .icon-btn { margin-left: auto; }
.drawer-panel h2 { font-size: 2rem; }
.cart-line {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp .4s var(--ease-out) both;
}
.cart-line img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.cart-line small { color: var(--muted); }
.qty-controls { display: flex; gap: .35rem; align-items: center; margin-top: .35rem; }
.qty-controls button { min-height: 1.8rem; padding: .15rem .58rem; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(227,184,115,.3);
  background: linear-gradient(135deg, rgba(227,184,115,.12), rgba(227,184,115,.04));
}
.cart-total strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-soft); }
.payment-options { display: grid; gap: .6rem; margin-bottom: 1rem; }
.payment-options label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease;
}
.payment-options label:hover { border-color: rgba(227,184,115,.4); background: rgba(227,184,115,.05); }
.payment-options input { width: auto; accent-color: var(--gold); }

/* ---------- Admin ---------- */

.admin-shell {
  position: absolute;
  inset: 2.5vh max(1rem, 3vw);
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 28px;
  animation: popIn .4s var(--ease-out) both;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.admin-head h2 { font-size: 1.7rem; margin: .2rem 0 0; }
.admin-login { display: grid; place-items: center; padding: 1rem; overflow: auto; }
.admin-login .admin-card { width: min(31rem, 100%); }
.admin-private { min-height: 0; display: grid; grid-template-rows: auto 1fr; }
.admin-tabs {
  display: flex;
  gap: .45rem;
  padding: .75rem 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.admin-tabs button.active {
  background: linear-gradient(135deg, rgba(244,220,168,.25), rgba(210,164,92,.18));
  border-color: rgba(227,184,115,.5);
  color: var(--gold-soft);
}
.admin-body { overflow: auto; padding: 1.1rem; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, .05);
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.admin-form .wide { grid-column: 1 / -1; }
.admin-list { display: grid; gap: .65rem; }
.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  transition: border-color .3s ease;
}
.admin-row:hover { border-color: rgba(227,184,115,.3); }
.admin-row small { color: var(--muted); }
.inline-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.danger { border-color: rgba(255, 128, 119, .42); color: var(--danger); }
.danger-text { color: var(--danger); min-height: 1.2rem; }
.save-note { color: var(--ok); min-height: 1.2rem; }
.import-box {
  border: 1px dashed rgba(227,184,115,.4);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(227,184,115,.04);
  transition: background .3s ease, border-color .3s ease;
}
.import-box:hover { background: rgba(227,184,115,.08); border-color: rgba(227,184,115,.65); }
.code-hint {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: rgba(246,240,230,.78);
  font-size: .82rem;
  line-height: 1.55;
}

/* ---------- Promo popup ---------- */

.promo {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(24rem, calc(100% - 2rem));
  padding: 1.2rem;
  border-radius: 26px;
  border-color: rgba(227,184,115,.35);
  transform: translateY(130%) scale(.95);
  opacity: 0;
  transition: transform .55s var(--ease-spring), opacity .4s ease;
}
.promo.show { transform: translateY(0) scale(1); opacity: 1; }
.promo .icon-btn { margin-left: auto; }
.promo h3 { font-size: 1.5rem; margin: .4rem 0; }
.promo form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: .6rem; }

/* ---------- Chat widget ---------- */

.chat-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .8rem;
  pointer-events: none;
}
.chat-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
}
.chat-bubble-label {
  padding: .7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(160deg, #faf5ea, #e8dcc4);
  color: #1d1507;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  animation: fadeUp .6s var(--ease-out) 2.2s both, floatY 5s ease-in-out 3s infinite;
  transition: opacity .3s ease, transform .3s ease;
}
.chat-bubble-label.hidden { opacity: 0; pointer-events: none; transform: translateY(6px); }
.chat-bubble-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  color: #1d1507;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  border: 1px solid rgba(255, 240, 205, .6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 16px 44px rgba(227,184,115,.4);
  transition: transform .35s var(--ease-spring), box-shadow .35s ease;
}
.chat-bubble-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(227,184,115,.7);
  animation: pulseRing 2.6s ease-out infinite;
  pointer-events: none;
}
.chat-bubble:hover .chat-bubble-icon { transform: scale(1.1) rotate(-6deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 20px 54px rgba(227,184,115,.55); }
.chat-bubble.active .chat-bubble-icon::after { animation: none; opacity: 0; }
.chat-bubble:focus-visible { outline: 2px solid rgba(244,220,168,.85); outline-offset: 4px; border-radius: 999px; }

.chat-panel {
  width: min(24rem, calc(100vw - 2.2rem));
  height: min(33rem, 72vh);
  border-radius: 26px;
  border-color: rgba(227,184,115,.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--ease-spring);
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(227,184,115,.12), rgba(227,184,115,.03));
}
.chat-head > div { flex: 1; min-width: 0; }
.chat-head strong { display: block; font-family: var(--font-display); letter-spacing: .03em; }
.chat-head small { color: var(--muted); display: flex; align-items: center; gap: .4rem; font-size: .76rem; }
.chat-status {
  width: .5rem;
  height: .5rem;
  border-radius: 99px;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: glowPulse 2s ease-in-out infinite alternate;
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #faf5ea, #e8dcc4);
  border: 1px solid rgba(227,184,115,.45);
  overflow: hidden;
  flex: 0 0 auto;
}
.chat-avatar img { width: 84%; height: 84%; object-fit: contain; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(227,184,115,.35) transparent;
}
.chat-msg {
  max-width: 86%;
  padding: .7rem .9rem;
  border-radius: 18px;
  font-size: .92rem;
  line-height: 1.55;
  animation: chatMsgIn .35s var(--ease-out) both;
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  color: rgba(246,240,230,.92);
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  color: #1d1507;
  font-weight: 600;
  border-bottom-right-radius: 6px;
}
.chat-msg a { color: var(--gold-soft); }
.chat-msg.user a { color: #1d1507; text-decoration: underline; }
.chat-msg.typing { display: flex; gap: .3rem; align-items: center; min-height: 2.2rem; }
.chat-msg.typing span {
  width: .45rem;
  height: .45rem;
  border-radius: 99px;
  background: var(--gold);
  animation: typingDot 1.1s ease-in-out infinite;
}
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }

.chat-products { display: grid; gap: .45rem; margin-top: .6rem; }
.chat-product {
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  gap: .6rem;
  align-items: center;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.chat-product:hover { border-color: rgba(227,184,115,.5); background: rgba(227,184,115,.07); transform: translateX(3px); }
.chat-product img { width: 2.8rem; height: 2.8rem; object-fit: cover; border-radius: 10px; }
.chat-product span { display: grid; min-width: 0; }
.chat-product strong { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-product small { color: var(--gold-soft); font-family: var(--font-display); font-size: .9rem; }
.chat-product em { font-style: normal; color: var(--muted); font-size: .76rem; }

.chat-wa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: #1fb355;
  color: #fff !important;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 10px 26px rgba(31,179,85,.35);
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}
.chat-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(31,179,85,.5); }
.chat-wa::before { content: "💬"; }

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 1rem .6rem;
}
.chat-quick button {
  border: 1px solid rgba(227,184,115,.4);
  border-radius: 999px;
  background: rgba(227,184,115,.08);
  color: var(--gold-soft);
  padding: .42rem .75rem;
  font-size: .78rem;
  font-weight: 700;
  animation: chatMsgIn .35s var(--ease-out) both;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.chat-quick button:hover {
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  color: #1d1507;
  transform: translateY(-2px);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.chat-form input { border-radius: 999px; padding: .75rem 1.05rem; }
.chat-form button {
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #1d1507;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  box-shadow: 0 10px 26px rgba(227,184,115,.3);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.chat-form button:hover { transform: scale(1.08) rotate(-8deg); box-shadow: 0 14px 34px rgba(227,184,115,.45); }
.chat-form button:active { transform: scale(.94); }

@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* ============================================================
   MODO CLARO — html[data-theme="light"]
   ============================================================ */

[data-theme="light"] {
  --bg: #f4eee1;
  --bg-soft: #faf6ec;
  --ink: #261d11;
  --muted: #6e6150;
  --line: rgba(72, 55, 30, .16);
  --glass: rgba(255, 255, 255, .6);
  --glass-strong: rgba(255, 255, 255, .82);
  --gold: #a47c3b;
  --gold-soft: #8a6428;
  --gold-deep: #745420;
  --danger: #c4372c;
  --ok: #1d8a4e;
  --shadow: 0 24px 64px rgba(82, 62, 28, .16);
  scrollbar-color: #c0ad8c #efe8d8;
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #fdfaf1 0%, transparent 55%),
    linear-gradient(180deg, #f6f0e3 0%, #f1e9d8 100%);
}
[data-theme="light"] .grain { opacity: .035; }
[data-theme="light"] .stage-bg span { opacity: .1; }
[data-theme="light"] ::selection { background: rgba(164, 124, 59, .3); color: #1d1507; }

[data-theme="light"] .glass-surface {
  border-color: rgba(82, 62, 28, .16);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)),
    rgba(252, 248, 240, .72);
  box-shadow: inset 0 1px 0 #fff, var(--shadow);
}

[data-theme="light"] .nav a { color: rgba(38, 29, 17, .66); }
[data-theme="light"] .nav a:hover,
[data-theme="light"] .nav a.active { color: var(--gold-deep); }

[data-theme="light"] .liquid-btn {
  border-color: rgba(82, 62, 28, .22);
  background: linear-gradient(155deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, .4) 100%);
  box-shadow: inset 0 1px 1px #fff, 0 10px 26px rgba(82, 62, 28, .14);
}
[data-theme="light"] .liquid-btn:hover { border-color: rgba(164, 124, 59, .55); }
[data-theme="light"] .primary-btn.liquid-btn {
  border-color: rgba(120, 86, 30, .4);
  background: linear-gradient(135deg, #f4dca8 0%, #e3b873 48%, #c2944c 100%);
  background-size: 160% 160%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 8px rgba(120,80,20,.3), 0 14px 32px rgba(164,124,59,.3);
}
[data-theme="light"] .cart-btn .cart-count { border-color: rgba(120, 86, 30, .35); }

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  border-color: rgba(82, 62, 28, .2);
  background: rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 2px rgba(82, 62, 28, .06);
}
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: rgba(164, 124, 59, .65);
  box-shadow: 0 0 0 4px rgba(164, 124, 59, .14);
  background: #fff;
}

[data-theme="light"] .category-pills button {
  border-color: rgba(82, 62, 28, .18);
  background: rgba(255, 255, 255, .65);
  color: rgba(38, 29, 17, .78);
}

[data-theme="light"] .metrics div {
  background: linear-gradient(165deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
}
[data-theme="light"] .marquee-track span { color: rgba(38, 29, 17, .72); }
[data-theme="light"] .marquee {
  background: linear-gradient(90deg, rgba(164,124,59,.08), rgba(164,124,59,.03), rgba(164,124,59,.08));
}

[data-theme="light"] .featured-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .process-list article,
[data-theme="light"] .product-card,
[data-theme="light"] .site-footer,
[data-theme="light"] .admin-card {
  background: linear-gradient(170deg, #fffdf7, #f6efdf);
}
[data-theme="light"] .product-card { box-shadow: 0 18px 44px rgba(82, 62, 28, .14); }
[data-theme="light"] .product-card:hover { box-shadow: 0 28px 64px rgba(82, 62, 28, .22); }
[data-theme="light"] .featured-card:hover { box-shadow: 0 24px 56px rgba(82, 62, 28, .2); }
[data-theme="light"] .testimonial-card p { color: rgba(38, 29, 17, .82); }

[data-theme="light"] .mini-btn,
[data-theme="light"] .variant-options button,
[data-theme="light"] .detail-meta span,
[data-theme="light"] .admin-row,
[data-theme="light"] .contact-lines div,
[data-theme="light"] .payment-options label,
[data-theme="light"] .chat-product {
  background: rgba(255, 255, 255, .65);
}
[data-theme="light"] .qty-box { background: rgba(255, 255, 255, .65); border-color: rgba(82, 62, 28, .24); }
[data-theme="light"] .variant-options button.active {
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  color: #1d1507;
}

[data-theme="light"] .product-detail {
  background:
    radial-gradient(circle at 12% 8%, rgba(164,124,59,.07), transparent 24rem),
    rgba(255, 255, 255, .6);
}
[data-theme="light"] .product-detail-media { background: rgba(255,255,255,.5); }

[data-theme="light"] .chat-msg.bot {
  background: rgba(255, 255, 255, .8);
  color: rgba(38, 29, 17, .9);
}
[data-theme="light"] .chat-msg a { color: var(--gold-deep); }
[data-theme="light"] .chat-form { background: rgba(255,255,255,.4); }
[data-theme="light"] .cart-total {
  background: linear-gradient(135deg, rgba(164,124,59,.14), rgba(164,124,59,.05));
  border-color: rgba(164,124,59,.4);
}
[data-theme="light"] .admin-tabs button.active { color: var(--gold-deep); }

/* CTA en claro: tarjeta crema dorada en lugar del bloque oscuro */
[data-theme="light"] .home-cta {
  border-color: rgba(164, 124, 59, .4);
  background: linear-gradient(120deg, #fdf8eb 0%, #f1e0bd 48%, #faf3e2 100%);
  box-shadow: 0 26px 64px rgba(140, 105, 45, .18);
}
[data-theme="light"] .home-cta h2 { color: var(--ink); }
[data-theme="light"] .home-cta p { color: var(--muted); }
[data-theme="light"] .home-cta .eyebrow { color: var(--gold-soft); }
[data-theme="light"] .cta-glow {
  background:
    radial-gradient(circle at 20% 30%, rgba(227, 184, 115, .28), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(227, 184, 115, .2), transparent 30%);
}

/* Bloques sobre imagen: el texto sigue claro en modo claro */
[data-theme="light"] .hero-content h1,
[data-theme="light"] .collection-card h3 { color: #f6f0e6; }
[data-theme="light"] .collection-card p { color: rgba(246, 240, 230, .75); }
[data-theme="light"] .hero-eyebrow,
[data-theme="light"] .collection-card span { color: #e3b873; }
[data-theme="light"] .hero-float strong,
[data-theme="light"] .card-link { color: #f4dca8; }
[data-theme="light"] .hero-float.glass-surface {
  border-color: rgba(246, 240, 230, .2);
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.04)), rgba(18,15,11,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 24px 64px rgba(0,0,0,.4);
}
[data-theme="light"] .hero-float span { color: rgba(246, 240, 230, .65); }
[data-theme="light"] .scroll-cue { color: rgba(246, 240, 230, .6); }

/* Transicion suave al cambiar de tema */
body,
.glass-surface,
.topbar,
input, select, textarea,
.product-card, .featured-card, .testimonial-card,
.metrics div, .site-footer, .admin-card {
  transition-property: background, background-color, border-color, color, box-shadow;
  transition-duration: .45s;
  transition-timing-function: ease;
}

/* ---------- Toast (añadido al carrito) ---------- */

#toastBox {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: .65rem;
  max-width: min(34rem, calc(100vw - 2rem));
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 184, 115, .4);
  background: linear-gradient(150deg, rgba(40, 32, 20, .92), rgba(24, 19, 12, .94));
  color: #f6f0e6;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: toastIn .45s var(--ease-spring) both;
  transition: opacity .4s ease, transform .4s ease;
  font-size: .92rem;
}
.toast.hide { opacity: 0; transform: translateY(12px); }
.toast-check {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 99px;
  background: linear-gradient(135deg, #f4dca8, #d2a45c);
  color: #1d1507;
  font-weight: 900;
  font-size: .8rem;
  flex: 0 0 auto;
}
.toast-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast button {
  border: 0;
  background: none;
  color: var(--gold-soft);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  padding: .2rem .2rem;
}
[data-theme="light"] .toast { color: #f6f0e6; }
[data-theme="light"] .toast button { color: #f4dca8; }

[data-cart-count].bounce { animation: cartBounce .55s var(--ease-spring); }

/* ---------- Favoritos ---------- */

.wish-header { position: relative; width: auto; padding: 0 .85rem; gap: .35rem; }
.wish-header .wish-heart { font-size: 1.05rem; line-height: 1; }
.wish-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 107, 129, .2);
  border: 1px solid rgba(255, 107, 129, .45);
  color: #ff8a9a;
  font-size: .72rem;
  font-weight: 900;
}
[data-theme="light"] .wish-count { color: #c2334a; background: rgba(255,107,129,.14); }

.wish-btn {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(14, 11, 8, .55);
  color: rgba(246, 240, 230, .8);
  font-size: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .3s var(--ease-spring), color .3s ease, border-color .3s ease, background .3s ease;
}
.wish-btn:hover { transform: scale(1.15); border-color: rgba(255, 107, 129, .6); }
.wish-btn.active {
  color: #ff5d76;
  border-color: rgba(255, 107, 129, .65);
  background: rgba(255, 107, 129, .16);
  animation: wishPop .45s var(--ease-spring);
}
.wish-btn.detail-wish { width: 2.7rem; height: 2.7rem; font-size: 1.15rem; }

#wishFilter.active {
  border-color: rgba(255, 107, 129, .55);
  background: linear-gradient(155deg, rgba(255, 107, 129, .3), rgba(255, 107, 129, .14));
  color: #ffb3bf;
}
[data-theme="light"] #wishFilter.active { color: #c2334a; }

/* ---------- Filtro de precio ---------- */

.price-filter { display: grid; gap: .35rem; }
.price-filter output {
  color: var(--gold-soft);
  font-weight: 800;
  font-size: .84rem;
}
input[type="range"]#priceFilter {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  height: 1.4rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
#priceFilter::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), rgba(227, 184, 115, .2));
}
#priceFilter::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: -.36rem;
  border-radius: 99px;
  border: 2px solid #fff6e0;
  background: linear-gradient(135deg, #f4dca8, #c2944c);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease-spring);
}
#priceFilter::-webkit-slider-thumb:hover { transform: scale(1.2); }
#priceFilter::-moz-range-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), rgba(227, 184, 115, .2));
}
#priceFilter::-moz-range-thumb {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 99px;
  border: 2px solid #fff6e0;
  background: linear-gradient(135deg, #f4dca8, #c2944c);
}

/* ---------- Galería de la ficha ---------- */

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}
.product-detail-media { position: relative; cursor: zoom-in; }
.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.detail-thumbs button {
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: none;
  opacity: .65;
  transition: opacity .3s ease, border-color .3s ease, transform .25s ease;
}
.detail-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.detail-thumbs button.active { border-color: var(--gold); opacity: 1; }
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="light"] .detail-thumbs button { border-color: rgba(82, 62, 28, .22); }
[data-theme="light"] .detail-thumbs button.active { border-color: var(--gold); }

/* Zoom lupa */
.product-detail-media.zooming img {
  transform: scale(1.85);
  transition: transform .25s ease, opacity .25s ease;
}
.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: .85rem;
  transform: translateX(-50%);
  z-index: 2;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(14, 11, 8, .65);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(246, 240, 230, .85);
  font-size: .74rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity .3s ease;
}
.product-detail-media:hover .zoom-hint { opacity: 1; }
.product-detail-media.zooming .zoom-hint { opacity: 0; }
@media (hover: none) {
  .zoom-hint { display: none; }
  .product-detail-media { cursor: default; }
}

/* ---------- Relacionados ---------- */

.related {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.related .section-head { margin-bottom: 1.1rem; }
.related h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.related-card { color: inherit; }
.related-card h3 { font-size: 1.05rem; }
.related-card .mini-btn { pointer-events: none; }

/* ---------- FAQ ---------- */

.faq {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 5.5rem;
}
.faq-list {
  display: grid;
  gap: .6rem;
  max-width: 56rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  overflow: hidden;
  transition: border-color .3s ease;
}
.faq-item:hover { border-color: rgba(227, 184, 115, .35); }
.faq-item.open { border-color: rgba(227, 184, 115, .5); }
[data-theme="light"] .faq-item { background: linear-gradient(170deg, #fffdf7, #f6efdf); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .98rem;
  text-align: left;
}
.faq-q i {
  font-style: normal;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .35s var(--ease-spring);
  flex: 0 0 auto;
}
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.faq-a p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 1.2rem;
  transition: padding .35s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { padding-bottom: 1.1rem; }

/* ---------- Volver arriba ---------- */

.back-top {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 184, 115, .45);
  background: linear-gradient(150deg, rgba(40, 32, 20, .85), rgba(24, 19, 12, .9));
  color: var(--gold-soft);
  font-size: 1.15rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s var(--ease-spring), border-color .3s ease;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); border-color: var(--gold); }
[data-theme="light"] .back-top {
  background: linear-gradient(150deg, #fffdf7, #f0e6d2);
  color: var(--gold-deep);
  box-shadow: 0 14px 34px rgba(82, 62, 28, .25);
}

/* ---------- Lightbox ---------- */

body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 2, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn .3s ease both;
}
#lightboxImage {
  position: relative;
  z-index: 2;
  max-width: min(88vw, 75rem);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  animation: popIn .4s var(--ease-out) both;
  transition: opacity .25s ease;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 230, .3);
  background: rgba(20, 16, 10, .6);
  color: #f6f0e6;
  font-size: 1.4rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .3s var(--ease-spring), border-color .3s ease, background .3s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { transform: scale(1.12); border-color: var(--gold); background: rgba(227, 184, 115, .2); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-nav.prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev:hover { transform: translateY(-50%) scale(1.12); }
.lightbox-nav.next:hover { transform: translateY(-50%) scale(1.12); }
.lightbox-counter {
  position: absolute;
  z-index: 3;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(20, 16, 10, .65);
  border: 1px solid rgba(246, 240, 230, .25);
  color: rgba(246, 240, 230, .9);
  font-size: .8rem;
  letter-spacing: .08em;
}
.lightbox.single .lightbox-nav,
.lightbox.single .lightbox-counter { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(24px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cartBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
@keyframes wishPop {
  0% { transform: scale(.7); }
  55% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@media (max-width: 980px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .toast { font-size: .85rem; }
  .lightbox-nav.prev { left: .6rem; }
  .lightbox-nav.next { right: .6rem; }
  .back-top { width: 2.6rem; height: 2.6rem; }
}

/* ---------- Reveal system ---------- */

.reveal { animation: riseIn .75s var(--ease-out) both; }
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}
@keyframes backgroundDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4rem, -2.5rem, 0) scale(1.1); }
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(3%, -4%); }
  50% { transform: translate(-2%, 3%); }
  75% { transform: translate(4%, 2%); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes topbarIn {
  from { opacity: 0; transform: translateY(-120%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  to { transform: translateY(0) rotate(0); }
}
@keyframes slideIn {
  from { transform: translateX(110%); }
  to { transform: translateX(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulseRing {
  from { transform: scale(.6); opacity: 1; }
  to { transform: scale(2); opacity: 0; }
}
@keyframes scrollDrop {
  from { top: -100%; }
  to { top: 100%; }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes glowPulse {
  from { opacity: .55; }
  to { opacity: 1; }
}
@keyframes goldBreath {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .shop-layout, .contact, .admin-grid, .product-detail, .section-kicker, .collection-grid, .home-process, .testimonial-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { position: static; }
  .hero-float-a { top: auto; bottom: 26vh; right: 1rem; }
  .hero-float-b { display: none; }
  .collection-card, .collection-card.featured { min-height: 24rem; }
  .home-cta { align-items: flex-start; flex-direction: column; }
  .home-process h2 { max-width: 14ch; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer .footer-inner > p { justify-self: start; text-align: left; }
  .featured-row { grid-auto-columns: minmax(15.5rem, 70%); }
}

@media (max-width: 700px) {
  .topbar { align-items: flex-start; flex-direction: column; top: .5rem; }
  .nav { width: 100%; justify-content: flex-start; }
  .hero { min-height: 88vh; }
  h1 { font-size: 2.8rem; }
  .hero-sub { font-size: 1rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: auto; }
  .detail-actions, .variant-options { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-row, .cart-line { grid-template-columns: 1fr; }
  .promo form { grid-template-columns: 1fr; }
  .process-list article { grid-template-columns: 1fr; }
  .process-list strong, .process-list h3, .process-list p { grid-column: 1; }
  .process-list strong { grid-row: auto; }
  .site-footer nav { flex-wrap: wrap; }
  .scroll-cue { display: none; }
  .hero-float { display: none; }
  .marquee-track span { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .hero-line > span { transform: none; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* ---------- Mobile performance ---------- */

@media (max-width: 760px) {
  .grain { animation: none; }

  .stage-bg span {
    animation: none;
    filter: blur(50px);
  }

  .hero img,
  .hero-glow {
    animation: none;
  }

  .glass-surface,
  .product-detail {
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
  }

  .liquid-btn {
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
  }

  .drawer-backdrop, .modal-backdrop, .lightbox-backdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
