/* =========================================================
   PAO SHOWROOM — Diseño moderno 2025
   Tipografía, iconos, navegación y UI refinada
   ========================================================= */

/* ---- Base & Typography ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui) !important;
  color: var(--text) !important;
  background: #fafafa !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em;
}

h1, h2, h3, .hero h1, .section-heading h2,
.category-card span, .product-info h3,
.footer-brand h3, .newsletter h2 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #1a1a1a;
}

p, .product-info p, .footer-tagline {
  color: var(--text-muted);
}

a {
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* ---- Topbar ---- */
.topbar {
  background: linear-gradient(90deg, var(--pink) 0%, #e86b85 50%, var(--pink2) 100%) !important;
  color: #fff !important;
  text-align: center !important;
  padding: 10px 16px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.topbar-sep {
  opacity: 0.55;
  font-weight: 300;
}

/* ---- Header ---- */
.header {
  height: 78px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 0 max(4%, calc((100vw - 1280px) / 2)) !important;
  border-bottom: 1px solid rgba(234, 216, 220, 0.7) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  transition: box-shadow .25s ease, background .25s ease !important;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(60, 20, 30, 0.07) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.brand img {
  width: 132px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  transition: transform .25s ease !important;
}

.brand:hover img {
  transform: scale(1.03);
}

/* ---- Desktop Navigation ---- */
.nav {
  display: flex !important;
  gap: 4px !important;
  flex: 1 !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  letter-spacing: 0.01em !important;
}

.nav a {
  padding: 9px 14px !important;
  border-radius: 999px !important;
  color: #333 !important;
  position: relative !important;
}

.nav a:hover {
  color: var(--pink) !important;
  background: var(--bg) !important;
}

.nav a.nav-offer {

  font-weight: 650 !important;
}

.nav a.nav-offer:hover {
  background: #fff0f3 !important;
}

/* ---- Action Icons ---- */
.actions {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
}

.icon-action {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  color: #2a2a2a !important;
  border: 1px solid transparent !important;
  position: relative !important;
  background: transparent !important;
}

.icon-action svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
}

.icon-action:hover {
  background: var(--bg) !important;
  border-color: var(--pink-soft) !important;
  color: var(--pink) !important;
  transform: translateY(-1px) !important;
}

.bag-action {
  position: relative !important;
}

.cart-count {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center !important;
  background: var(--pink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 6px rgba(241, 125, 148, 0.45) !important;
}

/* ---- Hamburger Button ---- */
.menu-btn {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  cursor: pointer !important;
  place-items: center !important;
  padding: 0 !important;
  box-shadow: var(--shadow-sm) !important;
  transition: background .2s, border-color .2s, transform .2s !important;
}

.menu-btn:hover {
  background: var(--bg) !important;
  border-color: var(--pink-soft) !important;
}

.hamburger {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 18px !important;
}

.hamburger span {
  display: block !important;
  height: 1.8px !important;
  background: #333 !important;
  border-radius: 2px !important;
  transition: transform .28s ease, opacity .2s ease !important;
  transform-origin: center !important;
}

body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}
body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}

/* ---- Mobile Drawer ---- */
.nav-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(30, 10, 18, 0.42) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 200 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .3s ease, visibility .3s ease !important;
}

body.menu-open .nav-overlay {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: min(320px, 88vw) !important;
  background: #fff !important;
  z-index: 210 !important;
  transform: translateX(-105%) !important;
  transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12) !important;
  overflow-y: auto !important;
}

body.menu-open .mobile-nav {
  transform: translateX(0) !important;
}

.mobile-nav-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid var(--border) !important;
}

.mobile-nav-title {
  font-family: var(--font-display) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
}

.mobile-nav-close {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  background: var(--bg) !important;
  border-radius: 11px !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  color: #444 !important;
}

.mobile-nav-close svg {
  width: 18px !important;
  height: 18px !important;
}

.mobile-nav-links {
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 14px !important;
  gap: 2px !important;
}

.mobile-nav-links a {
  padding: 14px 16px !important;
  border-radius: 12px !important;
  font-size: 15.5px !important;
  font-weight: 550 !important;
  color: #2a2a2a !important;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  background: var(--bg) !important;
  color: var(--pink) !important;
}

