/*
 * Salesio universal template — base.css
 *
 * Theme tokens (set by runtime.js from data/theme.json onto :root),
 * reset, typography, layout primitives, button/badge system. All
 * section-specific styles live in sections.css.
 *
 * Naming convention: every utility/component class is prefixed `sx-`
 * so we never collide with user-injected HTML (rare) or third-party
 * embeds (instagram feed, google maps).
 */

:root {
  /* Defaults — runtime.js overrides these per-site from theme.json. */
  --sx-color-primary:      #e85d5d;
  --sx-color-primary-dark: #c64949;
  --sx-color-accent:       #e85d5d;
  --sx-color-bg:           #ffffff;
  --sx-color-bg-alt:       #f6f3ef;
  --sx-color-surface:      #ffffff;
  --sx-color-ink:          #1c1c1c;
  --sx-color-ink-soft:     #555555;
  --sx-color-border:       #e8e3dd;

  --sx-font-display: 'Playfair Display', Georgia, serif;
  --sx-font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --sx-radius-sm:   4px;
  --sx-radius-md:   6px;
  --sx-radius-lg:   12px;
  --sx-radius-xl:   24px;
  --sx-radius-pill: 999px;

  --sx-section-y:        96px;
  --sx-section-y-mobile: 56px;
  --sx-container:        1240px;

  --sx-shadow-card:     0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --sx-shadow-elevated: 0 4px 12px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.12);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sx-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--sx-color-ink);
  background: var(--sx-color-bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, video, iframe { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sx-font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }

/* ── Layout primitives ────────────────────────────────────────── */
.sx-container {
  width: 100%;
  max-width: var(--sx-container);
  margin: 0 auto;
  padding: 0 24px;
}
.sx-section {
  padding: var(--sx-section-y) 0;
  position: relative;
}
.sx-section--alt {
  background: var(--sx-color-bg-alt);
}
.sx-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.sx-eyebrow {
  display: inline-block;
  font-family: var(--sx-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sx-color-primary);
  margin-bottom: 16px;
}
.sx-h1 { font-size: clamp(36px, 5vw, 64px); }
.sx-h2 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 12px; }
.sx-h3 { font-size: 22px; }
.sx-lead {
  font-size: 17px;
  color: var(--sx-color-ink-soft);
  line-height: 1.6;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--sx-radius-md);
  font-family: var(--sx-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.sx-btn:active { transform: scale(0.97); }
.sx-btn--primary {
  background: var(--sx-color-primary);
  color: #fff;
}
.sx-btn--primary:hover {
  background: var(--sx-color-primary-dark);
}
.sx-btn--secondary {
  background: var(--sx-color-ink);
  color: #fff;
}
.sx-btn--secondary:hover {
  background: #000;
}
.sx-btn--ghost {
  background: transparent;
  color: var(--sx-color-ink);
  border-color: var(--sx-color-border);
}
.sx-btn--ghost:hover {
  background: var(--sx-color-ink);
  color: #fff;
  border-color: var(--sx-color-ink);
}
.sx-btn--text {
  padding: 8px 0;
  background: transparent;
  color: var(--sx-color-primary);
  letter-spacing: 0.1em;
}
.sx-btn--text:hover { color: var(--sx-color-primary-dark); }

/* ── Badge / pill ─────────────────────────────────────────────── */
.sx-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--sx-radius-pill);
  background: var(--sx-color-primary);
  color: #fff;
}

/* ── Card primitive ───────────────────────────────────────────── */
.sx-card {
  background: var(--sx-color-surface);
  border: 1px solid var(--sx-color-border);
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sx-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sx-shadow-elevated);
}

/* ── Star rating display (reused: testimonials, reviews) ──────── */
.sx-stars { display: inline-flex; gap: 2px; color: #f5a623; font-size: 14px; }

/* ── Reveal-on-scroll utility (IntersectionObserver in runtime) ─ */
.sx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sx-reveal.sx-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ───────────────────────────────────────────────────── */
/*
 * Sticky over EVERYTHING. z-index 100 (above any in-page modal except
 * full-screen flows like the cart drawer at z-index 100 and the
 * mobile menu at 110). The blur backdrop softens scroll content
 * underneath so the nav stays readable on busy hero photos.
 */
.sx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--sx-color-border);
}
.sx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
@media (min-width: 720px) {
  .sx-header__inner { gap: 24px; padding: 16px 0; }
}
.sx-header__logo {
  font-family: var(--sx-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--sx-color-ink);
  text-decoration: none;
  white-space: nowrap;
  max-width: 50vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 720px) {
  .sx-header__logo { font-size: 22px; max-width: none; }
}

