/* =========================================================
   SERAPHINE BEAUTY — Main Stylesheet
   ========================================================= */

/* ── VARIABLES ── */
:root {
  --rose:        #c8516a;
  --rose-light:  #e8a0af;
  --rose-pale:   #f9eef1;
  --rose-deep:   #a03050;
  --blush:       #f5d5dc;
  --cream:       #fdfaf8;
  --nude:        #f0e4dc;
  --dark:        #1a1010;
  --dark-mid:    #3d2b2b;
  --gray:        #7a6b6b;
  --gray-light:  #c9bbbb;
  --gray-pale:   #f4f0ef;
  --white:       #ffffff;
  --gold:        #c9a84c;
  --gold-light:  #e8d89a;
  --border:      #e8dedd;
  --success:     #2e7d52;
  --error:       #c0392b;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm:   0 2px 8px rgba(160,50,80,.07);
  --shadow-md:   0 6px 24px rgba(160,50,80,.12);
  --shadow-lg:   0 12px 40px rgba(160,50,80,.16);
  --transition:  .25s cubic-bezier(.4,0,.2,1);
  --radius:      6px;

  --header-h:    112px; /* updated dynamically */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--blush); }
::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 99px; }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }


/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--dark);
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 24px;
  position: relative;
  z-index: 200;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.topbar__text { opacity: .85; }

.topbar__cta {
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: underline;
  color: var(--rose-light);
  transition: color var(--transition);
  white-space: nowrap;
}
.topbar__cta:hover { color: var(--white); }

.topbar__close {
  flex-shrink: 0;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  padding: 2px 6px;
  transition: color var(--transition);
}
.topbar__close:hover { color: var(--white); }


/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* ── Utility bar ── */
.header-utility {
  background: var(--rose-pale);
  border-bottom: 1px solid var(--blush);
  display: none; /* visible only ≥ 1024px */
}
@media (min-width: 1024px) { .header-utility { display: block; } }

.header-utility__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
}

.utility-nav { display: flex; gap: 0; }

.utility-link {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 7px 14px;
  border-right: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.utility-link:first-child { border-left: 1px solid var(--border); }
.utility-link:hover { background: var(--blush); color: var(--rose-deep); }

.utility-link--cta {
  color: var(--rose-deep);
  font-weight: 700;
  background: var(--blush);
}
.utility-link--cta:hover { background: var(--rose-light); color: var(--white); }

/* ── Main header row ── */
.header-main {
  border-bottom: 1px solid var(--border);
}

.header-main__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.header-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
  text-decoration: none;
}
.logo-serif {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose-deep);
  letter-spacing: .04em;
}
.logo-beauty {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--gray);
  text-transform: uppercase;
}

/* Search */
.header-search { flex: 1; max-width: 420px; margin: 0 auto; }

.search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.search-form:focus-within {
  border-color: var(--rose-light);
  box-shadow: 0 0 0 3px rgba(200,81,106,.1);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: .85rem;
  color: var(--dark);
  background: transparent;
}
.search-input::placeholder { color: var(--gray-light); }

.search-btn {
  padding: 9px 16px;
  color: var(--gray);
  font-size: .85rem;
  border-left: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}
.search-btn:hover { color: var(--rose); background: var(--rose-pale); }

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--dark-mid);
  transition: background var(--transition), color var(--transition);
}
.action-btn:hover { background: var(--rose-pale); color: var(--rose); }

.action-btn--account { display: none; }
@media (min-width: 768px) { .action-btn--account { display: flex; } }

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--rose);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  border: 2px solid var(--white);
  line-height: 1;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 4px;
}
@media (min-width: 1024px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-mid);
  border-radius: 99px;
  transition: var(--transition);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile search toggle */
#search-toggle-mobile { display: flex; }
@media (min-width: 768px) { #search-toggle-mobile { display: none; } }
@media (min-width: 768px) { .header-search { display: flex; } }
.header-search { display: none; }
@media (min-width: 768px) { .header-search { display: block; } }

/* Mobile search bar */
.mobile-search {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 16px;
  border-bottom: 1px solid transparent;
  background: var(--white);
}
.mobile-search.is-open {
  max-height: 64px;
  padding: 10px 16px;
  border-color: var(--border);
}

/* ── Main Nav ── */
.main-nav {
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 48px;
  transition: max-height .35s ease;
}
.main-nav.is-open { max-height: 500px; }

.main-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
@media (max-width: 1023px) {
  .main-nav { max-height: 0; border-top: none; }
  .main-nav.is-open { max-height: 600px; border-top: 1px solid var(--border); }
  .nav-list { flex-direction: column; align-items: stretch; }
}

.nav-link {
  display: block;
  padding: 13px 18px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dark-mid);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--rose); }
