/* ==========================================================================
   VELLA PERFUMERÍA — CATÁLOGO 13: HOJA DE ESTILOS CSS OFICIAL
   --------------------------------------------------------------------------
   OFERTAS Y NOVEDADES CON MÁXIMA LEGIBILIDAD DE LETRAS,
   DESCRIPCIONES COMPLETAS Y PRECIO ACTUAL DESTACADO.
   Compatible con WordPress, Elementor, WooCommerce, Divi y HTML estándar.
   ========================================================================== */

/* 1. TIPOGRAFÍA Y VARIABLES MAESTRAS */
:root {
  --c13-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --c13-color-gold: #f59e0b;
  --c13-color-gold-hover: #d97706;
  --c13-color-pink: #ec4899;
  --c13-color-pink-hover: #db2777;
  --c13-color-red: #ef4444;
  --c13-color-green: #25d366;
  --c13-color-green-hover: #128c7e;

  /* Modo Oscuro Boutique de Lujo (Por Defecto) */
  --c13-bg-page: #09090b;
  --c13-bg-card: #18181b;
  --c13-bg-inner: #27272a;
  --c13-border-card: #2e2e33;
  --c13-border-hover: rgba(236, 72, 153, 0.65);
  --c13-text-title: #ffffff;
  --c13-text-brand: #ea9ec3;
  --c13-text-desc: #e4e4e7;
  --c13-text-price-current: #fbbf24;
  --c13-text-price-old: #a1a1aa;
}

/* Modo Claro Opcional (se activa añadiendo la clase .c13-light-mode) */
.c13-light-mode {
  --c13-bg-page: #f8fafc;
  --c13-bg-card: #ffffff;
  --c13-bg-inner: #f1f5f9;
  --c13-border-card: #e2e8f0;
  --c13-border-hover: #ec4899;
  --c13-text-title: #0f172a;
  --c13-text-brand: #c2185b;
  --c13-text-desc: #334155;
  --c13-text-price-current: #d97706;
  --c13-text-price-old: #64748b;
}

/* 2. CONTENEDOR Y REJILLA RESPONSIVA */
.vella-c13-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 14px;
  font-family: var(--c13-font-family);
  box-sizing: border-box;
}

.vella-c13-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .vella-c13-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
  }
}

/* 3. TARJETA DE PRODUCTO */
.vella-c13-card {
  background-color: var(--c13-bg-card);
  border: 1.5px solid var(--c13-border-card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  box-sizing: border-box;
}

.vella-c13-card:hover {
  transform: translateY(-5px);
  border-color: var(--c13-border-hover);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
}

/* 4. CABECERA VISUAL: IMAGEN Y ETIQUETAS NOVEDAD / OFERTA */
.vella-c13-img-box {
  width: 100%;
  height: 240px;
  background-color: #0b0b0e;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--c13-border-card);
}

.vella-c13-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}

.vella-c13-card:hover .vella-c13-img {
  transform: scale(1.08);
}

.vella-c13-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
}

.vella-c13-badge-promo {
  background-color: var(--c13-color-red);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.45);
}

.vella-c13-badge-cat {
  background-color: rgba(0, 0, 0, 0.78);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* 5. CUERPO DE LA FICHA: LETRAS CLARAS Y DESCRIPCIONES VISIBLES */
.vella-c13-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  box-sizing: border-box;
}

.vella-c13-brand {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--c13-text-brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.vella-c13-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c13-text-title);
  line-height: 1.35;
  margin: 0 0 10px 0;
  letter-spacing: -0.2px;
  word-break: break-word;
}

/* DESCRIPCIÓN ULTRA LEGIBLE Y NÍTIDA */
.vella-c13-description {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--c13-text-desc);
  margin-bottom: 16px;
  background-color: var(--c13-bg-inner);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.vella-c13-description::-webkit-scrollbar {
  width: 4px;
}
.vella-c13-description::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* 6. CAJA DE PRECIOS DEL CATÁLOGO 13 */
.vella-c13-price-box {
  background: linear-gradient(135deg, rgba(39, 39, 42, 0.9) 0%, rgba(24, 24, 27, 0.95) 100%);
  border: 1.5px solid var(--c13-border-card);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.vella-c13-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vella-c13-price-current-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vella-c13-price-current {
  font-size: 25px;
  font-weight: 900;
  color: var(--c13-text-price-current);
  letter-spacing: -0.5px;
  line-height: 1;
}

.vella-c13-price-old {
  font-size: 14px;
  font-weight: 600;
  color: var(--c13-text-price-old);
  text-decoration: line-through;
}

.vella-c13-discount-tag {
  background-color: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.vella-c13-vip-benefit {
  font-size: 11px;
  font-weight: 700;
  color: #6ee7b7;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 7. BOTONES DE ACCIÓN: COMPRA Y WHATSAPP */
.vella-c13-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vella-c13-btn-buy {
  background: linear-gradient(135deg, var(--c13-color-pink) 0%, var(--c13-color-pink-hover) 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 11px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.vella-c13-btn-buy:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  color: #ffffff;
}

.vella-c13-btn-wa {
  background-color: var(--c13-color-green);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 11px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.vella-c13-btn-wa:hover {
  background-color: var(--c13-color-green-hover);
  transform: scale(1.02);
  color: #ffffff;
}

/* 8. ADAPTABILIDAD MÓVIL TOTAL */
@media (max-width: 480px) {
  .vella-c13-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vella-c13-img-box {
    height: 220px;
  }
  .vella-c13-price-current {
    font-size: 23px;
  }
}
