/* Pegasus Store — design tokens + UI patterns (UIUX-PATTERNS.md) */

:root {
  /* Tinta / superficies oscuras */
  --color-gold: #f2b33d;
  --color-gold-light: #e9a72a; /* hover */
  --color-gold-dark: #9a6a0b; /* texto sobre tinte dorado */
  --color-gold-tint: #f7f3e6;
  --color-gold-tint-soft: #fcf8ed;
  --color-gold-tint-border: #f0e4c4;
  --color-ebony: #191d2e; /* tinta primaria */
  --color-ebony-hover: #0b0e1a;
  --color-ebony-700: #262b42;
  --color-ebony-600: #333a57;
  --color-ink: #101321; /* fondo profundo: topbar / hero / footer */
  --color-cream: #f6f7f9; /* fondo de página */
  --color-cream-dark: #e6e8ef; /* hairline */
  --color-hairline-soft: #f0f1f6;
  --color-hairline-softer: #f3f4f8;
  --color-surface: #ffffff;
  --color-input-bg: #f8f9fc;
  --color-text: #171c2e;
  --color-text-secondary: #5a6072;
  --color-text-tertiary: #8a90a3;
  --color-success: #1ebe5d;
  --color-success-text: #127a46;
  --color-success-text-dark: #0e6238;
  --color-success-tint: #e8f6ee;
  --color-danger: #c93b3b;
  --color-urgency-tint: #fdf3dd;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius-card: 0.875rem;
  --radius-card-lg: 1.25rem;
  --radius-btn: 0.875rem;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgb(23 28 46 / 6%);
  --shadow-card-hover: 0 12px 28px rgb(23 28 46 / 10%);
  --shadow-dropdown: 0 18px 40px rgb(23 28 46 / 14%);
  --shadow-drawer: -24px 0 60px rgb(23 28 46 / 18%);
}

/* Reset — flush to viewport top (no gap above announcement) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden; /* prevent horizontal scroll from full-bleed hero */
}

html {
  /* Evita franja por altura 100% + margen colapsado en algunos navegadores */
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--site-header-height, 0px) !important;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-cream-dark) transparent;
}
*::-webkit-scrollbar { height: 6px; width: 8px; }
*::-webkit-scrollbar-thumb { background: var(--color-cream-dark); border-radius: 99px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(30, 190, 93, .45); }
  70% { box-shadow: 0 0 0 14px rgba(30, 190, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 190, 93, 0); }
}

/* Primer bloque de la página pegado al borde superior del viewport */
body > header.site-header {
  margin: 0 !important;
  padding: 0 !important;
}

/* Eyebrow / announcement bar — persistent trust signals */
.announcement-bar {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  background: var(--color-ink);
  color: rgb(255 255 255 / 92%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgb(23 28 46 / 4%);
  isolation: isolate;
}

.site-header__bar {
  position: relative;
  z-index: 2;
  background: #fff;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.site-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.7rem;
  background: var(--color-ebony);
  overflow: hidden;
  flex: none;
}

.site-logo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-logo__word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.site-logo__word-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.site-logo__word-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--color-text-tertiary);
}

/* Header icon/link cluster */
.site-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
}
.site-icon-btn:hover { color: var(--color-ebony); }

.site-account-link,
.site-orders-link {
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-account-link:hover,
.site-orders-link:hover { color: var(--color-ebony); }

/* Only the authenticated state ("name" + "Mi cuenta") stacks in two lines —
   the plain "Entrar" link must stay centered like its siblings, not top-aligned. */
.site-account-link--user { flex-direction: column; justify-content: center; align-items: flex-end; line-height: 1.25; }
.site-account-link__name { color: var(--color-gold-dark); font-size: 0.72rem; font-weight: 700; }

.site-wa-pill.site-wa-pill {
  background: var(--color-success-tint);
  color: var(--color-success-text);
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  gap: 0.4rem;
}
.site-wa-pill.site-wa-pill:hover { background: #dcf0e5; color: var(--color-success-text-dark); }

.site-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  background: var(--color-ebony);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.site-cart-btn:hover { background: var(--color-ebony-hover); color: #fff; }

.site-cart-badge {
  background: var(--color-gold);
  color: var(--color-ebony);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

/* Category nav row + mega menu */
.cat-nav { position: relative; background: #fff; border-top: 1px solid var(--color-cream-dark); border-bottom: 1px solid var(--color-cream-dark); }

.cat-nav__row { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; }

.cat-nav__all-btn {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-ebony);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.cat-nav__all-btn:hover { background: var(--color-ebony-hover); }

.cat-nav__chevron { width: 0.65rem; height: 0.65rem; transition: transform 0.2s ease; }
.cat-nav__all-btn[aria-expanded="true"] .cat-nav__chevron { transform: rotate(180deg); }

.cat-nav__divider { width: 1px; height: 1.35rem; background: var(--color-cream-dark); flex: none; }

.cat-nav__scroll-wrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }

.cat-nav__scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding-bottom: 10px;
  margin-bottom: -8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-cream-dark) transparent;
}
.cat-nav__scroll::-webkit-scrollbar { height: 6px; }
.cat-nav__scroll::-webkit-scrollbar-thumb { background: var(--color-cream-dark); border-radius: 99px; }

.cat-nav__arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-cream-dark);
  background: #fff;
  color: var(--color-text-secondary);
  cursor: pointer;
  z-index: 2;
}
.cat-nav__arrow svg { width: 14px; height: 14px; }
.cat-nav__arrow:hover { border-color: #9aa3c4; color: var(--color-text); }
.cat-nav__arrow--prev { margin-right: 6px; }
.cat-nav__arrow--next { margin-left: 6px; }
.cat-nav__arrow[hidden] { display: none; }

@media (max-width: 640px) {
  .cat-nav__arrow { display: none !important; }
  .cat-nav__row { flex-wrap: wrap; row-gap: 0.5rem; }
  .cat-nav__divider { display: none; }
  .cat-nav__scroll-wrap { flex-basis: 100%; }
}

.cat-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cat-pill:hover { border-color: #9AA3C4; color: var(--color-text); }
.cat-pill--active { background: var(--color-ebony); color: #fff; border-color: var(--color-ebony); }
.cat-pill--active:hover { color: #fff; }

.mega-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgb(23 28 46 / 25%);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 70;
  background: #fff;
  border-bottom: 1px solid var(--color-cream-dark);
  box-shadow: 0 30px 60px rgb(23 28 46 / 18%);
  max-height: 70vh;
  overflow-y: auto;
  animation: fadeUp 0.2s ease both;
}

.mega-menu__grid {
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

.mega-menu__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 0.6rem;
  padding: 0.35rem;
  border-radius: 0.65rem;
  transition: background 0.12s ease;
}
.mega-menu__head:hover { background: var(--color-cream); }

.mega-menu__tile {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.mega-menu__head-text { display: flex; flex-direction: column; }
.mega-menu__title { font-size: 0.84rem; font-weight: 800; color: var(--color-text); }
.mega-menu__count { font-size: 0.72rem; color: var(--color-text-tertiary); }

.mega-menu__subs { display: flex; flex-direction: column; gap: 2px; padding-left: 0.35rem; }
.mega-menu__subs a {
  background: none;
  border: none;
  padding: 0.25rem 0;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
}
.mega-menu__subs a:hover { color: var(--color-gold-dark); }

.city-modal {
  background: rgb(0 0 0 / 68%);
  backdrop-filter: blur(8px);
}

.city-modal__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 90vh;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(201 168 76 / 18%);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 24px 70px rgb(0 0 0 / 35%);
}

@media (min-width: 640px) {
  .city-modal__panel {
    max-width: 30rem;
    margin: 0 1rem;
    border-radius: 1.5rem;
  }
}

.city-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.1rem;
  background: linear-gradient(135deg, var(--color-ebony) 0%, var(--color-ebony-700) 100%);
  color: #fff;
}

.city-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--color-gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.city-modal__title {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.15;
}

.city-modal__subtitle {
  margin: 0.35rem 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.8rem;
  line-height: 1.35;
}

.city-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  color: var(--color-gold-light);
  border: 1px solid rgb(201 168 76 / 28%);
  border-radius: 9999px;
  background: rgb(255 255 255 / 8%);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.city-modal__close:hover {
  color: #fff;
  background: rgb(201 168 76 / 18%);
  transform: translateY(-1px);
}

.city-modal__search-wrap {
  padding: 1rem 1.25rem 0.75rem;
  background: linear-gradient(180deg, #fff 0%, var(--color-cream) 100%);
  border-bottom: 1px solid var(--color-cream-dark);
}

.city-modal__search {
  position: relative;
  display: block;
}

.city-modal__search-icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 1rem;
  height: 1rem;
  color: var(--color-gold-dark);
  transform: translateY(-50%);
}

.city-modal__search-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem 0.8rem 2.65rem;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgb(201 168 76 / 34%);
  border-radius: 1rem;
  outline: 0;
  background: #fff;
  box-shadow: 0 8px 22px rgb(28 28 28 / 6%);
}

.city-modal__search-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgb(201 168 76 / 18%), 0 8px 22px rgb(28 28 28 / 8%);
}

