/* ============================================
   Inspire Artes — Design tokens from Figma
   ============================================ */
:root {
  --pink: #d93c87;
  --pink-light: #f47fb6;
  --pink-soft: #f8c8da;
  --pink-blush: #fff8fb;
  --lilac: #e8d5f5;
  --lilac-deep: #d4b3e5;
  --gold: #c9a84c;
  --ink: #2d2d2d;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --gray: #9ca3af;
  --footer: #2a2a2a;
  --white: #ffffff;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-pink: 0 10px 40px -10px rgba(217, 60, 135, 0.35);
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: 1440px;
  --header-h: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
  height: 100vh;
}

/* ---------- Loader / Laço ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.35rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(244, 127, 182, 0.28), transparent 70%),
    linear-gradient(160deg, #fff8fb 0%, #fde8f0 45%, #f8c8da 100%);
  transition: opacity 0.75s var(--ease-out), visibility 0.75s ease;
  overflow: hidden;
}

.loader__soft {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(232, 213, 245, 0.45), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.12), transparent 35%);
  pointer-events: none;
  animation: soft-breathe 4s ease-in-out infinite;
}

@keyframes soft-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.loader__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader__sparkles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #c9a84c 45%, transparent 70%);
  opacity: 0;
  animation: sparkle-twinkle 2.4s ease-in-out infinite;
}

.loader__sparkles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0.2s; }
.loader__sparkles span:nth-child(2) { left: 78%; top: 18%; animation-delay: 0.7s; width: 6px; height: 6px; }
.loader__sparkles span:nth-child(3) { left: 18%; top: 68%; animation-delay: 1.1s; }
.loader__sparkles span:nth-child(4) { left: 84%; top: 62%; animation-delay: 0.4s; width: 10px; height: 10px; }
.loader__sparkles span:nth-child(5) { left: 48%; top: 12%; animation-delay: 1.4s; width: 5px; height: 5px; }
.loader__sparkles span:nth-child(6) { left: 8%; top: 48%; animation-delay: 1.8s; }
.loader__sparkles span:nth-child(7) { left: 90%; top: 40%; animation-delay: 0.9s; width: 7px; height: 7px; }
.loader__sparkles span:nth-child(8) { left: 62%; top: 78%; animation-delay: 1.6s; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  40%, 60% { opacity: 1; transform: scale(1.15); }
}

.loader__hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.loader__hearts i {
  position: absolute;
  bottom: -10%;
  font-style: normal;
  color: #d93c87;
  opacity: 0;
  font-size: 1rem;
  animation: loader-heart-rise 4.5s ease-in infinite;
  filter: drop-shadow(0 2px 6px rgba(217, 60, 135, 0.25));
}

.loader__hearts i:nth-child(1) { left: 10%; animation-delay: 0.3s; font-size: 0.85rem; color: #f47fb6; }
.loader__hearts i:nth-child(2) { left: 25%; animation-delay: 1.1s; font-size: 1.2rem; }
.loader__hearts i:nth-child(3) { left: 42%; animation-delay: 0.6s; font-size: 0.75rem; color: #f47fb6; }
.loader__hearts i:nth-child(4) { left: 58%; animation-delay: 1.8s; font-size: 1.05rem; }
.loader__hearts i:nth-child(5) { left: 74%; animation-delay: 1.3s; font-size: 0.9rem; color: #f47fb6; }
.loader__hearts i:nth-child(6) { left: 88%; animation-delay: 2.1s; font-size: 1.15rem; }

@keyframes loader-heart-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  15% { opacity: 0.7; }
  100% {
    opacity: 0;
    transform: translateY(-110vh) scale(1.2) rotate(25deg);
  }
}

.loader__stage {
  position: relative;
  width: min(580px, 96vw);
  height: min(450px, 88vw);
  display: grid;
  place-items: center;
}

.loader__ring {
  position: absolute;
  width: min(260px, 58vw);
  height: min(260px, 58vw);
  border-radius: 50%;
  border: 2px solid rgba(217, 60, 135, 0.25);
  animation: ring-pulse 2.4s ease-out 0.8s infinite;
  pointer-events: none;
  z-index: 1;
}

.loader__ring--delay {
  animation-delay: 1.5s;
  border-color: rgba(201, 168, 76, 0.3);
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.loader__bow {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  overflow: visible;
  filter: drop-shadow(0 14px 24px rgba(217, 60, 135, 0.32));
  animation: bow-idle 3.2s ease-in-out 1.8s infinite;
}

@keyframes bow-idle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-1.5deg) scale(1.02); }
}

.bow__loop,
.bow__tail,
.bow__knot {
  transform-box: view-box;
  transform-origin: 120px 92px;
}

.bow__tail--left,
.bow__tail--right {
  transform-origin: 120px 98px;
}

.bow__loop--left {
  animation: bow-loop-left 1.35s var(--ease-out) 0.35s both;
}

.bow__loop--right {
  animation: bow-loop-right 1.35s var(--ease-out) 0.35s both;
}

.bow__tail--left {
  animation: bow-tail-left 1.2s var(--ease-out) 0.55s both;
}

.bow__tail--right {
  animation: bow-tail-right 1.2s var(--ease-out) 0.55s both;
}

.bow__knot {
  animation: bow-knot 1s var(--ease-spring) 0.45s both;
}

@keyframes bow-loop-left {
  0% {
    opacity: 0.55;
    transform: rotate(28deg) scale(0.35) translate(18px, 8px);
  }
  55% {
    opacity: 1;
    transform: rotate(-8deg) scale(1.08) translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1) translate(0, 0);
  }
}

@keyframes bow-loop-right {
  0% {
    opacity: 0.55;
    transform: rotate(-28deg) scale(0.35) translate(-18px, 8px);
  }
  55% {
    opacity: 1;
    transform: rotate(8deg) scale(1.08) translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1) translate(0, 0);
  }
}

@keyframes bow-tail-left {
  0% {
    opacity: 0;
    transform: rotate(40deg) scale(0.2) translate(10px, -16px);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1) translate(0, 0);
  }
}

@keyframes bow-tail-right {
  0% {
    opacity: 0;
    transform: rotate(-40deg) scale(0.2) translate(-10px, -16px);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1) translate(0, 0);
  }
}

@keyframes bow-knot {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.loader__logo-wrap {
  position: relative;
  z-index: 2;
  width: min(220px, 52vw);
  height: min(220px, 52vw);
  border-radius: 50%;
  animation: loader-logo-in 0.9s var(--ease-out) 0.15s both;
  overflow: hidden;
}

.loader__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.9),
    0 16px 40px rgba(217, 60, 135, 0.35);
  animation: loader-logo-glow 2.2s ease-in-out 1s infinite;
}

.loader__shimmer {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  transform: translateX(-130%) rotate(8deg);
  animation: logo-shimmer 2.8s ease-in-out 1.1s infinite;
  pointer-events: none;
}

@keyframes logo-shimmer {
  0%, 25% { transform: translateX(-130%) rotate(8deg); }
  55%, 100% { transform: translateX(130%) rotate(8deg); }
}

@keyframes loader-logo-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-logo-glow {
  0%, 100% {
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.9),
      0 16px 40px rgba(217, 60, 135, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0.98),
      0 18px 48px rgba(217, 60, 135, 0.5);
  }
}

.loader__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: loader-text-in 0.7s var(--ease-out) 1.05s both;
  position: relative;
  z-index: 2;
}

.loader__hint {
  font-size: 0.9375rem;
  color: var(--muted-2);
  animation: loader-text-in 0.7s var(--ease-out) 1.2s both, hint-pulse 1.8s ease-in-out 1.6s infinite;
  position: relative;
  z-index: 2;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes loader-text-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader.is-done .loader__stage {
  animation: loader-open 0.75s var(--ease-out) both;
}

@keyframes loader-open {
  0% {
    transform: scale(1);
    filter: blur(0);
  }
  100% {
    transform: scale(1.18);
    filter: blur(8px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bow__loop--left,
  .bow__loop--right,
  .bow__tail--left,
  .bow__tail--right,
  .bow__knot,
  .loader__logo-wrap,
  .loader__logo,
  .loader__brand,
  .loader__hint,
  .loader__soft,
  .loader__bow,
  .loader__ring,
  .loader__shimmer,
  .loader__sparkles span,
  .loader__hearts i {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .loader__sparkles,
  .loader__hearts,
  .loader__ring,
  .loader__shimmer {
    display: none;
  }

  .loader.is-done .loader__stage {
    animation: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; color: var(--white); margin-bottom: 1.5rem; }

.text-gradient {
  background: linear-gradient(127deg, #d93c87 0%, #f47fb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: var(--shadow-pink);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 44px -10px rgba(217, 60, 135, 0.5);
  background: #c73378;
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--outline {
  background: var(--white);
  color: var(--pink);
  border: 2px solid var(--pink);
}

.btn--outline:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--pink);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.btn--primary::after,
.cta-banner__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(248, 200, 218, 0.3);
  transition: box-shadow 0.3s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  transition: background 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(217, 60, 135, 0.08);
}

.header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.97);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  animation: logo-float 4s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(217, 60, 135, 0.25);
}

.brand--footer .brand__logo {
  width: 44px;
  height: 44px;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand--footer .brand__name {
  color: var(--white);
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: var(--header-h);
  z-index: 101;
  pointer-events: none;
}

.nav a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease;
  pointer-events: auto;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav a:hover {
  color: var(--pink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--pink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  z-index: 120;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-inline: auto;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

.header__cta {
  flex-shrink: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 200, 218, 0.5);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-spring);
}

.icon-btn:hover {
  color: var(--pink);
  border-color: var(--pink);
  transform: scale(1.06);
}

.icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* ---------- Drawer (cart / wishlist) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, 0.45);
  z-index: 200;
  animation: fade-in 0.25s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--white);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(248, 200, 218, 0.4);
}

.drawer__header h2 {
  font-size: 1.25rem;
}

.drawer__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--pink-blush);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.drawer__close:hover {
  background: var(--pink);
  color: var(--white);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer__empty {
  text-align: center;
  color: var(--muted-2);
  padding: 3rem 1rem;
  font-size: 0.9375rem;
}

.drawer__footer {
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(248, 200, 218, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer__hint {
  font-size: 0.8125rem;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
}

.drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.drawer__total strong {
  font-size: 1.25rem;
  color: var(--pink);
}

.drawer__checkout {
  width: 100%;
}

.line {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--pink-blush);
  border: 1px solid rgba(248, 200, 218, 0.35);
}

.line__emoji {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.line__info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.line__info p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.line__info p span {
  color: var(--gray);
}

.line__action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pink-soft);
  background: var(--white);
  color: var(--pink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-spring);
}

.line__action:hover {
  background: var(--pink);
  color: var(--white);
  transform: scale(1.08);
}

.line__action--danger {
  font-size: 1.25rem;
  color: var(--muted-2);
  border-color: #e5e7eb;
}

.line__action--danger:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 200, 218, 0.6);
  padding: 0.15rem;
}

.qty__btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--pink-blush);
  color: var(--pink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.qty__btn:hover {
  background: var(--pink);
  color: var(--white);
}

.qty__value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.toast {
  position: fixed;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 6rem;
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #fdf2f8;
  background-image: url("../assets/16-9.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 251, 0.88) 0%, rgba(255, 248, 251, 0.55) 42%, rgba(255, 248, 251, 0.18) 70%, rgba(255, 248, 251, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 35%, rgba(255, 248, 251, 0.25) 100%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "content visual";
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  max-width: 42rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(248, 200, 218, 0.3);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.625;
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

.hero__visual {
  grid-area: visual;
  position: relative;
  height: min(600px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__stage {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1;
  will-change: transform;
}

.hero__glow {
  position: absolute;
  inset: -2%;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(248, 200, 218, 0.4) 0%, rgba(244, 127, 182, 0.2) 100%);
}

.hero__frame {
  position: absolute;
  inset: 5%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(145deg, #fde8f0, #f8c8da);
}

.hero__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: logo-scale-in 1.2s var(--ease-out) both;
}

@keyframes logo-scale-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section--blush {
  background: var(--pink-blush);
}

.section--cta {
  padding-top: 0;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.section__head {
  text-align: center;
  margin-bottom: 4rem;
}

.section__head p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1rem;
}

.section__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section__row p {
  color: var(--muted);
  margin-top: 1rem;
}

.link-arrow {
  color: var(--pink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  padding: 0;
}

.link-arrow:hover {
  gap: 0.75rem;
}

/* ---------- Products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--pink-blush);
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__media {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(142deg, #fce7f3 0%, #fff1f2 100%);
  cursor: zoom-in;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__media--pink {
  background: linear-gradient(142deg, #fce7f3 0%, #fff1f2 100%);
}

.product-card__media--lilac {
  background: linear-gradient(142deg, #f3e8ff 0%, #fdf2f8 100%);
}

.product-card__media--blue {
  background: linear-gradient(142deg, #eff6ff 0%, #fdf2f8 100%);
}

.product-card__media--peach {
  background: linear-gradient(142deg, #fff7ed 0%, #fdf2f8 100%);
}

.product-card__emoji {
  font-size: 4rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s var(--ease-spring);
}

.product-card:hover .product-card__emoji {
  transform: scale(1.12);
}

.badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  pointer-events: none;
}

.badge-pill--new {
  background: var(--white);
  color: var(--pink);
}

.badge-pill--best {
  background: var(--gold);
  color: var(--white);
}

.wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  z-index: 2;
  backdrop-filter: blur(4px);
  color: var(--gray);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, transform 0.25s var(--ease-spring);
}

.wish-btn:hover,
.wish-btn.is-active {
  color: var(--pink);
  transform: scale(1.12);
}

.wish-btn.is-active svg {
  fill: var(--pink);
  stroke: var(--pink);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stars {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.stars span {
  color: var(--gray);
  letter-spacing: 0;
  margin-left: 0.25rem;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.product-card__footer strong {
  font-size: 1.125rem;
}

.cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pink-soft);
  background: var(--white);
  color: var(--pink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring), border-color 0.25s ease;
}

.cart-btn:hover {
  background: var(--pink);
  color: var(--white);
  transform: scale(1.08);
}

.cart-btn--sent {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
  transform: scale(0.9);
}

.cart-flyer {
  position: fixed;
  z-index: 320;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(217, 60, 135, 0.35);
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
  will-change: transform, opacity;
}

.icon-btn--ping {
  animation: icon-ping 0.45s var(--ease-spring);
}

@keyframes icon-ping {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cart-flyer {
    display: none;
  }

  .icon-btn--ping {
    animation: none;
  }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, #d93c87 0%, #f47fb6 100%);
  box-shadow: var(--shadow-pink);
  overflow: hidden;
  color: var(--white);
}

.cta-banner__glow {
  position: absolute;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(20px);
  right: -85px;
  top: -128px;
  pointer-events: none;
}

.cta-banner__glow::after {
  content: "";
  position: absolute;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.2);
  filter: blur(12px);
  left: -280px;
  bottom: -200px;
}

.cta-banner__text {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.cta-banner__text h2 {
  margin-bottom: 1rem;
}

.cta-banner__text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner__btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: pulse-soft 2.5s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 10px 30px -3px rgba(255, 255, 255, 0.45); }
}

/* ---------- Steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.steps__line {
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 0;
  border-top: 2px dashed rgba(248, 200, 218, 0.5);
  pointer-events: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--white);
  background: linear-gradient(135deg, #f8c8da 0%, #ffffff 100%);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease-spring);
}

.step:hover .step__icon {
  transform: scale(1.1) rotate(6deg);
}

.step__label {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted-2);
  font-size: 0.875rem;
  max-width: 16rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer);
  color: var(--gray);
  border-radius: 40px 40px 0 0;
  padding: 5rem 0 2.5rem;
  text-align: center;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
  justify-items: center;
}

.footer__grid > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer h4 {
  text-align: center;
}

.footer__brand {
  align-items: center;
}

.footer__brand .brand {
  justify-content: center;
}

.footer__brand p {
  margin: 1.4rem auto;
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 18rem;
  text-align: center;
}

.social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.25s ease, transform 0.25s var(--ease-spring);
}

.social a:hover {
  background: var(--pink);
  transform: translateY(-3px);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__links a,
.footer__contact a {
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--pink-light);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__contact li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  text-align: center;
}

.footer__contact small {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.footer__contact svg {
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--muted-2);
  text-align: center;
}

.heart-pulse {
  color: var(--pink);
  display: inline-block;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
}

/* ---------- WhatsApp FAB ---------- */
.back-top {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(217, 60, 135, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease-spring), background 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: #c73378;
  transform: translateY(-3px);
}

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease-spring);
  animation: fab-bounce 3s ease-in-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes fab-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  90% { transform: translateY(-8px); }
}

