/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=League+Spartan:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Outfit:wght@300;400;500;600&family=Alex+Brush&family=Great+Vibes&display=swap');

/* CONEXIÓN DE FUENTES */

@font-face {
    font-family: 'Ameda Demo';
    src: url('../fonts/Ameda-Regular.otf') format('opentype'),
         url('../fonts/Ameda-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Louis George Cafe';
    src: url('../fonts/Louis George Cafe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Louis George Cafe';
    src: url('../fonts/Louis George Cafe Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Louis George Cafe';
    src: url('../fonts/Louis George Cafe Bold Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Louis Bold';
    src: url('../fonts/Louis George Cafe Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mayonice';
    src: url('../fonts/Mayonice.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Louis George Cafe';
    src: url('../fonts/Louis George Cafe Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}


@font-face {
    font-family: 'Louis George Cafe';
    src: url('../fonts/Louis George Cafe Light Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Louis George Cafe';
    src: url('../fonts/Louis George Cafe Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Font Families */
.font-ameda {
  font-family: 'Ameda Demo', 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  letter-spacing: 0.03em;
}

.font-mayonice {
  font-family: 'Mayonice', 'Alex Brush', 'Great Vibes', cursive !important;
}

.font-louis {
  font-family: 'Louis George Cafe', 'Outfit', 'Montserrat', sans-serif !important;
}

.font-spartan {
  font-family: 'League Spartan', sans-serif !important;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif !important;
}

/* Colores y Utilidades Brand */
.bg-brand-dark, .bg-\[\#29402f\] { background-color: #29402f !important; }
.bg-brand-olive, .bg-\[\#4f5e2c\] { background-color: #4f5e2c !important; }
.bg-brand-footer, .bg-\[\#5b6630\] { background-color: #5b6630 !important; }
.bg-brand-sage, .bg-\[\#748c70\] { background-color: #748c70 !important; }
.bg-\[\#402a10\] { background-color: #402a10 !important; }
.bg-\#3d4920\/40, .bg-\[\#3d4920\]\/40 { background-color: rgba(61, 73, 32, 0.4) !important; }
.bg-\[\#3d4920\]\/30, .bg-\[\#3d4920\]\/35 { background-color: rgba(61, 73, 32, 0.35) !important; }
.bg-\[\#2f1f0c\]\/60 { background-color: rgba(47, 31, 12, 0.6) !important; }

.text-brand-dark, .text-\[\#29402f\] { color: #29402f !important; }
.text-brand-olive, .text-\[\#4f5e2c\] { color: #4f5e2c !important; }
.text-brand-gold, .text-\[\#7c511d\] { color: #7c511d !important; }
.text-brand-cream, .text-\[\#f9eacc\] { color: #f9eacc !important; }
.text-brand-lightCream, .text-\[\#fff7e8\] { color: #fff7e8 !important; }
.text-\[\#0c0c0c\] { color: #0c0c0c !important; }
.text-\[\#402a10\] { color: #402a10 !important; }

/* Aspect ratio support */
.aspect-\[393\/511\] { aspect-ratio: 393 / 511; }
.aspect-\[551\/325\] { aspect-ratio: 551 / 325; }
.aspect-\[552\/325\] { aspect-ratio: 552 / 325; }
.aspect-\[676\/400\] { aspect-ratio: 676 / 400; }
.aspect-\[550\/475\] { aspect-ratio: 550 / 475; }
.aspect-\[550\/329\] { aspect-ratio: 550 / 329; }
.aspect-\[549\/817\] { aspect-ratio: 549 / 817; }
.aspect-\[549\/770\] { aspect-ratio: 549 / 770; }
.aspect-\[549\/502\] { aspect-ratio: 549 / 502; }
.aspect-\[549\/386\] { aspect-ratio: 549 / 386; }
.aspect-\[392\/438\] { aspect-ratio: 392 / 438; }

/* Backdrop Blur */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-\[1px\] { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.backdrop-blur-\[2px\] { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* Menú Móvil - Drawer deslizante desde la derecha idéntico al carrito */
#mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  z-index: 9998 !important;
  display: flex !important;
  justify-content: flex-end !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mobile-menu.menu-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

#mobile-menu > div {
  transform: translateX(100%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.3) !important;
}

#mobile-menu.menu-open > div {
  transform: translateX(0) !important;
}

/* Tipografía refinada y proporcionada para el menú móvil */
#mobile-menu nav {
  gap: 16px !important;
}

#mobile-menu nav a {
  font-size: 16px !important;
  letter-spacing: 0.03em !important;
  padding-bottom: 6px !important;
  font-weight: 400 !important;
}

#mobile-menu nav a span:not(.wishlist-count-badge) {
  font-size: 16px !important;
  font-weight: 400 !important;
}

/* ==========================================================================
   SISTEMA DE ANIMACIONES PROFESIONALES TAMEIA (LUXURY EDITORIAL)
   ========================================================================== */

/* 1. Scroll Suave */
html {
  scroll-behavior: smooth;
}

/* 2. Scroll Reveal: Entrada elegante con Fade-Up */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggers para cuadrículas */
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }
.stagger-6 { transition-delay: 0.36s; }

/* 3. Tarjetas de Producto Editorial (Hover suave con micro-elevación) */
.product-card, 
article.product-card,
#catalog-grid article,
#products-grid article {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.product-card:hover, 
article.product-card:hover,
#catalog-grid article:hover,
#products-grid article:hover {
  transform: translateY(-5px);
}

/* Zoom fotográfico ultra fluido */
.product-card img, 
article.product-card img,
.catalog-card-img {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform;
}

.product-card:hover img, 
article.product-card:hover img,
.product-card:hover .catalog-card-img {
  transform: scale(1.045) !important;
}

/* 4. Bloques de Colección (Tienda e Index) */
.group {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.group img {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform;
}

.group:hover img {
  transform: scale(1.05) !important;
}

/* 5. Micro-interacción Botón de Favoritos (Spring Bounce) */
.fav-btn {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
  will-change: transform;
}

.fav-btn:hover {
  transform: scale(1.18) !important;
}

.fav-btn:active {
  transform: scale(0.92) !important;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  75% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.fav-btn[data-liked="true"] svg,
#wishlist-btn[data-liked="true"] svg {
  animation: heartPop 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 6. Botones de Acción y Call-To-Action (Elevación y táctil) */
#add-to-cart-btn,
#btn-confirm-order,
#cart-checkout-btn,
.catalog-quick-add-btn,
a[style*="linear-gradient"],
button[style*="linear-gradient"] {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease, background-color 0.25s ease !important;
  will-change: transform;
}

#add-to-cart-btn:hover,
#btn-confirm-order:hover,
#cart-checkout-btn:hover,
a[style*="linear-gradient"]:hover,
button[style*="linear-gradient"]:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04);
}

#add-to-cart-btn:active,
#btn-confirm-order:active,
#cart-checkout-btn:active,
a[style*="linear-gradient"]:active,
button[style*="linear-gradient"]:active {
  transform: translateY(0) scale(0.98) !important;
}

/* 7. Píldoras de Filtro y Swatches */
.cat-pill,
.card-swatch-btn,
.swatch-btn,
.color-swatch-btn,
.thumb-btn,
.size-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.cat-pill:hover {
  transform: translateY(-1px);
}

.card-swatch-btn:hover,
.swatch-btn:hover,
.color-swatch-btn:hover {
  transform: scale(1.22) !important;
}

.size-btn:hover {
  transform: translateY(-1px);
}

.thumb-btn:hover {
  transform: scale(1.04);
}

/* 8. Transición de Imagen Principal en Detalle de Producto */
#main-product-img {
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease !important;
}

/* 9. Insignias de Carrito y Deseos (Pop de Entrada) */
@keyframes badgePop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.cart-header-badge,
.wishlist-count-badge {
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 10. Drawers Suaves (Carrito & Deseos) */
#cart-drawer,
#wishlist-drawer {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 11. Header Sombra Adaptativa al Hacer Scroll */
header.header-elevated {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.18) !important;
}

/* ==========================================================================
   SISTEMA DE DISEÑO RESPONSIVO INTEGRAL TAMEIA (MOBILE FIRST & FLUID LUXURY)
   ========================================================================== */

/* 1. Reset Global Responsivo y Prevención de Desbordamiento */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* Eliminación de bloques y contornos azules al hacer clic (Tap Highlight & Focus Rings) */
*:focus,
*:focus-visible,
*:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

button,
a,
label,
input[type="radio"],
input[type="checkbox"],
input[type="button"],
input[type="submit"],
.thumb-btn,
.fav-btn,
.size-btn,
.swatch-btn,
.collection-tab,
.cat-pill,
.color-option,
.filter-toggle,
.product-card,
.collection-card {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  user-select: none;
  -webkit-user-select: none;
}

/* En campos de texto, evitar el contorno azul genérico del navegador y usar verde oliva Tameia */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #4f5e2c !important;
  box-shadow: 0 0 0 2px rgba(79, 94, 44, 0.2) !important;
}

/* Selección de texto en color oliva de marca (nunca azul por defecto del navegador) */
::selection {
  background-color: #4f5e2c !important;
  color: #ffffff !important;
}

::-moz-selection {
  background-color: #4f5e2c !important;
  color: #ffffff !important;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video, svg, picture {
  max-width: 100%;
  height: auto;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-drag: none;
}

/* 2. Header & Banner Superior Global */
@media (max-width: 640px) {
  header {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  header img[alt="Tameia"] {
    height: 25px !important;
  }
  #cart-btn, #menu-btn {
    padding: 6px !important;
  }
}

/* 3. Menú Móvil Lateral */
@media (max-width: 480px) {
  #mobile-menu > div {
    width: 88% !important;
    max-width: 320px !important;
    padding: 24px 20px !important;
  }
}

/* 4. Footer Responsivo en Todo el Sitio Web */
@media (max-width: 768px) {
  footer {
    padding: 36px 20px 28px 20px !important;
  }
  footer > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 26px !important;
  }
  footer > div > div:nth-child(1),
  footer > div > div:nth-child(2),
  footer > div > div:nth-child(3) {
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  footer img[alt="CONTACTANOS"],
  footer img[alt="CONTÁCTANOS"] {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 5. Inicio (index.html) */
@media (max-width: 640px) {
  /* Hero Banner */
  section:has(#heroVideo) {
    min-height: 420px !important;
    height: 55vh !important;
  }
  section:has(#heroVideo) > div:last-of-type {
    padding: 20px 16px !important;
  }
  section:has(#heroVideo) img[alt="Ropa Esencial De Lino"] {
    max-width: 320px !important;
  }
  section:has(#heroVideo) p {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 20px !important;
  }
  section:has(#heroVideo) a[href="tienda.html"],
  section:has(#heroVideo) a[href="tienda.php"] {
    font-size: 14px !important;
    padding: 10px 24px !important;
  }
  
  /* Sección Chicas */
  .tameia-chicas-section {
    padding: 36px 0 !important;
  }
  .tameia-chicas-section > div {
    padding: 0 16px !important;
  }
  .tameia-chicas-section div[style*="aspect-ratio"] {
    border-radius: 30px !important;
  }
  .tameia-chicas-section p {
    white-space: normal !important;
    font-size: 14px !important;
  }

  /* Sección Únete a TAMEIA */
  .unete-section {
    padding: 40px 14px !important;
    min-height: 460px !important;
  }
  .unete-section > div {
    border-radius: 28px !important;
    padding: 28px 16px !important;
  }
  .unete-section p {
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin-bottom: 20px !important;
  }
  .unete-section form {
    width: 100% !important;
  }
  .unete-section form input {
    font-size: 15px !important;
    padding: 13px 18px !important;
  }
  .unete-section form button {
    padding: 12px 32px !important;
  }
}

/* 6. Tienda (tienda.html) */
@media (max-width: 640px) {
  #coleccion {
    padding: 32px 14px 20px 14px !important;
  }
  #coleccion h2 {
    font-size: 26px !important;
  }
  #coleccion > div:last-child {
    gap: 10px !important;
  }
  #collection-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }
  .collection-tab {
    flex-shrink: 0 !important;
  }
  .collection-card a {
    padding: 4px 10px !important;
    font-size: 11px !important;
    bottom: 8px !important;
    right: 8px !important;
    left: auto !important;
  }
  section:has(img[alt="Essential Linen Wear"]) > div {
    border-radius: 26px !important;
    padding: 36px 18px !important;
  }
  section:has(img[alt="Essential Linen Wear"]) a {
    padding: 10px 24px !important;
    font-size: 14px !important;
  }
}

/* 7. Catálogos por Categoría (camisas.html, bodies.html, etc.) */
@media (max-width: 860px) {
  .camisas-layout {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 28px !important;
  }
  .camisas-layout > .catalog-filters-aside,
  .camisas-layout > aside {
    width: 100% !important;
    max-width: 520px !important;
    order: -1 !important;
    margin: 0 auto 8px auto !important;
  }
  .camisas-layout > aside h2,
  .catalog-filters-aside h2 {
    text-align: left !important;
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  #products-grid {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    column-gap: 12px !important;
    row-gap: 24px !important;
  }
}

@media (max-width: 640px) {
  main > section:has(.camisas-layout),
  main > section:has(#products-grid) {
    padding: 22px 14px 48px 14px !important;
  }
  #products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 18px !important;
  }
  .product-card h3 {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }
  .product-card p {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 360px) {
  #products-grid {
    column-gap: 8px !important;
    row-gap: 14px !important;
  }
}

/* 8. Ficha de Detalle de Producto (body-detalle.html, camisa-clasica.html, etc.) */
@media (max-width: 860px) {
  .product-detail-layout,
  main > section > div:has(#thumb-gallery) {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }
  /* 1: Imagen Principal */
  .product-main-media,
  main > section > div:has(#thumb-gallery) > div:nth-child(2) {
    width: 100% !important;
    max-width: 460px !important;
    flex: 1 1 auto !important;
    order: 1 !important;
  }
  /* 2: Galería de Miniaturas Horizontal */
  #thumb-gallery {
    flex-direction: row !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 460px !important;
    justify-content: center !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    order: 2 !important;
    -webkit-overflow-scrolling: touch;
  }
  #thumb-gallery button,
  #thumb-gallery .thumb-btn {
    width: 52px !important;
    height: 66px !important;
    flex-shrink: 0 !important;
  }
  /* 3: Información y Compra */
  .product-info-col,
  main > section > div:has(#thumb-gallery) > div:nth-child(3) {
    width: 100% !important;
    max-width: 460px !important;
    flex: 1 1 auto !important;
    order: 3 !important;
  }
}

@media (max-width: 640px) {
  main > section:has(#thumb-gallery),
  main > section:has(.product-detail-layout) {
    padding: 20px 14px 44px 14px !important;
  }
  #product-title {
    font-size: 17px !important;
  }
  #product-price {
    font-size: 14px !important;
  }
  #add-to-cart-btn {
    padding: 13px 18px !important;
    font-size: 12px !important;
  }
}

/* 9. Catálogo Completo (catalogo.html) */
@media (max-width: 640px) {
  main > section:has(#catalog-grid) {
    padding: 24px 14px 60px 14px !important;
  }
  #catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 20px !important;
  }
  #category-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }
  #category-pills button,
  .cat-pill {
    font-size: 11px !important;
    padding: 5px 11px !important;
    flex-shrink: 0 !important;
  }
  #search-input {
    font-size: 13px !important;
    height: 40px !important;
  }
}

@media (max-width: 360px) {
  #catalog-grid {
    column-gap: 8px !important;
    row-gap: 16px !important;
  }
}

/* 10. Lista de Deseos (deseos.html) */
@media (max-width: 640px) {
  main > section:has(#page-wishlist-container) {
    padding: 24px 14px 60px 14px !important;
  }
  #page-wishlist-container > div {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 20px !important;
  }
  main > section:has(#page-wishlist-container) h1 {
    font-size: 28px !important;
  }
}

/* 11. Servicios (servicios.html) */
@media (max-width: 768px) {
  section:has(img[alt="Servicios Tameia"]) {
    min-height: 440px !important;
    height: auto !important;
    padding: 48px 16px 36px 16px !important;
  }
  section:has(img[alt="Servicios Tameia"]) .font-ameda {
    font-size: 40px !important;
    line-height: 1.05 !important;
  }
  section:has(img[alt="Servicios Tameia"]) p {
    font-size: 18px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    align-items: flex-start !important;
    margin-top: 14px !important;
  }
  .servicios-card-container {
    border-radius: 24px !important;
    padding: 28px 16px !important;
  }
  .servicios-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .servicios-grid div[style*="max-width: 410px"] {
    max-width: 100% !important;
  }
  .servicios-grid h3 {
    font-size: 18px !important;
  }
  .servicios-grid p {
    font-size: 15px !important;
  }
}

/* 12. Nosotros (nosotros.html) */
@media (max-width: 768px) {
  section:has(img[alt="Nuestra Esencia"]) {
    min-height: 460px !important;
    height: auto !important;
    padding: 48px 16px 36px 16px !important;
  }
  .nosotros-esencia-card {
    border-radius: 24px !important;
    padding: 24px 18px !important;
  }
  .nosotros-esencia-card p {
    font-size: 16px !important;
  }
  section:has(img[alt="Nuestra inspiración"]) {
    padding: 44px 16px !important;
  }
  section:has(img[alt="Nuestra inspiración"]) div[style*="height: 260px"] {
    height: 200px !important;
    border-radius: 26px !important;
  }
  section:has(img[alt="Nuestra inspiración"]) .items-end {
    align-items: flex-start !important;
    text-align: left !important;
  }
  section:has(img[alt="Textura de fondo"]) {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  section:has(img[alt="Nicholl Rodriguez"]) div[style*="height: 250px"],
  section:has(img[alt="Lucia Cardozo"]) div[style*="height: 250px"] {
    height: 200px !important;
    border-radius: 26px !important;
  }
}

/* 13. Checkout (checkout.html) */
@media (max-width: 900px) {
  main > div[style*="max-width: 1120px"] {
    padding: 20px 14px 60px 14px !important;
  }
  #checkout-main-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #checkout-main-grid aside {
    position: static !important;
  }
  #checkout-form div[style*="padding: 24px"] {
    padding: 18px 14px !important;
  }
}

@media (max-width: 480px) {
  #checkout-form input,
  #checkout-form select,
  #checkout-form textarea {
    font-size: 16px !important;
  }
  #checkout-form div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* 14. Modales y Cajones de Compra / Deseos */
@media (max-width: 480px) {
  #cart-drawer,
  #wishlist-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
  #comparte-modal > div {
    max-width: 92% !important;
    border-radius: 20px !important;
  }
}

/* 15. Botón Limpiar Filtros */
.clear-filters-btn {
  user-select: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.clear-filters-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   16. PAGINACIÓN TAMEIA (COMPONENTE GLOBAL UNIFICADO)
   ========================================================================== */
.tameia-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  margin-bottom: 24px;
  font-family: 'Louis George Cafe', sans-serif;
}

.tameia-pagination button {
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.tameia-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #faf6ef;
  border-color: #dcd4c6;
  color: #9c9387;
}

/* Botones Ovalados (Anterior y Siguiente) */
.tameia-pagination .page-prev-btn, 
.tameia-pagination .page-next-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid #dcd4c6;
  background-color: #faf6ef;
  color: #29402f;
  font-size: 14px;
  font-weight: normal;
}

.tameia-pagination .page-prev-btn:not(:disabled):hover, 
.tameia-pagination .page-next-btn:not(:disabled):hover {
  background-color: #29402f;
  color: #ffffff;
  border-color: #29402f;
  transform: translateY(-1px);
}

/* Botones Circulares (Números) */
.tameia-pagination .page-num-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #dcd4c6;
  background-color: #faf6ef;
  color: #29402f;
  font-size: 15px;
  padding: 0;
}

.tameia-pagination .page-num-btn:hover {
  border-color: #29402f;
  transform: translateY(-1px);
}

/* Botón del Número Actual (Verde oscuro) */
.tameia-pagination .page-num-btn.active {
  background-color: #29402f;
  color: #ffffff;
  border-color: #29402f;
  font-weight: bold;
}