/* Desktop nav — hidden below 1024px, hamburger takes over there. */
.sx-header__nav { display: none; gap: 24px; }
.sx-header__nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sx-color-ink);
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.sx-header__nav a:hover { color: var(--sx-color-primary); }
@media (min-width: 1024px) {
  .sx-header__nav { display: flex; }
}

.sx-header__actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 720px) {
  .sx-header__actions { gap: 12px; }
}

/* Hide some actions on mobile (lang toggle + CTA move into the
   mobile menu drawer instead, so the header stays uncluttered). The
   cart icon stays visible on every breakpoint — it's a high-intent
   action and the count badge is part of conversion. */
@media (max-width: 1023px) {
  .sx-header__lang { display: none !important; }
  .sx-header__actions > .sx-btn { display: none !important; }
}

/* Hamburger button — only below 1024px. 44×44 tap target (iOS HIG).
   Three bars animate into an X when the menu is open. */
.sx-header__burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.sx-header__burger:hover { background: var(--sx-color-bg-alt); }
.sx-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--sx-color-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
@media (min-width: 1024px) {
  .sx-header__burger { display: none; }
}

/* ── Mobile menu drawer ───────────────────────────────────────── */
/*
 * Full-screen overlay that slides in from the right on mobile/iPad.
 * Sits at z-index 110 — above the sticky header AND above the cart
 * drawer (100) so it can never be visually trapped. Contains:
 *   • Logo + close button at the top
 *   • Full-bleed nav (one link per row, large tap targets)
 *   • Bottom: language toggle + CTA (Reservar / Book)
 *
 * Only mounts on mobile-width screens — hidden entirely on desktop.
 */
.sx-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  pointer-events: none;
}
.sx-mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 1024px) {
  /* Mobile menu has no place on desktop. */
  .sx-mobile-menu { display: none !important; }
}
.sx-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sx-mobile-menu.is-open .sx-mobile-menu__backdrop { opacity: 1; }
.sx-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--sx-color-bg);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  /* iOS safe-area for the bottom (home indicator) */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sx-mobile-menu.is-open .sx-mobile-menu__panel { transform: translateX(0); }
.sx-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sx-color-border);
  flex-shrink: 0;
}
.sx-mobile-menu__head .sx-header__logo {
  font-size: 20px;
  max-width: none;
}
.sx-mobile-menu__close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sx-color-ink);
  transition: background 0.15s;
}
.sx-mobile-menu__close:hover { background: var(--sx-color-bg-alt); }
.sx-mobile-menu__nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}
.sx-mobile-menu__nav a {
  display: block;
  padding: 16px 24px;
  font-family: var(--sx-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sx-color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sx-color-border);
  transition: color 0.15s, background 0.15s;
}
.sx-mobile-menu__nav a:hover {
  color: var(--sx-color-primary);
  background: var(--sx-color-bg-alt);
}
.sx-mobile-menu__nav a:last-child { border-bottom: 0; }
.sx-mobile-menu__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--sx-color-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  flex-shrink: 0;
}
.sx-mobile-menu__foot .sx-header__lang {
  display: inline-flex !important;
  align-self: center;
}
.sx-mobile-menu__foot .sx-btn {
  display: inline-flex !important;
  width: 100%;
  justify-content: center;
}

/* Body lock when mobile menu is open (prevents background scroll). */
body.sx-no-scroll { overflow: hidden; }