.mobile-nav-links a.nav-offer {
  color: var(--pink) !important;
  font-weight: 650 !important;
}

.mobile-nav-actions {
  margin-top: auto !important;
  padding: 16px 14px 28px !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.mobile-nav-actions a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 16px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #333 !important;
}

.mobile-nav-actions a svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  color: var(--pink) !important;
}

.mobile-nav-actions a:hover {
  background: var(--bg) !important;
}

/* Hide mobile nav elements on desktop */
@media (min-width: 901px) {
  .mobile-nav,
  .nav-overlay {
    display: none !important;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  background: var(--pink) !important;
  color: #fff !important;
  padding: 12px 08px !important;
  font-family: var(--font-ui) !important;
  font-weight: 650 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.03em !important;
  cursor: pointer !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(241, 125, 148, 0.28) !important;
  transition: background .2s, transform .2s, box-shadow .2s !important;
}

.btn:hover {
  background: var(--pink2) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(241, 125, 148, 0.35) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

.btn-light {
  background: #fff !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--border) !important;
}

.btn-light:hover {
  background: var(--bg) !important;
  border-color: var(--pink-soft) !important;
}

.btn-outline {
  background: transparent !important;
  color: var(--pink) !important;
  border: 1.5px solid var(--pink) !important;
  box-shadow: none !important;
}

.btn-outline:hover {
  background: var(--pink) !important;
  color: #fff !important;
}

.btn-small {
  padding: 9px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 580px !important;
  border-radius: 0 0 28px 28px !important;
  overflow: hidden !important;
  position: relative !important;
}

.hero-overlay {
  padding: 8% max(5%, calc((100vw - 1280px) / 2)) !important;
  background: linear-gradient(105deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.7) 38%, rgba(255,255,255,.08) 72%) !important;
}

.hero h1 {
  font-size: clamp(40px, 5.8vw, 72px) !important;
  line-height: 1.05 !important;
  max-width: 640px !important;
  margin: 12px 0 16px !important;
}

.hero p {
  font-size: 18px !important;
  max-width: 480px !important;
  color: #555 !important;
  font-weight: 400 !important;
}

.eyebrow {
  letter-spacing: 3.2px !important;
  color: var(--pink) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  font-family: var(--font-ui) !important;
}

.hero-buttons {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 22px !important;
}

/* ---- Sections ---- */
.section {
  padding: 70px max(4%, calc((100vw - 1280px) / 2)) !important;
  max-width: none !important;
}

.section-heading {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 20px !important;
  margin-bottom: 32px !important;
}

.section-heading h2 {
  font-size: clamp(28px, 3.2vw, 38px) !important;
  margin: 6px 0 0 !important;
}

/* ---- Category cards ---- */
.category-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}

.category-card {
  min-height: 230px !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 26px !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .3s ease, box-shadow .3s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.category-card::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%) !important;
  pointer-events: none !important;
}

.category-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow) !important;
}

.category-card span,
.category-card small {
  position: relative !important;
  z-index: 1 !important;
  color: #fff !important;
}