.city-modal__list {
  flex: 1;
  min-height: 13rem;
  padding: 0.75rem;
  margin: 0;
  overflow-y: auto;
  background: #fff;
  list-style: none;
}

.city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  color: #111827;
  border: 1px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.city-option + .city-option {
  margin-top: 0.25rem;
}

.city-option:hover,
.city-option--active {
  border-color: rgb(201 168 76 / 34%);
  background: var(--color-gold-50, #fdf8ee);
  transform: translateY(-1px);
}

.city-option--empty {
  justify-content: center;
  min-height: 5rem;
  color: #6b7280;
  text-align: center;
  cursor: default;
}

.city-option--empty:hover {
  transform: none;
}

.city-option__main {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.city-option__name {
  overflow: hidden;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-option__state {
  overflow: hidden;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-zone {
  flex: 0 0 auto;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 9999px;
}

.city-zone--a {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.city-zone--b {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.city-zone--c {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.city-combobox {
  position: relative;
}

.city-combobox__control {
  position: relative;
}

.city-combobox__control .form-input {
  width: 100%;
  padding-right: 2.75rem;
}

.city-combobox__toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.city-combobox__toggle:hover {
  color: var(--color-gold);
  background: rgb(201 168 76 / 10%);
}

.city-combobox__hint {
  margin: 0.35rem 0 0;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 600;
}

.city-combobox__list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  max-height: 16rem;
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px rgb(28 28 28 / 14%);
  list-style: none;
}

.city-combobox__list.hidden {
  display: none;
}

.city-modal__footer {
  padding: 0.95rem 1.25rem 1.15rem;
  background: var(--color-cream);
  border-top: 1px solid var(--color-cream-dark);
}

.city-modal__notice {
  margin: 0 0 0.65rem;
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.city-modal__skip {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  color: var(--color-ebony);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  border: 1px solid rgb(28 28 28 / 10%);
  border-radius: 0.9rem;
  background: #fff;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.city-modal__skip:hover {
  color: var(--color-gold-dark);
  border-color: rgb(201 168 76 / 46%);
  box-shadow: 0 8px 20px rgb(28 28 28 / 7%);
}

.site-cart-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(201 168 76 / 45%);
  background: rgb(201 168 76 / 10%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

a:hover .site-cart-icon {
  transform: translateY(-1px);
  background: rgb(201 168 76 / 22%);
  border-color: rgb(201 168 76 / 75%);
}

/* Section header — visual hierarchy */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}

.page-header__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.gold-bar {
  width: 2.5rem;
  height: 3px;
  margin-bottom: 0.75rem;
  background: var(--color-gold);
  border-radius: 2px;
}

/* Gallery main image — fade transition on swap */
#main-img {
  transition: opacity 0.15s ease, transform 0.5s ease;
}

#main-img.opacity-0 {
  opacity: 0;
}

/* Product description — constrains and styles raw HTML from external source */
.product-description {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.product-description img {
  max-width: 100%;
  max-height: 320px;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  margin: 1rem auto;
  display: block;
  border: 1px solid var(--color-cream-dark);
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin: 1.25rem 0 0.4rem;
  letter-spacing: 0.01em;
}

.product-description p {
  margin-bottom: 0.875rem;
}

.product-description ul,
.product-description ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-description li {
  margin-bottom: 0.375rem;
}

.product-description a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Collapsible description */
.description-collapse {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.description-collapse::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.description-collapse.is-open {
  max-height: none;
}

.description-collapse.is-open::after {
  display: none;
}

/* Variant modal — pop-in animation */
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.animate-modal {
  animation: modalIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

/* Card — content container pattern */
.card {
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card--padded {
  padding: 1.5rem;
}

.card--sticky {
  position: sticky;
  top: calc(var(--site-header-height, 5.5rem) + 16px);
}

/* Product card — hover affordance */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  border-color: #cfd3df;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.product-card__media-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--color-hairline-soft);
  overflow: hidden;
}

.product-card__media-link { display: block; width: 100%; height: 100%; }

.product-card__carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.product-card__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.product-card__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
}

.product-card__slide--tinted { opacity: 0.7; }

.product-card__slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #F3F5F9 0 10px, #ECEFF5 10px 20px);
}
.product-card__slide--empty span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: var(--color-text-tertiary);
  background: rgb(255 255 255 / 90%);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--color-cream-dark);
}

.product-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: rgb(23 28 46 / 55%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.product-card__nav--prev {
  left: 0.5rem;
}

.product-card__nav--next {
  right: 0.5rem;
}

.product-card__dots {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 5;
}

.product-card__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  border: 0;
  background: rgb(255 255 255 / 55%);
  padding: 0;
}

.product-card__dot.is-active {
  background: #fff;
}

@media (min-width: 1024px) {
  .product-card__media-wrap:hover .product-card__nav {
    display: inline-flex;
  }
}

.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  z-index: 4;
}
.product-card__badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.product-card__badge--free { background: var(--color-success-tint); color: var(--color-success-text); }
.product-card__badge--urgency { background: var(--color-urgency-tint); color: var(--color-gold-dark); }
.product-card__badge--out { background: #fde8e8; color: var(--color-danger); }

.product-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__cat {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  font-weight: 700;
}
.product-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 38px;
  text-decoration: none;
}
.product-card__name:hover { color: var(--color-gold-dark); }
.product-card__sold-out { font-size: 11px; font-weight: 700; color: var(--color-danger); }

/* Empty state pattern */
.empty-state {
  padding: 4rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-card);
}

.empty-state__icon {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1;
}

.empty-state__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
}

.empty-state__text {
  margin: 0 0 1.5rem;
  color: #6b7280;
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb__sep {
  color: var(--color-gold);
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: #fff;
  border: 1px solid #d8d0c4;
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgb(201 168 76 / 15%);
}

.form-input-wrap {
  position: relative;
}

.form-input-wrap .form-input {
  padding-right: 2.75rem;
}

.form-input-wrap__toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s;
}

.form-input-wrap__toggle:hover {
  color: var(--color-gold-dark);
}

.form-input-wrap__toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.form-input-wrap__toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* CTA buttons — call to action pattern */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-ebony);
  background: var(--color-gold);
  border: none;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--color-gold-light);
}

.btn-gold:active {
  transform: scale(0.97);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--color-ebony);
  border: none;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  text-decoration: none;
}

.btn-dark:hover {
  background: var(--color-ebony-hover);
}

.btn-dark:active {
  transform: scale(0.97);
}

/* Hero strip — focal point on catalog */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding: 2rem 2rem;
  background: linear-gradient(to right, var(--color-ebony), var(--color-ebony-700));
  border-radius: var(--radius-card);
}

/* Trust badges in hero / footer */
.trust-pill {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  background: rgb(201 168 76 / 12%);
  border: 1px solid rgb(201 168 76 / 25%);
  border-radius: 9999px;
}

