@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600&family=Manrope:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/*
=======================================================================================
SUNHO K-BEAUTY
=======================================================================================
*/

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors — Soft lavender/purple palette */
  --primary: #9B6FDF;
  --primary-light: #C4A1F0;
  --primary-dark: #7B4FBF;
  --primary-bg: #F4EEFF;
  --primary-bg-deep: #E8DAFF;

  --accent: #FF6B2B;
  --accent-light: #F5C970;

  --mint: #A8E6CF;
  --mint-bg: #E8FFF3;

  --coral: #FF7F6E;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FDFBFF;
  --gray-50: #FAF8FE;
  --gray-100: #F2EEF8;
  --gray-200: #E5E0EE;
  --gray-300: #C8C1D4;
  --gray-400: #9A93A8;
  --gray-500: #706A7E;
  --gray-600: #534D60;
  --gray-700: #3A3548;
  --gray-800: #252030;
  --gray-900: #150F22;

  /* Typography */
  --font-primary: 'Be Vietnam Pro', sans-serif;
  /* Párrafos y descripciones */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  /* Títulos, Logos, Botones */
  --font-ui: 'Manrope', sans-serif;
  /* Menús, subtítulos, navegación */

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(21, 15, 34, 0.04), 0 1px 2px rgba(21, 15, 34, 0.06);
  --shadow-md: 0 4px 14px rgba(21, 15, 34, 0.06), 0 2px 6px rgba(21, 15, 34, 0.04);
  --shadow-lg: 0 10px 30px rgba(21, 15, 34, 0.08), 0 4px 12px rgba(21, 15, 34, 0.04);
  --shadow-xl: 0 20px 50px rgba(21, 15, 34, 0.10), 0 8px 20px rgba(21, 15, 34, 0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Z-index */
  --z-sticky: 200;
  --z-overlay: 5000;
  --z-modal: 6000;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Accessible hidden content for SEO */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 0.9rem;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(155, 111, 223, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 111, 223, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 0.95rem;
}

/* ============================================
   TOP BAR & NAVBAR
   ============================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-ui);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  line-height: 1.4;
}

/* Shorten top-bar on mobile so it stays 1–2 lines max */
.top-bar-short { display: none; }
.top-bar-full  { display: inline; }

@media (max-width: 600px) {
  .top-bar {
    font-size: 0.72rem;
    padding: 5px 12px;
    font-weight: 500;
  }
  .top-bar strong {
    font-weight: 700;
  }
  /* El banner de envíos ahora siempre muestra el texto completo en móviles */
}

body.has-top-bar {
  padding-top: 36px;
}

body.has-top-bar .navbar {
  top: 36px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}


/* Estilo por defecto para todas las páginas */
.nav-links a,
.nav-logo span,
.nav-search,
.nav-cart {
  color: var(--gray-800) !important;
}

.nav-cart {
  background: var(--gray-50);
}

.navbar .container {
  max-width: 1400px;
}

.navbar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  justify-content: flex-start;
  font-family: var(--font-ui);
}

.nav-logo {
  justify-self: center;
  display: flex;
  align-items: center;
}

