/*
 * Dulce Lujuria - Módulo de WooCommerce, Tienda y Tipografía de Contenidos
 * Tarjetas de productos, barra de catálogo, paginación y estilos Gutenberg
 */

/* Tarjetas de Producto en Grids */
.dl-product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .dl-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dl-product-grid { grid-template-columns: repeat(4, 1fr); }
}

.dl-product-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: var(--dl-surface);
  border: 1px solid var(--dl-border-subtle);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.dl-product-card:hover {
  border-color: var(--dl-border);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.dl-product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.dl-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dl-product-card:hover .dl-product-thumb img {
  transform: scale(1.05);
}

.dl-product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dl-accent);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--dl-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

/* Posición absoluta cuando se usa standalone sin .dl-card-badges */
.dl-product-thumb > .dl-product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
}

/* Modificadores de insignia */
.dl-badge-featured,
.dl-badge-top {
  background: rgba(225, 29, 116, 0.25);
  border: 1px solid var(--dl-primary);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dl-product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dl-product-name {
  font-family: var(--dl-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
}
.dl-product-name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.dl-product-name a:hover {
  color: var(--dl-primary);
}

.dl-card-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

/* ==========================================================================
   Tarjetas de Producto - Footer y Acciones (Estándar de Lujo y Cero Overflow)
   ========================================================================== */
.dl-product-footer {
  margin-top: auto;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dl-border-subtle);
  width: 100% !important;
  box-sizing: border-box !important;
}

.dl-product-price,
.dl-card-price-wrap {
  width: 100% !important;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  min-height: 1.6rem;
  box-sizing: border-box !important;
}

.dl-product-price .dl-price-group,
.dl-card-price-wrap .dl-price-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dl-product-price .dl-price-original,
.dl-card-price-wrap .dl-price-original {
  text-decoration: line-through;
  color: var(--dl-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.75;
}

.dl-product-price .dl-price-sale,
.dl-product-price .dl-price-regular,
.dl-card-price-wrap .dl-price-sale,
.dl-card-price-wrap .dl-price-regular {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dl-primary);
  font-family: var(--dl-font-body);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.dl-product-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.45rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dl-product-actions > * {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0.52rem 0.35rem !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  justify-content: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border-radius: 9999px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
}

.dl-product-actions .dl-btn-outline {
  border: 1px solid rgba(225, 29, 116, 0.45);
  background: transparent;
  color: var(--dl-text);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-product-actions .dl-btn-outline:hover {
  background: rgba(225, 29, 116, 0.15);
  border-color: var(--dl-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--dl-primary-glow);
  transform: translateY(-1px);
}

.dl-product-actions .dl-btn-primary {
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-accent));
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 4px 14px var(--dl-primary-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-product-actions .dl-btn-primary:hover {
  box-shadow: 0 6px 22px var(--dl-primary-glow);
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* WooCommerce: Estilos de Tienda y Catálogo */
.woocommerce-breadcrumb {
  font-size: 0.82rem;
  color: var(--dl-text-muted);
  margin-bottom: 1.5rem;
  padding: 0;
}
.woocommerce-breadcrumb a {
  color: var(--dl-text-muted);
}
.woocommerce-breadcrumb a:hover {
  color: var(--dl-primary);
}

/* Nota: Los estilos de navegación por categorías, toolbar pro,
 * chips activos y drawer off-canvas se encuentran desacoplados en catalog-filters.css */

.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--dl-border-subtle);
  color: var(--dl-text);
  font-size: 0.85rem;
}
.woocommerce-pagination ul li span.current {
  background-color: var(--dl-primary);
  border-color: var(--dl-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--dl-primary-glow);
}

/* Tipografía de Artículos de Blog y Páginas de Gutenberg */
.dl-page-body,
.dl-article-body,
.dl-page-custom-content {
  color: var(--dl-text);
  line-height: 1.85;
  font-size: 1.05rem;
}

.dl-page-body h2,
.dl-article-body h2,
.dl-page-custom-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dl-text);
}