/* Flash messages — feedback pattern */
.flash-messages {
  max-width: 80rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.flash-message {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
}

.flash-message--error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.flash-message--warning {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.flash-message--success {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.pagination__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}

.pagination__link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.pagination__current {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ebony);
  background: var(--color-gold);
  border-radius: 0.75rem;
}

/* Category navigation — catalog home */
.category-chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.category-chip:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.category-chip--active {
  color: var(--color-ebony);
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.category-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

.category-link:hover {
  color: var(--color-gold);
  background: var(--color-gold-50, #fdf8ee);
}

.category-link--active {
  font-weight: 700;
  color: var(--color-ebony);
  background: rgb(201 168 76 / 15%);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-gold);
  color: var(--color-ebony);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
}

/* Mobile menu */
.mobile-menu {
  background: #fff;
  border-top: 1px solid var(--color-cream-dark);
}

.mobile-menu__link {
  display: block;
  padding: 0.85rem 0.1rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid var(--color-cream-dark);
  letter-spacing: 0.01em;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.mobile-menu__link:hover {
  color: var(--color-gold-dark);
  padding-left: 0.35rem;
}

.mobile-menu__link-name { display: block; color: var(--color-gold-dark); font-size: 0.72rem; font-weight: 700; }

.mobile-menu__wa.mobile-menu__wa {
  display: inline-flex;
  margin: 0.5rem 0;
  background: var(--color-success-tint);
  color: var(--color-success-text);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--color-cream-dark);
  box-shadow: 0 -4px 20px rgb(23 28 46 / 10%);
}

.cookie-banner.hidden { display: none; }

.cookie-banner__text { flex: 1; font-size: 0.85rem; color: var(--color-text-secondary); margin: 0; }
.cookie-banner__text a { color: var(--color-gold-dark); text-decoration: underline; }
.cookie-banner__btn { flex: none; font-size: 0.78rem; padding: 0.55rem 1.1rem; border-radius: 0.6rem; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  transition: transform 0.15s ease, bottom 0.2s ease;
}

.whatsapp-float .wa-float-btn.wa-float-btn {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulseRing 2.6s ease-out infinite;
  justify-content: center;
}
.whatsapp-float .wa-float-btn.wa-float-btn:hover { transform: scale(1.06); }
.whatsapp-float .wa-float-btn .whatsapp-label { display: none; }

/* Push WhatsApp button up when cookie banner or PDP buy-bar is visible */
.cookie-banner:not(.hidden) ~ .whatsapp-float { bottom: calc(22px + 72px); }
body.has-buy-bar .whatsapp-float { bottom: 92px; }
body.has-buy-bar .cookie-banner:not(.hidden) ~ .whatsapp-float { bottom: calc(92px + 72px); }

/* ── Site footer ── */
.site-footer { background: var(--color-ink); color: #b9becd; margin-top: auto; }
.site-footer__grid {
  padding: 2.75rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.site-footer__logo { width: 2rem; height: 2rem; border-radius: 0.5rem; object-fit: cover; }
.site-footer__brand-word { color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; }
.site-footer__brand-accent { color: var(--color-gold); }
.site-footer__lead { color: #b9becd; font-size: 0.85rem; line-height: 1.6; margin: 0 0 0.75rem; }
.site-footer__legal { color: #7c8299; font-size: 0.72rem; line-height: 1.7; }
.site-footer__link-accent { color: var(--color-gold); font-size: 0.78rem; text-decoration: none; }
.site-footer__link-accent:hover { text-decoration: underline; }
.site-footer__heading { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.85rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.85rem; color: #b9becd; }
.site-footer__list a { color: #b9becd; text-decoration: none; transition: color 0.15s ease; }
.site-footer__list a:hover { color: var(--color-gold); }
.site-footer__wa.site-footer__wa { background: var(--color-success); color: #fff; }
.site-footer__wa.site-footer__wa:hover { background: #17a950; }
.site-footer__email { margin-top: 0.75rem; font-size: 0.72rem; color: #7c8299; }
.site-footer__email a { color: #7c8299; text-decoration: none; }
.site-footer__email a:hover { color: var(--color-gold); }
.site-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 12%);
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: #7c8299;
}
.site-footer__bottom-accent { color: var(--color-gold); font-weight: 600; }

/* ── Toast ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--color-text);
  color: #fff;
  border-radius: 999px;
  padding: 11px 10px 11px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgb(23 28 46 / 35%);
  animation: fadeUp 0.25s ease both;
  max-width: calc(100vw - 24px);
}
.toast[hidden] { display: none; }
.toast__msg { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__btn {
  flex: none;
  background: var(--color-gold);
  color: var(--color-ebony);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.toast__btn:hover { background: var(--color-gold-light); }

/* ── Cart drawer ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgb(23 28 46 / 45%);
}
.drawer-overlay[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  z-index: 200;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-cream-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.cart-drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.cart-drawer__count { font-size: 0.8rem; color: var(--color-text-tertiary); font-weight: 600; }
.cart-drawer__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f8;
  color: var(--color-text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer__close:hover { background: var(--color-cream-dark); }

/* flex:0 1 auto (not 1) so a short cart doesn't stretch and leave a big gap
   before the footer — the footer now follows the content directly, and any
   leftover space in a short cart collapses to the bottom of the drawer instead. */
.cart-drawer__body { flex: 0 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.cart-drawer__loading { padding: 40px 20px; text-align: center; color: var(--color-text-tertiary); font-size: 0.85rem; }

.cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; gap: 8px; }
.cart-drawer__empty-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.cart-drawer__empty-sub { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 6px; }

.cart-drawer__progress { padding: 16px 20px 0; }
.cart-drawer__progress-msg { font-size: 0.8rem; font-weight: 800; color: var(--color-text-secondary); }
.cart-drawer__progress-bar { height: 8px; border-radius: 999px; background: #edeff5; margin-top: 8px; overflow: hidden; }
.cart-drawer__progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#1FA560,#1EBE5D); transition: width .3s ease; }

.cart-drawer__body .supplier-notice { margin: 14px 20px 0; }
.cart-drawer__shipping { padding: 0 20px; }
.cart-drawer__shipping .cart-shipping-summary { margin: 0; }

.cart-drawer__lines { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-drawer__line { display: flex; gap: 12px; }
.cart-drawer__line-img {
  width: 64px; height: 64px; border: 1px solid var(--color-hairline-soft); border-radius: 10px;
  background: #fff; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cart-drawer__line-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-drawer__line-body { flex: 1; min-width: 0; }
.cart-drawer__line-name { font-size: 0.8rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 2.2em; }
.cart-drawer__line-meta { font-size: 0.72rem; color: var(--color-text-tertiary); margin-top: 2px; }
.cart-drawer__line-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-drawer__qty-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--color-cream-dark); background: #fff;
  font-size: 0.85rem; font-weight: 700; color: var(--color-text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cart-drawer__qty-btn:hover { border-color: #9aa3c4; }
.cart-drawer__qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-drawer__qty-val { font-size: 0.83rem; font-weight: 700; min-width: 16px; text-align: center; }
.cart-drawer__line-total { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; }
.cart-drawer__line-remove { background: none; border: none; padding: 0; margin-top: 6px; font-size: 0.72rem; font-weight: 700; color: var(--color-text-tertiary); cursor: pointer; text-decoration: underline; }
.cart-drawer__line-remove:hover { color: var(--color-danger); }
.cart-drawer__line-free { display: inline-block; margin-top: 4px; font-size: 0.68rem; font-weight: 700; color: var(--color-success-text); background: var(--color-success-tint); border-radius: 999px; padding: 2px 8px; }

.cart-drawer__footer { border-top: 1px solid var(--color-cream-dark); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: none; }
.cart-drawer__row { display: flex; justify-content: space-between; font-size: 0.83rem; color: var(--color-text-secondary); }
.cart-drawer__row strong { color: var(--color-text); font-weight: 700; }
.cart-drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-drawer__total-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.cart-drawer__total-value { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.cart-drawer__cta { background: var(--color-gold); border: none; border-radius: 13px; padding: 15px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--color-ebony); cursor: pointer; margin-top: 4px; transition: background 0.15s ease; text-align: center; text-decoration: none; display: block; }
.cart-drawer__cta:hover { background: var(--color-gold-light); color: var(--color-ebony); }
.cart-drawer__cta[disabled] { opacity: 0.55; pointer-events: none; }
.cart-drawer__continue { background: none; border: none; padding: 6px; font-size: 0.82rem; font-weight: 700; color: var(--color-text-secondary); cursor: pointer; text-align: center; }
.cart-drawer__continue:hover { color: var(--color-ebony); }

/* Order timeline */
.order-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-timeline__step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 1rem;
  position: relative;
}

.order-timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.25rem;
  bottom: 0;
  width: 2px;
  background: var(--color-cream-dark);
}

.order-timeline__step--done .order-timeline__dot {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.order-timeline__step--current .order-timeline__label {
  font-weight: 700;
  color: var(--color-ebony);
}

.order-timeline__dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--color-cream-dark);
  background: #fff;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.order-timeline__label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* PDP sticky buy bar — shown via JS after scrolling past the fold, all breakpoints */
.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: #fff;
  border-top: 1px solid var(--color-cream-dark);
  box-shadow: 0 -12px 30px rgb(23 28 46 / 10%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(16px,4vw,32px);
  animation: fadeUp .25s ease both;
}
.pdp-sticky-bar[hidden] { display: none; }
.pdp-sticky-bar__thumb { width: 44px; height: 44px; border: 1px solid var(--color-hairline-soft); border-radius: 9px; background-color: #fff; background-size: contain; background-position: center; background-repeat: no-repeat; flex: none; }
.pdp-sticky-bar__info { flex: 1; min-width: 0; }
.pdp-sticky-bar__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky-bar__sub { font-size: 11.5px; color: var(--color-success-text); font-weight: 700; }
.pdp-sticky-bar__price { font-family: var(--font-display); font-weight: 800; font-size: 16px; flex: none; }
.pdp-sticky-bar__cta { flex: none; background: var(--color-gold); border: none; border-radius: 11px; padding: 12px 20px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--color-ebony); cursor: pointer; transition: background .15s ease; }
.pdp-sticky-bar__cta:hover { background: var(--color-gold-light); }

.variant-btn[aria-pressed="true"] {
  border-color: var(--color-gold) !important;
  background: rgb(201 168 76 / 12%);
  color: var(--color-ebony);
}

.variant-btn[aria-pressed="true"] {
  border-color: var(--color-gold) !important;
  background: rgb(201 168 76 / 12%);
  color: var(--color-ebony);
}

/* Account dashboard */
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .dashboard-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-kpi__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-kpi__value {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}

.dashboard-kpi__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dashboard-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  min-height: 10rem;
  padding-top: 0.5rem;
}

.dashboard-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dashboard-chart__bar-wrap {
  width: 100%;
  height: 8rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dashboard-chart__bar {
  width: 100%;
  max-width: 3rem;
  min-height: 4px;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  border-radius: 0.5rem 0.5rem 0.15rem 0.15rem;
  transition: height 0.3s ease;
}

.dashboard-chart__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

/* Order status badges */
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-badge--pending { background: #fef3c7; color: #92400e; }
.status-badge--confirmed { background: #dbeafe; color: #1e40af; }
.status-badge--shipped { background: #ffedd5; color: #9a3412; }
.status-badge--delivered { background: #dcfce7; color: #166534; }
.status-badge--cancelled { background: #fee2e2; color: #991b1b; }
.status-badge--neutral { background: #f3f4f6; color: #4b5563; }

/* Orders table */
.orders-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.orders-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.orders-filter__pill:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.orders-filter__pill--active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ebony);
}

.orders-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-cream-dark);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.orders-table th,
.orders-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-cream-dark);
}

.orders-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: var(--color-cream);
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tbody tr:hover {
  background: #fdf8ee;
}

.orders-table tfoot td {
  border-bottom: none;
  padding-top: 0.75rem;
}

.order-detail__total-row td {
  border-top: 2px solid var(--color-cream-dark);
  background: var(--color-cream);
}

/* Order detail — ancho completo */
.order-detail {
  width: 100%;
}

.order-detail__header {
  margin-bottom: 1.5rem;
}

.order-detail__back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}

.order-detail__back:hover {
  color: var(--color-gold-dark);
}

.order-detail__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.order-detail__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #111827;
}

.order-detail__meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

.order-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .order-detail__grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .order-detail__grid {
    grid-template-columns: minmax(0, 1fr) 24rem;
  }
}

.order-detail__status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .order-detail__status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-detail__status-row .order-detail__panel:only-child {
    grid-column: 1 / -1;
  }
}

.order-detail__panel-title {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.order-detail__panel .status-badge {
  font-size: 0.75rem;
}

.order-detail__timeline-wrap {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .order-detail__timeline-wrap .order-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.5rem 1rem;
  }

  .order-detail__timeline-wrap .order-timeline__step {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .order-detail__timeline-wrap .order-timeline__step:not(:last-child)::before {
    display: none;
  }
}

.order-detail__tracking {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-color: #bfdbfe;
}

.order-detail__kv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
}

.order-detail__kv-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.order-detail__guide-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-detail__guide-num {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111827;
  user-select: all;
}

.order-detail__copy-btn {
  padding: 0.35rem;
  color: #2563eb;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.order-detail__copy-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.order-detail__aside-inner {
  position: sticky;
  top: calc(var(--site-header-height, 5.5rem) + 16px);
}

.checkout-summary-card--sticky {
  position: sticky;
  top: calc(var(--site-header-height, 5.5rem) + 16px);
}

.order-detail__summary {
  background: linear-gradient(145deg, #fdf8ee 0%, #fff 55%);
  border-color: rgb(201 168 76 / 35%);
}

.checkout-layout {
  align-items: start;
}

.checkout-back { background: none; border: none; padding: 0; font-weight: 700; font-size: 13px; color: var(--color-text-secondary); cursor: pointer; margin-bottom: 12px; }
.checkout-back:hover { color: var(--color-ebony); }
.checkout-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,2.8vw,28px); margin: 0 0 6px; color: var(--color-text); }
.checkout-cod-line { font-size: 13.5px; font-weight: 700; color: var(--color-success-text); margin-bottom: 24px; }

.checkout-card,
.checkout-summary-card {
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
}

.checkout-card { margin-bottom: 16px; padding: 20px; }
.checkout-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.checkout-card__num { width: 26px; height: 26px; border-radius: 50%; background: var(--color-ebony); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.checkout-card__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--color-text); }
.checkout-card__body { display: flex; flex-direction: column; gap: 14px; }

.checkout-field { display: flex; flex-direction: column; gap: 6px; }
.checkout-label { font-size: 12.5px; font-weight: 700; color: var(--color-text-secondary); }
.checkout-error { font-size: 12px; color: var(--color-danger); font-weight: 700; margin: 0; }
.checkout-hint { font-size: 11.5px; color: var(--color-text-tertiary); }
.checkout-hint--wa { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.checkout-card .form-input {
  min-height: 2.9rem;
  border: 1.5px solid var(--color-cream-dark);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.85rem;
  font-size: 14px;
  color: var(--color-text);
}

.checkout-card .form-input:focus {
  border-color: var(--color-ebony);
  box-shadow: 0 0 0 3px rgb(23 28 46 / 10%);
  outline: none;
}

.checkout-card textarea.form-input {
  min-height: 5rem;
  resize: vertical;
}

.checkout-payment-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.checkout-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--color-cream-dark);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease;
}
.checkout-payment-option:hover { border-color: #9aa3c4; }
.checkout-payment-option input { margin-top: 0.2rem; accent-color: var(--color-ebony); }

.checkout-cod-box {
  background: var(--color-success-tint);
  border: 1.5px solid var(--color-success);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checkout-cod-box__check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--color-success); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.checkout-cod-box__title { font-weight: 800; font-size: 14.5px; color: var(--color-success-text-dark); margin-bottom: 3px; }
.checkout-cod-box__text { font-size: 13px; color: #2f6e4c; line-height: 1.55; }
.checkout-wa-inline.checkout-wa-inline { display: inline-flex; background: none; border: none; padding: 0; color: var(--color-success-text); font-weight: 700; }

.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.checkout-terms input { margin-top: 0.2rem; accent-color: var(--color-ebony); }
.checkout-terms a { color: var(--color-gold-dark); font-weight: 700; text-decoration: none; }
.checkout-terms a:hover { text-decoration: underline; }

.checkout-submit {
  width: 100%;
  background: var(--color-gold);
  border: none;
  border-radius: 14px;
  padding: 17px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-ebony);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  transition: background .15s ease, transform .15s ease;
}
.checkout-submit:hover { background: var(--color-gold-light); }
.checkout-submit:disabled { opacity: .6; cursor: not-allowed; }
.checkout-microcopy { text-align: center; font-size: 11.5px; color: var(--color-text-tertiary); line-height: 1.6; margin: 8px 0 0; }
.checkout-microcopy a { color: var(--color-gold-dark); font-weight: 700; text-decoration: none; }
.checkout-microcopy a:hover { text-decoration: underline; }

.checkout-summary-card { padding: 20px; }
.checkout-summary__header { margin-bottom: 14px; }
.checkout-summary__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--color-text); }
.checkout-summary__count { color: var(--color-text-tertiary); font-weight: 600; font-size: 13px; }

.checkout-summary__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 19rem;
  margin: 0 0 16px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.checkout-summary__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

.checkout-summary__item-name { color: var(--color-text); font-weight: 600; }
.checkout-summary__item-qty { color: var(--color-text-tertiary); font-weight: 600; }
.checkout-summary__item-price { color: var(--color-text); font-weight: 700; white-space: nowrap; }

.checkout-summary__totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-cream-dark);
}

.checkout-summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 13.5px; color: var(--color-text-secondary); }
.checkout-summary__row--free { color: var(--color-success-text); font-weight: 700; }
.checkout-summary__row--muted { color: var(--color-text-tertiary); }

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 6px;
  padding-top: 6px;
  font-family: var(--font-display);
}
.checkout-summary__total span:first-child { font-weight: 700; font-size: 15px; color: var(--color-text); }
.checkout-summary__total span:last-child { font-weight: 800; font-size: 21px; color: var(--color-text); }

.checkout-summary__notice,
.checkout-summary__free-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  border-radius: 10px;
}