.nav-actions {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-search {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: color var(--transition-fast);
}

.nav-search:hover {
  color: var(--primary);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-logo img {
  height: 88px;
  width: auto;
  transition: all var(--transition-base);
  object-fit: contain;
}

/* ── nav-left wrapper (desktop: transparent pass-through) ── */
.nav-left {
  display: contents; /* behaves like it's not there on desktop */
}

.nav-mobile-left {
  display: none; /* hidden on desktop */
}

.nav-search-mobile {
  display: none;
}

/* ── Mobile navbar: Harumi-style layout ── */
@media (max-width: 768px) {

  /* Switch grid to 3 real columns: [left] [logo] [right] */
  .navbar-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
    padding: 0 var(--sp-4);
  }

  /* nav-left becomes a real flex box on the left */
  .nav-left {
    display: flex;
    align-items: center;
  }

  /* Hide desktop links on mobile */
  .nav-links {
    display: none;
  }

  /* Show mobile-left (toggle + search) */
  .nav-mobile-left {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
  }

  /* Logo fills center column, centered */
  .nav-logo {
    justify-self: center;
  }

  .nav-logo img {
    height: 72px;
  }

  /* Right side: hide desktop search, keep user + cart */
  .nav-search-desktop {
    display: none;
  }

  .nav-search-mobile {
    display: flex;
  }

  /* Compact icon sizes */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;   /* spans fill the button width */
    width: 36px;
    height: 36px;
    gap: 5px;
    padding: 6px 4px;
    cursor: pointer;
  }

  .mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    display: block;
  }

  .mobile-toggle span:nth-child(2) {
    width: 70%;
  }

  .nav-search,
  .nav-user,
  .nav-cart {
    width: 36px;
    height: 36px;
  }

  .nav-actions {
    gap: var(--sp-1);
  }

  .navbar {
    padding: 4px 0;
  }

}

.footer-logo img {
  height: 160px;
  width: auto;
  display: block;
  margin-left: -12px;
  margin-top: -20px; /* Alineación vertical con los títulos de las otras columnas */
  /* Filtro removido para mantener colores originales */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-500);
  position: relative;
  padding: var(--sp-1) 0;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--gray-700);
}

.nav-cart:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.nav-user {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--gray-700);
}

.nav-user:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.nav-user-initial {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.nav-cart .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--off-white);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.mobile-toggle span {
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle span:nth-child(2) {
  width: 70%;
}

/* Mobile Nav Panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: var(--z-modal);
  padding: var(--sp-8);
  transition: right var(--transition-slow);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 15, 34, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav-overlay.active {
  opacity: 1;
}

.mobile-nav-close {
  font-size: 1.5rem;
  color: var(--gray-600);
  margin-bottom: var(--sp-8);
}

.mobile-nav a {
  display: block;
  padding: var(--sp-4) 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 var(--sp-12);
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-bg-deep);
  top: -100px;
  right: -80px;
  animation: blobFloat1 12s ease-in-out infinite;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(168, 230, 207, 0.4);
  bottom: -50px;
  left: -50px;
  animation: blobFloat2 10s ease-in-out infinite;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(232, 168, 56, 0.15);
  top: 40%;
  left: 30%;
  animation: blobFloat3 8s ease-in-out infinite;
}

@keyframes blobFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 20px) scale(1.05);
  }
}

@keyframes blobFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -30px) scale(1.08);
  }
}

@keyframes blobFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-15px, -20px) scale(1.1);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--primary-bg);
  border: 1px solid rgba(155, 111, 223, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.5);
  }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--gray-900);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.03em;
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero-title-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  display: block;
  font-size: 0.95em;
}

.hero-description {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 400px;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.hero-cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-product-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(160deg, #F5E6D3 0%, #E8D5C0 40%, #DCC8A8 100%);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.product-placeholder-hero {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-bottle {
  width: 40%;
  height: 70%;
  background: linear-gradient(180deg, #C28B4E 0%, #A67040 30%, #8B5A2B 100%);
  border-radius: 8px 8px 4px 4px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-bottle::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 18%;
  background: linear-gradient(180deg, #D4A76A, #C28B4E);
  border-radius: 3px 3px 0 0;
}

.hero-bottle::after {
  content: 'SUNHO';
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================
   SLOGAN SECTION
   ============================================ */
.slogan-section {
  padding: var(--sp-8) 0 var(--sp-4);
  background: var(--off-white);
}

.slogan-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}

.slogan-tag {
  display: inline-block;
  background: var(--mint);
  color: var(--gray-700);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
}

.slogan-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  max-width: 820px;
  letter-spacing: -0.03em;
}

.slogan-text em {
  font-style: italic;
  color: var(--primary);
  font-weight: 800;
}