.nav-link.active { color: var(--rose); border-bottom: 2px solid var(--rose); }

.nav-link--offers {
  color: var(--rose-deep);
  font-weight: 800;
}
.nav-link--offers:hover { color: var(--rose); }

/* Dropdowns */
.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover { background: var(--rose-pale); color: var(--rose-deep); }

@media (max-width: 1023px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--rose-pale);
    border-radius: 0;
    background: var(--gray-pale);
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .has-dropdown.is-open .dropdown-menu { display: block; }
}


/* =========================================================
   HERO SECTION
   ========================================================= */
/* =========================================================
   HERO BANNER — 100% CSS, sin imágenes
   ========================================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg,
    #1a0a10 0%,
    #2d1020 30%,
    #3d1535 60%,
    #1a0a18 100%);
}
@media (max-width: 900px) { .hero-section { height: 500px; } }
@media (max-width: 600px) { .hero-section { height: 440px; } }

/* Círculos de fondo */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-circle--1 {
  width: 600px; height: 600px;
  right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(200,81,106,.18) 0%, transparent 65%);
}
.hero-circle--2 {
  width: 400px; height: 400px;
  right: 160px; bottom: -120px;
  background: radial-gradient(circle, rgba(201,168,76,.10) 0%, transparent 65%);
}

/* Partículas */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hp {
  position: absolute;
  color: rgba(232,160,175,.35);
  font-size: 1rem;
  animation: hpFloat 6s ease-in-out infinite;
}
.hp1 { top: 18%; left: 55%; animation-delay: 0s;    font-size: .7rem; }
.hp2 { top: 70%; left: 65%; animation-delay: 1.2s;  font-size: .5rem; }
.hp3 { top: 30%; left: 80%; animation-delay: 2.4s;  font-size: .8rem; }
.hp4 { top: 80%; left: 45%; animation-delay: 0.8s;  font-size: .6rem; }
.hp5 { top: 50%; left: 72%; animation-delay: 3.1s;  font-size: .55rem; }
.hp6 { top: 12%; left: 90%; animation-delay: 1.7s;  font-size: .65rem; }
@keyframes hpFloat {
  0%,100% { transform: translateY(0)   rotate(0deg);   opacity: .35; }
  50%      { transform: translateY(-14px) rotate(20deg); opacity: .7;  }
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 72px;
  max-width: 560px;
  color: var(--white);
}
@media (max-width: 767px) { .hero-content { padding: 0 28px; } }

.hero-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 14px;
  opacity: .9;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-title em { font-style: italic; color: var(--rose-light); }

.hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-sub strong { color: var(--rose-light); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Decoración lado derecho */
.hero-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 767px) { .hero-deco { display: none; } }

.hero-deco__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232,160,175,.2);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.hero-deco__ring--1 { width: 280px; height: 280px; border-color: rgba(232,160,175,.15); animation: ringPulse 4s ease-in-out infinite; }
.hero-deco__ring--2 { width: 200px; height: 200px; border-color: rgba(232,160,175,.22); animation: ringPulse 4s ease-in-out infinite .8s; }
.hero-deco__ring--3 { width: 120px; height: 120px; border-color: rgba(232,160,175,.3);  animation: ringPulse 4s ease-in-out infinite 1.6s; }

@keyframes ringPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: 1; }
  50%      { transform: translate(-50%,-50%) scale(1.06); opacity: .5; }
}