.checkout-summary__notice { color: var(--color-gold-dark); background: var(--color-urgency-tint); }
.checkout-summary__free-note { color: var(--color-success-text); background: var(--color-success-tint); }
.checkout-summary__protected { font-size: 12px; color: var(--color-text-tertiary); margin: 12px 0 0; line-height: 1.55; }

.order-detail__dl {
  margin: 0;
}

.order-detail__dl-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
  font-size: 0.875rem;
}

.order-detail__dl-row:last-child {
  border-bottom: none;
}

.order-detail__dl-row dt {
  margin: 0;
  font-weight: 600;
  color: #9ca3af;
}

.order-detail__dl-row dd {
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.order-detail__cancel {
  border-width: 1px;
  border-style: solid;
}

/* Cart */
.cart-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #4b5563;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-card);
}

.cart-flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
}

.cart-flash.hidden {
  display: none;
}

.cart-flash--warning {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.cart-flash--error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.cart-flash--info {
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.cart-remove-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cart-remove-modal.hidden {
  display: none;
}

.cart-remove-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(17 24 39 / 55%);
}

.cart-remove-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.35rem 1.4rem 1.2rem;
  background: #fff;
  border: 1px solid rgb(201 168 76 / 24%);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgb(28 28 28 / 18%);
}