/* ============================================
   BEST SELLERS — PRODUCTS
   ============================================ */
.bestsellers-section {
  padding: var(--sp-8) 0 var(--sp-20);
  background: var(--off-white);
}

.bestsellers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-10);
}

.bestsellers-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.view-all-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  transform: translateX(4px);
}

/* Product Row */
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.product-grid-v3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.product-row-reverse {
  grid-template-columns: 1fr;
}

/* Product Card V2 */
.product-card-v2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.product-card-v2 a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-v2-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  align-items: center;
}

.product-card-v2-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.product-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-card-v2-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card-tall {
  grid-row: span 2;
}

.product-card-tall .product-card-v2-image {
  aspect-ratio: 4/5;
}

/* Home Page Quick Add Button (to match catalog) */
/* Global Quick Add Button (Shared between Catalog and Home) */
.cat-quick-add {
  background: var(--off-white);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
  cursor: pointer;
  z-index: 2;
}

.cat-quick-add:hover {
  transform: scale(1.15);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 20px rgba(155, 111, 223, 0.4);
  animation: buttonPulse 1.5s infinite;
}

.cat-quick-add:hover::before,
.cat-quick-add:hover::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239B6FDF'%3E%3Cpath d='M12 1L14.39 8.26H22L15.81 12.74L18.19 20L12 15.52L5.81 20L8.19 12.74L2 8.26H9.61L12 1Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: sparkles 0.8s ease-out infinite;
  pointer-events: none;
  z-index: 11;
}

.cat-quick-add:hover::before { top: -12px; left: -2px; }
.cat-quick-add:hover::after { bottom: -10px; right: -4px; animation-delay: 0.3s; }

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(155, 111, 223, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(155, 111, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 111, 223, 0); }
}

@keyframes sparkles {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  50% { transform: translate(-5px, -5px) scale(1.2) rotate(45deg); opacity: 1; }
  100% { transform: translate(-10px, -10px) scale(0) rotate(90deg); opacity: 0; }
}

.product-add-btn:hover::before { top: -12px; left: -2px; }
.product-add-btn:hover::after { bottom: -10px; right: -4px; animation-delay: 0.3s; }

.product-card-v2-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.product-subtitle {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: var(--sp-3);
}

.price {
  color: var(--mint); /* Brand Price Color */
}

/* CSS Product Shapes — Silhouette placeholders (Global) */
.cat-product-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-slow);
}

.product-card-v2:hover .cat-product-shape {
  transform: translateY(-6px) scale(1.02);
}