/* Language toggle (ES / EN chips in header) */
.sx-header__lang {
  display: inline-flex;
  align-items: center;
  background: var(--sx-color-bg-alt);
  border: 1px solid var(--sx-color-border);
  border-radius: var(--sx-radius-pill);
  padding: 2px;
  gap: 2px;
}
.sx-header__lang-chip {
  border: 0;
  background: transparent;
  font-family: var(--sx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sx-color-ink-soft);
  padding: 6px 12px;
  border-radius: var(--sx-radius-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-width: 38px;
}
.sx-header__lang-chip:hover { color: var(--sx-color-ink); }
.sx-header__lang-chip.is-active {
  background: var(--sx-color-ink);
  color: #fff;
}

/* Cart icon in the header */
.sx-header__cart {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--sx-color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sx-header__cart:hover { background: var(--sx-color-bg-alt); border-color: var(--sx-color-border); }
.sx-header__cart svg { width: 20px; height: 20px; }
.sx-header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sx-color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sx-header__cart.has-items .sx-header__cart-count { display: inline-flex; }

/* Cart drawer */
.sx-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.sx-cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.sx-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sx-cart-drawer.is-open .sx-cart-drawer__backdrop { opacity: 1; }
.sx-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--sx-color-bg);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sx-cart-drawer.is-open .sx-cart-drawer__panel { transform: translateX(0); }
.sx-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sx-color-border);
}
.sx-cart-drawer__head h3 { font-family: var(--sx-font-display); font-size: 20px; }
.sx-cart-drawer__close {
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--sx-color-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sx-cart-drawer__close:hover { background: var(--sx-color-bg-alt); color: var(--sx-color-ink); }
.sx-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.sx-cart-drawer__empty {
  text-align: center;
  padding: 64px 16px;
  color: var(--sx-color-ink-soft);
  font-size: 14px;
}
.sx-cart-line {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sx-color-border);
}
.sx-cart-line:last-child { border-bottom: 0; }
.sx-cart-line__img {
  width: 64px;
  height: 64px;
  border-radius: var(--sx-radius-md);
  background: var(--sx-color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sx-cart-line__img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.sx-cart-line__body { flex: 1; min-width: 0; }
.sx-cart-line__title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.sx-cart-line__cat { font-size: 11px; color: var(--sx-color-ink-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.sx-cart-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sx-cart-line__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sx-color-border);
  border-radius: var(--sx-radius-md);
  overflow: hidden;
}
.sx-cart-line__qty button {
  width: 28px; height: 28px;
  background: transparent; border: 0;
  cursor: pointer;
  color: var(--sx-color-ink-soft);
}
.sx-cart-line__qty button:hover { background: var(--sx-color-bg-alt); color: var(--sx-color-ink); }
.sx-cart-line__qty span {
  min-width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.sx-cart-line__price { font-weight: 700; font-size: 14px; }
.sx-cart-line__remove {
  background: transparent; border: 0;
  color: var(--sx-color-ink-soft);
  cursor: pointer;
  padding: 4px;
}
.sx-cart-line__remove:hover { color: #c00; }
.sx-cart-drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--sx-color-border);
  background: var(--sx-color-bg-alt);
}
.sx-cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.sx-cart-drawer__total small { font-size: 11px; font-weight: 500; color: var(--sx-color-ink-soft); display: block; margin-top: 2px; }
.sx-cart-drawer__checkout {
  width: 100%;
  padding: 16px;
  background: var(--sx-color-primary);
  color: #fff;
  border: 0;
  border-radius: var(--sx-radius-md);
  font-family: var(--sx-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.sx-cart-drawer__checkout:hover { background: var(--sx-color-primary-dark); }
.sx-cart-drawer__checkout:active { transform: scale(0.98); }
.sx-cart-drawer__powered {
  text-align: center;
  margin-top: 12px;
  font-size: 10px;
  color: var(--sx-color-ink-soft);
}

/* Thank-you modal (post-Stripe-checkout redirect) */
.sx-thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.sx-thanks-modal.is-open { opacity: 1; pointer-events: auto; }
.sx-thanks-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.sx-thanks-modal__card {
  position: relative;
  background: var(--sx-color-surface);
  border-radius: var(--sx-radius-xl);
  padding: 48px 40px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.sx-thanks-modal.is-open .sx-thanks-modal__card { transform: translateY(0); }
.sx-thanks-modal__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sx-color-primary) 15%, transparent);
  color: var(--sx-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sx-thanks-modal h2 {
  font-family: var(--sx-font-display);
  font-size: 28px;
  margin-bottom: 12px;
}
.sx-thanks-modal p {
  color: var(--sx-color-ink-soft);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* Product detail modal (opens when a card image/title is clicked) */
.sx-pd-modal {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.sx-pd-modal.is-open { opacity: 1; visibility: visible; }
.sx-pd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.sx-pd-modal__card {
  position: relative;
  background: var(--sx-color-bg);
  border-radius: var(--sx-radius-xl);
  width: min(960px, 100%);
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.sx-pd-modal.is-open .sx-pd-modal__card { transform: translateY(0); }
@media (min-width: 720px) {
  .sx-pd-modal__card { grid-template-columns: 1fr 1fr; }
}
.sx-pd-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--sx-color-border);
  color: var(--sx-color-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sx-pd-modal__close:hover { background: var(--sx-color-ink); color: #fff; }
.sx-pd-modal__gallery {
  background: var(--sx-color-bg-alt);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
}
.sx-pd-modal__main-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.sx-pd-modal__main-img img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.sx-pd-modal__body {
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sx-pd-modal__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sx-color-ink-soft);
  margin-bottom: 8px;
}
.sx-pd-modal__title {
  font-family: var(--sx-font-display);
  font-size: 28px;
  margin-bottom: 8px;
}
.sx-pd-modal__sub {
  color: var(--sx-color-ink-soft);
  font-size: 14px;
  margin-bottom: 20px;
}
.sx-pd-modal__price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.sx-pd-modal__price--old {
  font-size: 16px;
  font-weight: 500;
  color: var(--sx-color-ink-soft);
  text-decoration: line-through;
}
.sx-pd-modal__price--sale { color: var(--sx-color-primary); }
.sx-pd-modal__desc {
  margin: 20px 0;
  color: var(--sx-color-ink);
  font-size: 14px;
  line-height: 1.65;
}
.sx-pd-modal__actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sx-pd-modal__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sx-color-border);
  border-radius: var(--sx-radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.sx-pd-modal__qty button {
  width: 36px; height: 44px;
  background: transparent; border: 0;
  cursor: pointer;
  color: var(--sx-color-ink-soft);
  font-size: 18px;
}
.sx-pd-modal__qty button:hover { background: var(--sx-color-bg-alt); color: var(--sx-color-ink); }
.sx-pd-modal__qty span {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
}
.sx-pd-modal__add { flex: 1; }

/* Variant pickers — option rows with chip buttons */
.sx-pd-modal__optrow { margin: 16px 0; }
.sx-pd-modal__optname {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sx-color-ink-soft);
  margin-bottom: 8px;
}
.sx-pd-modal__optchips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-pd-modal__chip {
  padding: 8px 16px;
  border: 1.5px solid var(--sx-color-border);
  border-radius: var(--sx-radius-md);
  background: var(--sx-color-surface);
  color: var(--sx-color-ink);
  font-family: var(--sx-font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}
.sx-pd-modal__chip:hover {
  border-color: var(--sx-color-ink-soft);
}
.sx-pd-modal__chip:active { transform: scale(0.97); }
.sx-pd-modal__chip.is-selected {
  border-color: var(--sx-color-primary);
  background: var(--sx-color-primary);
  color: #fff;
}

/* Thank-you modal — itemized receipt body */
.sx-thanks-order {
  text-align: left;
  width: 100%;
  margin-bottom: 24px;
}
.sx-thanks-order__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sx-color-ink-soft);
  margin-bottom: 16px;
}
.sx-thanks-order__lines {
  border-top: 1px solid var(--sx-color-border);
  padding: 4px 0;
}
.sx-thanks-line {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--sx-color-border);
}
.sx-thanks-line__qty {
  font-size: 13px;
  font-weight: 700;
  color: var(--sx-color-ink-soft);
}
.sx-thanks-line__title { font-size: 14px; font-weight: 500; min-width: 0; }
.sx-thanks-line__price { font-size: 14px; font-weight: 700; }
.sx-thanks-order__totals { font-size: 13px; margin-top: 16px; }
.sx-thanks-order__totals > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--sx-color-ink-soft); }
.sx-thanks-order__total {
  border-top: 1px solid var(--sx-color-border);
  padding-top: 12px !important;
  margin-top: 8px;
  color: var(--sx-color-ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}
.sx-thanks-email { font-size: 13px; color: var(--sx-color-ink-soft); margin-top: 16px; }
.sx-thanks-email strong { color: var(--sx-color-ink); }
.sx-thanks-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────────── */
.sx-footer {
  background: var(--sx-color-ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  /* No margin-top here — the last content section's own padding
     handles the spacing. A 96px margin on the footer created a
     visible white block between cream-bg sections (contact) and the
     dark footer, which looked like a bug. */
}
.sx-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .sx-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.sx-footer__brand h4 {
  font-family: var(--sx-font-display);
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}
.sx-footer h5 {
  font-family: var(--sx-font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.sx-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sx-footer a { text-decoration: none; color: rgba(255,255,255,0.85); font-size: 14px; transition: color 0.2s; }
.sx-footer a:hover { color: var(--sx-color-primary); }
.sx-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 720px) {
  .sx-footer__bottom { flex-direction: row; justify-content: space-between; }
}
.sx-footer__socials { display: flex; gap: 14px; }
.sx-footer__socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease;
}
.sx-footer__socials a:hover { background: var(--sx-color-primary); }
.sx-footer__socials svg { width: 16px; height: 16px; }

/* ── Template preview mode ────────────────────────────────────────
 * Applied as `body.sx-preview-mode` by runtime.js when the runtime
 * config has `is_template_preview: true`. This kicks in for the
 * marketplace previews served from templates.salesio.app/<key>/ —
 * where the page is a *demo*, not a real customer shop.
 *
 * We belt-and-suspenders both: runtime.js skips handler attachment
 * AND css hides the controls so even a renderer overriding the JS
 * still ends up with no clickable cart UI. Customer sites
 * (cliente.salesio.app) don't get this class, so they keep full
 * interactivity.
 */
body.sx-preview-mode [data-sx-cart-open],
body.sx-preview-mode .sx-cart-drawer {
  display: none !important;
}
body.sx-preview-mode [data-sx-add-to-cart] {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