.dl-page-body h3,
.dl-article-body h3,
.dl-page-custom-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dl-text);
}

.dl-page-body p,
.dl-article-body p,
.dl-page-custom-content p {
  margin-bottom: 1.5rem;
  color: var(--dl-text);
  opacity: 0.92;
}

.dl-page-body blockquote,
.dl-article-body blockquote,
.dl-page-custom-content blockquote {
  border-left: 3px solid var(--dl-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--dl-surface);
  border-radius: 0 0.75rem 0.75rem 0;
  font-family: var(--dl-font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dl-text);
}

.dl-page-body ul,
.dl-article-body ul,
.dl-page-custom-content ul,
.dl-page-body ol,
.dl-article-body ol,
.dl-page-custom-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
  color: var(--dl-text-muted);
}

.dl-page-body li,
.dl-article-body li,
.dl-page-custom-content li {
  margin-bottom: 0.5rem;
}

.dl-page-body a,
.dl-article-body a,
.dl-page-custom-content a {
  color: var(--dl-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-page-body a:hover,
.dl-article-body a:hover,
.dl-page-custom-content a:hover {
  color: var(--dl-primary-hover);
}

/* Paginación del Blog */
.nav-links {
  display: inline-flex;
  gap: 0.5rem;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--dl-border-subtle);
  color: var(--dl-text);
  font-size: 0.85rem;
  text-decoration: none;
}
.nav-links .page-numbers.current {
  background-color: var(--dl-primary);
  border-color: var(--dl-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--dl-primary-glow);
}

/* =========================================================================
   Barra Flotante de Compra Rápida (Sticky Add-to-Cart Móvil / Desktop)
   ========================================================================= */
.dl-sticky-product-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(23, 16, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--dl-border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--dl-primary-glow);
  padding: 0.65rem 0;
  z-index: 80;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dl-sticky-product-bar.is-visible {
  transform: translateY(0);
}
.dl-sticky-product-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dl-sticky-product-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.dl-sticky-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--dl-border-subtle);
  flex-shrink: 0;
}
.dl-sticky-product-meta {
  min-width: 0;
}
.dl-sticky-product-title {
  font-size: 0.85rem;
  font-family: var(--dl-font-display);
  color: #fff;
  margin: 0 0 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.dl-sticky-product-price {
  font-size: 0.82rem;
  color: var(--dl-primary);
  font-weight: 600;
}
.dl-sticky-product-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .dl-sticky-product-title {
    max-width: 140px;
  }
}

/* Evitar que el botón flotante de WhatsApp tape la barra sticky de compra */
body:has(.dl-sticky-product-bar.is-visible) .dl-floating-wa {
  bottom: 5.25rem;
  transition: bottom 0.3s ease;
}

/* =========================================================================
 * Sección de Reseñas y Experiencias de Clientes (Lujo, Privacidad & CRO 2026)
 * ========================================================================= */