.shape-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Bottle Round Shape */
.shape-bottle-round {
  width: 65px;
  height: 110px;
  background: linear-gradient(180deg, #A2DFF7 0%, #76C7E8 50%, #4FA3C4 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.shape-bottle-round::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 20px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px 4px 0 0;
}

/* Tube Shape */
.shape-tube {
  width: 55px;
  height: 120px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8E8FF 50%, #E9D1FF 100%);
  border-radius: 22px 22px 10px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.shape-tube::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px 6px 0 0;
}

/* Spray Shape */
.shape-spray {
  width: 60px;
  height: 160px;
  background: linear-gradient(180deg, #F0C4FF 0%, #E19BFF 50%, #C466FF 100%);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.shape-spray::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 22px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px 6px 0 0;
}

.shape-spray::after {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* Dropper Shape */
.shape-dropper {
  width: 45px;
  height: 110px;
  background: linear-gradient(180deg, #A8E6CF 0%, #76D2B0 50%, #46B580 100%);
  border-radius: 8px 8px 14px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.shape-dropper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px 8px 3px 3px;
}

/* Jar Shape */
.shape-jar {
  width: 85px;
  height: 75px;
  background: linear-gradient(180deg, #FFD59E 0%, #FCB65E 50%, #E88F2A 100%);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.shape-jar::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px 8px 0 0;
}

/* Tall Bottle (Featured) */
.shape-bottle-tall {
  width: 55px;
  height: 145px;
  background: linear-gradient(180deg, #D4A76A 0%, #B8834A 40%, #A06B30 100%);
  border-radius: 6px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.shape-bottle-tall::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(180deg, #E8C894, #D4A76A);
  border-radius: 4px 4px 0 0;
}

/* ============================================
   SKIN QUIZ CTA
   ============================================ */
.skin-quiz-cta {
  padding: var(--sp-16) 0;
}

.quiz-cta-card {
  background: linear-gradient(135deg, #9B6FDF 0%, #7B4FBF 100%);
  border-radius: var(--radius-2xl);
  padding: var(--sp-12) var(--sp-16);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-10);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.quiz-cta-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(155, 111, 223, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.quiz-cta-content {
  position: relative;
  z-index: 1;
}

.quiz-cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.quiz-cta-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  max-width: 420px;
}

.quiz-cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.quiz-visual-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 90px rgba(155, 111, 223, 0.35);
}

.quiz-face-img {
  width: 260px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.18));
  animation: floatSoft 4s ease-in-out infinite;
  z-index: 2;
}

.quiz-face-svg {
  display: none;
}

/* Floating Bubbles */
.quiz-bubble {
  position: absolute;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-lg);
  color: var(--gray-800);
  pointer-events: none;
  animation: floatSlow 6s ease-in-out infinite;
}

.bubble-top {
  top: -10px;
  right: -30px;
  background: #A8E6CF; /* Mint */
  transform: rotate(12deg);
  --rot: 12deg;
}

.bubble-bottom {
  bottom: -15px;
  left: -40px;
  background: #FFB38E; /* Coral */
  transform: rotate(-8deg);
  animation-delay: -1.5s;
  --rot: -8deg;
}

.bubble-left {
  top: 40%;
  left: -120px;
  background: #C4A1F0; /* Lavender */
  transform: rotate(-15deg);
  animation-delay: -3s;
  --rot: -15deg;
}

.bubble-mid-right {
  bottom: 25%;
  right: -90px;
  background: #8AD7FF; /* Sky Blue */
  transform: rotate(-5deg);
  animation-delay: -2.2s;
  --rot: -5deg;
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translate(0, 0) rotate(var(--rot));
  }

  50% {
    transform: translate(4px, -15px) rotate(var(--rot));
  }
}

.bubble-top {
  --rot: 12deg;
}

.bubble-bottom {
  --rot: -8deg;
}

@keyframes floatSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ============================================
   TESTIMONIALS — GLOW-GANG
   ============================================ */
.testimonials-section {
  padding: var(--sp-20) 0;
  background: var(--off-white);
}

.testimonials-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-12);
  letter-spacing: -0.02em;
}

.testimonials-title span {
  color: var(--primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.testimonial-card-v2 {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.testimonial-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-bg-deep);
}

/* ── Valoración con estrellas fraccionadas ── */
.star-rating {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  vertical-align: middle;
  flex-shrink: 0;
}

.star-rating--sm {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.star-rating--md {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.star-rating__track {
  color: #e4e4e7;
  display: block;
}

.star-rating__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #E8A838;
  white-space: nowrap;
  display: block;
}

.testimonial-stars-v2 {
  color: #FFC107;
  font-size: 0.9rem;
  margin-bottom: var(--sp-4);
  letter-spacing: 2px;
}

.testimonial-text-v2 {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  font-style: normal;
  border: none;
}

.testimonial-author-v2 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-avatar-v2 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.avatar-green {
  background: linear-gradient(135deg, #A8E6CF, #6DC9A0);
}

.avatar-orange {
  background: linear-gradient(135deg, #F5C970, #E8A838);
}

.avatar-purple {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.testimonial-name-v2 {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-800);
}

.testimonial-location-v2 {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ============================================
   GLOW CLUB — NEWSLETTER
   ============================================ */
.glow-club-section {
  padding: var(--sp-16) 0 var(--sp-20);
}

.glow-club-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-6);
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .glow-club-grid {
    grid-template-columns: 1fr;
  }
}

.glow-club-card {
  background: linear-gradient(135deg, #1A8C55 0%, #11683E 100%);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8) var(--sp-10);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-cta-card {
  background: linear-gradient(135deg, var(--accent) 0%, #FF8A00 100%);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8) var(--sp-10);
  text-align: center;
  color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.glow-club-form,
.blog-cta-card .btn {
  margin-top: auto !important; /* Force it to bottom regardless of other margin rules */
}

.blog-cta-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.blog-cta-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
}

.blog-cta-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}

.blog-cta-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  max-width: 320px;
}

.glow-club-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
}

.glow-club-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}

.glow-club-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.glow-club-card p strong {
  color: var(--primary-bg);
}

.glow-club-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 420px;
  width: 100%;
}

.glow-club-form input {
  flex: 1;
  padding: var(--sp-3) var(--sp-5);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast);
  color: var(--gray-800);
}

