/* MiaLauLuxe — chrome + boutique. Paleta: burgundy #4D1D2C, gold #D4AF37, mauve #C48F95. */
:root {
  --brand: #4D1D2C;
  --brand-dark: #3A1520;
  --brand-deep: #2A1018;
  --brand-light: #6B3140;
  --gold: #D4AF37;
  --gold-soft: #F7E7C3;
  --mauve: #C48F95;
  --mauve-deep: #7A4148;
  --bg: #F7F0F1;
  --bg-2: #EFE3E5;
  --text: #1A0A10;
  --muted: #6B4A52;
  --line: rgba(77, 29, 44, 0.12);
  --panel: #fffdfc;
  --shadow: 0 10px 28px rgba(42, 16, 24, 0.12);
  --content-max: 72rem;
  --radius: 0.85rem;
  --ok: #3F6B4A;
  --stop: #9B1C2C;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

[hidden] { display: none !important; }

.app-shell {
  position: relative;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.app-bloom {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout style;
}

.bloom-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(980px 380px at 12% 8%, rgba(196, 143, 149, 0.34), transparent 58%),
    radial-gradient(860px 420px at 92% 88%, rgba(212, 175, 55, 0.16), transparent 62%),
    linear-gradient(180deg, #F7F0F1 0%, #EFE3E5 100%);
}

.bloom-drift {
  position: absolute;
  width: 160%;
  height: 160%;
  left: -30%;
  top: -30%;
  background-image: url("../img/bloom-rose.svg?v=20260817.2128");
  background-repeat: repeat;
  background-size: 168px 168px;
  opacity: 0.16;
}

.bloom-drift-a {
  animation: bloom-pan-a 42s ease-in-out infinite alternate;
}

.bloom-drift-b {
  background-size: 220px 220px;
  opacity: 0.1;
  filter: hue-rotate(-8deg);
  animation: bloom-pan-b 64s ease-in-out infinite alternate;
}

.bloom-petal {
  position: absolute;
  top: -14%;
  left: calc(var(--x) * 1%);
  width: var(--s);
  height: var(--s);
  background: url("../img/bloom-rosa.svg?v=20260817.2143") center / contain no-repeat;
  opacity: var(--o, 0.55);
  animation: bloom-fall var(--d) linear infinite;
  animation-delay: var(--delay);
}

.bloom-spark {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #F7E7C3 0%, #D4AF37 55%, transparent 72%);
  opacity: 0.55;
  animation: bloom-twinkle var(--d) ease-in-out infinite;
  animation-delay: var(--delay);
}

.app-header,
.app-footer {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  z-index: 40;
}

.app-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background:
    radial-gradient(1200px 420px at 50% -8%, rgba(196, 143, 149, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(247, 240, 241, 0.42) 0%, rgba(239, 227, 229, 0.5) 100%);
}

@keyframes bloom-pan-a {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(8%, 6%, 0) rotate(8deg); }
}

@keyframes bloom-pan-b {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-10%, 8%, 0) rotate(-6deg); }
}

@keyframes bloom-fall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  50% { transform: translate3d(var(--dx), 55vh, 0) rotate(calc(var(--rot) / 2)); }
  100% { transform: translate3d(calc(var(--dx) * -0.4), 118vh, 0) rotate(var(--rot)); }
}

@keyframes bloom-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .bloom-drift,
  .bloom-petal,
  .bloom-spark {
    animation: none;
  }
  .bloom-petal { opacity: 0.18; }
}

.shell-inner {
  width: min(72rem, calc(100% - 1.5rem));
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 479px) {
  .shell-inner {
    width: 100%;
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
  }
}