.dl-reviews-section {
  width: 100%;
}
.dl-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.dl-reviews-header-info {
  flex: 1;
  min-width: 280px;
}
.dl-reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dl-primary);
  background: rgba(225, 29, 116, 0.08);
  border: 1px solid rgba(225, 29, 116, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.dl-reviews-title {
  font-family: var(--dl-font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.dl-reviews-subtitle {
  color: var(--dl-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}
.dl-reviews-scorecard {
  background: rgba(30, 12, 28, 0.65);
  border: 1px solid var(--dl-border-subtle);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  min-width: 260px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.dl-scorecard-big-rating {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.dl-scorecard-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--dl-font-display);
  line-height: 1;
}
.dl-scorecard-max {
  font-size: 1rem;
  color: var(--dl-text-muted);
  font-weight: 400;
}
.dl-scorecard-stars {
  margin-bottom: 0.25rem;
}
.dl-scorecard-stars .dl-star-active {
  color: #f59e0b;
}
.dl-scorecard-count {
  font-size: 0.8rem;
  color: var(--dl-text-muted);
  margin: 0 0 0.5rem 0;
}
.dl-scorecard-empty {
  padding: 0.5rem 0;
}
.dl-scorecard-empty-icon {
  color: var(--dl-text-muted);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}
.dl-scorecard-empty-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
}
.dl-scorecard-empty-desc {
  color: var(--dl-text-muted);
  font-size: 0.8rem;
  margin: 0 0 0.75rem 0;
  max-width: 210px;
  line-height: 1.4;
}
.dl-btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Grilla de Reseñas */
.dl-reviews-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .dl-reviews-body-grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }
}

/* Listado de Opiniones */
.dl-reviews-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dl-review-card {
  background: var(--dl-surface);
  border: 1px solid var(--dl-border-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.dl-review-card:hover {
  border-color: rgba(225, 29, 116, 0.3);
  transform: translateY(-2px);
}
.dl-review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dl-review-author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dl-review-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(225, 29, 116, 0.25), rgba(80, 20, 60, 0.4));
  border: 1px solid rgba(225, 29, 116, 0.35);
  color: var(--dl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  flex-shrink: 0;
}
.dl-review-author-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dl-review-author-alias {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}
.dl-review-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-weight: 500;
}
.dl-review-date {
  font-size: 0.75rem;
  color: var(--dl-text-muted);
  display: block;
}
.dl-review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0;
}
.dl-review-stars .dl-star-active {
  color: #f59e0b;
}
.dl-review-awaiting-moderation {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  font-style: normal;
}
.dl-review-content {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}
.dl-review-content p {
  margin: 0;
}
.dl-review-content p + p {
  margin-top: 0.75rem;
}
.dl-reviews-no-comments {
  padding: 3.5rem 2rem;
  text-align: center;
  border-radius: 1.25rem;
  background: rgba(30, 12, 28, 0.45);
  border: 1px dashed rgba(225, 29, 116, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}
.dl-reviews-no-comments-icon {
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  background: rgba(225, 29, 116, 0.1);
  border: 1px solid rgba(225, 29, 116, 0.28);
  color: var(--dl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.dl-reviews-no-comments-title {
  font-family: var(--dl-font-display);
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}
.dl-reviews-no-comments-desc {
  font-size: 0.88rem;
  color: var(--dl-text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0;
}
.dl-reviews-no-comments-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}
.dl-reviews-no-comments-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

/* Ocultar selector redundante o desalineado inyectado por WooCommerce y checkbox de cookies */
.dl-product-reviews p.stars,
.dl-review-form-card p.stars,
.comment-form-rating p.stars,
.woocommerce-product-rating-stars {
  display: none !important;
}
.comment-form-cookies-consent {
  display: none !important;
}

/* Tarjeta Formulario de Reseña */
.dl-review-form-card {
  background: rgba(30, 12, 28, 0.65);
  border: 1px solid var(--dl-border-subtle);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
@media (min-width: 960px) {
  .dl-review-form-card {
    position: sticky;
    top: 6.5rem;
  }
}
.dl-review-form-title {
  font-family: var(--dl-font-display);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.dl-reviews-form-privacy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--dl-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.dl-reviews-form-privacy svg {
  color: var(--dl-primary);
  flex-shrink: 0;
}
.dl-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.dl-form-group label {
  font-size: 0.84rem;
  color: #fff;
  font-weight: 500;
}
.dl-input,
.dl-textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--dl-border-subtle);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.dl-input:focus,
.dl-textarea:focus {
  outline: none;
  border-color: var(--dl-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 116, 0.2);
}
.dl-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Selector Interactivo de Estrellas */
.dl-star-rating-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0;
}
.dl-star-pick {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--dl-text-muted);
  opacity: 0.35;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}
.dl-star-pick:hover,
.dl-star-pick.is-hover {
  transform: scale(1.18);
  color: #f59e0b;
  opacity: 1;
}
.dl-star-pick:focus-visible {
  outline: 2px solid var(--dl-primary);
  outline-offset: 3px;
  border-radius: 4px;
  opacity: 1;
}
.dl-star-pick.is-active {
  color: #f59e0b;
  opacity: 1;
}
.dl-star-pick svg {
  fill: currentColor;
}
.dl-star-rating-label {
  margin-left: 0.6rem;
  font-size: 0.8rem;
  color: var(--dl-text-muted);
  font-weight: 500;
}
.dl-review-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* =========================================================================
   Ficha de Producto Individual (Single Product Layout - UX 2026)
   ========================================================================= */
.dl-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--dl-surface);
  border: 1px solid var(--dl-border);
  border-radius: 2rem;
  padding: 1.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .dl-single-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    padding: 2.5rem;
  }
}