.glow-club-form input::placeholder {
  color: var(--gray-300);
}

.glow-club-form input:focus {
  border-color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand .footer-logo {
  margin-bottom: var(--sp-4);
  display: flex;
  justify-content: flex-start;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.footer-socials {
  display: flex;
  gap: var(--sp-3);
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

/* Brand Colors for Footer Socials */
.footer-socials a[aria-label="Instagram"] {
  background: linear-gradient(135deg, #fdf497 0%, #fd5949 30%, #d6249f 60%, #285AEB 100%);
  color: white;
  opacity: 0.85;
}
.footer-socials a[aria-label="Instagram"]:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.4);
}

.footer-socials a[aria-label*="TikTok"] {
  background: #000000;
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-socials a[aria-label*="TikTok"]:hover {
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.footer-socials a[aria-label*="WhatsApp"] {
  background: #25D366;
  color: white;
  opacity: 0.9;
}
.footer-socials a[aria-label*="WhatsApp"]:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.footer-socials a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-5);
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
  display: block;
  padding: var(--sp-2) 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-icon {
  width: 32px;
  height: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.payment-icon:hover {
  opacity: 1;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-6);
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

.footer-brand-flags {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.footer-brand-flags img {
  width: 48px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.footer-brand-flags img:hover {
  transform: scale(1.1);
}

.footer-brand-flags svg {
  width: 28px;
  height: 28px;
  color: #ff4d4d;
  filter: drop-shadow(0 4px 10px rgba(255, 77, 77, 0.5));
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-description {
    margin: 0 auto var(--sp-8);
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-product-image {
    max-width: 380px;
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-row,
  .product-grid-v3 {
    grid-template-columns: 1fr;
  }

  .product-card-tall .product-card-v2-image {
    aspect-ratio: 16/10;
  }

  .product-card-tall {
    grid-row: span 1;
  }

  .quiz-cta-card {
    grid-template-columns: 1fr;
    padding: var(--sp-10);
    text-align: center;
  }

  .quiz-cta-content p {
    margin: 0 auto var(--sp-6);
  }

  .quiz-visual-circle {
    width: 240px;
    height: 240px;
  }

  .quiz-bubble {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .quiz-face-img {
    width: 180px;
    height: auto;
  }

  .bubble-top {
    top: -10px;
    right: -15px;
  }

  .bubble-bottom {
    bottom: -15px;
    left: -20px;
  }

  .bubble-left {
    top: 50%;
    left: -60px;
  }

  .bubble-mid-right {
    bottom: 25%;
    right: -50px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  .benefit-icon {
    width: 52px;
    height: 52px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-card {
    padding: var(--sp-4);
  }

  .glow-club-form {
    flex-direction: column;
  }

  .glow-club-card {
    padding: var(--sp-8);
  }

  .quiz-cta-card {
    padding: var(--sp-8);
  }
}

/* Fix for mobile buttons in sections */
@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .nav-logo img {
    height: 64px;
  }

  .nav-logo span {
    font-size: 1.3rem;
  }

  .cart-sidebar {
    max-width: 100%;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(21, 15, 34, 0.5);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  background: var(--white);
  z-index: calc(var(--z-modal) + 10);
  padding: var(--sp-6);
  padding-bottom: calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  transition: right var(--transition-slow);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: var(--sp-4);
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gray-900);
}

.cart-clear-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-400);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  margin-left: auto;
  margin-right: var(--sp-4);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.cart-clear-btn:hover {
  color: var(--coral);
  background: rgba(255, 127, 110, 0.05);
}

.cart-close {
  font-size: 1.2rem;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.cart-close:hover {
  color: var(--primary);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cart-empty-msg {
  text-align: center;
  color: var(--gray-400);
  margin-top: var(--sp-10);
  font-size: 1.1rem;
}

.cart-item {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  background: var(--white);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--gray-100);
}

/* Auth Sidebar Styles */
.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--sp-6);
}

.auth-tab {
  flex: 1;
  padding: var(--sp-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: calc(var(--radius-md) - 2px);
  transition: all var(--transition-fast);
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.checkout-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.checkout-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.checkout-input {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.checkout-input:focus {
  border-color: var(--primary);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.cart-item-price {
  color: var(--mint);
  margin-bottom: var(--sp-2);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--gray-50);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-700);
  transition: color var(--transition-fast);
}

.cart-qty-btn:hover {
  color: var(--primary);
}

.cart-qty {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.cart-item-remove {
  color: var(--gray-400);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--coral);
}

.cart-footer {
  padding-top: var(--sp-4);
  margin-top: auto;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
}

.btn-checkout {
  width: 100%;
  text-align: center;
  padding: var(--sp-4);
  font-size: 1.05rem;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel-section {
  position: relative;
  width: 100%;
  height: 90vh;
  margin-top: 100px; /* Compensa la altura del navbar fijo */
  overflow: hidden;
  background: var(--gray-900);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: var(--white);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.carousel-slide.active .carousel-content {
  animation-delay: 0.3s;
}

.carousel-subtitle {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: var(--sp-4);
  font-style: italic;
}

.carousel-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--sp-8);
  letter-spacing: -0.02em;
}

.carousel-product-info {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  display: inline-block;
  border-left: 4px solid var(--white);
}

.carousel-product-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.carousel-product-info p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: var(--sp-6);
}

.btn-outline-white {
  display: inline-block;
  padding: var(--sp-3) var(--sp-8);
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  border-radius: 0;
  transition: all var(--transition-base);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--gray-900);
}

/* Carousel Nav Wrapper */
.carousel-nav-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 20;
}

/* Carousel arrows */
.carousel-prev,
.carousel-next {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--white);
  color: var(--gray-900);
  transform: scale(1.1);
}

/* Carousel indicators */
.carousel-indicators {
  display: flex;
  gap: 12px;
}

.indicator {
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
}

.indicator.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ── Carousel: Mobile Fixes ── */
@media (max-width: 768px) {

  .hero-carousel-section {
    height: 85vh;
    margin-top: 0; /* JS adjustNavbar handles the offset */
  }

  .carousel-slide {
    background-position: center;
    padding: 0 var(--sp-6);
    align-items: flex-end;
    padding-bottom: 100px;
  }

  .carousel-slide--product-right {
    background-position: 85% center;
  }

  /* Slightly stronger overlay so text stays readable */
  .carousel-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.35) 50%,
      rgba(0, 0, 0, 0.15) 100%
    );
  }

  .carousel-content {
    max-width: 100%;
  }

  .carousel-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    margin-bottom: var(--sp-6);
  }

  .carousel-product-info {
    padding: var(--sp-4);
    display: block;
    width: 100%;
  }

  .carousel-product-info h3 {
    font-size: 1rem;
  }

  .carousel-product-info p {
    font-size: 0.85rem;
    margin-bottom: var(--sp-4);
  }

  .carousel-nav-controls {
    bottom: 24px;
    gap: 16px;
  }

  .carousel-prev,
  .carousel-next {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

/* ============================================
   SEO CONTENT SECTION — RICH TEXT
   ============================================ */
.seo-content-section {
  padding: var(--sp-20) 0;
  background: var(--primary-bg);
  border-top: 1px solid var(--primary-bg-deep);
}

.seo-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.seo-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: var(--sp-6);
  line-height: 1.2;
}

.seo-text h2 span {
  color: var(--primary);
}

.seo-text p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: var(--sp-4);
  line-height: 1.8;
}

.seo-text strong {
  color: var(--gray-800);
  font-weight: 600;
}

.seo-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.seo-tag {
  font-size: 0.75rem;
  background: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--primary-dark);
  border: 1px solid var(--primary-bg-deep);
  font-weight: 500;
}

@media (max-width: 991px) {
  .seo-content-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
}

/* ============================================
   SKELETON LOADERS — SUNHO K-BEAUTY
   ============================================ */

/* Base shimmer animation */
@keyframes skeletonShimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

/* Fade-in for when real content appears */
@keyframes skeletonFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared skeleton block */
.skeleton-block {
  background: linear-gradient(
    90deg,
    var(--gray-100) 25%,
    var(--gray-200) 50%,
    var(--gray-100) 75%
  );
  background-size: 800px 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* Fade-in class applied once real content is injected */
.skeleton-reveal {
  animation: skeletonFadeIn 0.35s var(--ease-out) both;
}

.skeleton-cat-price {
  display: inline-block;
  min-width: 80px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(80,185,144,0.15) 25%, rgba(80,185,144,0.35) 50%, rgba(80,185,144,0.15) 75%);
  background-size: 800px 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
}

/* ── Cart Item Skeleton ── */
.skeleton-cart-item {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--gray-100);
}