/* ---------- Floating hearts layer ---------- */
.hearts-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.heart-particle {
  position: absolute;
  color: var(--pink);
  opacity: 0;
  font-size: 1rem;
  animation: heart-rise linear forwards;
  filter: drop-shadow(0 2px 4px rgba(217, 60, 135, 0.3));
}

@keyframes heart-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5) rotate(0deg);
  }
  10% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1.2) rotate(40deg);
  }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  --reveal-delay: 0ms;
}

[data-reveal-item],
[data-reveal]:not(:has([data-reveal-item])) {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible [data-reveal-item],
[data-reveal].is-visible:not(:has([data-reveal-item])) {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].is-visible [data-reveal-item]:nth-child(1) { --reveal-delay: 0ms; }
[data-reveal].is-visible [data-reveal-item]:nth-child(2) { --reveal-delay: 80ms; }
[data-reveal].is-visible [data-reveal-item]:nth-child(3) { --reveal-delay: 160ms; }
[data-reveal].is-visible [data-reveal-item]:nth-child(4) { --reveal-delay: 240ms; }
[data-reveal].is-visible [data-reveal-item]:nth-child(5) { --reveal-delay: 320ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal-item],
  [data-reveal]:not(:has([data-reveal-item])) {
    opacity: 1;
    transform: none;
  }

  .hearts-layer,
  .btn--primary::after,
  .cta-banner__btn::after {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 4rem;
  }

  .hero__bg {
    background-image: url("../assets/9-16.jpg");
    background-position: center top;
  }

  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(255, 248, 251, 0.82) 0%, rgba(255, 248, 251, 0.55) 38%, rgba(255, 248, 251, 0.25) 70%, rgba(255, 248, 251, 0.15) 100%);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "content";
    text-align: center;
    gap: 1.5rem;
  }

  .hero__content {
    align-items: center;
    max-width: none;
  }

  .badge {
    align-self: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: flex;
    width: min(220px, 58vw);
    height: auto;
    max-width: none;
    margin: 0 auto;
    order: unset;
  }

  .hero__stage {
    width: 100%;
    aspect-ratio: 1;
  }

  .hero__glow {
    inset: -4%;
    border-radius: 50%;
  }

  .hero__frame {
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(217, 60, 135, 0.2);
  }

  .hero__logo-img {
    object-fit: contain;
    padding: 8%;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }

  .steps__line {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(45, 45, 45, 0.45);
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 82vw);
    height: 100dvh;
    max-height: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.14);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out), visibility 0.35s;
    z-index: 125;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    visibility: hidden;
  }

  .nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 0.9rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(248, 200, 218, 0.35);
  }

  .nav a::after {
    display: none;
  }

  .header {
    z-index: 130;
  }

  .nav-toggle {
    z-index: 131;
  }
}

@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer {
    border-radius: 28px 28px 0 0;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .section__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(28, 16, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: grid;
}

.lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--pink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-spring), background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  transform: scale(1.08);
  background: #fff;
  outline: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: min(90vh, 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: scale(0.94);
  transition: transform 0.3s var(--ease-out);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__caption {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  max-width: 90%;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 3.5rem 0.75rem 1rem;
  }

  .lightbox__close {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }

  .lightbox__img {
    max-height: min(70vh, 100%);
    border-radius: 10px;
  }

  .lightbox__caption {
    font-size: 0.875rem;
  }
}