/* —— Header —— */
.app-header {
  background: linear-gradient(145deg, var(--brand-deep) 0%, var(--brand) 62%, var(--brand-light) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 16px rgba(42, 16, 24, 0.28);
  padding-top: env(safe-area-inset-top, 0px);
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: nowrap;
  padding: 0.55rem 0;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 0 1 auto;
}
.header-brand-ico {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
}
.header-brand-text { min-width: 0; }
.header-brand-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.brand-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.brand-sub {
  margin: 0.12rem 0 0;
  font-size: 0.75rem;
  line-height: 1.2;
  color: rgba(247, 231, 195, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-ico-btn {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.7rem;
  border: 1px solid rgba(247, 231, 195, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.header-ico-btn svg { width: 1.25rem; height: 1.25rem; }
.header-ico-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(212, 175, 55, 0.55); }
.header-ico-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.header-ico-btn[hidden] { display: none !important; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
}
.nav-item svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.nav-item:hover, .nav-item.is-active {
  background: rgba(212, 175, 55, 0.18);
  color: #fff;
}
.nav-item.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

[data-tip]::after { display: none !important; content: none !important; }

.floating-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5000;
  max-width: min(16rem, calc(100vw - 1rem));
  padding: 0.28rem 0.5rem;
  border-radius: 0.4rem;
  background: #1A0A10;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(26, 10, 16, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}
.floating-tip.is-show {
  opacity: 1;
  visibility: visible;
}
@media (hover: none) {
  .floating-tip.only-hover { display: none; }
}

.nav-burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(247, 231, 195, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.nav-burger svg { width: 1.25rem; height: 1.25rem; }

.header-drawer {
  display: none;
  background: var(--brand-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}
.header-drawer.is-open { display: block; }
.header-drawer .nav-item {
  width: 100%;
  justify-content: flex-start;
  padding: 0.7rem 1rem;
  border-radius: 0;
}

@media (max-width: 767px) {
  .header-nav--desktop { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 768px) {
  .header-drawer { display: none !important; }
}
@media (max-width: 420px) {
  .nav-item .nav-label { display: none; }
  .header-drawer .nav-item .nav-label { display: inline; }
}

/* —— Footer —— */
.app-footer {
  background: var(--brand-deep);
  color: rgba(247, 231, 195, 0.72);
  font-size: 0.74rem;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.app-footer-inner {
  width: min(72rem, calc(100% - 1rem));
  margin: 0 auto;
  min-height: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0;
  box-sizing: border-box;
}
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem; }
.footer-version { font-family: ui-monospace, monospace; font-size: 0.62rem; color: rgba(247, 231, 195, 0.65); }
.footer-center { text-align: center; color: #fff; font-weight: 600; font-size: 0.72rem; white-space: nowrap; }
.footer-brand-link { color: inherit; text-decoration: underline; font-weight: 700; }
.footer-link { color: rgba(247, 231, 195, 0.82); text-decoration: underline; font-size: 0.72rem; font-weight: 600; }
.footer-credit { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-credit a { color: var(--gold-soft); font-weight: 700; text-decoration: none; }
.footer-copy-symbol,
.footer-mks-short { display: none; }

@media (max-width: 720px) {
  .app-footer { font-size: 0.68rem; }
  .footer-dev-by { display: none; }
  .footer-version,
  .footer-link,
  .footer-credit { font-size: 0.62rem; }
}
@media (max-width: 425px) {
  .footer-app-name,
  .footer-copy-word,
  .footer-mks-full { display: none; }
  .footer-copy-symbol,
  .footer-mks-short { display: inline; }
}

/* —— Contenido —— */
.page {
  padding: 0.75rem 0 1.1rem;
}

.hero-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
}
.hero-line h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  font-weight: 700;
}

.brand-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -0.75rem;
  margin-bottom: 0.7rem;
  width: 100vw;
  max-width: 100vw;
  height: 11.25rem;
  overflow: hidden;
  background: #4D1D2C;
}
@media (min-width: 720px) {
  .brand-hero { height: 16rem; }
}
@media (max-width: 425px) {
  .brand-hero { height: 10.25rem; }
}
.brand-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.85s ease, transform 6s ease;
  pointer-events: none;
}
.brand-hero-slide.is-on {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.brand-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(26, 10, 16, 0.18) 0%, rgba(26, 10, 16, 0.45) 100%),
    radial-gradient(circle at 50% 42%, rgba(77, 29, 44, 0.08), rgba(26, 10, 16, 0.28));
  pointer-events: none;
}
.brand-hero-mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0.35rem 0.5rem 0.4rem;
  gap: 0.08rem;
}
.brand-hero-mark img,
.brand-hero-seal {
  height: 48%;
  width: auto;
  aspect-ratio: 1 / 1;
  max-width: 52%;
  object-fit: cover;
  border-radius: 50%;
  background: #C48F95;
  box-shadow: 0 6px 18px rgba(26, 10, 16, 0.35);
}
.brand-hero-name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #F7E7C3;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(26, 10, 16, 0.45);
  line-height: 1.1;
}
.brand-hero-luxe {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #D4AF37;
}
@media (prefers-reduced-motion: reduce) {
  .brand-hero-slide { transition: none; transform: none; }
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0.55rem;
}
@media (max-width: 425px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .catalog-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
}
@media (min-width: 1024px) {
  .catalog-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
  width: 100%;
}
.product-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.product-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #C48F95;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card-body {
  flex: 1 1 auto;
  padding: 0.55rem 0.6rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 0;
}
.product-card-cat {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  font-weight: 700;
}
.product-card-name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}
.product-card-short {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
  text-align: right;
}