.skeleton-cart-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.skeleton-cart-title {
  height: 14px;
  width: 75%;
  border-radius: var(--radius-full);
}

.skeleton-cart-price {
  height: 12px;
  width: 40%;
  border-radius: var(--radius-full);
}

.skeleton-cart-actions {
  height: 10px;
  width: 55%;
  border-radius: var(--radius-full);
}

/* ── Search Item Skeleton ── */
.skeleton-search-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
}

.skeleton-search-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  flex-shrink: 0;
}

.skeleton-search-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-search-name {
  height: 13px;
  width: 80%;
  border-radius: var(--radius-full);
}

.skeleton-search-price {
  height: 11px;
  width: 35%;
  border-radius: var(--radius-full);
}

.skeleton-search-link {
  height: 10px;
  width: 50%;
  border-radius: var(--radius-full);
}

/* ── Checkout Summary Item Skeleton ── */
.skeleton-summary-item {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--gray-100);
}

.skeleton-summary-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.skeleton-summary-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.skeleton-summary-title {
  height: 13px;
  width: 70%;
  border-radius: var(--radius-full);
}

.skeleton-summary-subtitle {
  height: 11px;
  width: 40%;
  border-radius: var(--radius-full);
}

.skeleton-summary-price {
  height: 14px;
  width: 56px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ── Product Card Skeleton (catalog grid) ── */
.skeleton-cat-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.skeleton-cat-img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.skeleton-cat-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.skeleton-cat-name {
  height: 14px;
  width: 70%;
  border-radius: var(--radius-full);
}

.skeleton-cat-price {
  height: 12px;
  width: 35%;
  border-radius: var(--radius-full);
}

/* ============================================
   MY ACCOUNT & ORDER HISTORY STYLES
   ============================================ */

.my-account-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.account-greeting {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--gray-100);
}

