/* ==========================================================================
   Brillare Nails — theme stylesheet
   Palette, type scale and components extracted from the approved mockup.
   Edit tokens in :root; everything else reads from them.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Colour ---------------------------------------------------------------
     rose      : primary action colour (buttons, active links)
     band      : the thin blush strips that separate sections
     surface   : the warm grey block behind "Capacitaciones"            */
  --ground:      #fffdfc;
  --ground-alt:  #ffffff;
  --surface:     #f3eeeb;
  --band:        #f8e3e3;
  --rose:        #c28b8b;
  --rose-dark:   #a86f6f;
  --rose-tint:   #f9eef0;
  --on-rose:     #ffffff;   /* text/icons sitting on --rose */
  --ink:         #3a3331;
  --ink-soft:    #6f625f;
  --ink-faint:   #9c8d89;
  --line:        #e9dfdc;
  --whatsapp:    #25d366;
  --shadow:      0 1px 2px rgba(58, 51, 49, .04), 0 8px 24px rgba(58, 51, 49, .06);
  --shadow-lift: 0 2px 4px rgba(58, 51, 49, .06), 0 16px 34px rgba(58, 51, 49, .10);

  /* Type ---------------------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --step--1: .8125rem;
  --step-0:  .9375rem;
  --step-1:  1.0625rem;
  --step-2:  clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3:  clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  --step-4:  clamp(2.5rem, 1.6rem + 3.6vw, 4rem);

  /* Space & shape -------------------------------------------------------- */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 1200px;
  --radius-sm: 4px;
  --radius: 10px;
  --radius-pill: 999px;
  --header-h: 84px;
}

/* Dark theme: same brand, darker ground. Tokens only — never components. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:     #1b1615;
    --ground-alt: #221b1a;
    --surface:    #241d1c;
    --band:       #3b2a2b;
    --rose:       #d9a3a3;
    --rose-dark:  #e8bcbc;
    --rose-tint:  #2e2222;
    --on-rose:    #241d1c;
    --ink:        #f2e9e6;
    --ink-soft:   #c0aeaa;
    --ink-faint:  #96837f;
    --line:       #382d2c;
    --shadow:      0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 34px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --ground:     #1b1615;
  --ground-alt: #221b1a;
  --surface:    #241d1c;
  --band:       #3b2a2b;
  --rose:       #d9a3a3;
  --rose-dark:  #e8bcbc;
  --rose-tint:  #2e2222;
  --on-rose:    #241d1c;
  --ink:        #f2e9e6;
  --ink-soft:   #c0aeaa;
  --ink-faint:  #96837f;
  --line:       #382d2c;
  --shadow:      0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 34px rgba(0, 0, 0, .45);
}

/* --- 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .005em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--rose); color: var(--on-rose); padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-size: var(--step--1);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + .5rem); }

/* --- 3. Layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 6vw, 4.75rem); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }

/* the blush strip that separates blocks in the mockup */
.band { height: 28px; background: var(--band); }

.section-head { text-align: center; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head h2 { font-size: var(--step-2); }
.section-head p {
  margin-top: .6rem; color: var(--ink-soft);
  max-width: 60ch; margin-inline: auto;
}

.eyebrow {
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 400;
}

/* --- 4. Placeholder art -------------------------------------------------
   Swap any .ph element for <img src="assets/img/....jpg" alt="…">.
   The chip in the corner shows the size the slot was designed for.        */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, var(--rose-tint) 0%, var(--band) 48%, var(--surface) 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 72% 28%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 45% 40% at 22% 82%, rgba(194, 139, 139, .22), transparent 70%);
}
.ph[data-ph]::after {
  content: attr(data-ph);
  position: absolute; left: 10px; bottom: 10px;
  font-size: .625rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  padding: .25rem .5rem; border-radius: var(--radius-pill);
}
.ph--square { aspect-ratio: 1 / 1; }
.ph--wide   { aspect-ratio: 16 / 9; }
.ph--hero   { aspect-ratio: 21 / 10; }

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.5rem;
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 400;
  letter-spacing: .02em;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--rose); color: var(--on-rose); }
.btn--primary:hover { background: var(--rose-dark); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-dark); }
.btn--block { width: 100%; justify-content: center; }
.btn:active { transform: translateY(1px); }

/* --- 6. Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--ground-alt);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo lockup — replace the whole .logo block with <img> when the real
   logotype is available (recommended height 56px, transparent PNG/SVG). */
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__mark {
  font-family: var(--font-display);
  font-size: 1.75rem; font-style: italic; font-weight: 500;
  color: var(--rose-dark);
}
.logo__word {
  font-size: .5rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: .25rem; padding-left: .5em;
}

.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a {
  position: relative;
  font-size: var(--step-0); color: var(--ink-soft);
  padding-block: .35rem;
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--rose);
}

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  background: none; border: 0; border-radius: var(--radius-pill);
  color: var(--ink-soft); cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--rose-tint); color: var(--ink); }