.live-dot {
  position: relative;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #E8C14A;
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.45);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.live-chip {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.42rem 0.18rem 0.32rem;
  border-radius: 999px;
  background: rgba(26, 10, 16, 0.78);
  color: #F7E7C3;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  border: 1px solid rgba(212, 175, 55, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transform-origin: left bottom;
}
.live-chip-n {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16rem;
}
.live-num-wrap {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  vertical-align: -0.08em;
  min-width: 0.9em;
  text-align: center;
}
.live-num {
  display: inline-block;
  min-width: 0.9em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.live-delta {
  font-size: 0.58rem;
  font-weight: 800;
  min-width: 1.15em;
  opacity: 0;
  line-height: 1;
}
.live-chip.is-up,
.live-banner.is-up {
  animation: live-pop-up 0.55s ease;
}
.live-chip.is-down,
.live-banner.is-down {
  animation: live-pop-down 0.55s ease;
}
.live-chip.is-up .live-num,
.live-banner.is-up .live-num {
  animation: live-num-up 0.45s ease;
}
.live-chip.is-down .live-num,
.live-banner.is-down .live-num {
  animation: live-num-down 0.45s ease;
}
.live-chip.is-up .live-delta,
.live-banner.is-up .live-delta {
  color: #E8C14A;
  animation: live-delta-pop 0.75s ease;
}
.live-chip.is-down .live-delta,
.live-banner.is-down .live-delta {
  color: #E8C9CE;
  animation: live-delta-pop 0.75s ease;
}
@keyframes live-pop-up {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); border-color: rgba(232, 193, 74, 0.95); }
  100% { transform: scale(1); }
}
@keyframes live-pop-down {
  0% { transform: scale(1); }
  35% { transform: scale(0.94); opacity: 0.88; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes live-num-up {
  0% { transform: translateY(110%); opacity: 0.25; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes live-num-down {
  0% { transform: translateY(-110%); opacity: 0.25; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes live-delta-pop {
  0% { opacity: 0; transform: scale(0.7); }
  28% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1); }
}
.live-banner {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.7rem auto;
  padding: 0.16rem 0.48rem 0.16rem 0.32rem;
  border-radius: 999px;
  background: rgba(77, 29, 44, 0.045);
  border: 1px solid rgba(77, 29, 44, 0.08);
  transform-origin: right center;
}
.live-banner .live-dot {
  width: 0.36rem;
  height: 0.36rem;
}
.live-banner-copy { min-width: 0; }
.live-banner-kicker {
  display: none;
}
.live-banner-n {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12rem 0.22rem;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.live-notice {
  position: fixed;
  left: 50%;
  top: max(4.4rem, calc(env(safe-area-inset-top, 0px) + 4rem));
  z-index: 85;
  transform: translateX(-50%) translateY(-1.8rem);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 10, 16, 0.88);
  color: #F7E7C3;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(212, 175, 55, 0.42);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 1.5rem));
  text-align: center;
}
.live-notice.is-on {
  visibility: visible;
  animation: live-notice-run 2.8s ease forwards;
}
@keyframes live-notice-run {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-1.85rem);
  }
  16% {
    opacity: 1;
    transform: translateX(-50%) translateY(0.14rem);
  }
  24% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  68% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .live-dot::after,
  .live-chip.is-up,
  .live-chip.is-down,
  .live-banner.is-up,
  .live-banner.is-down,
  .live-chip.is-up .live-num,
  .live-chip.is-down .live-num,
  .live-banner.is-up .live-num,
  .live-banner.is-down .live-num,
  .live-delta {
    animation: none !important;
  }
  .live-notice {
    animation: none !important;
    transition: opacity 0.15s ease;
    transform: translateX(-50%) translateY(0);
  }
  .live-notice.is-on {
    opacity: 1;
  }
}

/* Detalle */
.detail {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .detail { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}
.detail-media {
  display: grid;
  gap: 0.55rem;
}
.product-card-shots {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1A0A10;
  background: rgba(247, 231, 195, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
  pointer-events: none;
}
.detail-gallery {
  display: grid;
  gap: 0.4rem;
}
.detail-photo {
  position: relative;
  margin: 0;
  background: #C48F95;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow);
}
.detail-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(247, 231, 195, 0.45);
  border-radius: 50%;
  background: rgba(26, 10, 16, 0.55);
  color: #F7E7C3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-nav svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.detail-nav-prev { left: 0.4rem; }
.detail-nav-next { right: 0.4rem; }
.detail-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.detail-thumb {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 3.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  overflow: hidden;
  background: #C48F95;
  cursor: pointer;
}
.detail-thumb.is-on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.detail-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: #1A0A10;
  box-shadow: var(--shadow);
}
.detail-video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.detail-video-label {
  margin: 0;
  padding: 0.28rem 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: var(--brand-deep);
}
.detail-copy h1 {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}
.detail-copy .detail-price {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.2rem 0 0.7rem auto;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand);
  background: rgba(247, 231, 195, 0.62);
  border: 1px solid rgba(212, 175, 55, 0.48);
}
.detail-copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 0.55rem;
  min-height: 2.55rem;
  padding: 0.5rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-burgundy {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(77, 29, 44, 0.28);
}
.btn-burgundy:hover { background: var(--brand-light); }
.btn-gold {
  background: var(--gold);
  color: #1A0A10;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.28);
}
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}
.btn-block { width: 100%; }

/* Leads */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.lead-list { display: grid; gap: 0.5rem; }
.lead-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
  box-shadow: var(--shadow);
}
.lead-card h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-family: "Playfair Display", Georgia, serif;
}
.lead-card p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 600;
}
.wa-field {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.75rem;
  max-width: 28rem;
}
.wa-field label { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.wa-field input {
  min-height: 2.4rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
  font: inherit;
  background: #fff;
}

.login-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.85rem;
}
.login-card {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem 0.95rem 1.05rem;
}