.account-avatar {
  width: 60px;
  height: 60px;
  background: var(--primary-bg-deep);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.account-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.account-email {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Orders Section */
.orders-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.orders-section-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.orders-section-header h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  overflow-y: auto;
  padding-right: 4px;
}

/* Order Card */
.order-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: all var(--transition-base);
}

.order-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.order-invoice {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.05em;
}

/* Badges */
.order-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-approved { background: var(--mint-bg); color: #1A8C55; }
.status-pending { background: #FFF9E6; color: #CC8A20; }
.status-rejected { background: #FFEBE9; color: var(--coral); }
.status-cancelled { background: var(--gray-50); color: var(--gray-400); }

/* Item Chips */
.order-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sp-4);
}

.order-item-chip {
  font-size: 0.7rem;
  background: var(--gray-50);
  color: var(--gray-600);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}

.order-item-chip b {
  color: var(--primary);
  margin-left: 2px;
}

.order-item-more {
  background: transparent;
  border-style: dashed;
  color: var(--gray-400);
}

/* Order Bottom */
.order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--gray-50);
  padding-top: var(--sp-3);
}

.order-date {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.order-total {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

/* Empty State */
.orders-empty {
  text-align: center;
  padding: var(--sp-10) var(--sp-4);
  color: var(--gray-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.orders-empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.orders-cta-link {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Logout */
.account-logout-btn {
  margin-top: var(--sp-8);
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.85rem;
}

.account-logout-btn:hover {
  background: #FFEBE9;
  border-color: #FFC1BA;
  color: var(--coral);
}

/* ── Order Skeleton Styles ── */
.skeleton-order-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.skeleton-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-order-invoice {
  height: 14px;
  width: 90px;
}

.skeleton-order-badge {
  height: 20px;
  width: 70px;
}

.skeleton-order-date {
  height: 12px;
  width: 100px;
}

.skeleton-order-total {
  height: 16px;
  width: 60px;
  align-self: flex-end;
}

/* ── Skin Type Section in Account ── */
.skin-type-section {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--gray-100);
}

.skin-result-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-bg) 100%);
  border: 1px solid var(--primary-bg-deep);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  margin-top: var(--sp-2);
}

.skin-type-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.skin-type-desc-mini {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: var(--sp-4);
}

.recommended-mini-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mini-prod-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--white);
  padding: var(--sp-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-50);
}