.hero-deco__icon {
  position: relative;
  z-index: 2;
  font-size: 5rem;
  text-align: center;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconFloat 5s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Boton rose para hero */
.btn--rose {
  background: var(--rose);
  color: var(--white);
  border: 2px solid var(--rose);
}
.btn--rose:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

/* ── BUTTONS (global) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--rose);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--rose-deep);
  box-shadow: 0 4px 16px rgba(160,50,80,.3);
  transform: translateY(-1px);
}
.btn--primary:active { transform: none; }

.btn--white {
  background: var(--white);
  color: var(--rose-deep);
}
.btn--white:hover { background: var(--blush); transform: translateY(-1px); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn--outline-white:hover { background: rgba(255,255,255,.15); }

.btn--ghost {
  background: transparent;
  color: var(--gray);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: none;
  height: 38px;
  padding: 0 16px;
}
.btn--ghost:hover { color: var(--rose); text-decoration: underline; }

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

.btn--load-more {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--dark-mid);
  padding: 0 36px;
  height: 48px;
  border-radius: 99px;
}
.btn--load-more:hover {
  border-color: var(--rose-light);
  color: var(--rose);
  background: var(--rose-pale);
}

.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Spinner inside btn */
.btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .btn-text { display: none; }
.btn.is-loading .spinner { display: block; }


/* =========================================================
   PROMO STRIP
   ========================================================= */
.promo-strip {
  background: linear-gradient(90deg, #2d1020 0%, #3d1535 50%, #2d1020 100%);
  padding: 0;
  overflow: hidden;
  height: 46px;
  display: flex;
  align-items: center;
}
.promo-strip__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: promoScroll 22s linear infinite;
  padding: 0 40px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  letter-spacing: .04em;
}
.promo-strip__sep {
  color: var(--rose-light);
  font-size: 1rem;
}
@keyframes promoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .promo-strip { height: 38px; }
  .promo-strip__inner { font-size: .68rem; gap: 14px; }
}


/* =========================================================
   CATEGORY PILLS
   ========================================================= */
.categories-section {
  padding: 20px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-section::-webkit-scrollbar { display: none; }

.category-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}

.pill {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gray);
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
}
.pill:hover { border-color: var(--rose-light); color: var(--rose); background: var(--rose-pale); }
.pill--active {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}
.pill--active:hover { background: var(--rose-deep); border-color: var(--rose-deep); }


/* =========================================================
   MID BANNERS GRID
   ========================================================= */
.mid-banners { padding: 32px 0; }

.mid-banners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .mid-banners__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mid-banners__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.mid-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 355/442;
  background: var(--blush);
}

.mid-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.mid-banner-card:hover img { transform: scale(1.04); }

.mid-banner-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(26,16,16,.7) 0%, transparent 100%);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* =========================================================
   FULL-WIDTH BANNER
   ========================================================= */
.full-banner { overflow: hidden; }

.full-banner__wrap {
  position: relative;
  max-height: 320px;
}
.full-banner__wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.full-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,16,16,.5) 0%, transparent 60%);
  display: flex;
  align-items: center;
}

.full-banner__content {
  padding: 0 60px;
  color: var(--white);
}
@media (max-width: 767px) { .full-banner__content { padding: 0 24px; } }

.full-banner__tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 6px;
}

.full-banner__title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
  font-style: italic;
}


/* =========================================================
   PRODUCTS SECTION
   ========================================================= */
.products-section { padding: 40px 0 60px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--dark-mid);
  letter-spacing: .02em;
}

.section-subtitle {
  font-size: .78rem;
  color: var(--gray);
  margin-top: 2px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-select {
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .78rem;
  color: var(--dark);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a6b6b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--rose-light); }

.view-toggle { display: flex; gap: 4px; }

.view-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--gray);
  transition: var(--transition);
}
.view-btn:hover, .view-btn--active {
  background: var(--rose-pale);
  border-color: var(--rose-light);
  color: var(--rose);
}

/* ── LOADING SPINNER ── */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
  color: var(--gray);
  font-size: .85rem;
}

.spinner-ring {
  width: 40px; height: 40px;
  border: 3px solid var(--blush);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.products-grid.view-list {
  grid-template-columns: 1fr;
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--blush);
  aspect-ratio: 1 / 1;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.06); }

/* Fallback emoji */
.product-card__image-wrap.img-fallback::after {
  content: '🌸';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: .35;
}
.modal-image-wrap.img-fallback::after {
  content: '🌸';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: .3;
}

/* Badges */
.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.badge-discount, .badge-new {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 1;
  text-transform: uppercase;
}
.badge-discount { background: var(--rose); color: var(--white); }
.badge-new      { background: var(--dark); color: var(--white); }

/* Wishlist btn on card */
.product-card__wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--gray);
  z-index: 1;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card__wishlist:hover, .product-card__wishlist.is-wishlisted {
  color: var(--rose);
  background: var(--white);
}

/* Quick add */
.product-card__quick-add {
  position: absolute;
  bottom: -48px;
  left: 0; right: 0;
  padding: 0 12px 12px;
  transition: bottom var(--transition);
  z-index: 1;
}
.product-card:hover .product-card__quick-add { bottom: 0; }