/* Modal lead */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(26, 10, 16, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.65rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
}
@media (min-width: 520px) {
  .modal-backdrop { align-items: center; }
}
.modal-card {
  width: min(28rem, 100%);
  background: var(--panel);
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 40px rgba(26, 10, 16, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 36rem);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
}
.modal-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}
.modal-x {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.modal-body {
  padding: 0.8rem 0.85rem 0.95rem;
  overflow-y: auto;
  min-height: 0;
}
.modal-body p { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.82rem; }
.field { display: grid; gap: 0.22rem; margin-bottom: 0.55rem; }
.field label { font-size: 0.72rem; font-weight: 700; }
.field input {
  min-height: 2.45rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
  font: inherit;
}
.field-error { color: var(--stop); font-size: 0.72rem; min-height: 1em; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(3.4rem, calc(env(safe-area-inset-bottom, 0px) + 3.2rem));
  transform: translateX(-50%);
  z-index: 90;
  background: var(--brand-deep);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  max-width: min(22rem, calc(100vw - 1.5rem));
}

.empty {
  text-align: center;
  padding: 1.4rem 0.75rem;
  color: var(--muted);
}

@media print {
  .app-header, .app-footer, .nav-burger, .header-drawer, .btn { display: none !important; }
}

.app-scroll::-webkit-scrollbar,
.modal-body::-webkit-scrollbar { width: 6px; }
.app-scroll::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(77, 29, 44, 0.28);
  border-radius: 99px;
}
.app-scroll::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track { background: transparent; }