.cart-remove-modal__title {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
}

.cart-remove-modal__text {
  margin: 0.65rem 0 1.1rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cart-remove-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.cart-remove-modal__btn {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 0.75rem;
  cursor: pointer;
}

.cart-remove-modal__btn--ghost {
  color: #374151;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
}

.cart-remove-modal__btn--danger {
  color: #fff;
  background: #dc2626;
  border: 1px solid #dc2626;
}

.cart-remove-modal__btn--danger:hover {
  background: #b91c1c;
}

.supplier-notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-cream-dark);
  font-size: 0.875rem;
}

.supplier-notice--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.supplier-notice--warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.supplier-notice--info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.supplier-notice--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.cart-summary-highlight {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.cart-summary-highlight strong {
  color: var(--color-gold-dark);
}

.cart-shipping-summary {
  margin: 0 0 1rem;
  padding: 0.9rem;
  border: 1px solid var(--color-gold-tint-border, #f0e4c4);
  border-radius: var(--radius-card);
  background: var(--color-gold-tint-soft, #fcf8ed);
}

.cart-shipping-summary__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cart-shipping-summary__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1f2937;
}

.cart-shipping-summary__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #92400e;
}

.cart-shipping-summary__groups {
  display: grid;
  gap: 0.5rem;
}

.cart-shipping-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #f3e8c6;
  border-radius: 0.85rem;
  background: #fff;
}

.cart-shipping-group__supplier {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #374151;
}

.cart-shipping-group__meta {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: #6b7280;
}

.cart-shipping-group__cost {
  text-align: right;
  white-space: nowrap;
}

.cart-shipping-group__cost span {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  color: #047857;
}

.cart-shipping-group__cost small {
  display: block;
  font-size: 0.65rem;
  color: #9ca3af;
}

/* Search bar — header + home hero */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-bar {
  width: 100%;
}

.search-bar__field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-bar--header .search-bar__field {
  background: var(--color-input-bg);
  border: 1.5px solid var(--color-cream-dark);
  border-radius: 9999px;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-bar--header .search-bar__field:focus-within {
  border-color: var(--color-ebony);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(23 28 46 / 10%);
}

.search-bar--hero .search-bar__field {
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: 9999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: var(--shadow-card);
}

.search-bar--hero .search-bar__field:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgb(201 168 76 / 15%);
}

.search-bar__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #9ca3af;
}

.search-bar--header .search-bar__icon {
  color: #9ca3af;
}

.search-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1rem; /* >=16px prevents iOS Safari auto-zoom on focus */
  padding: 0.5rem 0.75rem;
  outline: none;
}

.search-bar--header .search-bar__input {
  color: var(--color-text);
}

.search-bar--header .search-bar__input::placeholder {
  color: var(--color-text-tertiary);
}

.search-bar--hero .search-bar__input {
  color: #1f2937;
}

.search-bar__submit {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar--header .search-bar__submit {
  color: var(--color-ebony);
  background: var(--color-gold);
}

.search-bar--header .search-bar__submit:hover {
  background: var(--color-gold-light);
}

.search-bar--hero .search-bar__submit {
  color: var(--color-ebony);
  background: var(--color-gold);
  padding: 0.6rem 1.25rem;
}

.search-bar--hero .search-bar__submit:hover {
  background: var(--color-gold-light);
}

/* ── Live search dropdown ── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgb(0 0 0 / 14%);
  overflow: hidden;
}
.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: #111827;
  transition: background 0.15s;
  border-bottom: 1px solid var(--color-cream-dark);
}
.search-dropdown__item:last-child { border-bottom: none; }
.search-dropdown__item:hover { background: var(--color-cream); }
.search-dropdown__img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 0.5rem;
  background: var(--color-cream);
  flex-shrink: 0;
}
.search-dropdown__img-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--color-cream-dark);
  flex-shrink: 0;
}
.search-dropdown__name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-dropdown__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #A66200;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-dropdown__footer {
  display: block;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  background: var(--color-cream);
  transition: background 0.15s;
}
.search-dropdown__footer:hover { background: var(--color-cream-dark); }

.search-dropdown__empty { padding: 14px; }
.search-dropdown__label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--color-text-tertiary); margin-bottom: 8px; text-transform: uppercase; }
.search-dropdown__chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.search-dropdown__chips:last-child { margin-bottom: 0; }
.search-dropdown__chip {
  border: 1px solid var(--color-cream-dark);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-family: inherit;
}
.search-dropdown__chip:hover { border-color: #9aa3c4; }
.search-dropdown__chip--pop {
  border-color: var(--color-gold-tint-border, #F0E4C4);
  background: var(--color-gold-tint-soft, #FCF8ED);
  color: var(--color-gold-dark);
}
.search-dropdown__chip--pop:hover { border-color: var(--color-gold); }

/* Product card — compra directa */
.product-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  background: var(--color-gold-50, #fdf8ee);
  color: var(--color-gold-dark);
}

.product-card__stars {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  line-height: 1;
}

.product-card__star {
  font-size: 0.75rem;
  line-height: 1;
}

.product-card__star--full {
  color: var(--color-gold);
}

.product-card__star--half {
  color: var(--color-gold);
  opacity: 0.55;
}

.product-card__star--empty {
  color: #d1d5db;
}

.product-card__rating-value {
  margin-left: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
}

.product-card__rating-count {
  margin-left: 0.15rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: #9ca3af;
}

/* ── PDP rating (larger stars in info panel) ── */
.pdp-rating .product-card__stars {
  gap: 0.15rem;
}
.pdp-rating .product-card__star {
  font-size: 1.25rem;
}
.pdp-rating .product-card__rating-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin-left: 0.35rem;
}
.pdp-rating .product-card__rating-count {
  font-size: 0.85rem;
  color: #6b7280;
  margin-left: 0.2rem;
}

/* ── PDP price ── */
.pdp-price {
  font-size: 2.25rem;
  font-weight: 900;
  color: #A66200;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pdp-purchase-box {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px rgb(0 0 0 / 6%);
}

.pdp-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdp-quantity-control {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d8d0c4;
  border-radius: 0.9rem;
  background: #fff;
}

.pdp-quantity-btn {
  min-width: 2.4rem;
  min-height: 2.35rem;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 800;
  transition: background 0.15s, color 0.15s;
}

.pdp-quantity-btn:hover {
  color: var(--color-gold-dark);
  background: var(--color-cream);
}

.pdp-quantity-input {
  width: 3rem;
  min-height: 2.35rem;
  border: 0;
  outline: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
}

.pdp-trust-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-cream-dark);
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.35;
}

.pdp-trust-list p {
  margin: 0;
}

.pdp-trust-list strong {
  color: #1f2937;
}

/* ── Buy now CTA ── */
.btn-buy-now {
  background: linear-gradient(135deg, #A66200  0%, #A66200  100%);
  color: #fff;
  box-shadow: 0 4px 14px rgb(232 48 0 / 30%);
}
.btn-buy-now:hover {
  background: linear-gradient(135deg, #ff7a3d 0%, #ff4d1f 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgb(232 48 0 / 45%);
}
.btn-buy-now:active {
  transform: scale(0.97);
}

.product-card__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-text);
}
.product-card__price-cop { font-size: 9.5px; font-weight: 700; color: var(--color-text-tertiary); }
.product-card__price-note { margin: 0; font-size: 11px; color: var(--color-success-text); font-weight: 600; }

.product-card__cta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 4px;
}

.product-tag--shipping {
  background: #ecfdf5;
  color: #047857;
}

.product-tag--cod {
  background: #eff6ff;
  color: #1d4ed8;
}

