/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(13, 13, 13, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-header__logo {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__slogan {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--color-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: rgba(201, 162, 75, 0.12);
  color: var(--color-gold-light);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--color-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge[hidden] {
  display: none;
}

/* ---- Slide panels (categories / cart) ---- */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.panel-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.slide-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--color-bg-elevated);
  border-left: 1px solid var(--color-border);
  z-index: 51;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-elevated);
}

.slide-panel--left {
  left: 0;
  border-left: none;
  border-right: 1px solid var(--color-border);
  transform: translateX(-100%);
}

.slide-panel--right {
  right: 0;
  transform: translateX(100%);
}

.slide-panel.is-open {
  transform: translateX(0);
}

.slide-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}

.slide-panel__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.slide-panel__body {
  padding: 12px 20px;
  overflow-y: auto;
  flex: 1;
}

.slide-panel__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
}

.slide-panel__close:hover {
  color: var(--color-gold-light);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.category-list li a:hover {
  color: var(--color-gold-light);
  padding-left: 10px;
}

/* ---- Search overlay ---- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(8, 8, 8, 0.97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}

.search-overlay__input {
  flex: 1;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 12px 14px;
  border-radius: var(--radius-card);
  font-size: 1rem;
}

.search-overlay__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
}

.search-overlay__filters input {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 8px 10px;
  border-radius: var(--radius-card);
  width: 130px;
}

.search-overlay__results {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn--gold {
  background: var(--color-gold);
  color: #120d02;
}

.btn--outline {
  background: transparent;
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}

.btn--pink {
  background: var(--color-pink);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.85) 100%);
}

.hero__content {
  position: relative;
  padding: 40px 24px 48px;
  max-width: 620px;
}

.hero__content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--color-gold-light);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero__content p {
  color: var(--color-text);
  margin: 0 0 20px;
  font-size: 1.05rem;
}

/* ---- Trust badges ---- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}

.trust-strip__item svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gold);
  fill: none;
  flex-shrink: 0;
}

.trust-strip__item span {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ---- Category rail ---- */
.category-rail {
  padding: 32px 24px 8px;
}

.category-rail__list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  list-style: none;
  margin: 0;
}

.category-rail__list a {
  display: block;
  white-space: nowrap;
  padding: 10px 20px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  color: var(--color-gold-light);
  font-family: var(--font-display);
}

.category-rail__list a:hover {
  background: var(--color-gold);
  color: #120d02;
}

/* ---- Product grid ---- */
.section-title {
  padding: 8px 24px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  padding: 20px 24px 48px;
}

.product-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.product-card__image {
  aspect-ratio: 3 / 4;
  background: var(--color-bg-elevated-2) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%23555" stroke-width="1"><path d="M3 7l9 6 9-6"/></svg>') center/32px no-repeat;
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.product-card__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card__price {
  color: var(--color-gold-light);
  font-weight: 700;
}

.product-card__add {
  background: var(--color-pink);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.product-card__add:hover {
  background: var(--color-pink-light);
}

.product-card__add--notify {
  background: var(--color-bg-elevated-2);
  font-size: 1rem;
}

.product-card__add--notify:hover {
  background: var(--color-border);
}

.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted);
}

/* ---- Cart panel ---- */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__image {
  width: 56px;
  height: 72px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-bg-elevated-2);
  flex-shrink: 0;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__info strong {
  display: block;
  font-size: 0.9rem;
}

.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  margin-top: 4px;
}

.cart-summary {
  border-top: 1px solid var(--color-border);
  padding: 16px 20px 20px;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.cart-summary__total strong {
  color: var(--color-gold-light);
}

.cart-summary .btn + .btn {
  margin-top: 10px;
}

/* ---- Bank transfer panel ---- */
.transfer-info__intro {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 4px 0 18px;
}

.transfer-info__group + .transfer-info__group {
  margin-top: 22px;
}

.transfer-info__group-title {
  font-family: var(--font-display);
  color: var(--color-gold-light);
  font-size: 1rem;
  margin: 0 0 10px;
}

.transfer-info__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transfer-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.transfer-info__label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.transfer-info__value {
  display: block;
  font-size: 1rem;
  word-break: break-word;
}

.cart-summary .transfer-info__row {
  margin-bottom: 14px;
}

.copy-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.copy-btn:hover {
  filter: brightness(1.08);
}

/* ---- WhatsApp FAB ---- */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 45;
  animation: fab-pulse 2.4s ease-in-out infinite;
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* ---- Carrito flotante ---- */
/* Fijo abajo a la izquierda (el de WhatsApp va a la derecha), sigue al
   visitante mientras navega y solo aparece si hay algo en el carrito. */
.cart-fab {
  position: fixed;
  bottom: 92px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevated);
  z-index: 45;
  transition: transform .15s;
}
.cart-fab:hover { transform: scale(1.06); }
.cart-fab:active { transform: scale(.96); }
.cart-fab svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.cart-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-pink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg-elevated);
}
/* Si también hay botón de WhatsApp, sube el carrito para que no se tapen en celular. */
@media (max-width: 480px) {
  .cart-fab { bottom: 80px; right: 16px; width: 52px; height: 52px; }
  .cart-fab svg { width: 23px; height: 23px; }
}