.mini-prod-card img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.mini-prod-info h6 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.mini-prod-link {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.mini-prod-link:hover {
  text-decoration: underline;
}


/* --- Precios en Verde --- */
.cat-card-price, .pick-price, .pdp-price, .summary-item-price, .prod-price, .price, .cart-item-price, .search-result-price { color: #50B990 !important; font-weight: 800 !important; letter-spacing: -0.02em; }


/* --- Fix PDP Layout --- */
.pdp-price {
  font-size: 2.4rem !important;
}
.pdp-purchase-group {
  max-width: 420px !important;
}
.pdp-buy-pill-btn {
  white-space: nowrap !important;
  padding: 0 16px !important;
}


/* --- Rediseño de Botones PDP (Separados) --- */
.pdp-purchase-group {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
}
.pdp-purchase-group:hover {
  box-shadow: none !important;
  border: none !important;
}
.pdp-quantity-pill {
  background: var(--white) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: 999px !important;
  height: 48px !important;
  padding: 4px 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.pdp-buy-pill-btn {
  height: 48px !important;
  flex: 0 1 auto !important;
  padding: 0 24px !important;
  min-width: 200px !important;
}


/* --- Second Fix PDP Buttons --- */
.pdp-purchase-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  align-items: center !important;
}
.pdp-quantity-pill {
  flex: 0 0 auto !important;
  width: max-content !important;
  display: inline-flex !important;
  justify-content: center !important;
}
.pdp-buy-pill-btn {
  flex: 1 1 auto !important;
  margin: 0 !important;
}


/* --- Center Quantity Pill on Mobile --- */
.pdp-purchase-group {
  justify-content: center !important;
}