.icon-btn__badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--rose); color: var(--on-rose);
  font-size: .625rem; line-height: 1;
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column; gap: .25rem;
    padding: calc(env(safe-area-inset-top, 0px) + 5.5rem) var(--gutter) 2rem;
    background: var(--ground-alt);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 70;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a { font-size: var(--step-1); padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
}

/* --- 7. Hero ------------------------------------------------------------ */
.hero { position: relative; background: var(--surface); }
.hero__media { position: relative; }
.hero__media .ph { border-radius: 0; min-height: 320px; }
.hero__copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  left: 0; right: 0;
}
.hero__title {
  font-size: var(--step-4);
  font-weight: 300;
  max-width: 34ch;
  color: var(--ink);
}
.hero__title span { display: block; }
.hero__actions { margin-top: clamp(1.25rem, 3vw, 2rem); }

@media (max-width: 720px) {
  .hero__media .ph { aspect-ratio: 4 / 5; }
  .hero__copy { justify-content: flex-end; padding-bottom: clamp(2rem, 8vw, 3.5rem); }
  .hero__title { max-width: 18ch; }
}

/* --- 8. Product grid ---------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }

.product {
  display: flex; flex-direction: column;
  background: var(--ground-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.product__media { position: relative; }
.product__tag {
  position: absolute; top: .625rem; left: .625rem; z-index: 1;
  background: var(--rose); color: var(--on-rose);
  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--radius-pill);
}
.product__body {
  display: flex; flex-direction: column; gap: .3rem;
  padding: .9rem 1rem 1.15rem;
  text-align: center;
}
.product__name {
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 400;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product__price {
  color: var(--ink-soft); font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
}
.product__price del { color: var(--ink-faint); margin-right: .4rem; }
.product__cta { margin-top: .65rem; }

/* --- 9. Split feature (Capacitaciones) ---------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.split--reverse .split__media { order: -1; }
.split__title { font-size: var(--step-3); font-weight: 300; }
.split__text { margin-top: .9rem; color: var(--ink-soft); max-width: 46ch; }
.split__actions { margin-top: 1.4rem; }
.split__media .ph { border-radius: var(--radius); aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
}

/* --- 10. Course cards --------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.course {
  display: flex; flex-direction: column;
  background: var(--ground-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.course__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.course__title { font-size: 1.375rem; }
.course__meta {
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: var(--step--1); color: var(--ink-soft);
}
.chip {
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .1rem .6rem; font-size: .6875rem; letter-spacing: .04em;
  color: var(--ink-soft);
}
.chip--rose { background: var(--rose-tint); border-color: transparent; color: var(--rose-dark); }
.course__text { color: var(--ink-soft); font-size: var(--step-0); }
.course__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: auto; padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.course__price { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }

/* --- 11. Page header (inner pages) -------------------------------------- */
.page-head {
  background: var(--rose-tint);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.page-head h1 { font-size: var(--step-3); font-weight: 300; }
.page-head p { margin-top: .6rem; color: var(--ink-soft); max-width: 58ch; margin-inline: auto; }
.crumbs { margin-bottom: .6rem; font-size: var(--step--1); color: var(--ink-faint); }
.crumbs a:hover { color: var(--rose-dark); }

/* --- 12. Shop toolbar --------------------------------------------------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  background: none; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .35rem 1rem; font-family: var(--font-body); font-size: var(--step--1);
  color: var(--ink-soft); cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.filter:hover { border-color: var(--rose); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.result-count { font-size: var(--step--1); color: var(--ink-faint); }

/* --- 13. Forms ---------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--step--1); color: var(--ink-soft); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--ground-alt);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-tint);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.form-note { font-size: var(--step--1); color: var(--ink-faint); }

/* --- 14. Contact details ------------------------------------------------ */
.detail-list { display: grid; gap: 1.15rem; margin: 0; padding: 0; }
.detail { display: flex; gap: .85rem; align-items: flex-start; }
.detail__icon {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--rose-tint); color: var(--rose-dark); border-radius: var(--radius-pill);
}
.detail dt { font-size: var(--step--1); color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; }
.detail dd { margin: .15rem 0 0; color: var(--ink); }

/* --- 15. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--ground-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-col h3 {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a, .footer-col p { color: var(--ink-soft); font-size: var(--step-0); }
.footer-col a:hover { color: var(--rose-dark); }

.social { display: flex; gap: .6rem; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--ink-soft);
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.social a:hover { border-color: var(--rose); color: var(--rose-dark); background: var(--rose-tint); }

.newsletter { display: flex; gap: .5rem; margin-top: .75rem; }
.newsletter input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-body); font-size: var(--step--1); color: var(--ink);
  background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .55rem .7rem;
}
.newsletter input:focus { outline: none; border-color: var(--rose); }

.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-faint);
}

/* --- 16. Floating actions ----------------------------------------------- */
.floats {
  position: fixed; right: clamp(.75rem, 2vw, 1.25rem);
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .625rem;
  z-index: 80;
}
.float {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  color: var(--on-rose); box-shadow: var(--shadow);
  transition: transform .18s ease, filter .18s ease;
}
.float:hover { transform: scale(1.06); filter: brightness(1.05); }
.float--mail { background: var(--rose); }
.float--wa { background: var(--whatsapp); }