.product-card__quick-add .btn {
  height: 38px;
  font-size: .7rem;
  border-radius: 4px;
  width: 100%;
  background: rgba(26,16,16,.85);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.product-card__quick-add .btn:hover { background: var(--rose); }

/* Card body */
.product-card__body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__category {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.product-card__name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
}
.product-card__name-btn {
  text-align: left;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  transition: color var(--transition);
}
.product-card__name-btn:hover { color: var(--rose); }

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.stars { color: var(--gold); font-size: .65rem; letter-spacing: 1px; }

.product-card__rating-num {
  font-size: .7rem;
  font-weight: 600;
  color: var(--dark-mid);
}

.product-card__reviews {
  font-size: .68rem;
  color: var(--gray-light);
}

.product-card__price {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.price-original {
  font-size: .78rem;
  color: var(--gray-light);
  text-decoration: line-through;
}

/* List view card */
.view-list .product-card {
  flex-direction: row;
  align-items: stretch;
}
.view-list .product-card__image-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  aspect-ratio: unset;
}
.view-list .product-card__quick-add { display: none; }
.view-list .product-card__body { padding: 16px; }

/* Load more */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


/* =========================================================
   BOTTOM STRIP
   ========================================================= */
.bottom-strip {
  overflow: hidden;
  max-height: 160px;
}
.bottom-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
@media (max-width: 767px) { .bottom-strip img { height: 100px; } }


/* =========================================================
   BENEFITS BAR
   ========================================================= */
.benefits-bar {
  padding: 32px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.benefit-item i {
  font-size: 1.4rem;
  color: var(--rose-light);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.benefit-item strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark-mid);
}

.benefit-item span {
  display: block;
  font-size: .72rem;
  color: var(--gray);
}


/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-section {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--rose-deep) 0%, #7b1a3a 100%);
  color: var(--white);
}

.newsletter-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 700px) {
  .newsletter-container { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-sub { font-size: .88rem; color: rgba(255,255,255,.8); }

.newsletter-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.newsletter-input {
  flex: 1;
  height: 46px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: .85rem;
  color: var(--white);
  background: rgba(255,255,255,.12);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-input:focus { border-color: rgba(255,255,255,.7); }

.newsletter-legal {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
}
.newsletter-legal a { color: rgba(255,255,255,.7); text-decoration: underline; }


/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Footer brand */
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 14px;
}
.footer-logo .logo-serif { color: var(--rose-light); font-size: 1.3rem; }
.footer-logo .logo-beauty { color: rgba(255,255,255,.4); font-size: .5rem; letter-spacing: .25em; }

.footer-tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  overflow: hidden;
}
.social-link:hover { background: var(--rose); }
.social-link img { width: 18px; height: 18px; object-fit: contain; filter: brightness(10); }
.social-link--whatsapp img { filter: none; }

/* Footer nav */
.footer-nav-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--rose-light); }