.dl-single-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* =========================================================================
   Galería de Producto (Multi-Imagen Slider / Thumbnails - UX Sticky)
   ========================================================================= */
.dl-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
  outline: none;
  align-self: start;
  width: 100%;
}

@media (min-width: 860px) {
  .dl-product-gallery {
    position: sticky;
    top: calc(var(--dl-header-height, 76px) + 2rem);
    z-index: 2;
  }
}

.dl-product-gallery:focus-visible {
  outline: 2px solid var(--dl-primary);
  outline-offset: -2px;
}

.dl-gallery-main-viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--dl-border-subtle);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.45);
  cursor: crosshair;
}

/* Track de slides */
.dl-gallery-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.dl-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.dl-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Flechas de Navegación (Glassmorphism Premium) */
.dl-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 15, 19, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  opacity: 0;
}

.dl-gallery-main-viewer:hover .dl-gallery-nav {
  opacity: 1;
}

.dl-gallery-nav:hover {
  background: var(--dl-primary);
  border-color: var(--dl-primary);
  box-shadow: 0 0 20px var(--dl-primary-glow);
  transform: translateY(-50%) scale(1.08);
}

.dl-gallery-nav:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

.dl-gallery-prev {
  left: 0.85rem;
}

.dl-gallery-next {
  right: 0.85rem;
}

/* Contador de posición */
.dl-gallery-counter {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(20, 15, 19, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* Thumbnails de Navegación */
.dl-gallery-thumbnails {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent;
}

.dl-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.dl-gallery-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.65;
  padding: 0;
}

.dl-gallery-thumb:hover {
  opacity: 0.95;
  border-color: rgba(225, 29, 116, 0.45);
  transform: translateY(-2px);
}

.dl-gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--dl-primary);
  box-shadow: 0 0 14px var(--dl-primary-glow);
  transform: translateY(-2px);
}

.dl-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive: Thumbnails más pequeños en móvil */
@media (max-width: 640px) {
  .dl-gallery-thumb {
    width: 50px;
    height: 50px;
  }
  .dl-gallery-nav {
    width: 36px;
    height: 36px;
    opacity: 0.8;
  }
  .dl-gallery-main-viewer:hover .dl-gallery-nav {
    opacity: 1;
  }
  .dl-gallery-prev {
    left: 0.5rem;
  }
  .dl-gallery-next {
    right: 0.5rem;
  }
}

/* =========================================================================
   Tarjeta de Producto: Imagen Secundaria al Hover (UX 2026: Multi-angle Exploration)
   ========================================================================= */
.has-hover-image {
  position: relative;
}

.has-hover-image .dl-thumb-primary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.has-hover-image .dl-thumb-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

/* El efecto hover flip solo se activa al pasar el cursor sobre la foto misma o enlace directo */
.dl-card-thumb-wrap:hover .dl-thumb-secondary,
.dl-product-thumb:hover .dl-thumb-secondary,
.dl-card-thumb-link:hover .dl-thumb-secondary {
  opacity: 1 !important;
  transform: scale(1.04);
}