.chat-launcher {
  position: fixed;
  right: clamp(.75rem, 2vw, 1.25rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(.75rem, 2vw, 1.25rem));
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--rose); color: var(--on-rose);
  border: 0; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift); cursor: pointer;
  z-index: 80;
  transition: transform .18s ease;
}
.chat-launcher:hover { transform: scale(1.06); }

@media (max-width: 560px) {
  .floats { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem); transform: none; }
  .float { width: 42px; height: 42px; }
}

/* --- 17. Misc ----------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-lg { display: grid; gap: clamp(2rem, 4vw, 3rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   SitioYa integration
   Components the framework needs that the static mockup didn't have:
   account menu, Bootstrap-3 modals (JS only — no Bootstrap CSS is loaded),
   validate.js error states, alerts, toastr and error pages.
   ========================================================================== */

/* --- 18. Links inside running copy ------------------------------------- */
.prose a, .link { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover, .link:hover { color: var(--ink); }

/* --- 19. Account menu (header) ----------------------------------------- */
.account { position: relative; }
.account > summary { list-style: none; }
.account > summary::-webkit-details-marker { display: none; }
.account__panel {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 220px; padding: .9rem 1rem;
  background: var(--ground-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: grid; gap: .6rem;
  z-index: 75;
}
.account__hello { font-size: var(--step--1); color: var(--ink-faint); }
.account__name { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.icon-btn[data-logged-in="true"] { color: var(--rose-dark); }

/* --- 20. Modals (markup + JS from Bootstrap 3, styling from here) ------- */
.modal-open { overflow: hidden; }
.modal {
  display: none;
  position: fixed; inset: 0; z-index: 1050;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal-dialog {
  position: relative;
  width: auto; max-width: 440px;
  margin: clamp(1rem, 8vh, 5rem) auto;
  padding-inline: 1rem;
}
.modal.fade .modal-dialog { transform: translateY(-16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.modal.in .modal-dialog { transform: none; opacity: 1; }
.modal-content {
  position: relative;
  background: var(--ground-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  outline: 0;
}
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1040;
  background: #1b1615;
}
.modal-backdrop.fade { opacity: 0; transition: opacity .2s ease; }
.modal-backdrop.in { opacity: .45; }
.modal-header { padding: 1.5rem 1.5rem 0; position: relative; }
.modal-title { font-size: var(--step-2); font-weight: 400; padding-right: 2rem; }
.modal-header .close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius-pill);
  font-size: 1.5rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.modal-header .close:hover { background: var(--rose-tint); color: var(--ink); }
.modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.modal-body .form { gap: .9rem; }
.modal-body .btn--block { margin-top: .35rem; }
.modal-footer {
  padding: 1rem 1.5rem 1.35rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-soft);
  display: grid; gap: .25rem;
}
.modal-footer a { color: var(--rose-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.modal-footer a:hover { color: var(--ink); }

/* --- 21. validate.js states -------------------------------------------- */
.field input.error, .field select.error, .field textarea.error { border-color: #b4474b; }
.field span.error { font-size: var(--step--1); color: #b4474b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field input.error,
  :root:not([data-theme="light"]) .field span.error { border-color: #e58a8d; color: #e58a8d; }
}
:root[data-theme="dark"] .field input.error,
:root[data-theme="dark"] .field span.error { border-color: #e58a8d; color: #e58a8d; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* --- 22. Alerts --------------------------------------------------------- */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--rose-tint);
  color: var(--ink);
  font-size: var(--step-0);
}
.alert-danger { border-color: color-mix(in srgb, #b4474b 40%, transparent); }

/* --- 23. Narrow page body (account pages, messages) --------------------- */
.narrow { max-width: 440px; margin-inline: auto; }

/* --- 24. Toastr -------------------------------------------------------- */
#toast-container > div {
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  opacity: 1;
}
#toast-container > .toast-success { background-color: var(--rose-dark); }

/* --- 25. Error pages --------------------------------------------------- */
.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 300; font-style: italic;
  line-height: 1; color: var(--rose);
}
.error-page h1 { font-size: var(--step-3); font-weight: 300; margin-top: .5rem; }
.error-page p { margin: .9rem auto 0; max-width: 52ch; color: var(--ink-soft); }
.error-page__actions { margin-top: 1.75rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.error-debug {
  margin-top: 2rem; text-align: left;
  font-size: var(--step--1); color: var(--ink-soft);
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 1rem; overflow-x: auto; white-space: pre-wrap;
}

/* --- 26. Real images in placeholder slots ------------------------------ */
.hero__media > img { width: 100%; aspect-ratio: 21 / 10; min-height: 320px; object-fit: cover; }
.split__media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.product__media > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 720px) { .hero__media > img { aspect-ratio: 4 / 5; } }