.product-card__quick-add {
  flex-shrink: 0;
  background: var(--color-ebony);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.product-card__quick-add:hover {
  background: var(--color-ebony-hover);
}

/* Reseñas — ficha producto */
.review-score-picker {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
}

.review-score-picker__label {
  cursor: pointer;
}

.review-score-picker__label input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.review-score-picker__star {
  font-size: 1.75rem;
  line-height: 1;
  color: #d1d5db;
  transition: color 0.15s, transform 0.1s;
}

.review-score-picker__star--on,
.review-score-picker__label:hover .review-score-picker__star,
.review-score-picker__label:hover ~ .review-score-picker__label .review-score-picker__star {
  color: var(--color-gold);
}

.review-score-picker__label:hover .review-score-picker__star {
  transform: scale(1.08);
}


/* ═══════════════════════════════════════════
   Hero Banner Carousel
   ══════════════════════════════════════════ */

.hero-carousel {
  position: relative;
  aspect-ratio: 21 / 8;
  min-height: 180px;
  max-height: 340px;
  background: var(--color-ebony);
  overflow: hidden;
  /* Break out of max-w-7xl container to full viewport width */
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  /* Compensate main's py-8 top padding so banner touches header */
  margin-top: -2rem;
}

@media (max-width: 640px) {
  .hero-carousel {
    aspect-ratio: 16 / 9;
    max-height: 260px;
    min-height: 180px;
  }
}

/* ── Slides ── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}

.hero-slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Media (img / video) ── */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-media--fallback {
  background: linear-gradient(135deg, var(--color-ebony) 0%, var(--color-ebony-600) 100%);
}

/* ── YouTube iframe — covers container with object-fit illusion ── */
.hero-yt-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* wider than container — simulates object-fit: cover for 16:9 video */
  width: 100vw;
  height: 56.25vw;   /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 inverse */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

/* ── Gradient overlay ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, calc(var(--hero-opacity, 50) * 0.012)) 0%,
    rgba(0, 0, 0, calc(var(--hero-opacity, 50) * 0.006)) 50%,
    transparent 100%
  );
  z-index: 1;
}

/* ── Text content ── */
.hero-content {
  position: absolute;
  bottom: calc(clamp(1rem, 3vw, 2rem) + 44px); /* +44px clears trust bar */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  padding: 0 1.5rem;
  z-index: 2;
  color: #fff;
  text-align: center;
}

@media (max-width: 640px) {
  .hero-content {
    bottom: calc(1rem + 44px);
    padding: 0 1rem;
  }
}

.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin: 0 0 0.4rem;
  line-height: 1;
}

.hero-title {
  font-size: clamp(1.25rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-price {
  margin: 0 0 1rem;
  color: var(--color-gold-light);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.38);
}

.hero-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* ── Product counter ── */
.hero-counter {
  position: absolute;
  bottom: calc(44px + 0.6rem); /* just above trust bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.44);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ── Prev / Next arrows ── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.hero-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.hero-arrow--prev { left: 0.85rem; }
.hero-arrow--next { right: 0.85rem; }

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.08);
}

/* Push arrows up to clear trust bar */
.hero-arrow {
  top: calc(50% - 22px); /* 44px trust bar / 2 */
}

@media (max-width: 480px) {
  .hero-arrow {
    width: 2rem;
    height: 2rem;
  }
  .hero-arrow svg { width: 0.9rem; height: 0.9rem; }
  .hero-arrow--prev { left: 0.5rem; }
  .hero-arrow--next { right: 0.5rem; }
}


/* ═══════════════════════════════════════════
   Trust bar — overlaid inside hero carousel
   ══════════════════════════════════════════ */

.hero-trust-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 1.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.hero-trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .hero-trust-bar {
    gap: 0 1rem;
    padding: 0.45rem 0.75rem;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .hero-trust-bar-item {
    font-size: 0.65rem;
  }
}

/* ========================================
   Mobile improvements (added)
   ======================================== */

/* iOS Safari: prevent auto-zoom on input focus (need >= 16px font-size) */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  select,
  textarea {
    font-size: 1rem !important;
  }

  /* Product grid: tighter gap on small phones */
  #product-grid {
    gap: 0.625rem !important;
  }

  /* Search dropdown: extend to edges on mobile */
  .search-bar .search-dropdown {
    left: -0.75rem;
    right: -0.75rem;
    border-radius: 0 0 1rem 1rem;
  }
}

/* Touch targets: product card carousel dots & nav buttons — must be >= 44px tappable */
.product-card__dot {
  /* Increase visual + hit area without changing layout */
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  position: relative;
}

.product-card__dot::before {
  content: '';
  position: absolute;
  inset: -10px;
}

/* Category nav: subtle fade hint for horizontal scroll on mobile */
@media (max-width: 767px) {
  .cat-nav__row { position: relative; }
  .cat-nav__row::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2rem;
    background: linear-gradient(to right, transparent, #fff 85%);
    pointer-events: none;
    z-index: 2;
  }
}

/* ══════════════ Home page ══════════════ */

