/* =============================================================
   MIRAK — Perfumería · Editorial Dark Warm
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components (btn, chip, nav)
   6. Sections (hero, marquee, about, steps, brands, trust, cta, footer)
   7. Catalog (toolbar, brand blocks, perfume cards)
   8. Effects & animations
   9. Responsive
   10. Reduced motion
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  --bg:        #0b0908;
  --bg-2:      #141110;
  --bg-3:      #1c1713;
  --bg-4:      #241d17;
  --cream:     #f3ead9;
  --cream-2:   #ddd0ba;
  --cream-3:   #9c8d76;
  --accent:    #a5231f;
  --accent-2:  #7a1916;
  --accent-soft: rgba(165, 35, 31, .16);
  --gold:      #c6a15b;
  --gold-soft: rgba(198, 161, 91, .18);
  --line:      rgba(243, 234, 217, .13);
  --line-strong: rgba(243, 234, 217, .22);
  --plinth-a:  #efe6d8;
  --plinth-b:  #e0d3bd;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
  --radius: 6px;
  --radius-lg: 18px;
  --container: 1260px;
}

/* -------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-family: var(--serif); font-weight: 500; color: var(--cream); }
em { font-style: italic; color: var(--gold); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
   3. Utilities
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.center { text-align: center; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------
   4. Typography
   ------------------------------------------------------------- */
.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.kicker.center { margin-inline: auto; }
.section-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  max-width: 20ch;
  margin-bottom: 1.1rem;
}
.section-title.center { margin-inline: auto; max-width: 22ch; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

/* -------------------------------------------------------------
   5. Components
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background-color .35s var(--ease-out), border-color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
  color: var(--cream);
  box-shadow: 0 12px 30px -10px rgba(165, 35, 31, .55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(165, 35, 31, .65); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-lg { padding: 1.15rem 2.6rem; font-size: 1rem; }
.btn-nav-wa {
  background: var(--bg-3);
  color: var(--cream);
  border-color: var(--line);
  font-size: .82rem;
  padding: .68rem 1.35rem;
}
.btn-nav-wa:hover { border-color: var(--gold); color: var(--gold); }

.link-arrow {
  font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--gold);
  position: relative; padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease-out), opacity .35s;
  white-space: nowrap;
}
.link-arrow:hover { border-color: var(--gold); }

.nav-brand {
  display: inline-flex; align-items: center; gap: .55rem;
}
.nav-brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nav-brand-word {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  letter-spacing: .08em; color: var(--cream);
}

.brand-mark {
  font-weight: 800;
  font-size: 1.18em;
  letter-spacing: .02em;
  color: inherit;
}

/* -------------------------------------------------------------
   6a. Nav
   ------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(11, 9, 8, .96);
  border-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--cream-2);
  padding-block: .3rem;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-burger {
  display: grid; gap: 5px; width: 26px; z-index: 620;
}
.nav-burger span { display: block; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease-soft), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 610;
  background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.9rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0 0 0 0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); }
.nav-mobile .btn { margin-top: .8rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .btn-nav-wa { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
}
@media (max-width: 959px) {
  .btn-nav-wa { display: none; }
}

/* -------------------------------------------------------------
   6b. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
  isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -15%; z-index: -2;
  background:
    radial-gradient(42% 40% at 78% 22%, rgba(165, 35, 31, .38), transparent 65%),
    radial-gradient(38% 46% at 14% 78%, rgba(198, 161, 91, .22), transparent 65%),
    radial-gradient(60% 60% at 50% 100%, rgba(122, 25, 22, .28), transparent 70%);
  filter: blur(46px) saturate(120%);
  animation: meshDrift 26s ease-in-out infinite;
  will-change: transform;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.16) rotate(6deg); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner {
  display: grid; gap: 3rem;
  padding-block: 3rem 4rem;
}
.hero-copy { max-width: 640px; }
.hero-title { font-size: clamp(2.5rem, 6.4vw, 4.6rem); margin-bottom: 1.4rem; }
.hero-sub { font-size: 1.06rem; max-width: 46ch; color: var(--cream-3); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: var(--cream-3); }
.hero-stats strong { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.hero-stats .sep { opacity: .5; }

.hero-figure {
  position: relative;
  justify-self: center;
  width: min(78vw, 340px);
}
.hero-figure-glow {
  position: absolute; inset: -18% -30%;
  background: radial-gradient(60% 60% at 50% 45%, rgba(243, 234, 217, .5), transparent 72%);
  filter: blur(30px);
  z-index: -1;
}
.hero-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.7), 0 10px 30px -10px rgba(0,0,0,.5);
}
.hero-figure-badge {
  position: absolute; top: -14px; right: -10px;
  background: var(--gold); color: var(--bg);
  font-family: var(--sans); font-weight: 700; font-size: .8rem;
  padding: .5rem .9rem; border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-figure { justify-self: end; width: min(30vw, 400px); }
}

/* -------------------------------------------------------------
   6c. Marquee
   ------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 1.1rem;
  display: flex;
  gap: 1.75rem;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: flex; flex-shrink: 0; align-items: center; gap: 1.75rem;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--serif); font-size: 1.3rem; color: var(--cream-3);
  white-space: nowrap;
}
.marquee-track .marquee-dot {
  font-size: .7rem; color: var(--gold); opacity: .8;
}
@keyframes marqueeScroll { to { transform: translateX(-100%); } }

/* -------------------------------------------------------------
   6d. About
   ------------------------------------------------------------- */
.about-center {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.about-figure { margin-bottom: 2.6rem; }
.medallion {
  width: min(85vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  margin-inline: auto;
  background: radial-gradient(circle at 38% 32%, var(--plinth-a), var(--plinth-b) 78%);
  border: 1px solid var(--gold-soft);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), inset 0 0 0 10px rgba(11,9,8,.04);
  display: grid; place-items: center;
  padding: 5%;
  overflow: hidden;
}
.medallion img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.about-copy { max-width: 62ch; margin-inline: auto; }
.about-copy p { margin-bottom: 1.1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------
   6e. Steps
   ------------------------------------------------------------- */
.steps { background: var(--bg-2); }
.steps-grid {
  display: grid; gap: 1.5rem;
  margin-top: 3rem;
}
.step-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 50%;
  background: var(--gold-soft);
  width: 3.6rem; height: 3.6rem; text-align: center;
  margin-bottom: 1.3rem;
}
.step-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.step-card p { font-size: .96rem; }
.step-card a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

/* -------------------------------------------------------------
   6f. Brands row (homepage)
   ------------------------------------------------------------- */
.brands-head {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 1rem;
}
.brand-row {
  display: flex; gap: 1.1rem; overflow-x: auto; overflow-y: visible;
  padding-block: 1.5rem 1rem;
  scroll-snap-type: x proximity;
  margin-inline: calc(clamp(1.25rem, 4vw, 2.5rem) * -1);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.brand-row::-webkit-scrollbar { display: none; }
.brand-tile {
  flex: 0 0 auto; width: 168px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-soft), border-color .4s var(--ease-out), box-shadow .5s var(--ease-soft);
}
.brand-tile img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  background: linear-gradient(160deg, var(--plinth-a), var(--plinth-b));
}
.brand-tile span {
  display: block; padding: .9rem 1rem 1.1rem;
  font-family: var(--serif); font-size: 1.06rem; color: var(--cream);
}
.brand-tile:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
}