/* Brinco al agregar un producto, para que no pase desapercibido. */
.cart-fab.is-bump { animation: cart-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cart-bump {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-16px) scale(1.12); }
  55% { transform: translateY(0) scale(.94); }
  75% { transform: translateY(-6px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 24px 60px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-footer__admin-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-text-muted);
  opacity: 0.6;
  font-size: 0.75rem;
}

.site-footer__admin-link:hover {
  opacity: 1;
  color: var(--color-gold);
}

/* ---- Paginador de productos ---- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 0 16px 48px; }
.pager__n { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-bg-elevated); color: var(--color-text); font: inherit; font-weight: 600; cursor: pointer; }
.pager__n:hover:not(:disabled):not(.is-on) { border-color: var(--color-gold); }
.pager__n.is-on { background: var(--color-gold); border-color: var(--color-gold); color: #120d02; cursor: default; }
.pager__n:disabled { opacity: .4; cursor: not-allowed; }
.pager__gap { color: var(--color-text-muted, #8a8f98); padding: 0 4px; }
@media (max-width: 520px) { .pager__nav { flex: 1 1 45%; } .pager { gap: 5px; } }

/* ---- Botón grande para volver / seguir comprando ---- */
.back-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--color-text); background: var(--color-bg-elevated); border: 1.5px solid var(--color-gold); transition: background .15s, color .15s; }
.back-btn:hover { background: var(--color-gold); color: #120d02; }

/* Las fotos se ven completas (sin recortar) dentro del marco, sea cual sea su proporción. */
.product-card__image img { object-fit: contain; background: var(--color-bg-elevated-2); }

.search-overlay__filters select { background: var(--color-bg-elevated); border: 1px solid var(--color-border); color: var(--color-text); padding: 8px 10px; border-radius: var(--radius-card); min-width: 150px; max-width: 100%; }
.search-overlay__filters .btn { padding: 8px 16px; }
@media (max-width: 520px) { .search-overlay__filters select, .search-overlay__filters input { flex: 1 1 45%; width: auto; min-width: 0; } }

/* ---- Barra de búsqueda grande (portada y categorías) ---- */
.shop-searchbar { display: flex; gap: 8px; align-items: stretch; width: min(100%, 880px); margin: 4px auto 14px; padding: 0 16px; box-sizing: border-box; }
.shop-searchbar__input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 20px; font-size: 1.05rem; border-radius: 999px; border: 2px solid var(--color-border); background: var(--color-bg-elevated); color: var(--color-text); }
.shop-searchbar__input:focus { outline: none; border-color: var(--color-gold); }
.shop-searchbar__go, .shop-searchbar__filters { height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid var(--color-gold); }
.shop-searchbar__go { background: var(--color-gold); color: #fff; }
:root[data-theme="dark"] .shop-searchbar__go { color: #0b1220; }
.shop-searchbar__filters { background: var(--color-bg-elevated); color: var(--color-text); white-space: nowrap; }
.shop-searchbar__filters:hover { background: var(--color-bg-elevated-2); }
@media (max-width: 560px) { .shop-searchbar { flex-wrap: wrap; } .shop-searchbar__input { flex: 1 1 100%; } .shop-searchbar__go, .shop-searchbar__filters { flex: 1 1 45%; } }

/* Precio promocional: normal tachado + precio de promoción */
.price-old { -webkit-text-fill-color: currentColor; color: var(--color-muted, #8a8a8a); font-size: .72em; font-weight: 500; text-decoration: line-through; margin-right: 4px; }
.price-promo small { font-size: .65em; font-weight: 500; opacity: .8; }


/* ---- Promociones: etiqueta en la tarjeta y franja del inicio ---- */
.product-card__badge--promo { background: #e11d48; color: #fff; left: 10px; right: auto; }
.category-rail__list a.is-promo { background: #e11d48; border-color: #e11d48; color: #fff; font-weight: 700; }
.promo-band { margin: 18px 24px 0; }
.promo-band a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #e11d48, #f97316); box-shadow: 0 10px 26px rgba(225, 29, 72, .3); }
.promo-band strong { font-size: 1.25rem; letter-spacing: .02em; }
.promo-band span { font-size: .95rem; opacity: .95; }
.promo-band b { background: #fff; color: #e11d48; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .promo-band { margin: 14px 16px 0; } .promo-band a { padding: 14px 16px; } .promo-band span { display: none; } }
