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

:root {
  --color-gold: #c9a84c;
  --color-gold-light: #e8c96a;
  --color-gold-dark: #9a7a2a;
  --color-ebony: #1c1c1c;
  --color-ebony-700: #2d2d2d;
  --color-ebony-600: #3d3d3d;
  --color-cream: #f7f3ee;
  --color-cream-dark: #ede8df;
  --radius-card: 1rem;
  --radius-btn: 0.75rem;
  --shadow-card: 0 1px 3px rgb(28 28 28 / 6%);
  --shadow-card-hover: 0 10px 25px rgb(28 28 28 / 10%);
}

/* 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: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--site-header-height, 0px) !important;
}

/* 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.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  background: var(--color-gold);
  color: var(--color-ebony);
}

.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: transparent;
  isolation: isolate;
}

.site-nav {
  position: relative;
  z-index: 2;
  background: var(--color-ebony);
}

.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-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-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.page-header__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.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: 5.5rem;
}

/* Product card — hover affordance */
.product-card {
  display: flex;
  flex-direction: column;
  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.2s, box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgb(201 168 76 / 35%);
  box-shadow: var(--shadow-card-hover);
}

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

.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: cover;
}

.product-card__slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
}

.product-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: rgb(28 28 28 / 62%);
  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;
  }
}

/* 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-700);
}

.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: linear-gradient(180deg, #1b1b1b 0%, #171717 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}

.mobile-menu__link {
  display: block;
  padding: 0.9rem 0.1rem;
  color: #f3f4f6;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid var(--color-ebony-600);
  letter-spacing: 0.01em;
  transition: color 0.15s, padding-left 0.15s, background 0.15s;
}

.mobile-menu__link:hover {
  color: var(--color-gold);
  background: rgb(255 255 255 / 2%);
  padding-left: 0.45rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  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(0 0 0 / 8%);
}

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

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 998;
  transition: bottom 0.25s ease;
}

/* Mobile: hide label text, keep icon only as pill */
@media (max-width: 767px) {
  .whatsapp-float .whatsapp-label {
    display: none;
  }
  .whatsapp-float a {
    padding: 0.75rem;
    border-radius: 9999px;
    gap: 0;
  }
}

/* Push WhatsApp button up when cookie banner is visible */
.cookie-banner:not(.hidden) ~ .whatsapp-float {
  bottom: calc(1.5rem + 72px);
}

/* 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 CTA (mobile) */
.pdp-sticky-bar {
  display: none;
}

@media (max-width: 1023px) {
  .pdp-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid var(--color-cream-dark);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 8%);
  }

  body.pdp-page {
    padding-bottom: 5rem;
  }
}

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

/* ── Categories mega-dropdown — premium redesign ── */

/* Slide-down animation */
/* ── Horizontal category bar ──────────────────────────────────────────── */
.cat-bar {
  position: relative;
  z-index: 1;
  background: #232323;
  border-top: 1px solid #3D3D3D;
}

.cat-bar__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .cat-bar__scroll { padding-left: 0; padding-right: 0; }
}

.cat-bar__scroll {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.45rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.cat-bar__scroll::-webkit-scrollbar { display: none; }

.cat-bar__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1d5db;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
  font-family: inherit;
}

.cat-bar__pill:hover,
.cat-bar__pill--has-sub:hover {
  background: rgba(201, 168, 76, 0.15);
  color: #C9A84C;
}

.cat-bar__pill--active {
  background: rgba(201, 168, 76, 0.2);
  color: #C9A84C;
  border-color: rgba(201, 168, 76, 0.45);
}

.cat-bar__chevron {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cat-bar__item { position: relative; display: inline-flex; }

[data-cat-parent] > button[aria-expanded="true"] .cat-bar__chevron {
  transform: rotate(180deg);
}

@keyframes catBarDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cat-bar__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  box-shadow: 0 10px 36px -4px rgba(0,0,0,0.18), 0 2px 8px -2px rgba(0,0,0,0.08);
  z-index: 200;
  overflow: hidden;
  animation: catBarDrop 0.18s ease forwards;
}

.cat-bar__dropdown--open { display: block; }

.cat-bar__sub-link {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}

.cat-bar__sub-link:hover {
  background: #FDF8EE;
  color: #9A7A2A;
}

.cat-bar__sub-link--active {
  color: #C9A84C;
  font-weight: 700;
}

.cat-bar__sub-link--all {
  font-weight: 700;
  color: #1C1C1C;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.65rem;
  margin-bottom: 0.15rem;
}