@media (min-width: 960px) {
  .brands-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* -------------------------------------------------------------
   6f-bis. Opiniones (testimonials)
   ------------------------------------------------------------- */
.testimonials { background: var(--bg-2); }
.testimonial-grid {
  display: grid; gap: 1.4rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-stars {
  color: var(--gold); font-size: .85rem; letter-spacing: .12em;
}
.testimonial-quote {
  font-family: var(--serif); font-size: 1.22rem; font-style: italic;
  color: var(--cream); line-height: 1.4;
}
.testimonial-author {
  margin-top: auto; font-family: var(--sans); font-size: .82rem; color: var(--cream-3);
}
.testimonial-author strong { color: var(--cream-2); font-weight: 600; }

@media (min-width: 720px)  { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .testimonial-grid { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------
   6g. Trust strip
   ------------------------------------------------------------- */
.trust { background: var(--bg-2); }
.trust-grid { display: grid; gap: 1.4rem; }
.trust-card {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.trust-icon { color: var(--gold); font-size: 1rem; }
.trust-card h3 { font-size: 1.1rem; margin-block: .6rem .4rem; }
.trust-card p { font-size: .9rem; color: var(--cream-3); }

@media (min-width: 720px)  { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------
   6h. Final CTA
   ------------------------------------------------------------- */
.cta-final { text-align: center; overflow: clip; isolation: isolate; }
.cta-final-mesh {
  position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(55% 55% at 50% 45%, var(--accent-soft), transparent 70%);
  filter: blur(60px);
}
.cta-final-sub { max-width: 46ch; margin-inline: auto; margin-bottom: 2.2rem; color: var(--cream-3); }

/* -------------------------------------------------------------
   6i. Footer
   ------------------------------------------------------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand p { margin-top: 1rem; font-size: .9rem; max-width: 34ch; color: var(--cream-3); }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .92rem; transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
.footer-note { font-size: .84rem; color: var(--cream-3); }
.footer-legal { padding-top: 1.6rem; display: flex; flex-direction: column; gap: .9rem; }
.footer-legal p { font-size: .8rem; color: var(--cream-3); max-width: 74ch; }

@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* -------------------------------------------------------------
   6j. WhatsApp floating button
   ------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #0b0908;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -10px rgba(0,0,0,.55);
  transition: transform .4s var(--ease-soft);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float-dot {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  animation: waPulse 2.4s ease-in-out infinite;
}
@keyframes waPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } }

/* =============================================================
   7. Catalog page
   ============================================================= */
.catalog-hero { padding-block: calc(var(--nav-h) + 3rem) 2rem; }
.catalog-intro { max-width: 62ch; font-size: 1.02rem; color: var(--cream-3); }
.catalog-intro a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

.catalog-toolbar {
  position: sticky; top: var(--nav-h); z-index: 300;
  background: var(--bg);
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
}
.catalog-toolbar-inner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding-bottom: 1rem;
}
.search-field {
  position: relative; flex: 1 1 260px; max-width: 420px;
}
.search-field svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--cream-3); }
.search-field input {
  width: 100%; padding: .75rem 1rem .75rem 2.6rem;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px;
  color: var(--cream); font-family: var(--sans); font-size: .92rem;
}
.search-field input::placeholder { color: var(--cream-3); }
.search-field input:focus { border-color: var(--gold); outline: none; }

.gender-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.gender-filter button {
  padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .84rem; font-weight: 500; color: var(--cream-3);
  transition: all .3s var(--ease-out);
}
.gender-filter button.is-active, .gender-filter button:hover {
  border-color: var(--gold); color: var(--gold); background: var(--gold-soft);
}

.brand-chips {
  display: flex; gap: .55rem; overflow-x: auto;
  padding-bottom: .2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.brand-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: .45rem .95rem; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: .8rem; color: var(--cream-3); white-space: nowrap;
  transition: all .3s var(--ease-out);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }

.catalog-empty {
  text-align: center; padding-block: 3rem; color: var(--cream-3); font-size: 1rem;
}
.catalog-empty a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

.brand-block { padding-block: 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 130px); }
.brand-block-head {
  display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.brand-block-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.brand-block-count {
  font-family: var(--sans); font-size: .78rem; color: var(--cream-3);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
}

.perfume-grid {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(2, 1fr);
}
.perfume-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-soft), border-color .4s var(--ease-out), box-shadow .5s var(--ease-soft);
}
.perfume-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-soft);
  box-shadow: 0 30px 55px -24px rgba(0,0,0,.6);
}
.perfume-card-media {
  background: linear-gradient(165deg, var(--plinth-a), var(--plinth-b));
  aspect-ratio: 3/4;
  overflow: hidden;
}
.perfume-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft);
}
.perfume-card:hover .perfume-card-media img { transform: scale(1.05); }
.perfume-card-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.perfume-card-brand {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.perfume-card-name { font-size: 1.22rem; line-height: 1.2; margin-bottom: .1rem; }
.perfume-card-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--cream-3); margin-bottom: .3rem; }
.perfume-card-meta .tag {
  border: 1px solid var(--line); border-radius: 999px; padding: .18rem .6rem;
}
.perfume-card-meta .dot { opacity: .5; }
.btn-wa {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .68rem 1rem; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-strong);
  font-size: .82rem; font-weight: 600; color: var(--cream);
  transition: all .35s var(--ease-out);
}
.btn-wa:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }

.not-found-cta { background: var(--bg-2); }

@media (min-width: 540px)  { .perfume-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .perfume-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .perfume-grid { grid-template-columns: repeat(5, 1fr); } }

.perfume-card.is-hidden-filter { display: none; }

/* -------------------------------------------------------------
   Scroll progress
   ------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 700;
  background: rgba(243,234,217,.08); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: 0 0; transform: scaleX(0);
}

/* =============================================================
   8. Reveal / tilt effects
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transform-style: preserve-3d;
  will-change: transform;
}
.has-tilt:hover { transition-duration: .15s; }

/* =============================================================
   9. Responsive extras
   ============================================================= */
@media (min-width: 540px) {
  .hero-title { max-width: 16ch; }
}

/* =============================================================
   10. Reduced motion — only genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation-duration: 60s; }
  .marquee-track { animation-duration: 90s; }
  .wa-float-dot { animation: none; }
}
