:root {
  --cream: #faf5ee;
  --cream-dark: #f3e7dc;
  --gold: #b7935a;
  --gold-dark: #8a6d3f;
  --text: #3a332c;
  --text-light: #7a6a58;
  --border: #e6dccb;
  /* Used by text that sits directly on the page background (not inside a
     white card/box). Seasonal themes with a dark background photo override
     these so headings/labels don't fade into it. */
  --theme-fg: var(--text);
  --theme-fg-light: var(--text-light);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; font-weight: normal; }

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

.announce-bar {
  background: var(--gold-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px;
  letter-spacing: 0.03em;
}

/* Header fijo: el logo, menú y carrito siguen visibles al hacer scroll en
   cualquier página de la tienda. z-index por debajo de los modales (1000). */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 400; }
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.logo img { height: 64px; filter: contrast(1.15); }
.main-nav { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; white-space: nowrap; }
/* Enlaces de primer nivel: "píldora" dorada al pasar el mouse o en la sección
   activa. Solo los directos del menú, para no afectar los enlaces del submenú. */
.main-nav > a, .main-nav > .nav-item > a {
  font-size: 12.5px; letter-spacing: 0.08em; color: var(--text-light);
  padding: 8px 14px; border-radius: 20px;
  transition: background .2s ease, color .2s ease;
}
.main-nav > a:hover, .main-nav > .nav-item > a:hover,
.main-nav > .nav-item:hover > a,
.main-nav > a.active, .main-nav > .nav-item.active > a {
  background: var(--cream-dark); color: var(--gold-dark);
}
/* Separador tenue en forma de diamante entre secciones (opción C). */
.main-nav .nav-sep { color: #d9c7ad; font-size: 8px; align-self: center; user-select: none; pointer-events: none; }
.main-nav .nav-item { position: relative; }
.main-nav .nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 20px 28px; gap: 40px;
  z-index: 100; white-space: nowrap;
}
.main-nav .nav-item:hover .nav-dropdown { display: flex; }
.nav-dropdown-col h5 { font-size: 12px; letter-spacing: 0.06em; color: var(--text-light); margin: 0 0 10px; text-transform: uppercase; }
.nav-dropdown-col a { display: block; font-size: 13px; padding: 5px 0; letter-spacing: normal; }
.header-icons { display: flex; align-items: center; gap: 10px; }
.search-form input {
  border: 1px solid var(--border);
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 13px;
  width: 120px;
}
.icon-link { font-size: 18px; position: relative; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--gold-dark);
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  padding: 1px 5px;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero img, .hero video { width: 100%; border-radius: 6px; display: block; }
/* Zonas activas del banner: recuadro clicable con un "+" sutil en el centro. */
.hero-media { position: relative; }
.hero-hotspot { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none; }
/* "Beacon" elegante: un círculo blanco sólido con un anillo que late y se
   desvanece hacia afuera, más un aro fino fijo. Sin el signo "+". */