.category-card span {
  font-size: 26px !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.category-card small {
  font-family: var(--font-ui) !important;
  font-size: 13.5px !important;
  opacity: 0.9 !important;
}

/* ---- Product grid & cards ---- */
.product-grid {
  display: grid !important;

  gap: 20px !important;
}

.product-card {
  background: #fff !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  border: 1px solid rgba(234, 216, 220, 0.6) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow) !important;
  border-color: var(--pink-soft) !important;
}

.product-card .product-img,
.product-card img {
  aspect-ratio: 3/4 !important;
  object-fit: cover !important;
  width: 100% !important;
  transition: transform .4s ease !important;
}

.product-card:hover .product-img,
.product-card:hover img {
  transform: scale(1.04) !important;
}

.product-info {
  padding: 16px 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 !important;
}

.product-info h3 {
  font-size: 15px !important;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

.product-info .price,
.product-info strong {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--pink) !important;
}

.product-info .btn,
.product-info button {
  margin-top: auto !important;
  width: 100% !important;
}

/* ---- Newsletter ---- */
.newsletter {
  background: linear-gradient(135deg, #fff5f7 0%, var(--bg) 50%, #fce8ee 100%) !important;
  text-align: center !important;
  border-radius: 0 !important;
}

.newsletter h2 {
  font-size: clamp(24px, 3vw, 32px) !important;
  margin: 0 0 10px !important;
}

.newsletter p {
  margin: 0 0 22px !important;
  font-size: 15.5px !important;
}

.newsletter-form {
  display: flex !important;
  gap: 10px !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.newsletter-form input[type="email"] {
  
  min-width: 200px !important;
  padding: 13px 18px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
  font-family: var(--font-ui) !important;
  font-size: 14.5px !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s !important;
  background: #fff !important;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--pink) !important;
  box-shadow: 0 0 0 3px rgba(241, 125, 148, 0.18) !important;
}

/* ---- Footer refinements ---- */
.footer-v2 {
  background: linear-gradient(160deg, #c54b64 0%, #a83d54 100%) !important;
}

.footer-v2 a:hover {
  opacity: 0.85 !important;
  text-decoration: underline !important;
}

.footer-social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.12) !important;
  font-size: 15px !important;
  transition: background .2s, transform .2s !important;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.22) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

.copyright {
  background: #9a344a !important;
  color: rgba(255,255,255,0.75) !important;
  text-align: center !important;
  padding: 14px !important;
  font-size: 12.5px !important;
  letter-spacing: 0.02em !important;
}

/* ---- Floating WhatsApp ---- */
.floating-whatsapp {
  border-radius: 16px !important;
  transition: transform .22s ease, filter .22s ease !important;
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-2px) !important;
}

/* ---- Forms & inputs (checkout, login, etc.) ---- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-family: var(--font-ui) !important;
  border-radius: 11px !important;
  border: 1.5px solid var(--border) !important;
  transition: border-color .2s, box-shadow .2s !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink) !important;
  box-shadow: 0 0 0 3px rgba(241, 125, 148, 0.16) !important;
  outline: none !important;
}

/* ---- Cards & misc ---- */
.checkout-card,
.card {
  border-radius: var(--radius) !important;
  border: 1px solid rgba(234, 216, 220, 0.7) !important;
  box-shadow: var(--shadow-sm) !important;
}

.testimonial-grid {
  gap: 16px !important;
}

.stars {
  color: #f5a623 !important;
  letter-spacing: 1px !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .menu-btn {
    display: grid !important;
  }

  .nav {
    display: none !important;
  }

  .header {
    height: 70px !important;
    gap: 12px !important;
  }

  .brand img {
    width: 110px !important;
    height: 48px !important;
  }

  .icon-action {
    width: 38px !important;
    height: 38px !important;
  }

  .icon-action svg {
    width: 19px !important;
    height: 19px !important;
  }

  .hero {
    min-height: 480px !important;
    border-radius: 0 0 20px 20px !important;
  }

  .hero-overlay {
    padding: 14% 6% !important;
    background: rgba(255, 255, 255, 0.82) !important;
  }

  .category-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .category-card {
    min-height: 180px !important;
  }

  .section {
    padding: 50px 5% !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .newsletter-form {
    flex-direction: column !important;
  }

  .newsletter-form .btn {
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  .topbar {
    font-size: 11px !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }

  .topbar-sep {
    display: none !important;
  }

  .header {
    height: 64px !important;
    padding: 0 12px !important;
  }

  .brand img {
    width: 96px !important;
    height: 42px !important;
  }

  .actions {
    gap: 2px !important;
  }

  .icon-action {
    width: 36px !important;
    height: 36px !important;
  }

  .hero h1 {
    font-size: 36px !important;
  }

  .hero p {
    font-size: 15.5px !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .product-grid {
    gap: 10px !important;
  }

  .product-info {
    padding: 12px !important;
  }

  .product-info h3 {
    font-size: 13.5px !important;
  }

  .section-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden !important;
}

/* =========================================================
   PAO SHOWROOM — Animaciones CSS avanzadas
   ========================================================= */

/* ---- Keyframes ---- */
@keyframes pao-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pao-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pao-scale-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pao-slide-right {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pao-slide-left {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pao-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pao-pulse-soft {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(241, 125, 148, 0.28);
  }
  50% {
    box-shadow: 0 4px 22px rgba(241, 125, 148, 0.48);
  }
}

@keyframes pao-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pao-cart-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.25); }
  50% { transform: scale(0.92); }
  70% { transform: scale(1.12); }
}

@keyframes pao-heart-pop {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes pao-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pao-spin-soft {
  to { transform: rotate(360deg); }
}

@keyframes pao-ripple {
  0% {
    transform: scale(0);
    opacity: 0.45;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes pao-drawer-in {
  from { transform: translateX(-105%); }
  to { transform: translateX(0); }
}

@keyframes pao-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Reduced motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Scroll-reveal system ---- */
.pao-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.pao-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pao-reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pao-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.pao-reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.pao-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.pao-reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.pao-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for children */
.pao-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.pao-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.pao-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.pao-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.pao-stagger > *:nth-child(5) { transition-delay: 0.33s; }
.pao-stagger > *:nth-child(6) { transition-delay: 0.40s; }
.pao-stagger > *:nth-child(7) { transition-delay: 0.47s; }
.pao-stagger > *:nth-child(8) { transition-delay: 0.54s; }
.pao-stagger > *:nth-child(9) { transition-delay: 0.61s; }
.pao-stagger > *:nth-child(10) { transition-delay: 0.68s; }
.pao-stagger > *:nth-child(11) { transition-delay: 0.75s; }
.pao-stagger > *:nth-child(12) { transition-delay: 0.82s; }

/* When parent is visible, children animate */
.pao-stagger:not(.is-visible) > * {
  opacity: 0;
  transform: translateY(24px);
}
.pao-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Hero entrance ---- */
.hero .eyebrow {
  animation: pao-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero h1 {
  animation: pao-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero p {
  animation: pao-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.hero-buttons {
  animation: pao-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.hero-buttons .btn {
  position: relative;
  overflow: hidden;
}

/* ---- Button ripple on click ---- */
.btn {
  position: relative !important;
  overflow: hidden !important;
}

.btn .pao-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  animation: pao-ripple 0.55s ease-out forwards;
}

/* Primary button subtle pulse when idle (hero CTA) */
.hero-buttons .btn:not(.btn-light):not(.btn-outline) {
  animation: pao-pulse-soft 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.hero-buttons .btn:hover {
  animation: none;
}

/* ---- Product card advanced hover ---- */
.product-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease !important;
}

.product-card .product-img,
.product-card > a > img,
.product-card img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.product-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 48px rgba(60, 20, 30, 0.14) !important;
}

.product-card:hover img,
.product-card:hover .product-img {
  transform: scale(1.06) !important;
}

/* Soft shine sweep on product image */
.product-card {
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  z-index: 2;
  pointer-events: none;
  transition: none;
  opacity: 0;
}

.product-card:hover::before {
  opacity: 1;
  animation: pao-shimmer 0.85s ease forwards;
}

/* ---- Category cards ---- */
.category-card {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
}

.category-card span {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover span {
  transform: translateX(4px);
}

/* ---- Icon actions micro-interactions ---- */
.icon-action {
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.icon-action svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.icon-action:hover svg {
  transform: scale(1.12);
}

.icon-action:active {
  transform: scale(0.94) !important;
}

/* Cart badge bounce when count updates */
.cart-count.pao-bounce {
  animation: pao-cart-bounce 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Favorites heart pop */
.icon-action.pao-heart-anim svg {
  animation: pao-heart-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  fill: var(--pink);
  stroke: var(--pink);
}

/* ---- Nav underline animation ---- */
.nav a {
  position: relative !important;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover::after,
.nav a:focus::after {
  transform: scaleX(1);
}

/* ---- Mobile drawer refined animation ---- */
.mobile-nav {
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.nav-overlay {
  transition: opacity 0.32s ease, visibility 0.32s ease !important;
}

body.menu-open .mobile-nav-links a {
  animation: pao-slide-right 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.menu-open .mobile-nav-links a:nth-child(1) { animation-delay: 0.06s; }
body.menu-open .mobile-nav-links a:nth-child(2) { animation-delay: 0.10s; }
body.menu-open .mobile-nav-links a:nth-child(3) { animation-delay: 0.14s; }
body.menu-open .mobile-nav-links a:nth-child(4) { animation-delay: 0.18s; }
body.menu-open .mobile-nav-links a:nth-child(5) { animation-delay: 0.22s; }
body.menu-open .mobile-nav-links a:nth-child(6) { animation-delay: 0.26s; }

body.menu-open .mobile-nav-actions a {
  animation: pao-fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.menu-open .mobile-nav-actions a:nth-child(1) { animation-delay: 0.28s; }
body.menu-open .mobile-nav-actions a:nth-child(2) { animation-delay: 0.32s; }
body.menu-open .mobile-nav-actions a:nth-child(3) { animation-delay: 0.36s; }
body.menu-open .mobile-nav-actions a:nth-child(4) { animation-delay: 0.40s; }

/* ---- Topbar subtle entrance ---- */
.topbar {
  animation: pao-fade-in 0.5s ease both;
}

/* ---- Header items entrance ---- */
.header .brand {
  animation: pao-fade-in 0.5s ease 0.05s both;
}

.header .nav {
  animation: pao-fade-in 0.55s ease 0.12s both;
}

.header .actions {
  animation: pao-fade-in 0.55s ease 0.18s both;
}

/* ---- Floating WhatsApp ---- */
.floating-whatsapp {
  animation: pao-float 3.2s ease-in-out infinite;
  animation-delay: 1.5s;
}

.floating-whatsapp:hover {
  animation-play-state: paused;
}

/* ---- Newsletter form focus glow ---- */
.newsletter-form input[type="email"] {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease !important;
}

.newsletter-form input[type="email"]:focus {
  transform: translateY(-1px);
}

/* ---- Section heading ---- */
.section-heading {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---- Loading / skeleton shimmer utility ---- */
.pao-skeleton {
  background: linear-gradient(
    90deg,
    #f5e8eb 25%,
    #fdf0f3 50%,
    #f5e8eb 75%
  );
  background-size: 200% 100%;
  animation: pao-shimmer 1.4s ease infinite;
  border-radius: 10px;
}

/* ---- Page transition helper (optional body class) ---- */
body.pao-page-enter main {
  animation: pao-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Testimonial cards ---- */
.testimonial-grid .checkout-card,
.testimonial-grid > div {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.testimonial-grid .checkout-card:hover,
.testimonial-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(60, 20, 30, 0.1);
}

/* ---- Lazy loading / smooth image load ---- */
img {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

img.pao-lazy-pending:not(.pao-loaded) {
  opacity: 0.35;
  filter: blur(6px);
  background: #f3e8eb;
}

img.pao-loaded,
img:not(.pao-lazy-pending) {
  opacity: 1;
  filter: none;
}

.product-card .product-image,
.product-card a.product-image {
  background: linear-gradient(110deg, #f7eef1 25%, #f0e4e8 40%, #f7eef1 55%);
  background-size: 200% 100%;
}

.product-card img.pao-lazy-pending:not(.pao-loaded) {
  min-height: 180px;
  object-fit: cover;
}

/* ---- Focus visible for accessibility ---- */
a:focus-visible,
button:focus-visible,
.icon-action:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--pink) !important;
  outline-offset: 3px !important;
}

/* ---- Utility animation classes (manual use) ---- */
.anim-fade-up {
  animation: pao-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-scale-in {
  animation: pao-scale-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }


/* ---- Core Web Vitals: CLS / LCP helpers ---- */
.product-image {
  aspect-ratio: 3 / 4;
  display: block;
  overflow: hidden;
  background: #f8edf0;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero,
.hero-slide {
  min-height: 420px;
  position: relative;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card {
  min-height: 200px;
  contain: layout style;
}
.product-card {
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
}
.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.footer-v2,
.newsletter {
  content-visibility: auto;
  contain-intrinsic-size: 1px 280px;
}
/* Reduce layout shift from font swap */
body {
  font-family: var(--font-ui), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

/* Video hero: no forzar decode fuera de pantalla */
video.hero-media {
  background: #1a1a1a;
  object-fit: cover;
}
.hero-slide.is-active video.hero-media {
  visibility: visible;
  opacity: 1;
  z-index: 0;
}
.hero-slide:not(.is-active) video.hero-media {
  visibility: hidden;
}