/* Payment methods */
.footer-payments {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.footer-payments__label {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-payments__logos { display: flex; gap: 8px; flex-wrap: wrap; }

.pay-badge {
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-badge--visa   { background: #1a1f71; color: #fff; }
.pay-badge--mc     { background: #eb001b; color: #fff; }
.pay-badge--amex   { background: #2e77bc; color: #fff; }
.pay-badge--diners { background: #004a97; color: #fff; }
.pay-badge--pse    { background: #009ee3; color: #fff; }
.pay-badge--gift   { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.footer-copyright { font-size: .72rem; color: rgba(255,255,255,.3); }

.footer-sic {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: .5;
  filter: brightness(10);
}


/* =========================================================
   CART SIDEBAR
   ========================================================= */
.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.is-open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-mid);
}

.cart-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: .9rem;
  transition: var(--transition);
}
.cart-close:hover { background: var(--rose-pale); color: var(--rose); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  text-align: center;
}
.cart-empty i { font-size: 2.4rem; color: var(--gray-light); }
.cart-empty p { font-size: .9rem; color: var(--gray); }

.cart-items { display: flex; flex-direction: column; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.cart-item:hover { background: var(--rose-pale); }

.cart-item__img {
  width: 72px; height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.cart-item__img.img-fallback {
  font-size: 1.8rem;
  color: var(--rose-light);
}

.cart-item__img.img-fallback::after {
  content: '🌸';
  font-size: 1.6rem;
}

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

.cart-item__name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}

.cart-item__qty {
  font-size: .72rem;
  color: var(--gray);
}

.cart-item__price-current {
  font-size: .9rem;
  font-weight: 700;
  color: var(--rose-deep);
  white-space: nowrap;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark-mid);
}

.cart-shipping-note {
  font-size: .74rem;
  color: var(--gray);
  text-align: center;
}


/* =========================================================
   OVERLAY
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,16,16,.45);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  backdrop-filter: blur(2px);
}
.overlay.is-visible { opacity: 1; visibility: visible; }


/* =========================================================
   PRODUCT MODAL
   ========================================================= */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.product-modal.is-open { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { transform: scale(.95) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: .85rem;
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover { background: var(--rose-pale); color: var(--rose); }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 560px) {
  .modal-inner { grid-template-columns: 1fr; }
}

.modal-image-wrap {
  position: relative;
  background: var(--blush);
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
}
@media (max-width: 560px) {
  .modal-image-wrap { border-radius: 12px 12px 0 0; }
}

.modal-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

.modal-body {
  padding: 28px 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-category {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose-light);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-mid);
  line-height: 1.3;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.modal-price .price-current { font-size: 1.3rem; }

.modal-discount-badge {
  font-size: .7rem;
  font-weight: 700;
  background: var(--rose);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 3px;
}

.modal-size {
  font-size: .78rem;
  color: var(--gray);
  background: var(--gray-pale);
  border-radius: 4px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-desc {
  font-size: .83rem;
  color: var(--gray);
  line-height: 1.7;
}

.modal-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-note-tag {
  font-size: .7rem;
  background: var(--rose-pale);
  color: var(--rose-deep);
  border: 1px solid var(--rose-light);
  border-radius: 99px;
  padding: 3px 10px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.modal-actions .btn { font-size: .78rem; height: 44px; }

.btn--wishlist-add i { color: var(--gray-light); }
.btn--wishlist-remove i { color: var(--rose); }


/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: .83rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.is-success { background: var(--rose-deep); }
.toast.is-error   { background: var(--error); }


/* =========================================================
   RESPONSIVE — misc
   ========================================================= */
@media (max-width: 767px) {
  .header-main__inner { gap: 10px; padding: 0 14px; }
  .header-search { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .newsletter-input-group { flex-direction: column; }
  .newsletter-input-group .btn { width: 100%; justify-content: center; }

  /* Hero */
  .hero-section { height: 380px; }
  .hero-content { padding: 0 20px; max-width: 100%; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); margin-bottom: 12px; }
  .hero-sub { font-size: .8rem; margin-bottom: 20px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { height: 40px; padding: 0 18px; font-size: .72rem; }

  /* Topbar */
  .topbar { font-size: .65rem; padding: 7px 14px; }
  .topbar__text { font-size: .62rem; }

  /* Mid banners */
  .mid-banners { padding: 16px 0; }
  .mid-banners__grid { gap: 8px; }
  .mid-banner-card__label { font-size: .7rem; padding: 10px 12px; }

  /* Full banner */
  .full-banner__wrap { max-height: 200px; }
  .full-banner__wrap img { height: 200px; }
  .full-banner__title { font-size: 1.6rem; }
  .full-banner__content { padding: 0 18px; }

  /* Products */
  .products-section { padding: 24px 0 40px; }
  .section-title { font-size: 1.3rem; }
  .sort-controls { width: 100%; }
  .sort-select { flex: 1; }

  /* Cart sidebar — full width on mobile */
  .cart-sidebar { max-width: 100%; }

  /* Modal — full screen on mobile */
  .product-modal { padding: 0; align-items: flex-end; }
  .modal-content { max-height: 95vh; border-radius: 16px 16px 0 0; }

  /* Benefits bar */
  .benefits-bar { padding: 20px 0; }
  .benefit-item { gap: 10px; }
  .benefit-item i { font-size: 1.1rem; width: 22px; }
  .benefit-item strong { font-size: .75rem; }
  .benefit-item span { font-size: .67rem; }

  /* Newsletter */
  .newsletter-section { padding: 36px 0; }
  .newsletter-title { font-size: 1.4rem; }

  /* Footer */
  .site-footer { padding: 36px 0 0; }
  .footer-payments { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Container padding */
  .container { padding: 0 16px; }
}

/* Extra small phones */
@media (max-width: 380px) {
  .logo-serif { font-size: 1.2rem; }
  .hero-section { height: 340px; }
  .hero-title { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .mid-banners__grid { gap: 6px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