.hero-hotspot-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: transform .25s ease; }
.hero-hotspot-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.9); animation: hsBeacon 2.2s cubic-bezier(.22,.61,.36,1) infinite; }
.hero-hotspot-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); }
.hero-hotspot:hover .hero-hotspot-dot { transform: scale(1.35); }
@keyframes hsBeacon { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-hotspot-dot::before { animation: none; } }
.hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 14px; color: var(--theme-fg); }
.hero p { color: var(--theme-fg-light); margin-bottom: 20px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 12px 26px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.btn { transition: background .2s ease, transform .14s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(184,134,63,.3); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled, .btn[disabled] { background: #b7b0a6; color: #f0ede8; cursor: not-allowed; }
.btn:disabled:hover, .btn[disabled]:hover { background: #b7b0a6; transform: none; box-shadow: none; }

.image-wrapper { position: relative; overflow: hidden; touch-action: pan-y; }
.image-nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.85); color: var(--theme-fg, #3a332c);
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 6;
}
.image-nav-arrow:hover { background: #fff; }
.image-nav-prev { left: 10px; }
.image-nav-next { right: 10px; }
.out-of-stock-ribbon {
  position: absolute; top: 22px; left: -38px;
  width: 170px; padding: 5px 0;
  background: #c0392b; color: #fff;
  text-align: center; font-size: 12px; font-weight: bold; letter-spacing: 0.06em;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 5;
}
/* Indicador de existencias en la página del producto ("N disponibles" /
   "¡Solo quedan N!"). Se resalta cuando queda poco. */
.stock-info { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.stock-info.low { color: #a35d00; font-weight: 600; }
.stock-info.out { color: #c0392b; font-weight: 600; }

/* Listón diagonal de descuento en la esquina superior derecha de cada producto
   con rebaja (ej. "-20%"). Va del lado opuesto al de AGOTADO para no encimarse. */
.discount-ribbon {
  position: absolute; top: 22px; right: -38px;
  width: 170px; padding: 5px 0;
  background: var(--gold-dark); color: #fff;
  text-align: center; font-size: 12px; font-weight: bold; letter-spacing: 0.04em;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  z-index: 5;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
}

/* Category tiles */
.section { max-width: 1200px; margin: 48px auto; padding: 0 24px; }
.section-title { text-align: center; font-size: 30px; margin-bottom: 28px; color: var(--theme-fg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.tile { text-align: center; min-width: 0; max-width: 320px; transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.tile img { display: block; width: 100%; max-width: 100%; border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease, box-shadow .3s ease, filter .3s ease; }
/* La foto vive dentro de un marco que recorta el zoom. */
.tile a { display: block; }
.tile a > *:first-child, .tile picture, .tile .tile-frame { display: block; }
.tile:hover { transform: translateY(-6px); }
.tile:hover img { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0,0,0,.16); filter: saturate(1.08); }
.tile h3 { margin: 12px 0 4px; font-size: 18px; letter-spacing: 0.04em; color: var(--theme-fg); transition: color .2s ease; }
.tile:hover h3 { color: var(--gold-dark); }
.tile span { font-size: 12px; text-decoration: underline; color: var(--theme-fg-light); transition: color .2s ease; }
.tile:hover span { color: var(--gold-dark); }

/* Product grid */
/* auto-fill (no auto-fit): con pocos productos NO se estiran ni se separan —
   se acomodan juntos a la izquierda con espacio parejo. Cada tarjeta se limita
   a 260px para que se vean proporcionadas aunque haya 1 o 2. */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); gap: 24px; justify-content: start; }
/* En celular: 2 columnas que llenan el ancho (así no queda una sola tarjetita
   pegada a la izquierda con hueco a un lado). */
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
.product-card { text-align: left; min-width: 0; max-width: 320px; transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.product-card .image-wrapper { border-radius: 10px; overflow: hidden; }
.product-card img { display: block; width: 100%; max-width: 100%; border-radius: 6px; aspect-ratio: 1/1; object-fit: contain; object-position: center; background: #fff; transition: transform .45s ease; }
.product-card:hover { transform: translateY(-6px); }
.product-card:hover img { transform: scale(1.07); }
.product-card h4 { margin: 12px 0 4px; font-size: 15px; color: var(--theme-fg); transition: color .2s ease; }
.product-card:hover h4 { color: var(--gold-dark); }
.product-card .price { font-size: 14px; margin-bottom: 8px; }

/* Entrada al hacer scroll: los elementos con .reveal aparecen deslizándose. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Entrada del hero al cargar la página: el texto entra desde la izquierda y la
   imagen aparece con un leve acercamiento. */
@keyframes heroCopyIn { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heroImgIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.hero-copy { animation: heroCopyIn .7s cubic-bezier(.22,.61,.36,1) both; }
.hero-img { animation: heroImgIn .9s ease both .1s; }
.tiles .tile, .product-grid .product-card { animation: prodRowIn .5s ease both; }
@keyframes prodRowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-copy, .hero-img, .tiles .tile, .product-grid .product-card { animation: none; } }
.original { text-decoration: line-through; color: var(--theme-fg-light); margin-right: 6px; }
.final { color: var(--gold-dark); font-weight: bold; }
.discount-badge { display: inline-block; background: #fdecea; color: #a33; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 10px; vertical-align: middle; }
.promo-2x1-badge { display: inline-block; background: #e3edfa; color: #2a5a9c; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 10px; vertical-align: middle; }

.promo-banner {
  max-width: 1200px;
  margin: 48px auto;
  background: var(--cream-dark);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.promo-banner img, .promo-banner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-banner .text { padding: 32px; }

.custom-block-image img { width: 100%; border-radius: 8px; display: block; }
.custom-block-text { text-align: center; }
.custom-block-text p { font-size: 18px; color: var(--theme-fg); max-width: 700px; margin: 0 auto; }

.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.footer-col h4 { font-size: 13px; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col .social-icon { display: inline-flex; color: var(--text-light); }
.footer-col .social-icon:hover { color: var(--gold-dark); }
.footer-col a { display: block; font-size: 13px; margin-bottom: 8px; color: var(--text-light); }
.footer-col.newsletter input { width: 65%; padding: 8px; border: 1px solid var(--border); }
.footer-col.newsletter button { padding: 8px 12px; background: var(--gold); color: #fff; border: none; }
.footer-bottom { text-align: center; font-size: 12px; color: var(--text-light); padding: 16px; border-top: 1px solid var(--border); }

/* Generic page layout */
.page-inner { max-width: 1200px; margin: 32px auto; padding: 0 24px; color: var(--theme-fg); }
.breadcrumb { font-size: 12px; color: var(--theme-fg-light); margin-bottom: 16px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-detail > div { min-width: 0; }
.product-detail img.main-image { width: 100%; aspect-ratio: 1/1; object-fit: contain; object-position: center; border-radius: 8px; background: #fff; }
.product-detail h1 { font-size: 30px; margin-bottom: 8px; color: var(--theme-fg); }
.product-detail .sku { font-size: 12px; color: var(--theme-fg-light); margin-bottom: 12px; }
.product-detail .price-block { font-size: 22px; margin-bottom: 16px; }
.product-detail > div > p { color: var(--theme-fg); }
.product-detail select, .product-detail input[type=number] {
  padding: 8px; border: 1px solid var(--border); border-radius: 3px; margin-right: 8px;
}
.thumb-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-row .thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7;
}
.thumb-row .thumb:hover { opacity: 1; }
.thumb-row .thumb.active { border-color: var(--gold); opacity: 1; }

/* Reviews */
.rating-summary { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--theme-fg-light); margin-bottom: 10px; }
.rating-summary .stars, .review-item .stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; }
.reviews-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.review-list { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.review-item { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.review-meta { font-size: 13px; margin: 4px 0; color: var(--theme-fg-light); }
.review-meta strong { color: var(--theme-fg); margin-right: 8px; }
.verified-badge { display: inline-block; background: #e9f7ec; color: #2a7a3d; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 10px; margin-right: 8px; }
.review-date { font-size: 12px; }
.review-comment { font-size: 14px; color: var(--theme-fg); margin: 4px 0 0; }

.size-guide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; border-bottom: 1px solid var(--theme-fg);
  color: var(--theme-fg); font-size: 13px; letter-spacing: 0.03em;
  padding: 0 0 2px; margin: 0 0 14px; cursor: pointer;
}
.size-guide-btn:hover { color: var(--gold-dark); border-color: var(--gold-dark); }
.size-guide-stock { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-light); margin-top: 16px; }
.size-guide-stock .stock-dot { width: 14px; height: 14px; border-radius: 50%; background: #f6a09a; flex-shrink: 0; }
.size-guide-stock .stock-count { color: #d9633b; font-weight: bold; }

.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; cursor: default; }
/* Flechas para recorrer las fotos dentro del visor, y la X para cerrar. */
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: #3a332c; border: none;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35); transition: background .18s ease, transform .18s ease;
}
.lightbox-nav:hover { background: #fff; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close {
  position: fixed; top: 16px; right: 18px; z-index: 1001;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: #3a332c; border: none;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.lightbox-close:hover { background: #fff; }
@media (max-width: 600px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 19px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 8px; padding: 32px;
  max-width: 420px; width: 100%; position: relative;
}
.modal-box h3 { margin-top: 0; margin-bottom: 16px; font-size: 22px; }
.modal-box label { display: block; font-size: 13px; margin: 12px 0 6px; }
.modal-box input, .modal-box textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px;
}
.modal-box .btn { width: 100%; margin-top: 20px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--text-light); cursor: pointer;
}

.stock-note { font-size: 13px; color: var(--theme-fg-light); margin: 10px 0; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 12px; margin-bottom: 6px; letter-spacing: 0.05em; color: var(--theme-fg); }

/* Cart */
table.cart-table { width: 100%; border-collapse: collapse; }
table.cart-table th, table.cart-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; color: var(--theme-fg); }
table.cart-table img { width: 64px; height: 64px; object-fit: contain; object-position: center; background: #fff; border-radius: 4px; }
.cart-summary { max-width: 340px; margin-left: auto; margin-top: 24px; text-align: right; color: var(--theme-fg); }
.cart-summary .total { font-size: 20px; margin: 12px 0; }

/* En celular la tabla de 8 columnas no cabe: cada producto se muestra como una
   tarjeta apilada, con la etiqueta de cada dato a la izquierda (data-label). */
@media (max-width: 640px) {
  table.cart-table thead { display: none; }
  table.cart-table, table.cart-table tbody, table.cart-table tr, table.cart-table td { display: block; width: 100%; }
  table.cart-table tr {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 16px;
    background: #fff;
  }
  table.cart-table td {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  table.cart-table td:last-child { border-bottom: none; }
  /* La etiqueta del dato aparece a la izquierda de cada celda. */
  table.cart-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-light);
    text-align: left;
    flex-shrink: 0;
  }
  /* El nombre del producto ocupa el ancho, sin etiqueta, arriba de la tarjeta. */
  table.cart-table td[data-label="Producto"] { justify-content: flex-start; text-align: left; }
  table.cart-table td[data-label="Producto"]::before { display: none; }
  table.cart-table td[data-label="Producto"] > div { width: 100%; }
  table.cart-table .cart-remove-cell { justify-content: flex-end; }
  table.cart-table .cart-remove-cell::before { content: ''; }
  table.cart-table .cart-remove-cell a { color: #a33; font-size: 13px; }
  .cart-summary { max-width: none; }
}

/* Forms */
.form-box { max-width: 420px; margin: 40px auto; background: #fff; padding: 32px; border-radius: 8px; border: 1px solid var(--border); }
.form-box h1 { font-size: 24px; margin-bottom: 20px; }
.form-box label { display: block; font-size: 13px; margin: 12px 0 6px; }
.form-box input, .form-box select, .form-box textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px;
}
.form-box .btn { width: 100%; margin-top: 20px; }
.alert { background: #fdecea; color: #a33; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 12px; }
.alert-success { background: #e9f7ec; color: #2a7a3d; }

/* Rich text editor (product description) */
.rte-toolbar { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.rte-toolbar button {
  width: 32px; height: 32px; border: 1px solid var(--border); background: #fff;
  border-radius: 3px; cursor: pointer; font-size: 13px;
}
.rte-toolbar button:hover { background: var(--cream); }
.rte-toolbar select { padding: 6px; border: 1px solid var(--border); border-radius: 3px; font-size: 13px; }
.rte-toolbar input[type=color] { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 3px; padding: 2px; cursor: pointer; }
.rte-editor {
  min-height: 100px; padding: 10px; border: 1px solid var(--border); border-radius: 3px;
  font-size: 14px; margin-bottom: 12px; background: #fff;
}
.rte-editor:focus { outline: 1px solid var(--gold); }
.product-description p { margin: 0 0 10px; }

/* Admin */
.admin-body { background: var(--cream); }
.cart-total-badge {
  position: fixed; top: 16px; right: 24px; z-index: 500;
  background: var(--gold); color: #fff;
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #fff; border-right: 1px solid var(--border); padding: 24px 0; }
.admin-sidebar a { display: block; padding: 10px 24px; font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--cream-dark); }
.admin-content { flex: 1; padding: 32px; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 20px 0 0; }
.admin-tabs a { padding: 10px 16px; font-size: 13px; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .18s ease, border-color .18s ease, background .18s ease; border-radius: 6px 6px 0 0; }
.admin-tabs a:hover { color: var(--gold-dark); background: var(--cream-dark); }
.admin-tabs a.active { color: var(--gold-dark); border-bottom-color: var(--gold-dark); font-weight: bold; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
table.admin-table th, table.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; text-align: left; }
table.admin-table img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-pendiente { background: #fdf3d8; color: #93710b; }
.badge-pagado { background: #e9f7ec; color: #2a7a3d; }
.badge-enviado { background: #e3edfa; color: #2a5a9c; }
.badge-entregado { background: #e6e0f5; color: #5b3a9c; }
.badge-cancelado { background: #fdecea; color: #a33; }
.badge-reembolsado { background: #f3e7dc; color: #8a6d3f; }
.badge-no_procesado { background: #f0e0e0; color: #7a3b3b; }

/* Seasonal themes */
body.theme-valentines {
  background-color: #ffe3ea;
  background-image: url('/assets/img/theme-bg-valentines.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.theme-christmas {
  background-color: #fdfdfc;
  background-image: url('/assets/img/theme-bg-christmas.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.theme-winter {
  background-color: #fdfdfc;
  background-image: url('/assets/img/theme-bg-invierno.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.theme-newyear {
  background-color: #0e1a2b;
  background-image: url('/assets/img/theme-bg-newyear.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  /* Dark photo background — lighten the text that sits directly on it so
     headings/labels don't fade in (white cards like product photos and
     forms keep their own dark text, unaffected by this). */
  --theme-fg: #fdfaf5;
  --theme-fg-light: #e4d9c8;
}
body.theme-spring { background: linear-gradient(180deg, #fdf6ee 0%, #eaf7e6 100%); }
body.theme-summer { background: linear-gradient(180deg, #fff8e1 0%, #e0f6fa 100%); }
body.theme-autumn { background: linear-gradient(180deg, #fdf1e0 0%, #f3ddb8 100%); }
body.theme-halloween { background: linear-gradient(180deg, #f3e6f5 0%, #ffe0c2 100%); }
body.theme-diadelosmuertos { background: linear-gradient(180deg, #fff4e0 0%, #ffe0ec 100%); }

.theme-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.theme-particle { position: absolute; top: -10vh; animation-timing-function: linear; animation-iteration-count: infinite; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
body.theme-christmas .theme-particle,
body.theme-winter .theme-particle {
  color: #fff;
  text-shadow: 0 0 6px rgba(70,100,130,0.6), 0 0 12px rgba(70,100,130,0.35), 0 1px 1px rgba(0,0,0,0.25);
}
body.theme-valentines .theme-particle { color: #e0607a; }
body.theme-halloween .theme-particle { color: #6b3fa0; }
body.theme-diadelosmuertos .theme-particle { color: #f2994a; }

.theme-particle.theme-fall { animation-name: theme-fall; }
.theme-particle.theme-sway { animation-name: theme-sway; }
.theme-particle.theme-rise { top: auto; bottom: -10vh; animation-name: theme-rise; }
.theme-particle-icon svg { width: 100%; height: 100%; display: block; }

@keyframes theme-fall {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(120vh) rotate(360deg); }
}
@keyframes theme-sway {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(30px, 30vh) rotate(45deg); }
  50%  { transform: translate(-30px, 60vh) rotate(-30deg); }
  75%  { transform: translate(30px, 90vh) rotate(45deg); }
  100% { transform: translate(-20px, 120vh) rotate(0deg); }
}
@keyframes theme-rise {
  from { transform: translateY(0) scale(0.8); opacity: 0; }
  10%  { opacity: 1; }
  to   { transform: translateY(-120vh) scale(1.1); opacity: 0; }
}

@media (max-width: 800px) {
  .hero, .product-detail, .promo-banner { grid-template-columns: 1fr; }
  /* En celular el menú no se esconde: se vuelve una barra deslizable de
     categorías debajo del logo (antes display:none y no había forma de
     navegar las categorías desde el teléfono). */
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex-shrink: 0; }
  /* Los submenús de hover no funcionan en pantallas táctiles. */
  .main-nav .nav-dropdown { display: none !important; }
  /* Footer en celular: una sola columna centrada — con dos columnas las
     secciones quedaban disparejas y cargadas a la izquierda. */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 32px 20px; }
  .footer-col a { margin-bottom: 10px; }
  .footer-col.newsletter { max-width: 320px; margin: 0 auto; width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { max-width: none; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { max-width: none; }
}

@media (max-width: 480px) {
  /* "clip" en lugar de "hidden": hidden convierte al body en contenedor de
     scroll y rompe el header fijo (position: sticky) en celulares. */
  body { overflow-x: clip; }
  .header-inner { padding: 10px 14px; gap: 8px; }
  .logo img { height: 34px; }
  .site-header .search-form input { width: 118px; padding: 7px 10px 7px 30px; font-size: 12px; background-position: left 9px center; }
  .site-header .search-form input:focus { width: 140px; }
  .header-icons { gap: 6px; }
  .icon-link { font-size: 15px; }
}

/* ─────────────────────────────────────────────────────────────────────
   DINAMISMO GLOBAL DE LA TIENDA — aplica a todas las páginas de cliente.
   ───────────────────────────────────────────────────────────────────── */

/* Íconos del header (buscar, cuenta, carrito): rebotecito al pasar. */
.icon-link { transition: transform .18s cubic-bezier(.34,1.56,.64,1), color .2s ease; }
.icon-link:hover { transform: translateY(-2px) scale(1.12); color: var(--gold-dark); }

/* Buscador: se ilumina con borde dorado al enfocar. */
.search-form input, .form-box input, .form-box select, .form-box textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.search-form input:focus, .form-box input:focus, .form-box select:focus, .form-box textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,63,.15); outline: none; }

/* Botón de contorno con la misma vida que el sólido. */
.btn-outline { transition: background .2s ease, color .2s ease, transform .14s ease, box-shadow .2s ease; }
.btn-outline:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(184,134,63,.2); }
.btn-outline:active { transform: translateY(0); box-shadow: none; }

/* Detalle de producto: la foto principal hace un leve zoom al pasar el mouse. */
.product-detail img.main-image { transition: transform .5s ease, box-shadow .3s ease; cursor: zoom-in; }
.product-detail img.main-image:hover { transform: scale(1.05); box-shadow: 0 12px 30px rgba(0,0,0,.12); }

/* Filtros (categoría/tienda) y selects: sombra suave al enfocar/hover. */
select:hover { border-color: var(--gold); }

/* ─────────────────────────────────────────────────────────────────────
   BARRA DE FILTROS ELEGANTE (tienda / categoría) y buscador del header.
   Selects con fondo crema, borde suave, flecha dorada propia y foco dorado.
   ───────────────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.filter-bar select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background-color: #fff;
  /* flechita dorada dibujada en SVG, sin depender de archivos externos */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23b8863f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 40px 11px 18px;
  cursor: pointer;
  letter-spacing: .01em;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: 0 1px 2px rgba(58,51,44,.04);
}
.filter-bar select:hover { border-color: var(--gold); background-color: var(--cream); }
.filter-bar select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,63,.15); outline: none; }

/* Buscador del header: forma de píldora, lupa integrada y foco dorado. */
.search-form { position: relative; }
.search-form input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px 8px 34px;
  font-size: 13px;
  width: 150px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23a99a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  transition: border-color .2s ease, box-shadow .2s ease, width .25s ease;
}
.search-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,63,.15); outline: none; width: 190px; }

/* Revelado al hacer scroll — para .reveal en cualquier página de cliente. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Los enlaces del footer también responden. */
.footer-col a { transition: color .18s ease, padding-left .18s ease; }
.footer-col a:hover { color: var(--gold-dark); padding-left: 4px; }

@media (prefers-reduced-motion: reduce) {
  .main-nav a::after, .icon-link, .btn, .btn-outline, .product-detail img.main-image, .reveal, .footer-col a { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
}