.home-section { max-width: 1240px; margin: 0 auto; padding: 36px 16px 8px; }
.home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.home-section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 25px); margin: 0 0 4px; color: var(--color-text); }
.home-section__sub { font-size: 13.5px; color: var(--color-text-secondary); margin: 0; }
.home-section__all { background: none; border: none; color: var(--color-ebony); font-size: 13.5px; font-weight: 700; text-decoration: none; padding: 4px 0; }
.home-section__all:hover { color: var(--color-gold-dark); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

/* Hero */
.home-hero { background: radial-gradient(700px 340px at 85% -10%, rgba(242,179,61,.20), transparent 60%), var(--color-ink); color: #fff; }
.home-hero__inner { max-width: 1240px; margin: 0 auto; padding: clamp(36px,6vw,72px) 16px; display: flex; gap: clamp(24px,4vw,56px); align-items: center; flex-wrap: wrap; }
.home-hero__copy { flex: 1 1 380px; min-width: 300px; }
.home-hero__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--color-gold); margin-bottom: 14px; text-transform: uppercase; }
.home-hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,4.2vw,46px); line-height: 1.12; margin: 0 0 16px; }
.home-hero__title span { color: var(--color-gold); }
.home-hero__text { font-size: clamp(15px,1.4vw,17px); line-height: 1.6; color: rgb(255 255 255 / 78%); margin: 0 0 24px; max-width: 520px; }
.home-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.home-hero__cta { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.home-hero__ghost { display: inline-flex; align-items: center; border: 1.5px solid rgb(255 255 255 / 35%); color: #fff; border-radius: 12px; padding: 13px 22px; font-weight: 700; font-size: 14.5px; text-decoration: none; transition: border-color .15s ease; }
.home-hero__ghost:hover { border-color: #fff; color: #fff; }
.home-hero__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.home-hero__chip { border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: rgb(255 255 255 / 85%); }
.home-hero__chip--gold { border-color: rgba(242,179,61,.5); color: var(--color-gold); }

/* Widths/positions are % of the collage box (not fixed px) so the 3 cards
   scale together and never overlap, from small phones up to desktop. */
.home-hero__collage { position: relative; width: min(410px,92vw); height: min(330px,80vw); max-height: 330px; flex: none; margin: 0 auto; }
.home-hero__card {
  position: absolute;
  width: 42%;
  text-decoration: none;
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 6%;
  box-sizing: border-box;
  box-shadow: 0 24px 50px rgb(0 0 0 / 35%);
}
.home-hero__card-media { height: 0; padding-bottom: 72%; position: relative; border-radius: 10px; overflow: hidden; background: #fff; }
.home-hero__card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.home-hero__card-media--empty { position: absolute; inset: 0; background: repeating-linear-gradient(45deg,#F3F5F9 0 10px,#ECEFF5 10px 20px); }
.home-hero__card-body { padding: 8px 2px 0; }
.home-hero__card-name { font-size: 11px; font-weight: 600; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-hero__card-price { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--color-text); }

.home-hero__card--1 { left: 0; top: 6%; transform: rotate(-4deg); animation: floaty 6s ease-in-out infinite; }
.home-hero__card--2 { right: 0; top: 0; width: 37%; transform: rotate(3deg); animation: floaty 6s ease-in-out infinite; animation-delay: .9s; }
.home-hero__card--3 { left: 29%; bottom: 0; width: 39%; z-index: 2; transform: rotate(-1deg); animation: floaty 6s ease-in-out infinite; animation-delay: .45s; }
.home-hero__collage-badge { position: absolute; right: 2px; bottom: 13%; z-index: 3; background: var(--color-success); color: #fff; font-size: 12px; font-weight: 800; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 24px rgb(0 0 0 / 30%); white-space: nowrap; }

@media (max-width: 767px) {
  .home-hero__collage { margin-top: 32px; }
}

@media (max-width: 360px) {
  .home-hero__card-name { font-size: 10px; }
  .home-hero__card-price { font-size: 12.5px; }
  .home-hero__collage-badge { font-size: 11px; padding: 6px 11px; }
}

/* Trust tiles */
.home-trust { max-width: 1240px; margin: 0 auto; padding: 28px 16px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.home-trust__tile { background: #fff; border: 1px solid var(--color-cream-dark); border-radius: var(--radius-card-lg); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.home-trust__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.home-trust__icon--pay { background: var(--color-success-tint); color: var(--color-success-text); }
.home-trust__icon--ship { background: var(--color-gold-tint, #F7F3E6); color: var(--color-gold-dark); font-size: 11px; }
.home-trust__icon--safe { background: #eeeff3; color: var(--color-ebony); }
.home-trust__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.home-trust__text { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.cat-tile { border-radius: 14px; padding: 16px 14px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; display: block; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgb(23 28 46 / 8%); }
.cat-tile__initial { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin-bottom: 10px; }
.cat-tile__label { font-weight: 700; font-size: 13.5px; color: var(--color-text); line-height: 1.25; }
.cat-tile__count { font-size: 11.5px; color: var(--color-text-secondary); margin-top: 2px; }

/* How it works */
.how-it-works { background: #fff; border: 1px solid var(--color-cream-dark); border-radius: 20px; padding: clamp(24px,3.5vw,40px); max-width: 1240px; margin: 8px auto 0; }
.how-it-works__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.4vw,25px); margin: 0 0 6px; text-align: center; }
.how-it-works__sub { font-size: 13.5px; color: var(--color-text-secondary); text-align: center; margin: 0 0 28px; }
.how-it-works__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.how-it-works__step { text-align: center; padding: 0 8px; }
.how-it-works__num { width: 46px; height: 46px; border-radius: 50%; background: var(--color-gold); color: var(--color-ebony); font-family: var(--font-display); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.how-it-works__step-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; margin-bottom: 5px; }
.how-it-works__step-text { font-size: 13px; color: var(--color-text-secondary); line-height: 1.55; margin: 0; }
.how-it-works__cta { text-align: center; margin-top: 26px; }
.how-it-works__wa-link { font-size: 13.5px; font-weight: 700; color: var(--color-success-text); text-decoration: none; }
.how-it-works__wa-link:hover { color: var(--color-success-text-dark); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 14px; }
.testimonial-card { background: #fff; border: 1px solid var(--color-cream-dark); border-radius: var(--radius-card-lg); padding: 20px; margin: 0; }
.testimonial-card__stars { color: var(--color-gold); font-size: 13px; letter-spacing: 2px; margin: 0 0 10px; }
.testimonial-card__text { font-size: 14px; line-height: 1.6; color: #3A415A; margin: 0 0 14px; }
.testimonial-card__footer { font-size: 13px; font-weight: 700; color: var(--color-text); }
.testimonial-card__footer span { color: var(--color-text-tertiary); font-weight: 600; }

/* CTA band */
.cta-band { max-width: 1240px; margin: 0 auto; background: var(--color-ink); border-radius: 20px; padding: clamp(24px,4vw,40px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px,2.2vw,24px); color: #fff; margin-bottom: 4px; }
.cta-band__sub { font-size: 14px; color: rgb(255 255 255 / 72%); }
.cta-band__btn { background: var(--color-success); color: #fff; border-radius: 12px; padding: 14px 24px; font-family: var(--font-display); font-weight: 700; font-size: 15px; flex: none; text-decoration: none; transition: background .15s ease; }
.cta-band__btn:hover { background: #17a950; color: #fff; }

/* ══════════════ Catalog listing ══════════════ */

.catalog-heading { max-width: 1240px; margin: 0 auto; padding: 28px 16px 0; }
.catalog-heading__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.catalog-heading__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,2.8vw,28px); margin: 0 0 4px; color: var(--color-text); }
.catalog-heading__sub { font-size: 13.5px; color: var(--color-text-secondary); margin: 0; }
.catalog-heading__sort { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.catalog-heading__select { border: 1.5px solid var(--color-cream-dark); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--color-text); background: #fff; cursor: pointer; outline: none; }

.catalog-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.catalog-filters__label { font-size: 12px; font-weight: 800; color: var(--color-text-tertiary); letter-spacing: .04em; }
.filter-chip {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-cream-dark);
  font-family: inherit;
  transition: border-color .15s ease;
}
.filter-chip:hover { border-color: #9aa3c4; }
.filter-chip--active { background: var(--color-ebony); color: #fff; border-color: var(--color-ebony); }
.catalog-filters__clear { background: none; border: none; padding: 7px 6px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--color-text-tertiary); cursor: pointer; text-decoration: underline; }
.catalog-filters__clear:hover { color: var(--color-danger); }

.empty-state-2 { background: #fff; border: 1px solid var(--color-cream-dark); border-radius: 20px; padding: 48px 24px; text-align: center; max-width: 560px; margin: 24px auto; }
.empty-state-2__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.empty-state-2__text { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 20px; }
.empty-state-2__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty-state-2__wa.empty-state-2__wa { background: none; border: 1.5px solid var(--color-cream-dark); color: var(--color-success-text); }
.empty-state-2__wa.empty-state-2__wa:hover { border-color: var(--color-success); }

.catalog-layout { max-width: 1240px; margin: 0 auto; padding: 0 16px 56px; }
.catalog-load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.catalog-load-more.hidden { display: none; }
.catalog-load-more__status { font-size: 13px; color: var(--color-text-secondary); margin: 0; }
.catalog-load-more__btn {
  background: #fff;
  border: 1.5px solid var(--color-ebony);
  color: var(--color-ebony);
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease;
}
.catalog-load-more__btn:hover { background: var(--color-cream-dark); }
.catalog-load-more__btn:disabled { opacity: .6; cursor: default; }
.catalog-load-more__spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgb(23 28 46 / 25%); border-top-color: var(--color-ebony);
  animation: spin .7s linear infinite;
}
.catalog-load-more__spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════ Product detail (PDP) ══════════════ */

.pdp { max-width: 1240px; margin: 0 auto; padding: 20px 16px 56px; }
.pdp__breadcrumb { margin-bottom: 16px; }
.pdp__breadcrumb-current { color: var(--color-text-secondary); font-weight: 600; }

.pdp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(20px,3vw,40px); align-items: start; }

.pdp__gallery { position: relative; background: #fff; border: 1px solid var(--color-cream-dark); border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; }
.pdp__gallery-wrap { position: relative; width: 100%; height: 100%; }
.pdp__gallery-wrap--single, .pdp__gallery-wrap--empty { display: flex; align-items: center; justify-content: center; }
.pdp__gallery-wrap--empty { background: repeating-linear-gradient(45deg,#F3F5F9 0 12px,#ECEFF5 12px 24px); }
.pdp__gallery-empty-icon { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--color-text-tertiary); background: rgb(255 255 255 / 90%); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--color-cream-dark); }
.pdp__gallery-track { display: flex; height: 100%; transition: transform .4s ease; }
.pdp__gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px; box-sizing: border-box; }
.pdp__gallery-slide--video { padding: 0; background: #000; }
.pdp__gallery-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp__gallery-video, .pdp__gallery-iframe { width: 100%; height: 100%; object-fit: contain; border: 0; }
.pdp__gallery-refnote { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--color-text-tertiary); font-size: 12px; background: rgb(255 255 255 / 85%); padding: 4px 12px; border-radius: 999px; }
.pdp__badges { position: absolute; top: 14px; left: 14px; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pdp__featured-badge { background: var(--color-gold); color: var(--color-ebony); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.pdp__free-badge { background: var(--color-success-tint); color: var(--color-success-text); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pdp__gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / 80%); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); border: none; cursor: pointer; transition: transform .15s ease, color .15s ease; }
.pdp__gallery-nav:hover { color: var(--color-gold-dark); transform: translateY(-50%) scale(1.08); }
.pdp__gallery-nav--prev { left: 12px; }
.pdp__gallery-nav--next { right: 12px; }
.pdp__gallery-counter { position: absolute; bottom: 16px; right: 16px; z-index: 10; background: rgb(23 28 46 / 55%); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pdp__gallery-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 6px; }
.pdp__gallery-dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgb(255 255 255 / 55%); padding: 0; transition: width .2s ease, background .2s ease; }
.pdp__gallery-dot.is-active { background: #fff; width: 20px; }
.pdp__gallery-dot--video { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-size: 8px; }

.pdp__info { display: flex; flex-direction: column; }
.pdp__cat-badge { display: inline-flex; align-self: flex-start; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--color-text-tertiary); font-weight: 800; margin-bottom: 8px; text-decoration: none; }
.pdp__cat-badge:hover { color: var(--color-gold-dark); }
.pdp__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px,2.6vw,27px); line-height: 1.25; margin: 0 0 10px; color: var(--color-text); }
.pdp__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pdp__rating-count { font-size: 12.5px; color: var(--color-text-tertiary); }
.pdp__price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.pdp__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,3vw,32px); color: var(--color-text); }
.pdp__price-cop { font-size: 12px; color: var(--color-text-tertiary); font-weight: 700; }
.pdp__total-line { font-size: 13px; color: var(--color-success-text); font-weight: 700; margin-bottom: 18px; }

.pdp__adult-notice { margin-bottom: 18px; border-radius: 12px; border: 1px solid #fde68a; background: #fffbeb; padding: 14px; font-size: 13px; color: #92400e; }
.pdp__adult-notice-title { font-weight: 800; margin: 0 0 4px; }
.pdp__adult-notice p { margin: 0; }

.pdp__variant-block { margin-bottom: 16px; }
.pdp__field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--color-text); }
.pdp__select {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--color-cream-dark); border-radius: 10px;
  padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--color-text); background: #fff; cursor: pointer; outline: none;
  transition: border-color .15s ease;
}
.pdp__select--filled, .pdp__select:focus { border-color: var(--color-ebony); }
.pdp__variant-error { font-size: 12.5px; color: var(--color-danger); font-weight: 700; margin-top: 8px; }

.pdp__qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pdp__stepper { display: flex; align-items: center; border: 1.5px solid var(--color-cream-dark); border-radius: 12px; overflow: hidden; }
.pdp__stepper-btn { width: 40px; height: 42px; background: var(--color-input-bg); border: none; font-size: 18px; font-weight: 700; color: var(--color-text-secondary); cursor: pointer; }
.pdp__stepper-btn:hover { background: var(--color-cream-dark); }
.pdp__stepper-input { width: 48px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; border: none; border-left: 1.5px solid var(--color-cream-dark); border-right: 1.5px solid var(--color-cream-dark); }
.pdp__urgency { background: var(--color-urgency-tint); color: var(--color-gold-dark); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.pdp__available { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--color-success-text); }
.pdp__available-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }

.pdp__ctas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; max-width: 460px; }
.pdp__cta-buy { padding: 15px 20px; border-radius: 14px; font-size: 15.5px; }
.pdp__cta-cart {
  background: #fff; border: 1.5px solid var(--color-ebony); border-radius: 14px; padding: 14px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--color-ebony); cursor: pointer; transition: background .15s ease;
}
.pdp__cta-cart:hover { background: var(--color-cream-dark); }
.pdp__wa-link.pdp__wa-link { background: none; border: none; padding: 4px; justify-content: center; color: var(--color-success-text); font-weight: 700; font-size: 13.5px; }
.pdp__wa-link.pdp__wa-link:hover { color: var(--color-success-text-dark); }
.pdp__oos { margin-bottom: 20px; background: #fde8e8; border: 1px solid #f5b5b5; border-radius: 12px; padding: 14px; text-align: center; color: var(--color-danger); font-weight: 700; font-size: 13.5px; }

.pdp__delivery-box { background: var(--color-input-bg); border: 1px solid var(--color-cream-dark); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.pdp__delivery-row { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.pdp__delivery-label { font-weight: 700; color: var(--color-text); }
.pdp__city-select { border: 1.5px solid var(--color-cream-dark); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--color-text); background: #fff; cursor: pointer; outline: none; }
.pdp__delivery-eta { font-size: 13.5px; color: var(--color-text); font-weight: 600; }
.pdp__delivery-ship { font-size: 13px; color: var(--color-text-secondary); }
.pdp__delivery-ship strong { color: var(--color-success-text); }
.pdp__trust-list { border-top: 1px solid var(--color-cream-dark); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.pdp__trust-list p { margin: 0; font-size: 12.5px; color: var(--color-text-secondary); }
.pdp__trust-list strong { color: var(--color-text); }
.pdp__trust-list a { color: var(--color-gold-dark); font-weight: 700; text-decoration: none; }
.pdp__trust-list a:hover { text-decoration: underline; }

.pdp__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(20px,3vw,40px); margin-top: 36px; align-items: start; }
.pdp__desc-panel { background: #fff; border: 1px solid var(--color-cream-dark); border-radius: 20px; padding: 24px; }
.pdp__panel-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 12px; color: var(--color-text); }
.pdp__desc-toggle { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--color-gold-dark); background: none; border: none; cursor: pointer; }
.pdp__desc-ask { font-size: 14px; line-height: 1.7; color: var(--color-text-secondary); }
.pdp__desc-ask-link.pdp__desc-ask-link { display: inline-flex; background: none; border: none; padding: 0; color: var(--color-success-text); font-weight: 700; }
.pdp__how-panel { background: var(--color-gold-tint, #F7F3E6); border-radius: 20px; padding: 24px; }
.pdp__how-panel .pdp__panel-title { color: var(--color-text); }
.pdp__how-steps { display: flex; flex-direction: column; gap: 12px; }
.pdp__how-step { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--color-text-secondary); }
.pdp__how-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--color-ebony); color: #fff; font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.pdp__related, .pdp__more { margin-top: 40px; }

@media (max-width: 480px) {
  .pdp__ctas, .pdp__delivery-box { max-width: none; }
}

/* ══════════════ Order confirmation ══════════════ */

.confirm { max-width: 640px; margin: 0 auto; padding: 48px 16px 64px; text-align: center; }
.confirm__icon {
  width: 74px; height: 74px; border-radius: 50%; background: var(--color-success-tint);
  border: 2px solid var(--color-success); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--color-success-text);
}
.confirm__icon--cancel { background: #fde8e8; border-color: var(--color-danger); color: var(--color-danger); }
.confirm__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px,3vw,30px); margin: 0 0 8px; color: var(--color-text); }
.confirm__order-no { font-size: 14.5px; color: var(--color-text-secondary); margin-bottom: 22px; }
.confirm__order-no span { font-family: ui-monospace, Menlo, monospace; font-weight: 700; background: #edeff5; color: var(--color-text); padding: 4px 10px; border-radius: 8px; }

.confirm__card { background: #fff; border: 1px solid var(--color-cream-dark); border-radius: 20px; padding: 24px; text-align: left; margin-bottom: 22px; }
.confirm__card--left { text-align: left; }
.confirm__delivery-line { font-size: 14.5px; margin-bottom: 4px; color: var(--color-text); }
.confirm__pay-line { font-size: 13.5px; color: var(--color-text-secondary); margin-bottom: 18px; }
.confirm__pay-line strong { color: var(--color-success-text); }
.confirm__section-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0 0 12px; color: var(--color-text); }

.confirm__dl { display: flex; flex-direction: column; gap: 10px; }
.confirm__dl-row { display: grid; grid-template-columns: auto 1fr; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--color-text-secondary); }
.confirm__dl-row span:first-child { color: var(--color-text-tertiary); white-space: nowrap; }
.confirm__dl-row span:last-child { color: var(--color-text); font-weight: 600; text-align: right; min-width: 0; word-break: break-word; }
.confirm__dl-row--total { border-top: 1px solid var(--color-cream-dark); padding-top: 10px; margin-top: 2px; }
.confirm__dl-row--total span { font-weight: 800 !important; color: var(--color-text) !important; }
.confirm__dl-row--total span:last-child { font-family: var(--font-display); font-size: 18px; color: var(--color-gold-dark) !important; }

.confirm__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.confirm__items li { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--color-text-secondary); }
.confirm__items li span:last-child { color: var(--color-text); font-weight: 700; }
.confirm__items-qty { color: var(--color-text-tertiary); }

.confirm__info-box { background: var(--color-gold-tint-soft, #fcf8ed); border: 1px solid var(--color-gold-tint-border, #f0e4c4); border-radius: 16px; padding: 16px; font-size: 13px; color: var(--color-text-secondary); text-align: left; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.confirm__info-box strong { color: var(--color-text); }
.confirm__info-box p { margin: 0; }

.confirm__tracking-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 16px; padding: 16px; text-align: left; margin-bottom: 22px; }
.confirm__tracking-title { font-weight: 700; color: #1e40af; margin: 0 0 10px; }
.confirm__tracking-btn { padding: 10px 20px; border-radius: 10px; font-size: 13.5px; }

.confirm__cancel-box { background: #fde8e8; border: 1px solid #f5b5b5; border-radius: 16px; padding: 16px; text-align: left; margin-bottom: 22px; font-size: 13.5px; }
.confirm__cancel-box p { margin: 0 0 8px; color: #991b1b; font-weight: 600; }
.confirm__cancel-box a { color: var(--color-danger); font-weight: 700; text-decoration: none; }
.confirm__cancel-box a:hover { text-decoration: underline; }
.confirm__cancel-box--urgent { background: #fbd0d0; border-color: var(--color-danger); animation: pulseRing 1.6s ease-out infinite; }

.confirm__muted { font-size: 13.5px; color: var(--color-text-secondary); margin: 0 0 14px; }
.confirm__linked-note { font-size: 13.5px; color: var(--color-success-text); background: var(--color-success-tint); border: 1px solid var(--color-success); border-radius: 12px; padding: 12px; margin-bottom: 22px; }

.confirm__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.confirm__wa-btn { background: var(--color-success); color: #fff; border-radius: 12px; padding: 14px 22px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background .15s ease; }
.confirm__wa-btn:hover { background: #17a950; color: #fff; }
.confirm__store-btn { background: #fff; border: 1.5px solid var(--color-ebony); color: var(--color-ebony); border-radius: 12px; padding: 13px 22px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background .15s ease; }
.confirm__store-btn:hover { background: var(--color-cream-dark); }
.confirm__contact-note { font-size: 12px; color: var(--color-text-tertiary); }