.dl-card-thumb-wrap:hover .dl-thumb-primary,
.dl-product-thumb:hover .dl-thumb-primary {
  transform: scale(1.04);
}

/* Si el cursor está sobre la botonera de presentaciones, siempre forzar visibilidad de la foto seleccionada */
.dl-product-card:has(.dl-card-swatches-wrap:hover) .dl-thumb-secondary,
.dl-card-swatches-wrap:hover ~ .dl-card-thumb-wrap .dl-thumb-secondary {
  opacity: 0 !important;
}

/* Badge contador de fotos */
.dl-photos-badge {
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* =========================================================================
   Presentaciones / Variaciones en Tarjeta y Quick View (UX CRO 2026)
   Eliminación de fricción: selección directa de aroma/presentación y compra ágil
   ========================================================================= */

/* Envoltorio en Tarjeta de Producto */
.dl-card-swatches-wrap {
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 5;
}

.dl-card-swatches-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dl-primary, #e11d74);
  font-weight: 700;
  display: block;
}

.dl-card-swatches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

/* Chip individual de presentación en tarjeta */
.dl-card-swatch-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.24rem 0.6rem;
  font-size: 0.73rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}

.dl-card-swatch-chip:hover:not(.is-disabled) {
  border-color: var(--dl-primary, #e11d74);
  background: rgba(225, 29, 116, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.dl-card-swatch-chip.is-selected {
  background: linear-gradient(135deg, rgba(225, 29, 116, 0.28) 0%, rgba(157, 23, 77, 0.42) 100%);
  border-color: var(--dl-primary, #e11d74);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(225, 29, 116, 0.3);
}

.dl-card-swatch-chip.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

/* Envoltorio de Presentaciones en Modal Quick View */
.dl-modal-swatches-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  padding: 0.85rem;
  margin-bottom: 1.15rem;
}

.dl-modal-swatches-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dl-primary, #e11d74);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.dl-modal-swatches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Chip individual de presentación en modal */
.dl-modal-swatch-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6rem;
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
  font-family: inherit;
}

.dl-modal-swatch-chip:hover:not(.is-disabled) {
  border-color: var(--dl-primary, #e11d74);
  background: rgba(225, 29, 116, 0.15);
  transform: translateY(-1px);
}

.dl-modal-swatch-chip.is-selected {
  background: linear-gradient(135deg, rgba(225, 29, 116, 0.3) 0%, rgba(157, 23, 77, 0.45) 100%);
  border-color: var(--dl-primary, #e11d74);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(225, 29, 116, 0.35);
}

.dl-modal-swatch-chip.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: rgba(255, 255, 255, 0.08);
}

.dl-modal-swatch-price {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
  padding-left: 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================================================
   Bloque Dinámico de Descripción de Variación (Baymard UX / WCAG 2.2)
   ========================================================================= */
.dl-variation-desc-box {
  margin: 1rem 0 1.25rem 0;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  background: rgba(225, 29, 116, 0.04);
  border: 1px solid rgba(225, 29, 116, 0.2);
  border-left: 3px solid var(--dl-primary, #e11d74);
  font-size: 0.88rem;
  color: var(--dl-text);
  line-height: 1.6;
}

.dl-var-desc-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dl-primary, #e11d74);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dl-var-desc-badge strong {
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.dl-var-desc-text {
  color: var(--dl-text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.dl-var-desc-text p:last-child {
  margin-bottom: 0;
}

/* Descripción Dinámica Reactiva en Tarjeta de Producto */
.dl-product-card-desc {
  font-size: 0.82rem;
  color: var(--dl-text-muted);
  margin-bottom: 0.75rem;
  min-height: 2.2em;
  line-height: 1.45;
  transition: opacity 0.18s ease;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dl-product-card-desc strong {
  color: var(--dl-primary, #e11d74);
  font-weight: 700;
}