/* 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: 5.5rem;
}

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

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

.checkout-card,
.checkout-summary-card {
  border: 1px solid rgb(201 168 76 / 22%);
  box-shadow: 0 14px 36px rgb(28 28 28 / 8%);
}

.checkout-card {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 72%, var(--color-cream) 100%);
}

.checkout-form__header {
  padding: 1.35rem 1.6rem 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-ebony) 0%, var(--color-ebony-700) 100%);
}

.checkout-form__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-gold-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.checkout-form__title {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.12;
}

.checkout-form__subtitle {
  margin: 0.35rem 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkout-form__body {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .checkout-form__body {
    padding: 2rem;
  }
}

.checkout-field {
  display: grid;
  gap: 0.4rem;
}

.checkout-label {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-card .form-input {
  min-height: 3rem;
  border-color: rgb(201 168 76 / 24%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 6px 18px rgb(28 28 28 / 4%);
}

.checkout-card .form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgb(201 168 76 / 16%), 0 8px 22px rgb(28 28 28 / 6%);
}

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

.checkout-form__section {
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-cream-dark);
}

.checkout-section-title {
  margin: 0;
  margin-bottom: 0.85rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.checkout-payment-option {
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.checkout-payment-option:hover {
  border-color: rgb(201 168 76 / 55%);
  box-shadow: 0 8px 22px rgb(28 28 28 / 6%);
  transform: translateY(-1px);
}

.checkout-payment-option input {
  margin-top: 0.2rem;
  accent-color: var(--color-gold);
}

.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: #4b5563;
  font-size: 0.86rem;
  line-height: 1.4;
  border: 1px solid var(--color-cream-dark);
  border-radius: 1rem;
  background: #fff;
}

.checkout-terms input {
  margin-top: 0.2rem;
  accent-color: var(--color-gold);
}

.checkout-summary-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
}

.checkout-summary__header {
  padding: 1.25rem 1.35rem 1.1rem;
  background: linear-gradient(135deg, var(--color-ebony) 0%, var(--color-ebony-700) 100%);
  color: #fff;
}

.checkout-summary__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-gold-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.checkout-summary__title {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
}

.checkout-summary__subtitle {
  margin: 0.35rem 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 0.8rem;
  font-weight: 600;
}

.checkout-summary__items {
  display: grid;
  gap: 0.55rem;
  max-height: 19rem;
  margin: 0;
  padding: 1.15rem 1.25rem;
  overflow-y: auto;
  list-style: none;
}

.checkout-summary__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--color-cream-dark);
  border-radius: 1rem;
  background: var(--color-cream);
}

.checkout-summary__item-name {
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 800;
}

.checkout-summary__item-qty {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 800;
}

.checkout-summary__item-price {
  color: var(--color-gold-dark);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-summary__totals {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--color-cream-dark);
  background: #fff;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 700;
}

.checkout-summary__row--free {
  color: #047857;
}

.checkout-summary__row--muted {
  color: #6b7280;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.2rem;
  padding-top: 0.85rem;
  color: var(--color-gold-dark);
  font-size: 1.2rem;
  font-weight: 950;
  border-top: 1px solid var(--color-cream-dark);
}

.checkout-summary__notice,
.checkout-summary__free-note {
  margin: 0.2rem 0 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  border-radius: 0.9rem;
}

.checkout-summary__notice {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.checkout-summary__notice button {
  color: #78350f;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-summary__free-note {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.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;
}

.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 #fde68a;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.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-ebony-700);
  border: 1px solid var(--color-ebony-600);
  border-radius: 9999px;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.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: #fff;
}

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

.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); }

/* 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;
  font-size: 1.08rem;
  font-weight: 800;
  color: #A66200
;
  text-shadow: 0 1px 0 rgb(255 255 255 / 35%);
  letter-spacing: -0.02em;
}

.product-card__cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

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

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

.product-card__quick-add {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  flex-shrink: 0;
  border: 2px solid var(--color-gold);
  border-radius: 9999px;
  background: #1c1c1c;
  color: #fff;
  box-shadow: 0 8px 18px rgb(0 0 0 / 24%);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.product-card__quick-add:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: var(--color-gold);
  background: var(--color-gold-dark);
  color: #fff;
  box-shadow: 0 12px 22px rgb(0 0 0 / 30%);
}

/* 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 bar: subtle fade hint for horizontal scroll on mobile */
@media (max-width: 767px) {
  .cat-bar__wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    background: linear-gradient(to right, transparent, #232323 90%);
    pointer-events: none;
    z-index: 2;
  }
}
