/*
Theme Name: Storefront Child Dos Soles
Description: Child theme of Storefront for Dos Soles.
Author: Antigravity AI
Template: storefront
Version: 1.0.0
Text Domain: storefront-child-dos-soles
*/

/* Fonts loaded via preconnect in header.php for optimal performance */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

:root {
  --color-red-primary: #D4000C;
  --color-red-menu: #c1000b;
  --color-red-dark: #D4000C;
  --color-accent-gold: #dd9933;
  --color-accent-gold-dark: #a06f26;
  --color-bg-white: #ffffff;
  --color-text-neutral: #4c4d52;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --color-border-light: #eaeaea;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Base resets & theme overrides */
* {
  box-sizing: border-box;
  border-color: var(--color-border-light);
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-neutral);
  background-color: #fafafa;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-red-dark);
}

.border-top { border-top: 1px solid var(--color-border-light); }
.border-bottom { border-bottom: 1px solid var(--color-border-light); }
.section-padding {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Notification bar */
.notification-bar {
  background-color: var(--color-red-primary);
  color: var(--color-bg-white);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem 0;
}
.notification-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.notification-content .divider {
  opacity: 0.5;
}
@media (max-width: 480px) {
  .notification-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  .notification-content .divider {
    display: none;
  }
}

/* Google Reviews Trust Strip (Sub-Header) */
.google-trust-strip {
  background-color: #FFFDF7;
  border-bottom: 1px solid #EFE4CC;
  padding: 0.45rem 1rem;
  font-family: var(--font-secondary, 'Montserrat', sans-serif);
  line-height: 1;
}

.google-trust-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.google-trust-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-decoration: none !important;
  color: #374151 !important;
  transition: opacity 0.25s ease;
}

.google-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(239, 228, 204, 0.8);
}

.google-trust-g-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-trust-g-icon .google-g-svg {
  display: block;
}

.google-trust-score {
  font-size: 0.8rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1;
}

.google-trust-stars {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
  color: #FFC107;
  flex-shrink: 0;
}

.google-trust-stars .star-svg {
  display: block;
  fill: #FFC107;
}

.google-trust-text-desktop {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.02em;
}

.google-trust-highlight {
  color: var(--color-red-primary, #8E0000);
  font-weight: 700;
}

.google-trust-text-mobile {
  display: none;
}

.google-trust-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-red-primary, #8E0000) !important;
  text-decoration: underline;
  letter-spacing: 0.04em;
  text-underline-offset: 2px;
}

.google-trust-cta .arrow-red-svg {
  stroke: var(--color-red-primary, #8E0000) !important;
  color: var(--color-red-primary, #8E0000) !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.google-trust-link:hover .arrow-red-svg {
  transform: translate(2px, -2px);
}

.google-trust-link:hover {
  opacity: 0.92;
}

/* Header & Search */
.main-header {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transform: none !important;
}
.header-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 1rem 1rem;
  gap: 1rem;
  box-sizing: border-box;
  max-width: 1320px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .header-top-grid {
    grid-template-columns: auto 1fr auto;
    padding: 1rem 2.5rem;
    gap: 2.5rem;
  }
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
}
.header-brand-logo {
  height: 52px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain !important;
  display: block !important;
  filter: none !important;
  opacity: 1 !important;
  background: transparent !important;
  transition: transform 0.2s ease !important;
}
.logo-link:hover .header-brand-logo {
  transform: scale(1.02) !important;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
  height: 42px;
  box-sizing: border-box;
}
.search-wrapper,
form.search-wrapper,
.search-container form {
  position: relative;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}
#header-search-input {
  width: 100%;
  height: 42px;
  line-height: 42px;
  padding: 0 44px 0 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  background-color: #f8fafc;
  font-family: inherit;
  font-size: 0.84rem;
  color: #1e293b;
  outline: none;
  margin: 0;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
#header-search-input::placeholder {
  color: #94a3b8;
  font-size: 0.825rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
}
#header-search-input:focus {
  border-color: var(--color-red-primary, #c61920);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(198, 25, 32, 0.12);
}
.search-submit-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
  z-index: 2;
}
.search-submit-btn:hover,
.search-submit-btn:focus {
  color: var(--color-red-primary, #c61920);
  background-color: rgba(198, 25, 32, 0.08);
  outline: none;
}
.search-icon {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0;
  pointer-events: none;
}
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-elevated);
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}
.search-results-list {
  list-style: none;
}
.search-results-list li {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.search-results-list li:hover {
  background-color: #f9f9f9;
}
.search-results-list li .price {
  float: right;
  color: var(--color-red-primary);
  font-weight: bold;
}
.no-results {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-neutral);
}

.action-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 42px;
  margin: 0;
}
.btn-soy-profesional {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  box-sizing: border-box;
  border: 1.5px solid var(--color-red-primary, #c61920);
  border-radius: 9999px;
  background-color: transparent;
  color: var(--color-red-primary, #c61920);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin: 0;
}
.btn-soy-profesional:hover {
  background-color: var(--color-red-primary, #c61920);
  color: #ffffff;
}
.btn-soy-profesional .btn-prof-icon {
  width: 14px;
  height: 14px;
}

.cart-trigger {
  height: 42px;
  width: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  color: #1e293b;
  border-radius: 50%;
  transition: background 0.2s ease;
  margin: 0;
}
.cart-trigger:hover {
  background-color: #f1f5f9;
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--color-red-primary, #c61920);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav Menu */
.navigation-bar-container {
  border-top: 1px solid var(--color-border-light);
  position: relative;
  display: block !important;
  height: auto !important;
  overflow: visible !important;
}
.nav-menu {
  list-style: none;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  padding: 0.75rem 0 !important;
  margin: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 991px) {
  .nav-menu {
    gap: 1rem;
    padding: 0.5rem 1rem;
  }
}
.nav-menu li {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}
.nav-menu a,
.nav-link {
  font-family: var(--font-primary) !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #111111 !important;
  text-decoration: none !important;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s ease;
  position: relative;
  text-transform: uppercase;
}
.nav-menu a:visited,
.nav-link:visited {
  color: #111111 !important;
}
.nav-menu a:hover,
.nav-link:hover {
  color: var(--color-red-primary) !important;
}

/* Dropdowns & Submenus */
.dropdown-container,
.nav-menu .menu-item-has-children {
  position: relative;
}
.dropdown-menu,
.nav-menu .sub-menu {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  background-color: var(--color-bg-white) !important;
  border: 1px solid var(--color-border-light) !important;
  border-radius: 16px !important;
  list-style: none !important;
  min-width: 220px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 9999 !important;
  margin-top: 0.25rem;
  padding: 8px 0 !important;
}

/* Level 3 Sub-menu (Flyout to the right of parent Level 2 item) */
.nav-menu .sub-menu .sub-menu {
  top: -8px !important;
  left: 100% !important;
  transform: none !important;
  margin-left: 4px !important;
  margin-top: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  min-width: 230px !important;
}

.dropdown-container:hover > .dropdown-menu,
.nav-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}
.dropdown-menu li,
.nav-menu .sub-menu li {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  position: relative !important;
}
.dropdown-menu li a,
.nav-menu .sub-menu li a {
  display: block !important;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.85rem !important;
  color: var(--color-text-neutral) !important;
  text-transform: none !important;
  font-weight: 500 !important;
  border-bottom: 1px solid #f9f9f9 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Red Right Arrow Indicator for Level 2 items with children */
.nav-menu .sub-menu li.menu-item-has-children > a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.nav-menu .sub-menu li.menu-item-has-children > a::after {
  content: '›' !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--color-red-primary) !important;
  margin-left: 8px !important;
  line-height: 1 !important;
}

.dropdown-menu li:last-child a,
.nav-menu .sub-menu li:last-child a {
  border-bottom: none !important;
}
.dropdown-menu li a:hover,
.nav-menu .sub-menu li a:hover {
  background-color: #f9f9f9 !important;
  color: var(--color-red-primary) !important;
}

/* Hero Grid Section (Farmacity Style) */
.hero-grid-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
  margin: 0 auto;
}

.hero-slider-section {
  position: relative;
  overflow: hidden;
  height: 520px;
  background-color: var(--color-red-dark);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  order: 1; /* Slider first on mobile/tablet */
}

@media (max-width: 768px) {
  .hero-slider-section {
    height: 440px;
  }
}

/* Side promo column layout */
.hero-side-promo-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.hero-side-promo-column.left-column {
  order: 2; /* Below slider on mobile/tablet */
}

.hero-side-promo-column.right-column {
  order: 3; /* Below left promos on mobile/tablet */
}

/* SIDE PROMO CARDS (ABSOLUTE SYMMETRY & CONTEMPORARY LUXURY) */
.side-promo-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1 / 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.08) 75%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.side-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.side-promo-card:hover::after {
  opacity: 0.95;
}

.promo-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0.75rem 0.85rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  box-sizing: border-box;
}

.promo-card-kicker {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.56rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #ff4d58 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
  margin-bottom: 0.2rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* Fixed 2-line title container for mathematical baseline alignment across all cards */
.promo-card-title {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
  text-transform: uppercase !important;
  min-height: 2.4em !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 0.45rem 0 !important;
  width: 100% !important;
}

.promo-card-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--color-red-dark, #8b0000) !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  height: 25px !important;
  padding: 0 0.8rem !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.side-promo-card:hover .promo-card-cta {
  background: var(--color-red-primary, #d11a2a) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(209, 26, 42, 0.45) !important;
}

@media (max-width: 768px) {
  .hero-grid-container {
    gap: 0.75rem;
    padding: 0.5rem 0;
  }
  .hero-side-promo-column {
    gap: 0.75rem;
  }
}

@media (max-width: 360px) {
  .hero-grid-container {
    gap: 0.5rem;
  }
  .hero-side-promo-column {
    gap: 0.5rem;
  }
  .promo-card-content {
    padding: 0.55rem 0.65rem;
  }
  .promo-card-kicker {
    font-size: 0.5rem !important;
  }
  .promo-card-title {
    font-size: 0.68rem !important;
    min-height: 2.3em !important;
  }
  .promo-card-cta {
    font-size: 0.54rem !important;
    height: 22px !important;
    padding: 0 0.6rem !important;
  }
}

@media (min-width: 1024px) {
  .hero-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
  .hero-slider-section {
    order: unset;
    height: 100%;
    min-height: 530px;
    border-radius: 16px;
  }
  .hero-side-promo-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
  }
  .hero-side-promo-column.left-column,
  .hero-side-promo-column.right-column {
    order: unset;
  }
  .side-promo-card {
    flex: 1;
    min-height: unset;
    aspect-ratio: auto;
    height: calc((100% - 1.5rem) / 2);
    border-radius: 14px;
  }
  .promo-card-content {
    padding: 1.15rem 1.25rem;
  }
  .promo-card-kicker {
    font-size: 0.62rem !important;
    margin-bottom: 0.25rem !important;
  }
  .promo-card-title {
    font-size: 0.88rem !important;
    min-height: 2.35em !important;
    margin-bottom: 0.55rem !important;
  }
  .promo-card-cta {
    font-size: 0.68rem !important;
    height: 28px !important;
    padding: 0 1rem !important;
  }
}
.hero-slider {
  height: 100%;
  position: relative;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.52) 38%, rgba(10, 10, 10, 0.12) 65%, transparent 85%);
  z-index: 1;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Animaciones para el Slide Activo */
.hero-slide .slide-subtitle,
.hero-slide .slide-title,
.hero-slide .slide-description,
.hero-slide .btn-bento-primary {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.hero-slide.active .slide-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.hero-slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}
.hero-slide.active .slide-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}
.hero-slide.active .btn-bento-primary {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* HERO SLIDER (ABSOLUTE SYMMETRY & CONTEMPORARY LUXURY) */
.slide-content {
  color: #ffffff;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 2;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-subtitle {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  color: #ff3b44 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
  display: inline-block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

/* Fixed 2-line title container so all 6 slides are 100% vertically identical */
.slide-title {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.2 !important;
  margin-bottom: 0.3rem !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95) !important;
  min-height: 2.4em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

/* Fixed 2-line description container */
.slide-description {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.76rem !important;
  line-height: 1.3 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 0.75rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
  min-height: 2.6em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 440px !important;
}

.btn-bento-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  background: linear-gradient(135deg, #d11a2a 0%, #b31422 100%) !important;
  color: #ffffff !important;
  height: 38px !important;
  padding: 0 1.6rem !important;
  border-radius: 9999px !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 4px 16px rgba(209, 26, 42, 0.45) !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-bento-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(209, 26, 42, 0.65) !important;
  color: #ffffff !important;
}

@media (min-width: 1024px) {
  .slide-content {
    bottom: 34px !important;
    max-width: 540px !important;
  }
  .slide-subtitle {
    font-size: 0.78rem !important;
    margin-bottom: 0.35rem !important;
  }
  .slide-title {
    font-size: 1.6rem !important;
    min-height: 2.35em !important;
    margin-bottom: 0.4rem !important;
  }
  .slide-description {
    font-size: 0.88rem !important;
    min-height: 2.65em !important;
    margin-bottom: 0.95rem !important;
  }
  .btn-bento-primary {
    height: 42px !important;
    padding: 0 1.9rem !important;
    font-size: 0.82rem !important;
  }
}

/* Flechas del Slider - Diseño frosted glass premium */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  color: #1a1a1a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  padding: 0 !important;
  min-width: 0 !important;
  line-height: 0 !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.slider-arrow:hover {
  background-color: var(--color-red-primary, #c61920) !important;
  border-color: var(--color-red-primary, #c61920) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(198, 25, 32, 0.4);
}
.slider-arrow svg {
  stroke: #1a1a1a !important;
  fill: none !important;
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: stroke 0.2s ease, transform 0.2s ease;
}
.slider-arrow:hover svg {
  stroke: #ffffff !important;
}
.slider-arrow-prev {
  left: 14px;
}
.slider-arrow-prev:hover svg {
  transform: translateX(-2px);
}
.slider-arrow-next {
  right: 14px;
}
.slider-arrow-next:hover svg {
  transform: translateX(2px);
}
@media (max-width: 768px) {
  .slider-arrow {
    display: none !important; /* Se prioriza el swipe en móviles */
  }
}

.slider-controls {
  position: absolute !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  z-index: 10 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 1024px) {
  .slider-controls {
    bottom: 12px !important;
    gap: 8px !important;
  }
}

.slider-dot {
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  max-width: 6px !important;
  min-height: 6px !important;
  max-height: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
}
.slider-dot::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
.slider-dot.active {
  background-color: var(--color-red-primary, #d11a2a) !important;
  border-color: var(--color-red-primary, #d11a2a) !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 6px !important;
  min-height: 6px !important;
  max-height: 6px !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 6px rgba(209, 26, 42, 0.6) !important;
}

/* Section Header Sliders */
.section-header-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.slider-nav {
  display: flex;
  gap: 0.75rem;
}
.btn-prev, .btn-next {
  background: none;
  border: 1px solid var(--color-red-dark);
  color: var(--color-red-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-prev:hover, .btn-next:hover {
  background-color: var(--color-red-dark);
  color: var(--color-bg-white);
}

.slider-progress-container {
  width: 100%;
  height: 2px;
  background-color: var(--color-border-light);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.slider-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-red-dark);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Benefits Section */
.benefits-section {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: 2rem 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 576px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.benefit-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.benefit-icon {
  color: var(--color-red-dark);
  flex-shrink: 0;
}
.benefit-text {
  display: flex;
  flex-direction: column;
}
.benefit-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-red-dark);
  margin: 0;
}
.benefit-desc {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #777777;
  margin: 0.2rem 0 0 0;
}

/* Bento Grid */
.bento-section {
  padding: 4.5rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-red-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-neutral);
}
.bento-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
  }
}
.bento-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: var(--transition-smooth), border-color 0.3s ease;
  z-index: 1;
}
.bento-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11,26,72,0.85) 0%, rgba(11,26,72,0.2) 65%, rgba(11,26,72,0.05) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}
.bento-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.bento-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-content {
  position: relative;
  z-index: 3;
  color: var(--color-bg-white);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-badge {
  display: inline-block;
  background-color: var(--color-red-primary);
  color: var(--color-bg-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.bento-tile-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  color: var(--color-bg-white) !important;
  text-transform: uppercase;
}
.bento-tile-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 1rem;
  max-width: 90%;
  display: none;
}
.bento-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}
@media (min-width: 768px) {
  .coloracion-tile {
    grid-column: span 2;
    grid-row: span 2;
  }
  .coloracion-tile .bento-tile-desc {
    display: block;
  }
  .coloracion-tile .bento-tile-title {
    font-size: 1.9rem;
  }
  .tratamientos-tile {
    grid-column: span 2;
    grid-row: span 1;
  }
  .tratamientos-tile .bento-tile-desc {
    display: block;
  }
  .herramientas-tile {
    grid-column: span 1;
    grid-row: span 1;
  }
  .styling-tile {
    grid-column: span 1;
    grid-row: span 1;
  }
}
@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-tile {
    height: 250px;
  }
  .bento-tile-desc {
    display: block;
  }
}
.bento-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-red-primary);
}
.bento-tile:hover .bento-image {
  transform: scale(1.08);
}
.bento-tile:hover::before {
  opacity: 0.95;
}
.bento-tile:hover .bento-content {
  transform: translateY(-4px);
}
.bento-tile:hover .bento-link {
  color: var(--color-red-primary);
  transform: translateX(4px);
}

/* Brands Slider Section */
.brands-section {
  padding: 4.5rem 0;
}
.brands-slider-container {
  position: relative;
  overflow: hidden;
}
.brands-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.brands-slider::-webkit-scrollbar {
  display: none;
}
.brand-card {
  flex: 0 0 calc((100% - 20px) / 2);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-bg-white);
  transition: var(--transition-smooth);
}
@media (min-width: 768px) {
  .brand-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}
@media (min-width: 1024px) {
  .brand-card {
    flex: 0 0 calc((100% - 60px) / 4);
  }
}
.brand-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  background-color: var(--color-bg-white);
}
.brand-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-card:hover .brand-image {
  transform: scale(1.05);
}
.brand-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.brand-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-red-dark);
  margin: 0;
  text-align: center;
}
.btn-discover {
  width: 100%;
  background-color: #000000;
  color: var(--color-bg-white);
  border: none;
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease;
  white-space: nowrap !important;
}
.btn-discover:hover {
  background-color: var(--color-red-primary);
}

/* Products Section */
.products-section {
  padding: 4.5rem 0;
}
.products-slider-container {
  position: relative;
  overflow: hidden;
}
.products-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.products-slider::-webkit-scrollbar {
  display: none;
}
.products-slider .product-card {
  flex: 0 0 calc((100% - 20px) / 2);
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .products-slider .product-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}
@media (min-width: 1024px) {
  .products-slider .product-card {
    flex: 0 0 calc((100% - 60px) / 4);
  }
}

.product-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,26,72,0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.product-image-container {
  position: relative;
  overflow: hidden;
  background-color: #f9f9f9;
  aspect-ratio: 1;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image {
  transform: scale(1.06);
}
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  z-index: 2;
  color: var(--color-bg-white);
}
.badge-exclusive { background-color: var(--color-red-dark); }
.badge-sale { background-color: var(--color-red-primary); }
.badge-new { background-color: var(--color-red-dark); }

.product-hover-action {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(11,26,72,0.4) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 3;
}
.product-card:hover .product-hover-action {
  opacity: 1;
  transform: translateY(0);
}
.btn-add-to-cart {
  width: 100%;
  background-color: var(--color-bg-white);
  color: var(--color-red-dark);
  border: none;
  padding: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}
.btn-add-to-cart:hover {
  background-color: var(--color-red-primary);
  color: var(--color-bg-white);
}
.product-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-red-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-red-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-red-primary);
  margin-top: auto;
}

/* Footer & Newsletter */
.main-footer {
  background-color: var(--color-red-primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.newsletter-section {
  background-color: #f9f9f9;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: 3rem 0;
}
.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .newsletter-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.newsletter-text h3 {
  color: var(--color-red-dark);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.newsletter-text p {
  color: var(--color-text-neutral);
  font-size: 0.85rem;
}
.newsletter-form {
  width: 100%;
  max-width: 450px;
}
.newsletter-form .input-group {
  display: flex !important;
  align-items: center !important;
  background-color: #ffffff !important;
  border: 1px solid var(--color-border-light, #e0e0e0) !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  padding: 4px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  transition: var(--transition-smooth) !important;
}
.newsletter-form .input-group:focus-within {
  border-color: var(--color-red-primary) !important;
  box-shadow: 0 0 0 3px rgba(212,0,12,0.12) !important;
}
#newsletter-email {
  flex-grow: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.6rem 1.25rem !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  color: var(--color-red-dark) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}
#newsletter-email::placeholder {
  color: #999999 !important;
}
.btn-subscribe {
  background-color: var(--color-red-primary);
  color: var(--color-bg-white);
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-subscribe:hover {
  background-color: #a80008;
  color: var(--color-bg-white);
}
.newsletter-message {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
}
.newsletter-message.success {
  color: #2ec4b6;
}
.newsletter-message.error {
  color: var(--color-red-primary);
}

.footer-links-section {
  background-color: var(--color-red-primary);
  padding: 4rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
  }
}
.footer-logo {
  margin-bottom: 1.5rem;
}
.footer-brand-logo {
  max-width: 160px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) !important;
  transition: var(--transition-smooth);
}
.footer-title {
  color: var(--color-bg-white);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.footer-about {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.85rem;
}
.footer-links li a:hover {
  color: var(--color-red-primary);
  padding-left: 4px;
}

.payment-logos {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.payment-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-bg-white);
  transition: var(--transition-smooth);
}
.payment-logo:hover {
  border-color: var(--color-bg-white);
  background-color: rgba(255, 255, 255, 0.1);
}
.payment-svg {
  display: block;
}

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-bg-white);
  transition: var(--transition-smooth);
}
.social-links a:hover {
  background-color: var(--color-bg-white);
  color: var(--color-red-primary);
  border-color: var(--color-bg-white);
  transform: translateY(-2px);
}

.copyright-bar {
  background-color: #a80008;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* Custom Overrides for WooCommerce pages in child theme */
.woocommerce-products-header {
  margin-bottom: 1rem !important;
}
.woocommerce-loop-product__title {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  color: var(--color-red-dark) !important;
}
.woocommerce-Price-amount {
  color: var(--color-red-primary) !important;
  font-weight: 800;
}
/* -------------------------------------------------------------
 * Modern E-Commerce Sale Badge (Dos Soles)
 * ------------------------------------------------------------- */
ul.products li.product {
  position: relative !important;
}

ul.products li.product .onsale,
.wc-block-grid__product-onsale,
.product-carousel-card .onsale,
.product-image-wrapper .onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  z-index: 8 !important;
  background: var(--color-red-primary, #d4000c) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  font-family: var(--font-primary, inherit) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 8px rgba(212, 0, 12, 0.28) !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  pointer-events: none !important;
}

div.product .onsale {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  z-index: 10 !important;
  background: var(--color-red-primary, #d4000c) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  font-family: var(--font-primary, inherit) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 3px 10px rgba(212, 0, 12, 0.3) !important;
  line-height: 1.2 !important;
  pointer-events: none !important;
}

/* Custom FAQ Accordions */
.faq-accordion {
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--color-bg-white);
}
.faq-header {
  padding: 1.25rem 1.5rem;
  background: #fdfdfd;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--color-red-dark);
  user-select: none;
}
.faq-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-text-neutral);
  font-size: 0.9rem;
}
.faq-accordion.active .faq-content {
  padding: 1.25rem 1.5rem;
  max-height: 500px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-accordion.active .faq-icon {
  transform: rotate(180deg);
}

/* Base aesthetic definitions */
body {
    background-color: #ffffff;
}
h1, h2, h3, h4, h5, h6, .section-title {
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* No sidebars adjustment for Storefront Home Page */
.home.right-sidebar #primary,
.home.left-sidebar #primary,
.home #primary.full-width-page-layout {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 15px;
    box-sizing: border-box;
}
.home #secondary {
    display: none !important;
}

/* 2. Benefits Bar Styling */
.benefits-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: 22px 0;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 200px;
    justify-content: center;
    transition: var(--transition-smooth);
}
.benefit-item:hover {
    transform: translateY(-2px);
}
.benefit-item svg {
    color: var(--color-red-dark);
    stroke-width: 1.5px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.benefit-item:hover svg {
    color: var(--color-red-primary);
}
.benefit-item span {
    font-family: var(--font-primary), sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-red-dark);
}

/* 3. Bento Grid Categories */
.bento-grid-section {
    margin: 50px 0;
}
.section-title {
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background-color: #fcfcfc;
}
.bento-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-item:hover .bento-bg {
    transform: scale(1.05);
}
.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
    box-sizing: border-box;
}
.bento-overlay h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-transform: uppercase;
}
.bento-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}
/* Grid layout placements for desktop */
.category-coloracion {
    grid-column: span 6;
    grid-row: span 2;
}
.category-tratamientos {
    grid-column: span 6;
    grid-row: span 1;
}
.category-styling {
    grid-column: span 3;
    grid-row: span 1;
}
.category-herramientas {
    grid-column: span 3;
    grid-row: span 1;
}

/* 4. Carousel Framework (Common) */
.carousel-section {
    margin: 60px auto;
    position: relative;
}
.carousel-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.carousel-nav {
    display: flex;
    gap: 10px;
}
.carousel-arrow {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    color: #1a1a1a !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    padding: 0 !important;
    min-width: 0 !important;
    line-height: 0 !important;
    border-radius: 50% !important;
    outline: none !important;
}
.carousel-arrow:hover {
    background: var(--color-red-primary, #D4000C) !important;
    color: #ffffff !important;
    border-color: var(--color-red-primary, #D4000C) !important;
}
.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: -12px;
    margin-bottom: -12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide standard scrollbar */
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Hide standard scrollbar Chrome/Safari */
}
.carousel-track {
    display: flex;
    gap: 20px;
    touch-action: pan-y;
}

/* 5. Brand Carousel Specific */
.brand-carousel .brand-card {
    flex: 0 0 calc(25% - 15px); /* 4 columns on desktop */
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    height: 180px;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.brand-carousel .brand-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.brand-logo-container {
    height: 65px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    overflow: hidden;
}
.brand-logo-img {
    max-width: 140px;
    max-height: 55px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
}
.brand-carousel .brand-card:hover .brand-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.03);
}
.brand-carousel .btn-discover {
    display: inline-block;
    background: var(--color-red-dark, #8e0000);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 8px 22px;
    border: 1px solid var(--color-red-dark, #8e0000);
    border-radius: 30px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap !important;
}
.brand-carousel .btn-discover:hover {
    background: var(--color-primary, #d02626);
    border-color: var(--color-primary, #d02626);
    color: #ffffff;
}

/* 6. Product Carousel Specific */
.product-carousel-card {
    position: relative !important;
    flex: 0 0 calc(25% - 15px); /* 4 columns on desktop */
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}
.product-carousel-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-red-primary);
    box-shadow: var(--shadow-elevated);
}
.product-card-link {
    text-decoration: none;
    color: var(--color-red-dark);
}
.product-image-wrapper {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}
.product-image-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-carousel-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}
.product-title {
    font-family: var(--font-primary), sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-red-dark);
    margin: 10px 0 5px 0;
    height: 38px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.product-price {
    font-family: var(--font-primary), sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-red-dark);
    display: block;
    margin-bottom: 15px;
}
.product-price del {
    color: #8c9096;
    text-decoration: line-through;
    font-size: 0.85em;
    margin-right: 8px;
    font-weight: 400;
}
.product-price ins {
    color: var(--color-red-primary);
    text-decoration: none;
    font-weight: 700;
}
.product-action-wrapper {
    margin-top: auto;
}
.product-action-wrapper .button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-red-dark);
    color: var(--color-bg-white);
    border: none;
    border-radius: 50px;
    padding: 10px 0;
    font-family: var(--font-primary), sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(11, 26, 72, 0.1);
}
.product-action-wrapper .button:hover {
    background-color: var(--color-red-primary);
    color: var(--color-bg-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 0, 12, 0.25);
}

/* 7. Progress Bar Styling */
.carousel-progress-wrapper {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}
.carousel-progress-bar {
    width: 200px;
    height: 2px;
    background: #e5e5e5;
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}
.carousel-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #1a1a1a;
    transition: width 0.1s ease-out;
}

/* 8. Responsiveness (Mobile Viewports) */
@media (max-width: 991px) {
    .bento-grid {
        grid-auto-rows: 200px;
    }
}

@media (max-width: 767px) {
    .benefits-bar {
        padding: 15px;
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        gap: 12px;
    }
    .benefit-item {
        flex: 1 1 auto;
        min-width: 140px;
        font-size: 10px;
        justify-content: center;
    }
    
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .bento-item {
        height: 220px;
    }
    
    .brand-card {
        flex: 0 0 calc(50% - 10px);
        height: 160px;
    }
    .product-carousel-card {
        flex: 0 0 calc(50% - 10px);
    }
    .product-image-wrapper {
        height: 150px;
    }
}

/* Custom WooCommerce Shop / Catalog Overrides */
.woocommerce-shop-container {
    margin: 20px auto !important;
}
.shop-sidebar .widget {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 25px;
}
.shop-sidebar .widget:last-child {
    border-bottom: none;
}
.shop-sidebar .widget-title {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--color-red-dark) !important;
    margin-bottom: 15px !important;
}

/* YITH Filter custom overrides */
.yith-wcan-filter, .widget_yith_wcan_navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.yith-wcan-filter li, .widget_yith_wcan_navigation ul li {
    padding: 6px 0 !important;
    font-size: 13px !important;
    font-family: var(--font-primary) !important;
    border: none !important;
}
.yith-wcan-filter li a, .widget_yith_wcan_navigation ul li a {
    color: var(--color-text-neutral) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.yith-wcan-filter li a:hover,
.widget_yith_wcan_navigation ul li.chosen a,
.widget_yith_wcan_navigation ul li a:hover {
    color: var(--color-red-primary) !important;
}

/* Catalog Ordering Select Styling */
.woocommerce-ordering {
    margin-bottom: 30px !important;
    float: none !important;
    display: flex;
    justify-content: flex-end;
}
.woocommerce-ordering select {
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 10px 32px 10px 15px !important;
    border: 1px solid #e5e5e5 !important;
    background-color: #ffffff !important;
    border-radius: 0 !important;
    color: var(--color-red-dark) !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%238e0000' d='M0 0h10L5 6z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 8px 5px !important;
    transition: border-color 0.3s ease !important;
}
.woocommerce-ordering select:focus {
    border-color: var(--color-red-dark) !important;
    outline: none !important;
}

/* Woo Variation Swatches Custom Styling */
.variations_form .variations {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}
.variations_form .variations td.label {
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--color-red-dark) !important;
    padding: 8px 0 !important;
    vertical-align: middle;
}
.variations_form .variations td.value {
    padding: 8px 0 !important;
}
.variable-items-wrapper {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.variable-item {
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important; /* Square edges for brand feel */
    padding: 8px 14px !important;
    min-width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--color-text-neutral) !important;
    cursor: pointer !important;
    background-color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}
.variable-item:hover {
    border-color: var(--color-red-dark) !important;
}
.variable-item.selected {
    border-color: var(--color-red-dark) !important;
    box-shadow: 0 0 0 1px var(--color-red-dark) !important;
    color: var(--color-red-dark) !important;
    font-weight: 700 !important;
}
.variable-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
    border-style: dashed !important;
}
/* Exception: keep color swatches rounded and minimal */
.variable-item.color-variable-item {
    border-radius: 50% !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
}
.variable-item.color-variable-item .variable-item-span-color {
    border-radius: 50% !important;
}

/* Installments Box styling */
.installment-table-wrapper {
    margin: 25px 0;
    border: 1px solid var(--color-border-light);
    background-color: #fcfcfc;
    padding: 18px;
    border-radius: 0;
}
.installment-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--color-red-dark);
    font-weight: 600;
}
.installment-badge svg {
    color: var(--color-red-primary);
    stroke-width: 1.5px;
    flex-shrink: 0;
}
.installment-details {
    margin-top: 15px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 15px;
}
.installment-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-primary);
    font-size: 12px;
}
.installment-table th,
.installment-table td {
    padding: 10px 0;
    text-align: left;
    color: var(--color-text-neutral);
}
.installment-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--color-red-dark);
    border-bottom: 1px solid var(--color-border-light);
}
.installment-table tbody tr {
    border-bottom: 1px solid #f2f2f2;
}
.installment-table tbody tr:last-child {
    border-bottom: none;
}
.installment-table .installment-highlight {
    font-weight: 700;
    color: var(--color-red-primary);
}
.installment-table .installment-highlight td {
    color: var(--color-red-primary);
}

/* ==========================================================================
   Mobile Responsive Navigation & Header Improvements
   ========================================================================== */

/* Mobile elements hidden by default on desktop */
.mobile-menu-header,
.mobile-menu-footer,
.menu-overlay,
.menu-toggle-btn,
.menu-accordion-toggle {
  display: none !important;
}

/* Hamburger Toggle Button */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}
.menu-toggle-btn .hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-red-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

@media (max-width: 991px) {
  /* 1. Header Layout Grid mapping */
  .header-top-grid {
    display: grid !important;
    grid-template-areas: 
      "toggle logo cart"
      "search search search" !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    padding: 0.75rem 1rem !important;
    gap: 0.75rem !important;
  }
  .menu-toggle-btn {
    grid-area: toggle;
    display: flex !important;
  }
  .logo-container {
    grid-area: logo;
    justify-content: center;
  }
  .action-links {
    grid-area: cart;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
  }
  .search-container {
    grid-area: search;
    max-width: 100% !important;
    margin-top: 0.25rem;
  }
  .action-links .btn-portal-mayorista,
  .action-links .btn-soy-profesional {
    display: none !important; /* Hide professional portal button on top mobile header */
  }
  .header-brand-logo {
    height: 38px !important;
    width: auto !important;
    max-width: 165px !important;
    display: block !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
  }
  #header-search-input {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 38px 0 16px !important;
    font-size: 0.825rem !important;
  }

  /* 2. Top notification bar (Mobile 1-Line Clean Layout) */
  .notification-bar {
    padding: 0.4rem 0 !important;
  }
  .notification-content {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .notification-content .promo-text {
    font-size: 0.65rem !important;
    letter-spacing: 0.05em !important;
    text-align: center;
    font-weight: 700;
  }
  .notification-content .divider,
  .notification-content .promo-subtext {
    display: none !important; /* Hide extra elements on mobile */
  }

  /* 2.1 Google Reviews Trust Strip (Mobile Clean Pill) */
  .google-trust-strip {
    padding: 0.4rem 0.75rem !important;
  }
  .google-trust-text-desktop {
    display: none !important;
  }
  .google-trust-text-mobile {
    display: inline-block !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    letter-spacing: 0.02em !important;
  }
  .google-trust-cta .cta-label {
    display: none !important;
  }
  .google-trust-link {
    gap: 0.5rem !important;
  }
  .google-trust-pill {
    padding: 0.15rem 0.45rem !important;
  }
  .google-trust-score {
    font-size: 0.75rem !important;
  }
  .google-trust-cta .arrow-red-svg {
    width: 12px !important;
    height: 12px !important;
    stroke: var(--color-red-primary, #8E0000) !important;
  }

  /* 3. Slide-out Drawer Panel */
  .navigation-bar-container {
    border-top: none !important;
  }
  .navigation-drawer-content {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--color-bg-white) !important;
    z-index: 100000 !important;
    box-shadow: 0 0 30px rgba(11, 26, 72, 0.15) !important;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.mobile-menu-open .navigation-drawer-content {
    left: 0 !important;
  }

  /* Backdrop Overlay */
  .menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: rgba(11, 26, 72, 0.45) !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease !important;
  }
  body.mobile-menu-open .menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Disable body scrolling when menu is open */
  body.mobile-menu-open {
    overflow: hidden !important;
  }

  /* Drawer Header - Sticky inside drawer */
  .mobile-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid var(--color-border-light) !important;
    position: sticky !important;
    top: 0 !important;
    background-color: #ffffff !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-title {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-red-dark);
  }
  .menu-close-btn {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--color-red-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
  }

  /* Drawer Inner Menu */
  .nav-menu-inner {
    padding: 1rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .nav-menu {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .nav-menu li {
    width: 100% !important;
    display: block !important;
    border-bottom: 1px solid var(--color-border-light);
    position: relative !important;
  }
  .nav-menu li a,
  .nav-menu li .nav-link {
    font-size: 0.85rem !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111111 !important;
    transition: color 0.3s ease;
    box-sizing: border-box !important;
  }
  .nav-menu li.menu-item-has-children > a,
  .nav-menu li.dropdown-container > a {
    padding-right: 50px !important;
  }
  .nav-menu li a:hover,
  .nav-menu li .nav-link:hover {
    color: var(--color-red-primary) !important;
  }

  /* Independent Accordion Toggle Button (Mobile) */
  .menu-accordion-toggle {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    z-index: 5 !important;
    color: var(--color-text-neutral, #666666) !important;
    transition: color 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .menu-accordion-toggle .toggle-icon {
    font-family: monospace, sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    pointer-events: none !important;
  }
  .menu-accordion-toggle:hover .toggle-icon,
  .menu-accordion-toggle:active .toggle-icon,
  .submenu-open > .menu-accordion-toggle .toggle-icon {
    color: var(--color-red-primary) !important;
  }

  .nav-menu .sub-menu,
  .nav-menu .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 0 0.5rem 1rem !important;
    border: none !important;
    background: transparent !important;
  }
  .nav-menu .dropdown-container.submenu-open > .dropdown-menu,
  .nav-menu .menu-item-has-children.submenu-open > .sub-menu {
    display: block !important;
  }
  .nav-menu .sub-menu li,
  .nav-menu .dropdown-menu li {
    border-bottom: none !important;
  }
  .nav-menu .sub-menu li a,
  .nav-menu .dropdown-menu li a {
    padding: 0.6rem 0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--color-text-neutral) !important;
  }

  .nav-menu .sub-menu .sub-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--color-red-primary, #D4000C) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.25rem 0 0.5rem 1rem !important;
    margin: 0.25rem 0 0.5rem 0.5rem !important;
  }
  .nav-menu .sub-menu .sub-menu li a {
    font-size: 0.82rem !important;
    color: #444444 !important;
    padding: 0.45rem 0 !important;
  }

  /* Drawer Footer Portal button */
  .mobile-menu-footer {
    display: block !important;
    margin-top: 2rem;
    padding-bottom: 2rem;
  }
  .btn-portal-mayorista-mobile {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-red-primary);
    color: var(--color-bg-white) !important;
    padding: 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
  }
  .btn-portal-mayorista-mobile:hover {
    background-color: #a80008;
  }

  /* Force 2 columns for WooCommerce product grid on mobile */
  ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  ul.products::before,
  ul.products::after {
    display: none !important;
    content: none !important;
  }
  ul.products li.product {
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    float: none !important;
    clear: none !important;
    background: #ffffff !important;
    border: 1px solid var(--color-border-light) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: var(--shadow-soft) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  
  /* Reset link styles on mobile product card */
  ul.products li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    margin-bottom: auto !important;
  }
  
  /* Reset thumbnail height and centering with 1:1 contain */
  ul.products li.product img,
  ul.products li.product a img,
  ul.products li.product .woocommerce-LoopProduct-link img {
    margin-bottom: 8px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    box-sizing: border-box !important;
  }

  /* Style product title in loop on mobile */
  ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    height: 36px !important;
    overflow: hidden;
    margin: 8px 0 6px 0 !important;
    font-weight: 600 !important;
    color: var(--color-red-dark) !important;
    font-family: var(--font-primary) !important;
  }
  
  /* Style product price in loop on mobile */
  ul.products li.product .price {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
    display: block !important;
    color: var(--color-red-primary) !important;
    font-weight: 700 !important;
  }
  
  /* Style add to cart button in loop on mobile */
  ul.products li.product .button {
    font-size: 0.7rem !important;
    padding: 8px 5px !important;
    text-align: center;
    display: block !important;
    width: 100% !important;
    margin: 4px 0 0 0 !important;
    border-radius: 6px !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    background-color: var(--color-red-dark) !important;
    color: var(--color-bg-white) !important;
    border: none !important;
    transition: var(--transition-smooth);
  }
  ul.products li.product .button:hover {
    background-color: var(--color-red-primary) !important;
  }
}

/* 4. Newsletter Form Stacking on Small Screens */
@media (max-width: 480px) {
  .newsletter-form .input-group {
    flex-direction: column;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 0.75rem;
    border-radius: 0 !important;
  }
  #newsletter-email {
    background-color: var(--color-bg-white) !important;
    border: 1px solid var(--color-border-light) !important;
    border-radius: 50px !important;
    padding: 0.8rem 1.25rem !important;
    width: 100% !important;
  }
  .btn-subscribe {
    border-radius: 50px !important;
    padding: 0.8rem 1.5rem !important;
    width: 100% !important;
  }
}

/* Layout Worker Overrides */

/* Global layout override: CSS Grid for product catalog ul.products */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
}

ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

@media (max-width: 1199px) {
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 991px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

/* Style storefront-sorting with flexbox */
.storefront-sorting {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  margin-bottom: 2rem !important;
  clear: both !important;
}

.storefront-sorting::before,
.storefront-sorting::after {
  display: none !important;
  content: none !important;
}

.storefront-sorting .woocommerce-result-count {
  margin: 0 !important;
  float: none !important;
}

.storefront-sorting .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
}

@media (max-width: 767px) {
  .storefront-sorting {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
  }
  .storefront-sorting .woocommerce-ordering select {
    width: 100% !important;
  }
}

/* Resolve mobile horizontal scroll */
html, body {
  overflow-x: hidden !important;
}

/* Set min-width: 0 !important on grid items/columns */
ul.products li.product,
.bento-grid > *,
.bento-item,
.bento-tile {
  min-width: 0 !important;
}

ul.products li.product * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure main content takes full width and default storefront sidebar is hidden on shop pages */
.woocommerce-page #primary {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}
.woocommerce-page #secondary {
    display: none !important;
}



/* Drawer layout helper elements shown by default on both mobile and desktop */
.shop-filter-trigger {
    display: inline-flex !important;
}
.drawer-header {
    display: flex !important;
}
.drawer-footer {
    display: flex !important;
}
.filter-drawer-backdrop {
    display: block !important;
}

/* Drawer Header Styling */
.drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 20px !important;
    border-bottom: 1px solid #E5E7EB !important;
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 100002 !important;
    box-sizing: border-box !important;
}
.drawer-title {
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #111111 !important; /* Carbon Black */
    margin: 0 !important;
}
.drawer-close-btn {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: #111111 !important;
    cursor: pointer !important;
    padding: 0 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
}
.drawer-close-btn:hover {
    color: var(--color-red-primary, #D4000C) !important;
}

/* Floating Drawer Footer */
.drawer-footer {
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)) 20px !important;
    background: #ffffff !important;
    border-top: 1px solid #E5E7EB !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    z-index: 100002 !important;
}
.drawer-clear-btn {
    flex: 1 !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    background-color: #F3F4F6 !important; /* Soft luxury gray */
    color: #4B5563 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.drawer-clear-btn:hover {
    background-color: #E5E7EB !important;
    border-color: #D1D5DB !important;
    color: #111111 !important;
    transform: translateY(-1px) !important;
}
.drawer-clear-btn:active {
    transform: translateY(0) !important;
    background-color: #D1D5DB !important;
}
.drawer-apply-btn {
    flex: 1.4 !important; /* Prominent primary CTA */
    min-height: 48px !important;
    padding: 12px 20px !important;
    background-color: #8e0000 !important; /* Official Dos Soles Brand Red */
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(142, 0, 0, 0.28) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.drawer-apply-btn:hover {
    background-color: #a50000 !important; /* Luminous active red hover */
    box-shadow: 0 6px 20px rgba(142, 0, 0, 0.42) !important; /* Elevated shadow */
    transform: translateY(-2px) !important;
}
.drawer-apply-btn:active {
    background-color: #720000 !important;
    box-shadow: 0 2px 8px rgba(142, 0, 0, 0.25) !important;
    transform: translateY(0) !important;
}

/* Injected Trigger Button next to sorting select */
#shop-filter-trigger,
.shop-filter-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    min-height: 44px !important;
    height: auto !important; /* Aligns with ordering select */
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}
#shop-filter-trigger:hover,
.shop-filter-trigger:hover {
    border-color: var(--color-red-primary, #D4000C) !important;
    color: var(--color-red-primary, #D4000C) !important;
}
.shop-filter-trigger svg {
    margin-right: 8px !important;
    transition: stroke 0.3s ease !important;
}
.shop-filter-trigger:hover svg {
    stroke: var(--color-red-primary, #D4000C) !important;
}

/* Backdrop Overlay Styling */
.filter-drawer-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(11, 26, 72, 0.55) !important;
    z-index: 99999 !important; /* Puts it directly under sidebar but over page content */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    backdrop-filter: blur(2px) !important;
}
.filter-drawer-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}
body.filter-drawer-open {
    overflow: hidden !important;
}

/* YITH / jQuery BlockUI Overlay Safety Overrides */
.blockUI.blockOverlay,
.yith-wcan-overlay,
.yith-wcan-loading-overlay {
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: opacity 0.25s ease !important;
}

/* Hide default grey YITH submit buttons so only clean Red APLICAR button is used */
.shop-sidebar .yith-wcan-submit-button,
.shop-sidebar .yith-wcan-filters-form button[type="submit"],
.shop-sidebar input[type="submit"].yith-wcan-submit-button,
.shop-sidebar .yith-wcan-filter-submit {
    display: none !important;
}

/* =========================================================================
   UNIVERSAL OFF-CANVAS FILTER DRAWER & FULL-WIDTH SHOP (JULERIAQUE STYLE)
   ========================================================================= */
.woocommerce-shop-container {
    display: block !important;
    width: 100% !important;
    max-width: 1480px !important;
    margin: 1.5rem auto 4rem auto !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box !important;
}

.shop-catalog-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Off-Canvas Sidebar Drawer (Mobile & Desktop) */
.shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -440px !important;
    width: 380px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 100000 !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25) !important;
    border: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.shop-sidebar.active {
    left: 0 !important;
}

.shop-sidebar > *:not(.drawer-header):not(.drawer-footer),
.shop-sidebar .drawer-widgets-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 20px 24px calc(30px + env(safe-area-inset-bottom, 0px)) 24px !important;
    -webkit-overflow-scrolling: touch;
}

.shop-sidebar .drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid #E5E7EB !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
    z-index: 100002 !important;
}

.shop-sidebar .drawer-title {
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #111827 !important;
    margin: 0 !important;
}

.shop-sidebar .drawer-close-btn {
    background: none !important;
    border: none !important;
    font-size: 26px !important;
    line-height: 1 !important;
    color: #111827 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
}

.shop-sidebar .drawer-close-btn:hover {
    color: var(--color-red-primary, #8E0000) !important;
}

.shop-sidebar .desktop-filter-header {
    display: none !important;
}

.shop-sidebar .drawer-footer {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)) 24px !important;
    border-top: 1px solid #E5E7EB !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
    z-index: 100002 !important;
}

/* Filter trigger button next to ordering (always visible) */
#shop-filter-trigger,
.shop-filter-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #ffffff !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

#shop-filter-trigger:hover,
.shop-filter-trigger:hover {
    border-color: var(--color-red-primary, #8E0000) !important;
    color: var(--color-red-primary, #8E0000) !important;
    background-color: #FEF2F2 !important;
}

#shop-filter-trigger svg,
.shop-filter-trigger svg {
    stroke: currentColor !important;
    transition: stroke 0.2s ease !important;
}


/* Complete Suppression of Purple/Violet (#96588a / #7f54b3) Outlines */
.shop-sidebar *:focus,
.shop-sidebar *:focus-visible,
.shop-sidebar a:focus,
.shop-sidebar a:focus-visible,
.shop-sidebar button:focus,
.shop-sidebar button:focus-visible,
.shop-sidebar input:focus,
.shop-sidebar input:focus-visible,
.shop-sidebar label:focus,
.shop-sidebar label:focus-visible,
.shop-sidebar .term-label:focus,
.shop-sidebar .term-label:focus-visible,
#shop-filter-trigger:focus,
#shop-filter-trigger:focus-visible,
.shop-filter-trigger:focus,
.shop-filter-trigger:focus-visible,
.drawer-close-btn:focus,
.drawer-close-btn:focus-visible,
.drawer-clear-btn:focus,
.drawer-clear-btn:focus-visible,
.drawer-apply-btn:focus,
.drawer-apply-btn:focus-visible {
    outline: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
}

/* YITH Filter Content & Title overrides in Sidebar Accordion */
.shop-sidebar .widget_yith-woocommerce-ajax-navigation-filters {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.shop-sidebar .yith-wcan-filter {
    border-bottom: 1px solid var(--color-border-light) !important;
    padding: 0 !important;
    margin: 0 !important;
}
.shop-sidebar .yith-wcan-filter:last-child {
    border-bottom: none !important;
}
/* Clean Luxury Accordion Titles */
.shop-sidebar .filter-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #111111 !important; /* Carbon Black */
    padding: 16px 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    transition: color 0.2s ease !important;
}
.shop-sidebar .filter-title:hover {
    color: var(--color-red-primary, #D4000C) !important;
}

/* Hide YITH default toggle icons/chevrons completely to avoid double arrows */
.shop-sidebar .yith-wcan-filter .filter-title::before,
.shop-sidebar .yith-wcan-filter h4.filter-title::before {
    content: none !important;
    display: none !important;
}

/* Force hide YITH default arrow background images for any accordion layout */
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable::after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable.closed::after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable.opened::after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable.open::after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable:after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable.closed:after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable.opened:after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable.open:after {
    background: none !important;
    background-image: none !important;
}

/* Vector Geometric Chevron replacing ASCII +/- */
.shop-sidebar .yith-wcan-filter h4.filter-title.collapsable::after {
    content: '' !important;
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 1.5px solid #111111 !important;
    border-bottom: 1.5px solid #111111 !important;
    transform: rotate(45deg) !important; /* Points Down */
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
    position: static !important; /* Reset YITH absolute positioning to align via flex */
    margin-right: 4px !important;
    margin-top: -2px !important;
    background: none !important;
}

.shop-sidebar .filter-title:hover.collapsable::after {
    border-color: var(--color-red-primary, #D4000C) !important;
}

/* Rotate Chevron 180deg when Open */
.shop-sidebar .yith-wcan-filter h4.filter-title.collapsable:not(.closed)::after,
.shop-sidebar .yith-wcan-filter h4.filter-title.collapsable.opened::after {
    transform: rotate(-135deg) !important; /* Points Up */
}

.shop-sidebar .filter-content {
    padding: 0 0 16px 0 !important;
    margin: 0 !important;
}
.shop-sidebar .filter-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    padding-right: 6px !important;
}
/* Cross-Browser Ultra-Fine 4px Scrollbars for Filter Containers */
.shop-sidebar,
.shop-sidebar > *:not(.drawer-header):not(.drawer-footer),
.shop-sidebar .filter-items,
.shop-sidebar .drawer-content {
    scrollbar-width: thin !important; /* Firefox */
    scrollbar-color: #D1D5DB transparent !important; /* Firefox */
}

.shop-sidebar::-webkit-scrollbar,
.shop-sidebar > *:not(.drawer-header):not(.drawer-footer)::-webkit-scrollbar,
.shop-sidebar .filter-items::-webkit-scrollbar,
.shop-sidebar .drawer-content::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

.shop-sidebar::-webkit-scrollbar-track,
.shop-sidebar > *:not(.drawer-header):not(.drawer-footer)::-webkit-scrollbar-track,
.shop-sidebar .filter-items::-webkit-scrollbar-track,
.shop-sidebar .drawer-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.shop-sidebar::-webkit-scrollbar-thumb,
.shop-sidebar > *:not(.drawer-header):not(.drawer-footer)::-webkit-scrollbar-thumb,
.shop-sidebar .filter-items::-webkit-scrollbar-thumb,
.shop-sidebar .drawer-content::-webkit-scrollbar-thumb {
    background-color: #D1D5DB !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover,
.shop-sidebar > *:not(.drawer-header):not(.drawer-footer)::-webkit-scrollbar-thumb:hover,
.shop-sidebar .filter-items::-webkit-scrollbar-thumb:hover,
.shop-sidebar .drawer-content::-webkit-scrollbar-thumb:hover {
    background-color: #9CA3AF !important;
}
.shop-sidebar .filter-items li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    border: none !important;
}
.shop-sidebar .filter-items li ul,
.shop-sidebar .filter-items li .children {
    width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 18px !important;
    margin: 6px 0 0 0 !important;
    list-style: none !important;
    display: block; /* Removed !important to allow inline and class hiding */
}

/* Force collapse when parent item has closed state */
.shop-sidebar .filter-items li.closed > ul,
.shop-sidebar .filter-items li.hierarchy-collapsable.closed > ul,
.shop-sidebar .filter-items li.closed > .children {
    display: none !important;
}

.shop-sidebar .filter-items li label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    width: 100% !important;
    margin: 0 !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--color-text-neutral) !important;
    box-sizing: border-box !important;
}

/* Reserve space for toggle handle in hierarchical items */
.shop-sidebar .filter-items li.hierarchy-collapsable {
    position: relative !important;
}
.shop-sidebar .filter-items li.hierarchy-collapsable > label {
    padding-right: 28px !important;
}

/* Clean Luxury Toggle Handle */
.shop-sidebar .filter-items li .toggle-handle {
    position: absolute !important;
    right: 0 !important;
    top: 2px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Vector Geometric Chevron Indicator */
.shop-sidebar .filter-items li .toggle-handle::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-right: 1.5px solid #666666 !important;
    border-bottom: 1.5px solid #666666 !important;
    transform: rotate(-45deg) !important; /* Points right when closed */
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

.shop-sidebar .filter-items li.hierarchy-collapsable.opened > .toggle-handle::after,
.shop-sidebar .filter-items li.hierarchy-collapsable:not(.closed) > .toggle-handle::after {
    transform: rotate(45deg) !important; /* Points down when opened */
    border-color: #8e0000 !important;
}

.shop-sidebar .filter-items li .toggle-handle:hover::after {
    border-color: #8e0000 !important;
}

/* Custom Clean Luxury Checkboxes */
.shop-sidebar input[type="checkbox"],
.shop-sidebar .filter-items li input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
    flex: 0 0 18px !important;
    border: 1.5px solid #D1D5DB !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    margin: 0 10px 0 0 !important;
    cursor: pointer !important;
    display: inline-grid !important;
    place-content: center !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    accent-color: #8e0000 !important;
    box-sizing: border-box !important;
}
.shop-sidebar .filter-items li input[type="checkbox"]:hover {
    border-color: #8e0000 !important;
    background-color: #F9FAFB !important;
}
.shop-sidebar .filter-items li input[type="checkbox"]:checked {
    background-color: #8e0000 !important;
    border-color: #8e0000 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 11px 11px !important;
}
.shop-sidebar .filter-items li input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 2px rgba(142, 0, 0, 0.25) !important;
}

.shop-sidebar .filter-items li a.term-label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex: 1 !important;
    width: auto !important;
    color: var(--color-text-neutral) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.shop-sidebar .filter-items li a.term-label:hover {
    color: var(--color-red-primary, #D4000C) !important;
}

/* Clean Luxury Micro-Badges for Filter Counters (X) */
.shop-sidebar .filter-items li .item-count,
.shop-sidebar .filter-items li small.item-count,
.shop-sidebar .filter-items li .count,
.shop-sidebar .filter-items li span.count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important; /* Micro-badge pill */
    background-color: #F3F4F6 !important; /* Soft neutral background */
    color: #6B7280 !important; /* Slate grey text */
    border: 1px solid #E5E7EB !important; /* Subtle crisp border */
    margin-left: auto !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Item Hover state */
.shop-sidebar .filter-items li:hover .item-count,
.shop-sidebar .filter-items li:hover small.item-count,
.shop-sidebar .filter-items li label:hover .item-count,
.shop-sidebar .filter-items li a.term-label:hover .item-count {
    background-color: #E5E7EB !important;
    color: #111111 !important;
    border-color: #D1D5DB !important;
}

/* Active / Selected / Chosen state */
.shop-sidebar .filter-items li.chosen .item-count,
.shop-sidebar .filter-items li.chosen small.item-count,
.shop-sidebar .filter-items li:has(input:checked) .item-count,
.shop-sidebar .filter-items li:has(input:checked) small.item-count,
.shop-sidebar .filter-items li.active .item-count {
    background-color: rgba(142, 0, 0, 0.08) !important; /* Subtle brand red tint */
    color: #8e0000 !important; /* Brand red */
    border-color: rgba(142, 0, 0, 0.22) !important;
    font-weight: 700 !important;
}

/* =========================================================================
   Milestone 2: Dynamic Reactive Subfilters (Brand-to-Gama Dependency)
   ========================================================================= */
.shop-sidebar .yith-wcan-filter[data-filter-id="9"] ul.filter-items,
.shop-sidebar .yith-wcan-filter.ds-gama-filter ul.filter-items {
    transition: min-height 0.25s ease;
}

.shop-sidebar .yith-wcan-filter[data-filter-id="9"] li.filter-item,
.shop-sidebar .yith-wcan-filter.ds-gama-filter li.filter-item {
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                margin 0.2s ease, 
                padding 0.2s ease,
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 60px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    will-change: opacity, max-height, transform;
}

.shop-sidebar .yith-wcan-filter[data-filter-id="9"] li.filter-item.ds-gama-hidden,
.shop-sidebar .yith-wcan-filter.ds-gama-filter li.filter-item.ds-gama-hidden,
li.filter-item.ds-gama-hidden {
    display: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transform: translateY(-4px) !important;
    pointer-events: none !important;
    visibility: hidden !important;
    border: none !important;
}

.ds-gama-filtered-badge {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: #FFF1F2 !important;
    color: #D4000C !important;
    border: 1px solid #FECDD3 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
    transition: opacity 0.2s ease !important;
}

/* R2 title: Modern left-aligned layout for breadcrumbs and title */

.woocommerce-page .woocommerce-breadcrumb {
    text-align: left !important;
    margin: 1.5rem 0 0.5rem 0 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--color-text-neutral) !important;
    font-family: var(--font-primary) !important;
}
.woocommerce-page .woocommerce-breadcrumb a {
    color: var(--color-text-neutral) !important;
}
.woocommerce-page .woocommerce-breadcrumb span {
    color: var(--color-red-dark) !important;
}

.woocommerce-products-header {
    padding: 0 !important;
    margin: 0px 0px 1rem 0px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--color-border-light) !important;
    padding-bottom: 1.25rem !important;
}

.woocommerce-products-header__title,
.woocommerce-page .page-title {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 2rem !important;
    color: var(--color-red-dark) !important;
    text-align: left !important;
    margin: 0 !important;
}

/* R3 catalog aesthetic refinement: 1px fine borders, padding, and hover shadows for product cards */
/* R3 catalog aesthetic refinement: 1px fine borders, padding, and hover shadows for product cards */
ul.products li.product {
    border: 1px solid var(--color-border-light) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    background-color: #ffffff !important;
    box-shadow: var(--shadow-soft) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
ul.products li.product:hover {
    transform: translateY(-5px) !important;
    border-color: var(--color-red-dark) !important;
    box-shadow: var(--shadow-elevated) !important;
}

/* Uniform product card images height/aspect-ratio */
ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    margin-bottom: 15px !important;
    background-color: #fcfcfc !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

/* Title styling inside card */
ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.8em !important;
    line-height: 1.4em !important;
    min-height: 2.8em !important;
}

/* Add-to-cart button styling inside card */
ul.products li.product .button {
    border-radius: 8px !important;
    background-color: var(--color-red-dark) !important;
    color: #ffffff !important;
    margin-top: auto !important;
    transition: background-color 0.3s ease !important;
}
ul.products li.product .button:hover {
    background-color: var(--color-red-primary) !important;
}

/* Mobile responsive card alignment overrides */
@media (max-width: 991px) {
    ul.products li.product {
        padding: 12px !important;
    }
    ul.products li.product img {
        max-height: none !important;
        margin-bottom: 10px !important;
    }
}

/* Results Count Typography Alignment */
.woocommerce-result-count {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--color-text-neutral) !important;
}

/* Style Ordering Dropdown */
.woocommerce-ordering select {
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    padding: 8px 15px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    color: var(--color-red-dark) !important;
    outline: none !important;
    transition: border-color 0.3s ease !important;
}
.woocommerce-ordering select:focus {
    border-color: var(--color-red-dark) !important;
}

/* Fine 1px Border Pagination Styling (inline block style) */
nav.woocommerce-pagination {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}
nav.woocommerce-pagination ul {
    display: inline-flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
}
nav.woocommerce-pagination ul li {
    border-right: 1px solid #e5e5e5 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline !important;
}
nav.woocommerce-pagination ul li:last-child {
    border-right: none !important;
}
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
    display: block !important;
    padding: 10px 16px !important;
    font-family: var(--font-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-red-dark) !important;
    text-decoration: none !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}
nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li a:hover {
    background: var(--color-red-dark) !important;
    color: #ffffff !important;
}

/* Ensure zero horizontal scroll on mobile */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/**
 * =========================================================================
 * ESTILOS BUSCADOR Y ARMADOR DE RUTINA CAPILAR (DOS SOLES)
 * =========================================================================
 */

/* 1. SECCIÓN: ¿QUÉ NECESITÁS RESOLVER? (Home) */
.problem-finder-section {
    padding: 5rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}
.problem-finder-container {
    max-width: 1320px;
    margin: 0 auto;
}
.problem-finder-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.problem-finder-header .section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-red-dark);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.problem-finder-header .section-subtitle {
    font-family: var(--font-primary), sans-serif;
    font-size: 1.05rem;
    color: var(--color-text-neutral);
    opacity: 0.9;
}
.problem-finder-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.25rem;
}
.problem-card {
    background: var(--color-bg-white);
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    text-decoration: none !important;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    opacity: 1 !important;
    visibility: visible !important;
}
.problem-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-red-primary);
    box-shadow: var(--shadow-elevated);
}
.problem-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(212, 0, 12, 0.04);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red-primary);
    transition: var(--transition-smooth);
}
.problem-card:hover .problem-card-icon {
    background-color: var(--color-red-primary);
    color: var(--color-bg-white) !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 0, 12, 0.25);
}
.problem-card-icon svg {
    width: 32px;
    height: 32px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.problem-card-title {
    font-family: var(--font-primary), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1.2rem;
    line-height: 1.35;
    transition: color 0.3s ease;
}
.problem-card:hover .problem-card-title {
    color: var(--color-red-primary);
}
.problem-card-cta {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-red-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}
.problem-card:hover .problem-card-cta {
    color: var(--color-red-dark);
    transform: translateX(4px);
}

/* 2. BANNER DE FILTRO ACTIVO */
.problem-active-banner {
    background: #1a2e40;
    color: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(26, 46, 64, 0.15);
}
.problem-active-banner-text {
    font-size: 1rem;
}
.problem-active-banner-text strong {
    color: #ffffff;
    font-weight: 600;
}
.problem-active-banner-close {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.problem-active-banner-close:hover {
    background: var(--color-red-primary);
    color: #ffffff !important;
}

/* 3. CONTENEDOR DEL CREADOR DE RUTINA */
#dos-soles-routine-builder-container {
    background: #ffffff;
    border: 1px solid var(--color-border-light, #e5e5e5);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    box-sizing: border-box;
    padding-bottom: 140px !important; /* Compensación inferior para el dock sticky (R3) */
}

/* Cargando */
.routine-builder-loading {
    text-align: center;
    padding: 4rem 1rem;
}
.routine-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-red-primary, #d11a2a);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    animation: routine-spin 1s linear infinite;
}
@keyframes routine-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.routine-builder-loading p {
    color: #666;
    font-size: 1.1rem;
}

/* Encabezado interna rutina */
.routine-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}
.routine-header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.routine-back-to-shop-btn,
.routine-change-need-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
    transition: all 0.2s ease;
}
.routine-back-to-shop-btn:hover,
.routine-change-need-btn:hover {
    color: #d11a2a;
    border-color: #d11a2a;
    background: #fff5f5;
    text-decoration: none;
}
.routine-kicker-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #d11a2a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.routine-header-title {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    color: #111111;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.routine-header-desc {
    color: #555555;
    font-size: 0.98rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Selector de Marcas */
.routine-brand-filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.2rem;
}
.routine-brand-filter-label {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    margin-bottom: 0.8rem;
}
.routine-brand-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}
.brand-chip {
    background: #ffffff;
    border: 1px solid var(--color-border-light, #e5e5e5);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.brand-chip:hover {
    border-color: var(--color-red-primary, #d11a2a);
    background: #fffafa;
    color: var(--color-red-primary, #d11a2a);
}
.brand-chip.active {
    background: var(--color-red-primary, #d11a2a);
    border-color: var(--color-red-primary, #d11a2a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(209, 26, 42, 0.15);
}

/* =========================================================================
   DESKTOP STEPPER / TABS INTERACTIVE SYSTEM (R1)
   ========================================================================= */
.routine-stepper-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}
.routine-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    text-align: left;
    box-sizing: border-box;
}
.routine-tab:hover {
    border-color: #d11a2a;
    background: #fffafa;
    transform: translateY(-1px);
}
.routine-tab.is-active-tab {
    border-color: #d11a2a !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(209, 26, 42, 0.12) !important;
}
.routine-tab.is-active-tab::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 3px;
    background: #d11a2a;
    border-radius: 3px 3px 0 0;
}
.routine-tab.completed:not(.is-active-tab) {
    border-color: #10b981;
    background: #f0fdf4;
}
.routine-tab-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.routine-tab.is-active-tab .routine-tab-badge {
    background: #d11a2a;
    color: #ffffff;
}
.routine-tab.completed .routine-tab-badge {
    background: #10b981;
    color: #ffffff;
}
.routine-tab-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.routine-tab-step-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}
.routine-tab.is-active-tab .routine-tab-step-tag {
    color: #d11a2a;
}
.routine-tab-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.routine-tab-subtitle {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Grid de Pasos */
.routine-steps-grid {
    position: relative;
    width: 100%;
}
.routine-step {
    position: relative;
    box-sizing: border-box;
}
/* Suppress giant watermark background numbers */
.routine-step::before {
    display: none !important;
    content: none !important;
}

.routine-step-header {
    position: relative;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 32px;
    height: auto;
    z-index: 1;
}
.routine-step-number {
    background: #d11a2a;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}
.routine-step-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.routine-step-title {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.routine-step-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-neutral);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}
.routine-step-frequency-tip {
    display: inline-flex;
    align-items: center;
    background: #fdf2f4;
    border: 1px solid #fce7eb;
    color: #be123c;
    font-size: 0.76rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 6px;
    margin-bottom: 1.1rem;
    line-height: 1.3;
}

/* Contenedor de las tarjetas en cada paso */
.routine-products-container {
    position: relative;
    box-sizing: border-box;
    z-index: 1;
}

/* =========================================================================
   LUXURY PRODUCT CARDS (R2)
   ========================================================================= */
.routine-product-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    min-height: 330px;
    height: auto !important;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.routine-product-card:hover {
    border-color: #d11a2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(209, 26, 42, 0.09);
}
.routine-product-card.selected {
    border: 2px solid #d11a2a !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(209, 26, 42, 0.12) !important;
}

/* Circular radio affordance (unselected) */
.routine-product-card::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
    z-index: 2;
    box-sizing: border-box;
}
.routine-product-card:hover::before {
    border-color: #d11a2a;
}
/* Circular radio affordance (selected) */
.routine-product-card.selected::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d11a2a;
    border-color: #d11a2a;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(209, 26, 42, 0.3);
    z-index: 2;
}

.routine-product-desc-box {
    display: none;
    font-size: 0.74rem;
    color: #555555;
    line-height: 1.35;
    background: #f8f9fa;
    border-left: 3px solid #d11a2a;
    border-radius: 4px;
    padding: 0.4rem 0.55rem;
    margin: 0.35rem 0 0.5rem 0;
    text-align: left;
    box-sizing: border-box;
}
.routine-product-card.selected .routine-product-desc-box {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    animation: fadeInDesc 0.25s ease;
}

/* Ocultar Radio Button original pero mantener accesibilidad */
.routine-product-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Contenedor de Imagen 1:1 Prístino */
.routine-product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 200px;
    min-height: 160px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
}
.routine-product-img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.routine-product-card:hover .routine-product-img {
    transform: scale(1.04);
}

.routine-product-brand {
    font-size: 0.72rem;
    color: #d11a2a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}
.routine-product-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #000000 !important;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.7em;
    flex-shrink: 0;
}

/* Bloque de Precios y Cuotas (R2) */
.routine-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto !important;
    padding-top: 0.6rem;
    border-top: 1px solid #f3f4f6;
    width: 100%;
    box-sizing: border-box;
}
.routine-product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.2;
}
.routine-card-installments {
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
    letter-spacing: 0.1px;
}

/* Card footer holding Price & Detail button */
.routine-product-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}
.routine-product-detail-link {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    margin: 0;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 5;
    flex-shrink: 0;
}
.routine-product-detail-link svg {
    width: 11px;
    height: 11px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.routine-product-detail-link:hover {
    color: #d11a2a;
    text-decoration: none;
    background: rgba(209, 26, 42, 0.06);
}
.routine-product-detail-link:hover svg {
    transform: translate(2px, -2px);
}

@keyframes fadeInDesc {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alternativa de otra marca en filtro */
.brand-fallback-badge {
    background: #ffebeb;
    border: 1px solid #ffd1d1;
    color: var(--color-red-primary, #d11a2a);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    text-align: center;
    line-height: 1.4;
    grid-column: 1 / -1;
}

/* Paso Vacío */
.routine-step-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    padding: 3rem 1rem;
    color: #888;
    grid-column: 1 / -1;
}
.routine-step-empty-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.6;
}
.routine-step-empty p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* =========================================================================
   STICKY BOTTOM DOCK CON SLOTS VISUALES (R3)
   ========================================================================= */
.routine-summary-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 990 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.08) !important;
    padding: 0.65rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    box-sizing: border-box !important;
}

/* Slots Visuales */
.routine-dock-slots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 540px;
}
.routine-dock-slot {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    border-radius: 8px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.routine-dock-slot.empty {
    background: #f9fafb;
    border: 1.5px dashed #d1d5db;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.routine-dock-slot.empty:hover {
    border-color: #d11a2a;
    background: #fffafa;
}
.routine-dock-slot.empty .slot-step-num {
    font-size: 0.62rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    line-height: 1;
}
.routine-dock-slot.empty .slot-placeholder-title {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
    margin-top: 2px;
}
.routine-dock-slot.filled {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}
.routine-dock-slot.filled:hover {
    border-color: #d11a2a;
}
.routine-dock-slot .slot-thumb-wrapper {
    width: 36px;
    height: 36px;
    background: #fafafa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.routine-dock-slot .slot-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.routine-dock-slot .slot-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}
.routine-dock-slot .slot-brand {
    font-size: 0.6rem;
    font-weight: 800;
    color: #d11a2a;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.routine-dock-slot .slot-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.routine-dock-slot .slot-remove-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
}
.routine-dock-slot .slot-remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Fila de Contenido inferior (Desktop: direct children / display: contents) */
.routine-dock-bottom-row,
.routine-summary-price-box {
    display: contents;
}

/* Totalizador */
.routine-summary-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    min-width: 150px;
}
.routine-summary-count {
    font-size: 0.76rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 2px;
}
.routine-summary-total {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000000 !important;
    line-height: 1.1;
}
.routine-dock-installments {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    margin-top: 2px;
}

/* Acciones del Dock */
.routine-dock-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.btn-dock-next-step {
    background: #ffffff;
    color: #d11a2a;
    border: 1.5px solid #d11a2a;
    padding: 0.65rem 1.15rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.btn-dock-next-step:hover {
    background: #fff5f5;
    transform: translateY(-1px);
}
.btn-dock-next-step.is-hidden {
    display: none !important;
}
.btn-routine-checkout {
    background: #d11a2a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 0.72rem 1.4rem !important;
    border: 2px solid #d11a2a !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(209, 26, 42, 0.15) !important;
}
.btn-routine-checkout:hover {
    background: #ffffff !important;
    color: #d11a2a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 26, 42, 0.25) !important;
}
.btn-routine-checkout:disabled {
    background: #e5e7eb !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================================================
   DESKTOP ROUTINE BUILDER LAYOUT (>= 1024px) (R1)
   ========================================================================= */
@media (min-width: 1024px) {
    .routine-progress-header,
    .routine-progress-track {
        display: none !important;
    }

    .routine-stepper-tabs.routine-step-indicator-bar {
        display: block !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        position: static !important;
        padding: 0 !important;
        margin-bottom: 2.5rem !important;
    }

    .routine-step-pills {
        display: flex !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .routine-tab.step-pill {
        flex: 1 1 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.85rem !important;
        background: #ffffff !important;
        border: 1.5px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 0.9rem 1.1rem !important;
        cursor: pointer !important;
        transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        position: relative !important;
        text-align: left !important;
        box-sizing: border-box !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    }

    .routine-tab.step-pill:hover {
        border-color: #d11a2a !important;
        background: #fffafa !important;
        transform: translateY(-1px) !important;
    }

    .routine-tab.step-pill.is-active-tab,
    .routine-tab.step-pill.active {
        border-color: #d11a2a !important;
        background: #ffffff !important;
        box-shadow: 0 4px 16px rgba(209, 26, 42, 0.12) !important;
    }

    .routine-tab.step-pill.is-active-tab::after,
    .routine-tab.step-pill.active::after {
        content: "" !important;
        position: absolute !important;
        bottom: -2px !important;
        left: 14px !important;
        right: 14px !important;
        height: 3px !important;
        background: #d11a2a !important;
        border-radius: 3px 3px 0 0 !important;
    }

    .routine-tab.step-pill.completed:not(.is-active-tab):not(.active) {
        border-color: #10b981 !important;
        background: #f0fdf4 !important;
    }

    .routine-tab-badge.step-pill-badge {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: #f3f4f6 !important;
        color: #374151 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .routine-tab.step-pill.is-active-tab .routine-tab-badge.step-pill-badge,
    .routine-tab.step-pill.active .routine-tab-badge.step-pill-badge {
        background: #d11a2a !important;
        color: #ffffff !important;
    }

    .routine-tab.step-pill.completed .routine-tab-badge.step-pill-badge {
        background: #10b981 !important;
        color: #ffffff !important;
    }

    .step-pill-short-title {
        display: none !important;
    }

    .routine-tab-text {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .routine-tab-step-tag {
        display: block !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #6b7280 !important;
    }

    .routine-tab.step-pill.is-active-tab .routine-tab-step-tag,
    .routine-tab.step-pill.active .routine-tab-step-tag {
        color: #d11a2a !important;
    }

    .routine-tab-title.step-pill-label {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #111111 !important;
        margin: 0 !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .routine-tab-subtitle {
        display: block !important;
        font-size: 0.72rem !important;
        color: #6b7280 !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .routine-steps-grid {
        display: block !important;
        margin-bottom: 2rem !important;
    }

    .routine-step {
        display: block !important;
        position: absolute !important;
        left: -99999px !important;
        top: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .routine-step.is-active-step {
        position: static !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        overflow: visible !important;
        animation: routineStepFadeIn 0.3s ease-out;
    }

    .routine-step-header {
        display: none !important; /* Replaced by top stepper tabs on desktop */
    }

    .routine-step.is-active-step .routine-products-container {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        padding: 4px !important;
    }

    .routine-mobile-nav {
        display: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .routine-step.is-active-step .routine-products-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@keyframes routineStepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. BUSCADOR ENRIQUECIDO EN HEADER */
.header-search-wrapper {
    position: relative;
}
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    margin-top: 5px;
    max-height: 480px;
    overflow-y: auto;
    display: none;
}
.smart-search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.smart-search-result-item {
    border-bottom: 1px solid var(--color-border-light);
}
.smart-search-result-item:last-child {
    border-bottom: none;
}
.smart-search-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    text-decoration: none !important;
    transition: background 0.2s ease;
    gap: 1rem;
}
.smart-search-link:hover {
    background: #faf8f5;
}
.smart-search-img-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smart-search-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.smart-search-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.smart-search-brand {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-red-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
}
.smart-search-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2e40;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.smart-search-excerpt {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.3;
}
.smart-search-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2e40;
    margin-left: auto;
    flex-shrink: 0;
    text-align: right;
}

/* Link a rutina en dropdown */
.smart-search-routine-banner {
    background: #fafafa;
    border-bottom: 1px solid var(--color-border-light);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.smart-search-routine-banner-text {
    font-size: 0.85rem;
    color: var(--color-text-neutral);
}
.smart-search-routine-banner-text strong {
    color: #1a2e40;
}
.smart-search-routine-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-red-primary);
    text-decoration: none !important;
    text-transform: uppercase;
}
.smart-search-routine-link:hover {
    color: var(--color-red-primary-dark, #b3000a);
}

/* Sin resultados */
.smart-search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}


/* 5. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1023px) {
    .routine-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .routine-step {
        min-height: auto;
    }
}

@media (max-width: 1023px) {
    .problem-finder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2 columnas simétricas obligatorias (5x2=10) */
        grid-auto-rows: 1fr !important; /* Forzar misma altura en todas las filas */
        gap: 1rem !important;
    }
    .problem-finder-section {
        padding: 3rem 1rem !important;
    }
    .problem-finder-header .section-title {
        font-size: 1.8rem !important;
    }
    .problem-card {
        padding: 1.5rem 0.5rem !important; /* Reducir padding lateral para dar espacio a textos */
    }
    .problem-card-cta {
        font-size: 0.75rem !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
    }
    
    #dos-soles-routine-builder-container {
        padding: 1rem 0.75rem;
    }
    .routine-header-top-bar {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .routine-back-to-shop-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
    .routine-header-title {
        font-size: 1.4rem;
        line-height: 1.25;
    }
    .routine-header-desc {
        font-size: 0.88rem;
    }
    
    .routine-steps-grid {
        grid-template-columns: 1fr !important; /* 1 columna vertical en móvil para pasos de rutina */
        gap: 1.2rem !important;
    }
    .routine-products-container {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    .routine-product-card {
        min-height: auto !important;
    }
    
    .routine-summary-bar {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
    }
    .btn-routine-checkout {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

/* =========================================================================
   BREADCRUMB SUPPRESSION ON SHOP & ARCHIVES
   ========================================================================= */
.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb,
.storefront-breadcrumb,
.dos-soles-category-header ~ .woocommerce-breadcrumb {
  display: none !important;
}

/* =========================================================================
   LUXURY EDITORIAL SHOP & CATEGORY HEADER
   ========================================================================= */
.dos-soles-category-header {
  background: linear-gradient(180deg, #FAF9F6 0%, #F4F2EC 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 0 0.85rem 0;
  margin-bottom: 1.5rem;
  position: relative;
}

.dos-soles-category-header .category-header-top-bar {
  margin-bottom: 0.5rem;
}

.dos-soles-category-header .header-top-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dos-soles-category-header .header-badge-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dos-soles-category-header .header-badge-official .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2e7d32;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.dos-soles-category-header .header-product-counter {
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: #666666;
  letter-spacing: 0.5px;
}

.dos-soles-category-header .header-product-counter strong {
  font-weight: 700;
  color: #111111;
}

.dos-soles-category-header .category-header-content {
  margin: 0 0 0.85rem 0;
}

.dos-soles-category-header .category-header-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111111;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
}

.dos-soles-category-header .category-header-title .highlight-burgundy {
  color: var(--color-red-primary, #8e0000);
}

.dos-soles-category-header .category-header-description {
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.45;
  max-width: 680px;
  margin: 0;
}

.dos-soles-category-header .category-header-description p {
  margin: 0;
}

/* Chips Navigation Bar */
.category-subcategory-list-wrapper {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0.4rem 0 0 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.category-subcategory-list-wrapper .container {
  position: relative !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
}

@media (max-width: 768px) {
  .dos-soles-category-header {
    padding: 0.85rem 0 0.5rem 0;
    margin-bottom: 1rem;
  }
  .dos-soles-category-header .category-header-title {
    font-size: 1.35rem;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
  }
  .dos-soles-category-header .category-header-description {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .category-subcategory-list-wrapper .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

.category-subcategory-list {
  display: flex;
  align-items: center;
  gap: 0.5rem !important;
  padding: 0.35rem 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-subcategory-list::-webkit-scrollbar {
  display: none;
}

.category-subcategory-list .subcategory-item {
  flex: 0 0 auto;
}

/* Luxury Chip Button Style */
.category-subcategory-list .subcategory-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.45rem 1rem !important;
  background: #ffffff;
  color: #2b2b2b !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.76rem !important;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.category-subcategory-list .subcategory-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #777777;
  transition: color 0.2s ease;
  line-height: 1;
}

.category-subcategory-list .subcategory-chip-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.category-subcategory-list .subcategory-name {
  display: inline-block;
  line-height: 1.2;
}

/* Hover State */
.category-subcategory-list .subcategory-link:hover {
  background: #ffffff;
  border-color: var(--color-red-primary, #8e0000);
  color: var(--color-red-primary, #8e0000) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(142, 0, 0, 0.12);
}

.category-subcategory-list .subcategory-link:hover .subcategory-chip-icon {
  color: var(--color-red-primary, #8e0000);
}

/* Active State (current-cat) */
.category-subcategory-list .subcategory-item.current-cat .subcategory-link {
  background: var(--color-red-primary, #8e0000) !important;
  color: #ffffff !important;
  border-color: var(--color-red-primary, #8e0000) !important;
  box-shadow: 0 3px 10px rgba(142, 0, 0, 0.28) !important;
}

.category-subcategory-list .subcategory-item.current-cat .subcategory-chip-icon {
  color: #ffffff !important;
}

.category-subcategory-list .subcategory-item.current-cat .subcategory-name {
  color: #ffffff !important;
}

/* Luxury Routine Pill Accent */
.category-subcategory-list .routine-highlight-pill .subcategory-link {
  background: linear-gradient(135deg, #fffbf2 0%, #fff6e5 100%);
  border: 1px solid #e6ca97;
  color: #8a6217 !important;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.12);
}

.category-subcategory-list .routine-highlight-pill .subcategory-link:hover {
  background: #fff3d6;
  border-color: #d4af37;
  color: #68480c !important;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

/* Scroll Arrows - Compact & Discreet */
.category-subcategory-list-wrapper .scroll-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #333333 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.category-subcategory-list-wrapper .scroll-arrow:hover {
  background: var(--color-red-primary, #8e0000) !important;
  color: #ffffff !important;
  border-color: var(--color-red-primary, #8e0000) !important;
}

.category-subcategory-list-wrapper .scroll-arrow-left {
  left: 0.35rem !important;
}

.category-subcategory-list-wrapper .scroll-arrow-right {
  right: 0.35rem !important;
}

@media (max-width: 768px) {
  /* On touch devices, hide arrows so they don't block pills; touch swipe is completely natural */
  .category-subcategory-list-wrapper .scroll-arrow {
    display: none !important;
  }
}

/* ==========================================================================
   CARRITO DESLIZABLE (CART DRAWER) & OVERHAUL DE LA PÁGINA DE CARRITO
   ========================================================================== */

/* 1. Estilos del Drawer */
.dos-soles-cart-drawer-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999; /* Ensure it lies above everything */
  visibility: hidden;
  transition: visibility 0.4s;
}

.dos-soles-cart-drawer-wrapper.is-open {
  visibility: visible;
}

.cart-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dos-soles-cart-drawer-wrapper.is-open .cart-drawer-overlay {
  opacity: 1;
}

.cart-drawer-inner {
  position: absolute;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--color-bg-white);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dos-soles-cart-drawer-wrapper.is-open .cart-drawer-inner {
  right: 0;
}

/* Evitar scroll del body cuando el drawer está abierto */
body.cart-drawer-open {
  overflow: hidden !important;
}

/* Header del Drawer */
.cart-drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.cart-drawer-title {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.cart-drawer-close-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.cart-drawer-close-btn:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* Cuerpo del Drawer */
.cart-drawer-body {
  flex: 1 1 auto !important;
  height: calc(100% - 68px) !important;
  overflow: hidden !important;
  padding: 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* Barra de progreso de envío gratis */
.dos-soles-shipping-progress-wrapper {
  flex-shrink: 0 !important;
  margin-bottom: 16px !important;
}
.dos-soles-shipping-progress {
  background: #fff5f5 !important;
  border: 1px solid #fed7d7 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
}
.shipping-progress-msg {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--color-red-primary, #d11a2a) !important;
  margin-bottom: 8px !important;
}
.shipping-progress-bar-bg {
  width: 100% !important;
  height: 6px !important;
  background: #fecaca !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}
.shipping-progress-bar-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #d11a2a, #ff4d58) !important;
  border-radius: 9999px !important;
  transition: width 0.4s ease !important;
}

/* WooCommerce Mini-Cart Overrides */
.dos-soles-cart-drawer-wrapper .widget_shopping_cart,
.dos-soles-cart-drawer-wrapper .widget_shopping_cart_content {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 10px 0 !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__empty-message {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 14px !important;
  color: #64748b !important;
  text-align: center !important;
  padding: 40px 0 !important;
}

/* Item del Mini-Cart */
.dos-soles-cart-drawer-wrapper .mini_cart_item,
.woocommerce-mini-cart .mini_cart_item {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 34px 14px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item a:not(.remove) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  color: #1e293b !important;
  text-decoration: none !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item a:not(.remove):hover {
  color: var(--color-red-primary, #d11a2a) !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item img {
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  padding: 4px !important;
  margin: 0 !important;
  float: none !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item .quantity {
  margin-left: 74px !important;
  margin-top: 4px !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  display: block !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item .quantity .amount {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--color-red-primary, #d11a2a) !important;
}

/* Botón eliminar en mini cart */
.dos-soles-cart-drawer-wrapper .mini_cart_item a.remove,
.woocommerce-mini-cart .mini_cart_item a.remove {
  position: absolute !important;
  top: 14px !important;
  right: 0 !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  border-radius: 50% !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  line-height: 1 !important;
  color: #64748b !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item a.remove:hover,
.woocommerce-mini-cart .mini_cart_item a.remove:hover {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* Total del Mini-Cart */
.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__total {
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 14px 0 10px 0 !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__total strong {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__total .amount {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* Botones del Mini-Cart */
.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons {
  flex-shrink: 0 !important;
  position: static !important;
  margin: 0 !important;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px)) 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-shadow: none !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons .button.checkout {
  order: 1 !important;
  height: 48px !important;
  min-height: 48px !important;
  background: linear-gradient(135deg, #d11a2a 0%, #b31422 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(209, 26, 42, 0.35) !important;
  border: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  text-decoration: none !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons .button.checkout:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(209, 26, 42, 0.5) !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons .button:not(.checkout) {
  order: 2 !important;
  height: 42px !important;
  min-height: 42px !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Ocultar el molesto botón de Ver carrito nativo tras agregar producto */
a.added_to_cart.wc-forward {
  display: none !important;
}


/* ==========================================================================
   2. Overhaul de la Página de Carrito (/carrito/)
   ========================================================================== */

/* Layout general en Desktop */
.woocommerce-cart .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px 60px 15px;
}

/* Estilar contenedor de tabla del carrito */
.woocommerce-cart table.shop_table_responsive {
  border: none;
  border-radius: 0;
}

/* Desktop Cart Table styling */
@media (min-width: 768px) {
  .woocommerce-cart table.shop_table.cart {
    border: none;
    border-collapse: collapse;
    margin-bottom: 30px;
  }

  .woocommerce-cart table.shop_table.cart th {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-red-dark);
    padding: 15px 10px;
    border-bottom: 2px solid var(--color-red-dark);
    text-transform: uppercase;
    background: transparent;
  }

  .woocommerce-cart table.shop_table.cart td {
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #333;
    vertical-align: middle;
  }

  .woocommerce-cart table.shop_table.cart tr.cart_item:hover {
    background-color: #fafafa;
  }

  .woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 75px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eaeaea;
  }

  .woocommerce-cart table.shop_table.cart td.product-name a {
    font-weight: 600;
    color: var(--color-red-dark);
    text-decoration: none;
  }

  .woocommerce-cart table.shop_table.cart td.product-name a:hover {
    color: var(--color-gold-accent);
  }

  .woocommerce-cart table.shop_table.cart td.product-price .amount,
  .woocommerce-cart table.shop_table.cart td.product-subtotal .amount {
    font-weight: 700;
    color: var(--color-red-dark);
  }

  .woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    font-size: 20px;
    color: #999 !important;
    background-color: transparent !important;
  }

  .woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
    color: #d11a2a !important;
  }

  /* Coupon input alignment desktop */
  .woocommerce-cart table.shop_table.cart td.actions {
    padding: 20px 0;
    border-bottom: none;
  }
}

/* Mobile responsive overhaul: convert table to cards (matches screenshot resolution) */
@media (max-width: 767px) {
  .woocommerce-cart table.shop_table_responsive,
  .woocommerce-cart table.shop_table_responsive thead,
  .woocommerce-cart table.shop_table_responsive tbody,
  .woocommerce-cart table.shop_table_responsive tr,
  .woocommerce-cart table.shop_table_responsive td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Hide the native table headers */
  .woocommerce-cart table.shop_table_responsive thead {
    display: none !important;
  }

  /* Cada fila es una tarjeta */
  .woocommerce-cart table.shop_table_responsive tr.cart_item {
    position: relative;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background-color: var(--color-bg-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  /* Ocultar etiquetas responsivas nativas de Storefront */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td[data-title]::before {
    display: none !important;
  }

  /* Columna Remover */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0 !important;
    width: auto !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove a.remove {
    font-size: 22px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    color: #aaa !important;
    background-color: transparent !important;
    border: none !important;
    margin: 0 !important;
  }

  /* Columna Miniatura */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail {
    width: 80px !important;
    padding: 0 !important;
    margin-right: 16px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
  }

  /* Columna Nombre del Producto */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name {
    width: calc(100% - 100px) !important;
    padding: 0 !important;
    text-align: left !important;
    margin-bottom: 12px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-red-dark);
    text-decoration: none;
    display: inline-block;
  }

  /* Contenedor de precios y cantidad (fila inferior de la card) */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price,
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity,
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal {
    width: 33.33% !important;
    padding: 0 !important;
    text-align: left !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }

  /* Custom mini text labels inside td for mobile styling since we hid storefront native ones */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price::before {
    content: "Precio";
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity::before {
    content: "Cantidad";
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal::before {
    content: "Subtotal";
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price .amount,
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal .amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-red-dark);
  }

  /* Centrar quantity input on mobile card */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity .quantity input {
    width: 50px;
    padding: 4px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background-color: #fafafa;
  }

  /* Coupon and Action block overhaul on Mobile */
  .woocommerce-cart table.shop_table_responsive tr td.actions {
    padding: 16px 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .woocommerce-cart table.shop_table_responsive tr td.actions .coupon {
    display: flex !important;
    gap: 8px;
    width: 100% !important;
    float: none !important;
    margin-bottom: 12px;
  }

  .woocommerce-cart table.shop_table_responsive tr td.actions .coupon label {
    display: none; /* Hide label */
  }

  .woocommerce-cart table.shop_table_responsive tr td.actions .coupon input#coupon_code {
    flex: 1;
    width: 100% !important;
    height: 42px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box;
    margin: 0 !important;
  }

  .woocommerce-cart table.shop_table_responsive tr td.actions .coupon button.button {
    height: 42px !important;
    padding: 0 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    background-color: #f2f2f2 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    margin: 0 !important;
    width: auto !important;
    white-space: nowrap;
  }

  /* Botón Actualizar Carrito mobile */
  .woocommerce-cart table.shop_table_responsive tr td.actions > button.button {
    width: 100% !important;
    height: 42px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: transparent !important;
    color: var(--ds-dark, #1a1a1a) !important;
    border: 1px solid var(--ds-dark, #1a1a1a) !important;
    border-radius: 4px !important;
    float: none !important;
    margin: 0 !important;
  }
}

/* Totales del Carrito Overhaul (.cart-collaterals) */
.woocommerce-cart .cart-collaterals {
  margin-top: 0 !important;
  padding: 0;
  border-top: none;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
}

@media (min-width: 768px) {
  .woocommerce-cart .cart-collaterals {
    display: block;
    width: 100%;
    margin-top: 0 !important;
  }

  .woocommerce-cart .cart_totals {
    width: 100% !important;
    float: none;
  }
}

.woocommerce-cart .cart_totals {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 24px;
  background-color: #fafafa;
  box-sizing: border-box;
}

.woocommerce-cart .cart_totals > h2 {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 1.5px;
  color: var(--ds-dark, #1a1a1a);
  border-bottom: 2px solid var(--color-red-primary);
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.woocommerce-cart .cart_totals table.shop_table {
  border: none;
  width: 100%;
  margin-bottom: 20px;
}

.woocommerce-cart .cart_totals table.shop_table tr th,
.woocommerce-cart .cart_totals table.shop_table tr td {
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #e2e2e2;
  font-size: 13px;
}

.woocommerce-cart .cart_totals table.shop_table tr th {
  font-weight: 600;
  color: #666;
  text-align: left;
}

.woocommerce-cart .cart_totals table.shop_table tr td {
  text-align: right;
  font-weight: 700;
  color: var(--ds-dark, #1a1a1a);
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
  border-bottom: none;
  padding-top: 16px;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-dark, #1a1a1a);
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total td .amount {
  font-size: 20px;
  color: var(--color-red-primary);
}

/* Botón Finalizar Compra en la página de carrito */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  padding: 16px;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--color-red-primary) !important;
  color: var(--color-bg-white) !important;
  border: 1px solid var(--color-red-primary) !important;
  border-radius: 4px !important;
  transition: background-color 0.3s;
  text-decoration: none;
  box-sizing: border-box;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: #d11a2a !important;
}

/* =========================================================================
   WOOCOMMERCE CART PAGE REDESIGN (DOS SOLES)
   ========================================================================= */

/* Font family and title override */
.woocommerce-cart .dos-soles-cart-title {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 2rem;
  font-weight: 850;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.woocommerce-cart .dos-soles-cart-title .cart-count-badge {
  color: var(--color-red-primary);
}

/* Container asymmetric 2-column layout for desktop */
@media (min-width: 768px) {
  .dos-soles-cart-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
  }
  .dos-soles-cart-main {
    width: 65%;
  }
  .dos-soles-cart-sidebar {
    width: 35%;
    position: sticky;
    top: 120px;
  }
}

/* General cart table adjustments */
.woocommerce-cart-form {
  width: 100%;
}

/* Custom quantity selector pill */
.quantity-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #eaeaea;
  border-radius: 50px;
  overflow: hidden;
  background-color: #ffffff;
  padding: 2px;
}
.quantity-pill .qty-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  color: #4c4d52;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  outline: none;
}
.quantity-pill .qty-btn:hover {
  background-color: #f7f7f7;
}
.quantity-pill .qty-btn:active {
  background-color: #eaeaea;
}
.quantity-pill .quantity {
  margin: 0 !important;
  padding: 0 !important;
}
.quantity-pill input.qty {
  width: 40px;
  height: 32px;
  text-align: center;
  border: none !important;
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  outline: none;
}
/* Remove Webkit spinners */
.quantity-pill input.qty::-webkit-outer-spin-button,
.quantity-pill input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-pill input.qty[type=number] {
  -moz-appearance: textfield;
}

/* Vaciar Carrito link styling */
.dos-soles-empty-cart-btn {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4c4d52;
  text-decoration: none;
  border-bottom: 1px solid #4c4d52;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.dos-soles-empty-cart-btn:hover {
  color: var(--color-red-primary);
  border-color: var(--color-red-primary);
}

/* Actions layout */
.dos-soles-cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
}
.coupon-and-empty {
  display: flex;
  align-items: center;
  gap: 20px;
}
.coupon {
  display: flex;
  gap: 10px;
}
.coupon input.input-text {
  border: 1px solid #eaeaea;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}
.coupon button.button {
  background-color: #ffffff !important;
  color: #4c4d52 !important;
  border: 1px solid #eaeaea !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 4px;
}
.coupon button.button:hover {
  background-color: #f7f7f7 !important;
  color: var(--color-red-primary) !important;
  border-color: var(--color-red-primary) !important;
}

/* Update Cart Button Overrides */
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
  background-color: #ffffff !important;
  color: #4c4d52 !important;
  border: 1px solid #eaeaea !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 4px;
}
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled) {
  background-color: #f7f7f7 !important;
  color: var(--color-red-primary) !important;
  border-color: var(--color-red-primary) !important;
}

/* Stacking vertical cards for mobile */
@media (max-width: 767px) {
  .dos-soles-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .dos-soles-cart-card {
    display: flex;
    position: relative;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    gap: 15px;
    align-items: center;
  }
  .dos-soles-cart-card .product-remove {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 2;
  }
  .dos-soles-cart-card .product-remove a.remove {
    font-size: 24px;
    color: #999;
    text-decoration: none;
  }
  .dos-soles-cart-card .product-remove a.remove:hover {
    color: var(--color-red-primary) !important;
    background: none !important;
  }
  .dos-soles-cart-card .product-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  .dos-soles-cart-card .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }
  .dos-soles-cart-card .product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .dos-soles-cart-card .product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }
  .dos-soles-cart-card .product-name a {
    color: #1a1a1a;
    text-decoration: none;
  }
  .dos-soles-cart-card .product-name a:hover {
    color: var(--color-red-primary);
  }
  .dos-soles-cart-card .product-categories {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
  }
  .dos-soles-cart-card .product-categories a {
    color: #999;
    text-decoration: none;
  }
  .dos-soles-cart-card .product-subtotal {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
    align-self: flex-end;
  }
  
  .dos-soles-cart-actions {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .coupon-and-empty {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .coupon {
    flex-direction: column;
  }
  .coupon button.button, 
  .woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
    width: 100%;
  }
  .dos-soles-empty-cart-btn {
    text-align: center;
    border: 1px solid #4c4d52;
    border-radius: 4px;
    padding: 10px;
    display: block;
  }
}

/* Desktop Styles for Cart Items List (Fallback to clean lists if table wrappers are present) */
@media (min-width: 768px) {
  .dos-soles-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .dos-soles-cart-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    gap: 20px;
  }
  .dos-soles-cart-card .product-remove {
    order: 5;
  }
  .dos-soles-cart-card .product-remove a.remove {
    font-size: 20px;
    color: #999;
    text-decoration: none;
  }
  .dos-soles-cart-card .product-remove a.remove:hover {
    color: var(--color-red-primary) !important;
    background: none !important;
  }
  .dos-soles-cart-card .product-thumbnail {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
  }
  .dos-soles-cart-card .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }
  .dos-soles-cart-card .product-details {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 20px;
  }
  .dos-soles-cart-card .product-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }
  .dos-soles-cart-card .product-name a {
    color: #1a1a1a;
    text-decoration: none;
  }
  .dos-soles-cart-card .product-name a:hover {
    color: var(--color-red-primary);
  }
  .dos-soles-cart-card .product-categories {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-top: 4px;
  }
  .dos-soles-cart-card .product-categories a {
    color: #999;
    text-decoration: none;
  }
  .dos-soles-cart-card .product-subtotal {
    order: 4;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 100px;
    text-align: right;
  }
}

/* Sidebar and Totals Overrides (Color overrides to Red/White/Charcoal only) */
.woocommerce-cart .cart-collaterals .cart_totals {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  display: none !important;
}

.woocommerce-cart .cart_totals table.shop_table tr th,
.woocommerce-cart .cart_totals table.shop_table tr td {
  border-color: #eaeaea !important;
}

.woocommerce-cart .cart_totals table.shop_table tr td {
  color: #1a1a1a !important; /* Force black/charcoal over navy blue */
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th {
  color: #1a1a1a !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total td .amount {
  color: var(--color-red-primary) !important; /* Change total price color to red */
  font-weight: 800;
}

/* Solid red Proceder al Pago button override */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background-color: var(--color-red-primary) !important;
  border-color: var(--color-red-primary) !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 16px 24px !important;
  transition: opacity 0.2s !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  opacity: 0.9 !important;
  background-color: var(--color-red-primary) !important;
}

/* =========================================================================
   WOOCOMMERCE CART PAGE REDESIGN
   ========================================================================= */

/* Main titles "CARRITO DE COMPRA" and "RESUMEN" font family override to Plus Jakarta Sans */
.dos-soles-cart-banner-header h2,
.dos-soles-summary-header h2,
.dos-soles-coupon-block h3 {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 850 !important;
}

/* Base fonts for body, totals, names */
.dos-soles-cart-container,
.dos-soles-cart-container .product-brand-name,
.dos-soles-cart-container .product-name,
.dos-soles-cart-container .product-name a,
.dos-soles-cart-container .subtotal-amount,
.dos-soles-cart-container .amount-breakdown,
.dos-soles-cart-container .checkout-button,
.dos-soles-cart-container .continue-shopping-link {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Colors: Red #d11a2a, dark navy/dark text, white backgrounds for cards */
:root {
  --ds-red: #d11a2a;
  --ds-dark: #1a1a1a;
  --ds-gray: #777777;
  --ds-light-gray: #f7f7f7;
  --ds-border: #eaeaea;
}

/* Asymmetric grid layout for desktop */
@media (min-width: 768px) {
  .dos-soles-cart-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
  }
  .dos-soles-cart-main {
    width: 65%;
  }
  .dos-soles-cart-sidebar {
    width: 35%;
    position: sticky;
    top: 120px;
  }
}

/* Vertical stacked cards for mobile */
@media (max-width: 767px) {
  .dos-soles-cart-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .dos-soles-cart-main,
  .dos-soles-cart-sidebar {
    width: 100%;
  }
}

/* Banner header */
.dos-soles-cart-banner-header {
  background-color: #ffffff !important;
  border-radius: 14px !important;
  padding: 18px 24px !important;
  margin-bottom: 20px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}
.dos-soles-cart-banner-header h2 {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  color: #0f172a !important;
}
.dos-soles-cart-banner-header .cart-count,
.dos-soles-cart-banner-header .dos-soles-cart-header-count {
  color: var(--color-red-primary, #d11a2a) !important;
  font-weight: 850 !important;
}

/* Card list styling */
.dos-soles-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual card styling */
.dos-soles-cart-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  padding: 20px;
  gap: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

@media (max-width: 767px) {
  .dos-soles-cart-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 15px;
  }
}

/* Image box */
.product-thumbnail-box {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumbnail-box img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Details Box */
.product-details-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-brand-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ds-dark);
}
.product-name {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}
.product-name a {
  color: var(--ds-gray);
  text-decoration: none;
}
.product-name a:hover {
  color: var(--ds-red);
}

/* Prices */
.product-price-box {
  font-size: 0.9rem;
  font-weight: 600;
}
.product-price-box .regular-price {
  text-decoration: line-through;
  color: #999999;
  margin-right: 8px;
}
.product-price-box .offer-price {
  color: var(--ds-red);
  font-weight: 700;
}
.product-price-box .price {
  color: var(--ds-dark);
}

/* Quantity pill style */
.quantity-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ds-border);
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--ds-light-gray);
  padding: 2px;
  width: fit-content;
}
.quantity-pill .qty-btn {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  color: var(--ds-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  outline: none;
}
.quantity-pill .qty-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.quantity-pill input.qty {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none !important;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ds-dark);
  outline: none;
  -moz-appearance: textfield;
}
.quantity-pill input.qty::-webkit-outer-spin-button,
.quantity-pill input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Subtotal box */
.product-subtotal-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 100px;
}
@media (max-width: 767px) {
  .product-subtotal-box {
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid var(--ds-border);
    padding-top: 10px;
  }
}
.product-subtotal-box .subtotal-label {
  font-size: 0.75rem;
  color: var(--ds-gray);
  text-transform: uppercase;
}
.product-subtotal-box .subtotal-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-dark);
}

/* Round Close/Remove Button */
.product-remove-box {
  position: absolute;
  top: 15px;
  right: 15px;
}
.product-remove-box a.remove-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ds-border);
  color: var(--ds-gray) !important;
  background-color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none !important;
  line-height: 1;
  transition: all 0.2s ease;
}
.product-remove-box a.remove-card-btn:hover {
  color: #ffffff !important;
  background-color: var(--ds-red);
  border-color: var(--ds-red);
}

/* Bottom actions: Vaciar carrito and Coupon */
.dos-soles-cart-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 25px;
  gap: 20px;
}
@media (max-width: 767px) {
  .dos-soles-cart-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Empty cart button */
.empty-cart-action {
  order: 2;
}
@media (max-width: 767px) {
  .empty-cart-action {
    order: 1;
    text-align: right;
  }
}
.dos-soles-empty-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-gray) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.dos-soles-empty-cart-btn:hover {
  color: var(--ds-red) !important;
  border-bottom-color: var(--ds-red);
}

/* Coupon block */
.dos-soles-coupon-block {
  order: 1;
  background-color: #ffffff;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  padding: 15px 20px;
  max-width: 400px;
  flex-grow: 1;
}
@media (max-width: 767px) {
  .dos-soles-coupon-block {
    order: 2;
    max-width: 100%;
  }
}
.dos-soles-coupon-block h3 {
  font-size: 0.85rem;
  margin: 0 0 12px 0;
  color: var(--ds-dark);
}
.coupon-form-group {
  display: flex;
  gap: 10px;
}
.coupon-form-group input.input-text {
  flex-grow: 1;
  border: 1px solid var(--ds-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
}
.coupon-form-group button.button {
  background-color: var(--ds-dark) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
  border: none;
}
.coupon-form-group button.button:hover {
  background-color: var(--ds-red) !important;
}

/* Right Column Sidebar Summary */
.dos-soles-summary-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
  padding: 18px 24px !important;
  text-align: left !important;
}
.dos-soles-summary-header h2 {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.dos-soles-summary-box {
  background-color: #ffffff;
  padding: 25px;
}

/* Free shipping indicator in summary */
.free-shipping-indicator {
  margin-bottom: 25px;
}
.shipping-progress-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ds-dark);
}
.shipping-progress-msg .truck-icon {
  color: var(--color-red-primary);
  display: flex;
  align-items: center;
}
.progress-bar-bg {
  height: 6px;
  background-color: #eaeaea;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background-color: var(--color-red-primary);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Amount breakdown */
.amount-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--ds-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ds-gray);
}
.breakdown-row.total-row {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ds-dark);
  border-top: 1px solid var(--ds-border);
  padding-top: 12px;
  margin-top: 4px;
}
.breakdown-row.total-row .value {
  color: var(--ds-red);
}

/* Checkout Button 100% width, solid red */
.full-width-red-btn {
  display: block !important;
  width: 100% !important;
  background-color: var(--ds-red) !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 15px 20px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: none !important;
  transition: opacity 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(209, 26, 42, 0.2);
}
.full-width-red-btn:hover {
  opacity: 0.9 !important;
  color: #ffffff !important;
}

/* Continue shopping link centered below */
.continue-shopping-wrapper {
  text-align: center;
  margin-top: 15px;
}
.continue-shopping-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ds-gray) !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.continue-shopping-link:hover {
  color: var(--ds-red) !important;
  border-bottom-color: var(--ds-red);
}

/* Redesigned Empty Cart Trash Icon SVG styling */
svg.trash-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Redesigned checkout button overrides to ensure full width red styling inside cart totals and sidebar */
.cart_totals .checkout-button,
.dos-soles-cart-sidebar .checkout-button,
.woocommerce-cart .cart_totals a.checkout-button,
.woocommerce-cart .dos-soles-cart-sidebar a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  background: linear-gradient(135deg, #d11a2a 0%, #b31422 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-weight: 850 !important;
  border-radius: 9999px !important;
  padding: 0 24px !important;
  font-size: 13.5px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(209, 26, 42, 0.35) !important;
}

.cart_totals .checkout-button:hover,
.dos-soles-cart-sidebar .checkout-button:hover,
.woocommerce-cart .cart_totals a.checkout-button:hover,
.woocommerce-cart .dos-soles-cart-sidebar a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(209, 26, 42, 0.5) !important;
  background: linear-gradient(135deg, #b31422 0%, #8b0000 100%) !important;
  color: #ffffff !important;
}

/* =========================================================================
   CONTACT PAGE & FAQ PAGE STYLING
   ========================================================================= */
.contact-grid-layout {
  max-width: 1000px;
  margin: 0 auto;
  gap: 4rem;
}
.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-info-column h3 {
  font-family: 'Cinzel', serif !important;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-red-dark);
}
.contact-info-column p {
  color: var(--color-text-neutral);
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-red-dark);
  color: var(--color-red-dark);
  transition: all 0.3s ease;
}
.contact-social-item:hover {
  background-color: var(--color-red-primary);
  border-color: var(--color-red-primary);
  color: #ffffff;
}
.contact-form-column {
  background: #ffffff;
  padding: 2.5rem;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.contact-form-column h3 {
  font-family: 'Cinzel', serif !important;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-red-dark);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-red-dark);
}
.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  outline: none;
  font-family: var(--font-primary);
  font-size: 0.9rem;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--color-red-primary);
}
.btn-contact-submit {
  background-color: var(--color-red-dark);
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.btn-contact-submit:hover {
  background-color: var(--color-red-primary);
}

/* FAQ Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-dynamic-content {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border-light);
  padding-top: 2rem;
}

/* Exit Intent & Idle Timeout Modal Styles */
.dos-soles-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dos-soles-modal-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}
.dos-soles-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.dos-soles-modal-container {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border-light, #eaeaea);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100001;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}
.dos-soles-modal-wrapper.active .dos-soles-modal-container {
  transform: scale(1);
}
.dos-soles-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}
.dos-soles-modal-close-btn:hover {
  color: var(--color-red-primary, #D4000C);
}
.dos-soles-modal-content {
  text-align: center;
}
.dos-soles-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-red-primary, #D4000C);
  margin-top: 0;
  margin-bottom: 15px;
  letter-spacing: 1px;
  line-height: 1.3;
}
.dos-soles-modal-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #444444;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 25px;
}
.dos-soles-coupon-box {
  background: #fafafa;
  border: 1.5px dashed var(--color-red-primary, #D4000C);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 25px;
  box-sizing: border-box;
}
.dos-soles-coupon-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.dos-soles-coupon-code-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.dos-soles-coupon-code {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111111;
  letter-spacing: 2px;
}
.dos-soles-copy-btn {
  background: #eaeaea;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.dos-soles-copy-btn:hover {
  background: var(--color-red-primary, #D4000C);
  color: #ffffff;
}
.dos-soles-copy-btn svg {
  transition: transform 0.2s ease;
}
.dos-soles-copy-btn:active svg {
  transform: scale(0.9);
}
.dos-soles-modal-primary-btn {
  width: 100%;
  padding: 15px 20px;
  background: var(--color-red-primary, #D4000C);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.dos-soles-modal-primary-btn:hover {
  background: #b3000a;
}
.dos-soles-modal-primary-btn:active {
  transform: scale(0.98);
}
.dos-soles-modal-close-link-btn {
  background: none;
  border: none;
  color: #777777;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s ease;
  padding: 5px;
  margin-top: 5px;
}
.dos-soles-modal-close-link-btn:hover {
  color: #111111;
}

/* R1: Free shipping progress bar styles */
.dos-soles-shipping-progress-wrapper {
  padding: 15px;
  background-color: #fcfcfc;
  border-bottom: 1px solid var(--color-border-light, #eaeaea);
}
.dos-soles-shipping-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shipping-progress-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-red-dark, #8e0000);
}
.shipping-progress-text strong {
  color: var(--color-red-primary, #D4000C);
}
.shipping-progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.shipping-progress-bar-fill {
  height: 100%;
  background-color: var(--color-red-primary, #D4000C);
  border-radius: 4px;
  transition: width 0.4s ease-out;
}
.dos-soles-shipping-progress .shipping-progress-msg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--color-red-dark, #8e0000);
  margin: 0;
}
.dos-soles-shipping-progress .shipping-progress-msg .truck-icon {
  color: var(--color-red-primary, #D4000C);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.dos-soles-shipping-progress .shipping-progress-text {
  line-height: 1.3;
}

/* R2: Smart Search Highlight styles */
.smart-search-link.highlighted,
.smart-search-routine-link.highlighted {
  background-color: rgba(212, 0, 12, 0.05) !important;
  outline: 2px solid var(--color-red-primary, #D4000C);
}

/* R3: Bento-style installments block */
.installment-bento-wrapper {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border-light, #eaeaea);
  border-radius: 12px;
  box-shadow: var(--shadow-soft, 0 4px 20px rgba(11, 26, 72, 0.05));
}
.installment-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .installment-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.installment-bento-grid .bento-card {
  display: flex;
  gap: 12px;
  padding: 1rem;
  border-radius: 8px;
  background-color: #fafafa;
  border: 1px solid var(--color-border-light, #eaeaea);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.installment-bento-grid .bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-red-primary, #D4000C);
}
.installment-bento-grid .bento-card .card-icon {
  color: var(--color-red-primary, #D4000C);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.installment-bento-grid .bento-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.installment-bento-grid .bento-card .card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #777777;
  letter-spacing: 0.05em;
}
.installment-bento-grid .bento-card .card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-red-dark, #8e0000);
}
.installment-bento-grid .bento-card .card-subtitle {
  font-size: 0.7rem;
  color: #555555;
}
.installment-bento-grid .bento-card .card-total {
  font-size: 0.75rem;
  color: #555555;
}
.installment-bento-grid .bento-card.card-installments {
  background-color: rgba(212, 0, 12, 0.02);
  border-color: rgba(212, 0, 12, 0.15);
}
.installment-bento-grid .bento-card.card-installments:hover {
  border-color: var(--color-red-primary, #D4000C);
}
.installment-bento-grid .bento-card.card-transfer-discount {
  background-color: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.35);
}
.installment-bento-grid .bento-card.card-transfer-discount:hover {
  border-color: #10b981;
}
.installment-bento-grid .bento-card.card-transfer-discount .card-icon {
  color: #059669;
}
.installment-bento-grid .bento-card.card-transfer-discount .card-price {
  color: #047857;
}
.installment-bento-grid .bento-card.card-transfer-discount .card-promo-badge {
  display: inline-block;
  background-color: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0;
}

/* R4: Dynamic Toast Notifications */
.dos-soles-toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100002;
  pointer-events: none;
  max-width: 350px;
  width: 90%;
}
.dos-soles-toast-item {
  background: #111111;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 6px;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-left: 4px solid var(--color-red-primary, #D4000C);
  pointer-events: auto;
}
.dos-soles-toast-item.active {
  opacity: 1;
  transform: translateY(0);
}
.dos-soles-toast-item .toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dos-soles-toast-item.success {
  border-left-color: #2ec4b6;
}
.dos-soles-toast-item.error {
  border-left-color: var(--color-red-primary, #D4000C);
}
.dos-soles-toast-item.info {
  border-left-color: #3a86c8;
}
.dos-soles-toast-item .toast-icon {
  flex-shrink: 0;
}
.dos-soles-toast-item.success .toast-icon {
  color: #2ec4b6;
}
.dos-soles-toast-item.error .toast-icon {
  color: var(--color-red-primary, #D4000C);
}
.dos-soles-toast-item.info .toast-icon {
  color: #3a86c8;
}
.dos-soles-toast-item .toast-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.dos-soles-toast-item .toast-close-btn:hover {
  color: #ffffff;
}

/* Hide WooCommerce default notices on all pages EXCEPT checkout and My Account */
body:not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-error,
body:not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-message,
body:not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-info {
  display: none !important;
}

/* R1: Grid Layout Definitions */
.grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* R1: Fallback styling for missing brand images */
.brand-card.brand-image-fallback-active {
  background-color: var(--color-red-dark) !important;
  color: #ffffff !important;
}

.brand-card.brand-image-fallback-active .brand-image-wrapper,
.brand-card.brand-image-fallback-active .brand-logo-container {
  background-color: var(--color-red-dark) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 140px; /* Safe height for branding block */
}

.brand-card.brand-image-fallback-active img {
  display: none !important; /* Hide standard broken image icon */
}

.brand-card.brand-image-fallback-active .brand-fallback-title {
  font-family: 'Cinzel', Georgia, serif !important;
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  padding: 10px !important;
}

.brand-card.brand-image-fallback-active .brand-info .brand-name {
  color: #ffffff !important;
}



/* R2: Homepage brand carousel mobile layout */
@media (max-width: 767px) {
  .brand-carousel .brand-card {
    flex: 0 0 calc(50% - 10px) !important;
    height: auto !important;
    min-height: 160px !important;
    padding: 15px 10px !important; /* Slightly reduced padding on mobile */
  }
}

/* R2: Reposition floating WhatsApp button on mobile */
@media (max-width: 768px) {
  .joinchat,
  .ht-ctc-chat,
  .whatsapp-button,
  .floating-wpp,
  #whatsapp-widget,
  .wa-button,
  .wsp-button {
    bottom: 85px !important; /* Positions button above 50-60px mobile footer bar */
  }
}

/* R3: Hide default WooCommerce cart entry title */
.woocommerce-cart .entry-title,
.woocommerce-cart .entry-header {
  display: none !important;
}

/* R3: Styled chips/icons for categories without thumbnails */
.category-subcategory-list .subcategory-item.no-thumbnail-pill .subcategory-link {
  display: flex !important;
  align-items: center !important;
  padding: 0.6rem 1.25rem !important;
  background-color: var(--color-bg-white) !important;
  border: 1px solid var(--color-border-light) !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 6px rgba(11, 26, 72, 0.03) !important;
}

.category-subcategory-list .subcategory-icon-chip {
  color: var(--color-red-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.category-subcategory-list .subcategory-item:hover .subcategory-icon-chip {
  color: var(--color-red-primary);
}

.category-subcategory-list .subcategory-item.current-cat .subcategory-icon-chip {
  color: var(--color-bg-white);
}

.dos-soles-toast.info {
  background-color: var(--color-red-dark, #8e0000);
  border-left-color: var(--color-red-dark, #8e0000);
}

.dos-soles-toast.error {
  background-color: #d02626;
  border-left-color: #d02626;
}

/* Grid system for Brands Page */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Brands Page Image Fallback */
.brand-image-fallback {
  width: 100%;
  height: 100%;
  background-color: #8e0000 !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  padding: 1.5rem;
}
.brand-image-fallback span {
  color: #ffffff !important;
  font-family: 'Cinzel', serif !important;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-image-wrapper {
  background-color: #ffffff !important;
}
.btn-discover {
  white-space: nowrap !important;
}

/* Routine Builder Accordion Header */
.routine-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.routine-step-toggle-icon {
  display: none;
  font-size: 12px;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .brand-card {
    height: auto !important;
  }
  .brand-carousel .brand-card {
    flex: 0 0 calc(50% - 10px) !important;
    min-width: 140px !important;
    height: 160px !important;
    padding: 15px 10px !important;
  }
  .brand-carousel .btn-discover {
    padding: 6px 12px !important;
    font-size: 10px !important;
  }
  

  
  /* WhatsApp floating button mobile spacing */
  .joinchat,
  .whatsapp-button,
  .wsp-button,
  .floating-whatsapp,
  #whatsapp-floating,
  a.wsp-link,
  a[href*="wa.me"],
  a[href*="api.whatsapp.com"] {
    bottom: 95px !important;
    right: 20px !important;
    z-index: 99999 !important;
  }
}

/* Disable comments on Cart, Checkout, My Account, Shop */
.woocommerce-cart #comments,
.woocommerce-checkout #comments,
.woocommerce-account #comments,
.woocommerce-shop #comments {
  display: none !important;
}

/* Hide redundant Page Title on the Cart page */
.woocommerce-cart .entry-header {
  display: none !important;
}

/* Routine Builder - Hide Sidebar and Catalog Loop CTA */
.routine-active-layout .shop-sidebar {
  display: none !important;
}
.routine-active-layout .shop-catalog-content {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
.routine-view-all-cta {
  text-align: center;
  margin: 4rem auto 2rem auto;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--color-border-light, #e5e5e5);
  max-width: 600px;
}
.routine-view-all-cta p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-primary, inherit);
}
.routine-view-all-cta .btn-view-all {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-red-dark, #8e0000);
  color: #ffffff !important;
  font-family: var(--font-secondary, inherit);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-decoration: none;
}
.routine-view-all-cta .btn-view-all:hover {
  background: var(--color-red-primary, #d11a2a);
}

/* Hero Slider - Editorial Layout on Desktop */
@media (min-width: 1024px) {
  .hero-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  .hero-slide::before {
    display: block !important;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.52) 36%, rgba(10, 10, 10, 0.12) 65%, transparent 88%) !important;
  }
  .slide-content {
    position: absolute !important;
    bottom: 34px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    text-align: center !important;
    width: calc(100% - 2.5rem) !important;
    max-width: 540px !important;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .slide-content .slide-subtitle {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 0.35rem !important;
    color: #ff3b44 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
    text-transform: uppercase !important;
  }
  .slide-content .slide-title {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 850 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.2 !important;
    min-height: 2.35em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 0.4rem !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95) !important;
  }
  .slide-content .slide-description {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    min-height: 2.65em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 460px !important;
    margin-bottom: 0.95rem !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
  }
  .slide-content .btn-bento-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    padding: 0 1.9rem !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #d11a2a 0%, #b31422 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 16px rgba(209, 26, 42, 0.45) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  .slide-content .btn-bento-primary:hover {
    background: #b31422 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(209, 26, 42, 0.65) !important;
  }
}

/* Category Header - Safe-Centered Carousel Layout on Desktop */
@media (min-width: 1024px) {
  .category-subcategory-list {
    flex-wrap: nowrap !important;
    justify-content: safe center !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0.5rem 0 !important;
  }
}

/* Premium fading gradients on the sides of the category slider */
.category-subcategory-list-wrapper::before,
.category-subcategory-list-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 768px) {
  .category-subcategory-list-wrapper::before,
  .category-subcategory-list-wrapper::after {
    width: 30px;
  }
}
.category-subcategory-list-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-white, #ffffff) 30%, transparent) !important;
}
.category-subcategory-list-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-white, #ffffff) 30%, transparent) !important;
}

/* ==========================================================================
   HOMEPAGE RESTYLING: FARMACITY FEATURES
   ========================================================================== */

/* 1. Bank Promotions Carousel Section */
.payment-promos-section {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
}

.center-title {
  text-align: center;
  margin-bottom: 2.25rem;
}

/* Highlight cards grid */
.promos-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .promos-highlights-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.promo-highlight-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-soft);
  padding: 2.25rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
  overflow: hidden;
}

@media (max-width: 480px) {
  .promo-highlight-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 1.25rem;
  }
}

.promo-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(11, 26, 72, 0.08);
}

/* Custom card accent borders */
.cash-card {
  border-left: 5px solid var(--color-accent-gold);
}

.cards-card {
  border-left: 5px solid var(--color-red-dark);
}

.payment-hub-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 30px;
  font-family: var(--font-primary);
  display: block !important;
}

.cash-card .payment-hub-badge {
  background: rgba(221, 153, 51, 0.08);
  color: var(--color-accent-gold-dark);
}

.cards-card .payment-hub-badge {
  background: rgba(11, 26, 72, 0.06);
  color: var(--color-red-dark);
}

.payment-hub-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.cash-card .payment-hub-icon {
  background: rgba(221, 153, 51, 0.08);
  color: var(--color-accent-gold-dark);
}

.cards-card .payment-hub-icon {
  background: rgba(11, 26, 72, 0.06);
  color: var(--color-red-dark);
}

.promo-highlight-card:hover .payment-hub-icon {
  transform: scale(1.05);
}

.payment-hub-icon svg {
  width: 26px;
  height: 26px;
}

.payment-hub-info {
  flex-grow: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: auto !important;
  padding: 0 !important;
}

.payment-hub-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.cash-card .payment-hub-title {
  color: var(--color-accent-gold-dark);
}

.cards-card .payment-hub-title {
  color: var(--color-red-dark);
}

.payment-hub-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--color-red-dark);
  opacity: 0.95;
}

.payment-hub-desc {
  font-size: 0.85rem;
  color: var(--color-text-neutral);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Payment Partners Showcase (Compact Minimal — Opción 2)
   ========================================================================== */
.payment-promos-section {
  margin-top: 0;
  margin-bottom: 2rem;
}

.payment-partners-showcase {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8e5e0;
  box-shadow: 0 3px 16px -2px rgba(0, 0, 0, 0.03);
  padding: 1.15rem 1.75rem 1.15rem;
  text-align: center;
  position: relative;
  margin: 0 auto;
}

.payment-strip-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
}

.payment-strip-overline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
  font-family: var(--font-primary);
}

.payment-brands-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0;
  width: 100%;
}

.payment-brand-badge {
  background: #ffffff;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
  padding: 0 12px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
}

.payment-brand-badge:hover {
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.payment-brand-badge.badge-card {
  min-width: 68px;
  padding: 0 10px;
}

.payment-brand-badge .badge-svg {
  display: block;
  flex-shrink: 0;
}

.payment-brand-badge .mp-svg {
  width: 19px;
  height: 19px;
}

.payment-brand-badge .modo-svg {
  width: 17px;
  height: 17px;
}

.payment-brand-badge .santander-flame {
  width: 16px;
  height: 16px;
}

.payment-brand-badge .macro-symbol {
  width: 18px;
  height: 14px;
}

.payment-brand-badge .visa-svg {
  width: 48px;
  height: 16px;
}

.payment-brand-badge .mc-svg {
  width: 34px;
  height: 21px;
}

.payment-brand-badge .amex-svg {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
}

.payment-brand-badge .transfer-svg {
  width: 17px;
  height: 17px;
}

.payment-brand-badge .mp-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.80rem;
  font-weight: 800;
  color: #009ee3;
  letter-spacing: -0.02em;
}

.payment-brand-badge .mp-label span {
  font-weight: 400;
}

.payment-brand-badge .modo-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.80rem;
  font-weight: 800;
  color: #7920FF;
  letter-spacing: 0.04em;
}

.badge-text-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}

.badge-text-group .brand-name {
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-primary);
}

.badge-text-group .brand-name.santander-red {
  color: #EC0000;
}

.badge-text-group .brand-name.macro-blue {
  color: #0039FF;
}

.badge-text-group .brand-sub {
  font-size: 0.55rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-text-group .brand-tag-off {
  display: inline-block;
  background: #fff1f2;
  color: #8e0000;
  border: 1px solid #fecdd3;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .payment-promos-section {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  .payment-partners-showcase {
    padding: 1rem 0.75rem;
    border-radius: 14px;
  }
  .payment-strip-header {
    margin-bottom: 0.75rem;
  }
  .payment-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .payment-brand-badge {
    height: 44px;
    padding: 0 8px;
    justify-content: center;
    width: 100%;
  }
  .payment-brand-badge.badge-card {
    min-width: 0;
  }
}


/* 2. Tabbed Product Showcase Section */
.product-tabbed-showcase {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.product-tabs-wrapper {
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.product-tabs-nav {
  display: flex;
  gap: 2rem;
}

.product-tab-btn {
  background: none !important;
  border: none !important;
  padding: 0.75rem 0.5rem !important;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-neutral);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  outline: none !important;
}

.product-tab-btn:hover {
  color: var(--color-red-dark);
}

.product-tab-btn.active {
  color: var(--color-red-primary) !important;
}

.product-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-red-primary);
  border-radius: 2px;
}

.product-tabbed-carousel .carousel-track {
  display: flex;
  gap: 20px;
  transition: opacity 0.4s ease;
}

.product-tabbed-carousel .carousel-track:not(.active) {
  display: none !important;
}

.product-tabbed-carousel .carousel-track.active {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* 3. Instagram Feed Section */
.instagram-feed-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
  text-align: center;
}

.instagram-feed-header {
  margin-bottom: 2rem;
}

.instagram-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.25);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.instagram-grid-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.instagram-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.instagram-grid-item:hover .instagram-image {
  transform: scale(1.08);
}

.instagram-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  color: #ffffff;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.instagram-grid-item:hover .instagram-hover-overlay {
  opacity: 1;
}

.instagram-caption-preview {
  font-family: var(--font-secondary, "Plus Jakarta Sans", sans-serif);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  text-align: center;
  font-weight: 400;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 90%;
  transform: translateY(-10px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.instagram-grid-item:hover .instagram-caption-preview {
  transform: translateY(0);
}

.instagram-metrics {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.instagram-grid-item:hover .instagram-metrics {
  transform: translateY(0);
}

.metric-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
}

.metric-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.metric-value {
  font-family: var(--font-secondary, "Plus Jakarta Sans", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .instagram-hover-overlay {
    padding: 0.75rem;
  }
  .instagram-caption-preview {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
  }
  .instagram-metrics {
    gap: 0.75rem;
  }
  .metric-value {
    font-size: 0.75rem;
  }
}

.instagram-action {
  display: flex;
  justify-content: center;
}


/* 4. Cart Drawer Shipping Progress Bar Polish */
.dos-soles-shipping-progress {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.75rem 0.25rem;
}

.shipping-progress-bar-bg {
  height: 8px !important;
  background-color: #f1f3f5 !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-red-primary) 0%, #ff525b 100%) !important;
  border-radius: 20px !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(212, 0, 12, 0.3);
}

.shipping-progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  animation: progressStripes 1s linear infinite;
  opacity: 0.3;
}

@keyframes progressStripes {
  from { background-position: 0 0; }
  to { background-position: 20px 0; }
}

.dos-soles-shipping-progress .shipping-progress-msg {
  gap: 10px !important;
  margin-bottom: 0.5rem !important;
}

.dos-soles-shipping-progress .shipping-progress-text {
  font-size: 0.85rem !important;
  color: var(--color-red-dark) !important;
}

.dos-soles-shipping-progress .shipping-progress-text strong {
  font-weight: 700;
  color: var(--color-red-primary) !important;
}
/* ==========================================================================
   PREMIUM ENTRANCE & SCROLL REVEAL ANIMATIONS
   ========================================================================== */

/* Fade-in on load for Header and Hero */
.main-header,
.category-subcategory-list-wrapper,
.hero-grid-container {
  opacity: 0;
  animation: premiumFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-subcategory-list-wrapper {
  animation-delay: 0.15s;
}

.hero-grid-container {
  animation-delay: 0.3s;
}

@keyframes premiumFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal style baseline */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  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: transform, opacity;
}

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

/* Delays escalonados para grilla de soluciones capilares */
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(1) { transition-delay: 0.04s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(4) { transition-delay: 0.16s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(5) { transition-delay: 0.20s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(6) { transition-delay: 0.24s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(7) { transition-delay: 0.28s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(8) { transition-delay: 0.32s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(9) { transition-delay: 0.36s; }
.problem-finder-grid .problem-card.reveal-on-scroll:nth-child(10) { transition-delay: 0.40s; }

/* Delays escalonados para Bento Grid */
.bento-grid .bento-tile.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.bento-grid .bento-tile.reveal-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.bento-grid .bento-tile.reveal-on-scroll:nth-child(3) { transition-delay: 0.25s; }
.bento-grid .bento-tile.reveal-on-scroll:nth-child(4) { transition-delay: 0.35s; }

/* Delays escalonados para Instagram Feed */
.instagram-grid .instagram-grid-item.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.instagram-grid .instagram-grid-item.reveal-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.instagram-grid .instagram-grid-item.reveal-on-scroll:nth-child(3) { transition-delay: 0.20s; }
.instagram-grid .instagram-grid-item.reveal-on-scroll:nth-child(4) { transition-delay: 0.28s; }

/* Cumplimiento estricto de accesibilidad: prefiere reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* Custom Conocenos Page Styles */
.conocenos-container {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.conocenos-hero {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.conocenos-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-red-dark);
}

.conocenos-hero .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-red-dark);
  font-weight: 500;
  margin-bottom: 2rem;
}

.conocenos-hero p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Grid helper */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.mision-vision-valores .card {
  background-color: var(--color-bg-white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.mision-vision-valores .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-accent-gold);
}

.mision-vision-valores .card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-red-dark);
  position: relative;
  display: inline-block;
}

.mision-vision-valores .card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent-gold);
}

.como-trabajamos {
  text-align: center;
  background-color: #f7f7f9;
  padding: 4rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--color-border-light);
}

.como-trabajamos h2 {
  font-size: 2.25rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.features-grid .feature-item {
  background-color: var(--color-bg-white);
  padding: 2rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  text-align: center;
}

.features-grid .feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.features-grid .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.features-grid h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.capacitaciones-section {
  align-items: center;
  gap: 3rem;
}

.capacitaciones-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.capacitaciones-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-whatsapp-info {
  display: inline-block;
  background-color: #25D366;
  color: #fff;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition-smooth);
  margin-top: 1.5rem;
}

.btn-whatsapp-info:hover {
  background-color: #128C7E;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
  color: #fff !important;
}

.deposito-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--color-border-light);
}

/* Pack Bienvenida Styles */
.pack-bienvenida-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.pack-bienvenida-container h2 {
  font-size: 2.25rem;
  color: var(--color-red-dark);
  margin-bottom: 1rem;
  font-weight: 800;
}

.pack-bienvenida-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent-gold-dark);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.pack-bienvenida-image-box {
  margin: 2rem 0;
}

.pack-bienvenida-image-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-light);
}

.pack-bienvenida-action {
  margin: 2rem 0;
}

.pack-bienvenida-action .btn-discover {
  display: inline-block;
  background-color: var(--color-red-dark);
  color: var(--color-bg-white);
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.pack-bienvenida-action .btn-discover:hover {
  background-color: var(--color-accent-gold) !important;
  color: var(--color-bg-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(221, 153, 51, 0.3);
}

.pack-bienvenida-footer {
  font-size: 0.95rem;
  color: var(--color-text-neutral);
  line-height: 1.6;
}

.pack-bienvenida-footer a {
  color: var(--color-accent-gold-dark);
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.pack-bienvenida-footer a:hover {
  color: var(--color-red-dark);
}

/* --- CONTACT & TERMS OF USE PAGES ONLY (Strictly scoped to inner pages) --- */
.page:not(.home) .site-content .section-header,
.page-template-page-contacto .section-header,
.page-template-page-terminos-y-condiciones .section-header,
.page-template-page-terms-of-use .section-header,
.page-template-page-politica-privacidad .section-header,
.page-template-page-cambios-devoluciones .section-header,
.page-template-page-boton-arrepentimiento .section-header {
  display: block !important;
  text-align: center !important;
  margin-bottom: 3.5rem !important;
}

.page:not(.home) .site-content .section-header .section-title,
.page-template-page-contacto .section-title,
.page-template-page-terminos-y-condiciones .section-title,
.page-template-page-terms-of-use .section-title,
.page-template-page-politica-privacidad .section-title,
.page-template-page-cambios-devoluciones .section-title,
.page-template-page-boton-arrepentimiento .section-title {
  margin-bottom: 0.75rem !important;
  font-family: 'Cinzel', serif !important;
  font-size: 2.5rem !important;
  color: var(--color-red-dark) !important;
  letter-spacing: 0.05em !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.page:not(.home) .site-content .section-header .section-subtitle,
.page-template-page-contacto .section-subtitle,
.page-template-page-terminos-y-condiciones .section-subtitle,
.page-template-page-terms-of-use .section-subtitle,
.page-template-page-politica-privacidad .section-subtitle,
.page-template-page-cambios-devoluciones .section-subtitle,
.page-template-page-boton-arrepentimiento .section-subtitle {
  display: block !important;
  font-size: 1.05rem !important;
  color: var(--color-text-neutral) !important;
}


/* WPForms Custom Premium Styling */
.wpforms-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wpforms-field {
  margin-bottom: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wpforms-field-label {
  font-family: var(--font-primary) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: var(--color-red-dark) !important;
  margin-bottom: 0 !important;
}

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form textarea {
  width: 100% !important;
  padding: 0.85rem 1.15rem !important;
  border: 1px solid #dcdce0 !important;
  border-radius: 8px !important;
  outline: none !important;
  font-family: var(--font-primary) !important;
  font-size: 0.95rem !important;
  color: var(--color-red-dark) !important;
  background-color: #fafafa !important;
  transition: var(--transition-smooth) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  box-sizing: border-box !important;
}

.wpforms-form select,
.contact-form select,
.wpforms-field-select select {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 48px !important;
  padding: 0 2.5rem 0 1.15rem !important;
  border: 1px solid #dcdce0 !important;
  border-radius: 8px !important;
  outline: none !important;
  font-family: var(--font-primary) !important;
  font-size: 0.95rem !important;
  color: var(--color-red-dark) !important;
  background-color: #fafafa !important;
  transition: var(--transition-smooth) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 16px 16px !important;
}

.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form input[type="tel"]:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
  border-color: var(--color-accent-gold) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(221, 153, 51, 0.1) !important;
}

.wpforms-submit-container {
  padding: 0 !important;
  margin-top: 1rem !important;
}

.wpforms-submit {
  background-color: var(--color-red-dark) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  width: 100% !important;
  text-transform: uppercase !important;
}

.wpforms-submit:hover {
  background-color: var(--color-red-primary) !important;
  box-shadow: 0 4px 15px rgba(212, 0, 12, 0.2) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

/* Terms of Use Page Styles (Política de Cambios y Devoluciones) */
.page-id-224 .entry-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.page-id-224 .entry-title {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--color-red-dark);
  letter-spacing: 0.05em;
}

.page-id-224 .entry-content {
  max-width: 850px;
  margin: 0 auto 4rem auto;
  background-color: var(--color-bg-white);
  padding: 3.5rem 3rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-soft);
  line-height: 1.8;
  color: var(--color-text-neutral);
}

.page-id-224 .entry-content h4 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-red-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
}

.page-id-224 .entry-content p {
  margin-bottom: 1.25rem;
}

.page-id-224 .entry-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-id-224 .entry-content li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   PROBLEM ACTIVE BANNER - DOS SOLES BRAND RED
   ========================================================================== */
.problem-active-banner {
  background: linear-gradient(135deg, var(--color-red-primary, #D4000C) 0%, var(--color-red-dark, #8e0000) 100%) !important;
  color: #ffffff !important;
  padding: 1.15rem 1.75rem !important;
  border-radius: 10px !important;
  margin-bottom: 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 18px rgba(142, 0, 0, 0.2) !important;
  border: 1px solid rgba(212, 0, 12, 0.3) !important;
}

.problem-active-banner-text {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #ffffff !important;
}

.problem-active-banner-text strong {
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  color: #ffffff !important;
}

.problem-active-banner-close {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 50px !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.problem-active-banner-close:hover {
  background: #ffffff !important;
  color: var(--color-red-dark, #8e0000) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Hide category subcategories slider when active problem is selected */
.dos-soles-category-header.has-active-problem .category-subcategory-list-wrapper {
  display: none !important;
}

/* ==========================================================================
   FAQ ACCORDION STYLES
   ========================================================================== */
.faq-container {
  max-width: 850px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-accordion {
  background: #ffffff;
  border: 1px solid var(--color-border-light, #eaeaea);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-accordion:hover {
  border-color: var(--color-red-primary, #D4000C);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-red-dark, #8e0000);
  letter-spacing: 0.02em;
  user-select: none;
  background: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-header:hover {
  color: var(--color-red-primary, #D4000C);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-red-primary, #D4000C);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 1.25rem 1.5rem 1.5rem 1.5rem !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-neutral, #4c4d52);
  border-top: 1px dashed var(--color-border-light, #eaeaea);
  background-color: #fafafa;
}

.faq-accordion.is-open .faq-content {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  animation: faqSlideDown 0.3s ease;
}

.faq-content p {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: break-word !important;
}

@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Payment Badges Footer Styling */
.payment-logos {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 1.5rem !important;
}
.payment-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(4px) !important;
  box-sizing: border-box !important;
}
.payment-badge:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #ffffff !important;
  transform: translateY(-1px) !important;
}
/* =========================================================================
   CAROUSEL "VER MÁS" CARD STYLING
   ========================================================================= */
.product-carousel-card.view-more-card {
  background: linear-gradient(145deg, #ffffff 0%, #f7f7f9 100%) !important;
  border: 2px dashed var(--color-red-primary, #8E0000) !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.75rem 1.25rem !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.05)) !important;
  min-width: 220px !important;
  width: 220px !important;
  box-sizing: border-box !important;
}

.product-carousel-card.view-more-card:hover {
  border-style: solid !important;
  border-color: var(--color-red-dark, #500000) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(142, 0, 0, 0.12) !important;
  background: #ffffff !important;
}

.view-more-card-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  text-decoration: none !important;
  gap: 0.85rem !important;
}

.view-more-icon-circle {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background-color: rgba(142, 0, 0, 0.08) !important;
  color: var(--color-red-primary, #8E0000) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.product-carousel-card.view-more-card:hover .view-more-icon-circle {
  background-color: var(--color-red-primary, #8E0000) !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

.view-more-title {
  font-family: var(--font-primary, sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--color-red-dark, #500000) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.view-more-desc {
  font-size: 0.78rem !important;
  color: #666666 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.btn-view-more {
  display: inline-block !important;
  margin-top: 0.25rem !important;
  padding: 0.55rem 1rem !important;
  background-color: var(--color-red-dark, #500000) !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-radius: 20px !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}

.product-carousel-card.view-more-card:hover .btn-view-more {
  background-color: var(--color-red-primary, #8E0000) !important;
  box-shadow: 0 4px 12px rgba(142, 0, 0, 0.25) !important;
}

/* =========================================================================
   ROUTINE BUILDER PROMO CARD & PROBLEM PILLS STYLING (SLIM & ELEGANT)
   ========================================================================= */
.shop-routine-promo-card.slim-routine-banner {
  background: #ffffff !important;
  border: 1px solid rgba(142, 0, 0, 0.12) !important;
  border-left: 4px solid var(--color-red-primary, #8E0000) !important;
  border-radius: 12px !important;
  padding: 1.1rem 1.4rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

.slim-routine-banner-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  margin-bottom: 0.85rem !important;
}

.slim-routine-banner-text {
  flex: 1 1 auto !important;
}

.shop-routine-promo-card.slim-routine-banner .shop-routine-promo-badge {
  display: inline-block !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: var(--color-red-primary, #8E0000) !important;
  background-color: rgba(142, 0, 0, 0.07) !important;
  padding: 0.2rem 0.65rem !important;
  border-radius: 20px !important;
  margin-bottom: 0.35rem !important;
}

.shop-routine-promo-card.slim-routine-banner .shop-routine-promo-title {
  font-family: var(--font-primary, sans-serif) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 0.25rem 0 !important;
  line-height: 1.3 !important;
}

.shop-routine-promo-card.slim-routine-banner .shop-routine-promo-desc {
  font-size: 0.82rem !important;
  color: #666666 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  max-width: 680px !important;
}

.slim-routine-banner-action {
  flex: 0 0 auto !important;
}

.slim-routine-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background-color: var(--color-red-primary, #8E0000) !important;
  color: #ffffff !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 50px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(142, 0, 0, 0.2) !important;
  white-space: nowrap !important;
}

.slim-routine-cta-btn:hover {
  background-color: #b30010 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(142, 0, 0, 0.3) !important;
}

.shop-routine-promo-card.slim-routine-banner .shop-routine-pills-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.45rem !important;
  align-items: center !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 0.5rem 0 0.2rem 0 !important;
  border-top: 1px dashed rgba(0, 0, 0, 0.08) !important;
}

.shop-routine-promo-card.slim-routine-banner .shop-routine-pills-scroll::-webkit-scrollbar {
  display: none !important;
}

.shop-routine-promo-card.slim-routine-banner .routine-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.35rem 0.85rem !important;
  background-color: #fafafa !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  flex: 0 0 auto !important;
}

.shop-routine-promo-card.slim-routine-banner .routine-pill-btn:hover {
  background-color: #ffffff !important;
  border-color: var(--color-red-primary, #8E0000) !important;
  color: var(--color-red-primary, #8E0000) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(142, 0, 0, 0.1) !important;
}

.shop-routine-promo-card.slim-routine-banner .routine-pill-btn .pill-icon {
  font-size: 0.95rem !important;
  line-height: 1 !important;
}

.shop-routine-promo-card.slim-routine-banner .routine-pill-btn .pill-title {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #444444 !important;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
}

.shop-routine-promo-card.slim-routine-banner .routine-pill-btn:hover .pill-title {
  color: var(--color-red-primary, #8E0000) !important;
}

/* Category Header Highlight Pill */
.subcategory-item.routine-highlight-pill .routine-pill-highlight {
  background: #fff8f8 !important;
  border: 1px solid #8E0000 !important;
  color: #8E0000 !important;
  box-shadow: 0 2px 6px rgba(142, 0, 0, 0.08) !important;
}

.subcategory-item.routine-highlight-pill .routine-pill-highlight .subcategory-name {
  color: #8E0000 !important;
  font-weight: 700 !important;
}

.subcategory-item.routine-highlight-pill:hover .routine-pill-highlight {
  background: #8E0000 !important;
  border-color: #8E0000 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(142, 0, 0, 0.25) !important;
}

.subcategory-item.routine-highlight-pill:hover .routine-pill-highlight .subcategory-name {
  color: #ffffff !important;
}

/* =========================================================================
   CLEAN & STREAMLINED CATALOG CONTROLS (SORTING & PAGINATION)
   ========================================================================= */
.storefront-sorting:first-of-type {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0.5rem 0 1.25rem 0 !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid #f0f0f0 !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
}

.storefront-sorting:first-of-type .woocommerce-result-count {
  margin: 0 !important;
  order: 1 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #666666 !important;
  text-transform: none !important;
  float: none !important;
  letter-spacing: 0.01em !important;
}

.storefront-sorting:first-of-type .woocommerce-ordering {
  margin: 0 !important;
  order: 2 !important;
  float: none !important;
}

.storefront-sorting:first-of-type .woocommerce-ordering select.orderby {
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.4rem 2rem 0.4rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #333333 !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

.storefront-sorting:first-of-type .woocommerce-ordering select.orderby:hover,
.storefront-sorting:first-of-type .woocommerce-ordering select.orderby:focus {
  border-color: var(--color-red-primary, #8E0000) !important;
}

/* Suppress top pagination */
.storefront-sorting:first-of-type .woocommerce-pagination {
  display: none !important;
}

/* Bottom sorting bar: centered pagination only */
.storefront-sorting:last-of-type {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border-top: 1px solid #f0f0f0 !important;
  border-bottom: none !important;
  padding-top: 1.75rem !important;
  margin-top: 2rem !important;
  margin-bottom: 1.5rem !important;
}

.storefront-sorting:last-of-type .woocommerce-ordering,
.storefront-sorting:last-of-type .woocommerce-result-count {
  display: none !important;
}

.storefront-sorting:last-of-type .woocommerce-pagination {
  margin: 0 auto !important;
  float: none !important;
}

@media (max-width: 768px) {
  .slim-routine-banner-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .slim-routine-cta-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .storefront-sorting:first-of-type {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .storefront-sorting:first-of-type .woocommerce-ordering {
    width: 100% !important;
  }
  .storefront-sorting:first-of-type .woocommerce-ordering select.orderby {
    width: 100% !important;
  }
}

/* =========================================================================
   MOBILE ROUTINE BUILDER WIZARD & TRACKER STYLING
   ========================================================================= */
.routine-step-indicator-bar {
  display: none !important; /* Mobile Wizard only */
  background: #ffffff !important;
  border: 1px solid #eaeaea !important;
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

.routine-progress-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 0.5rem !important;
}

.routine-progress-text {
  font-family: var(--font-primary, sans-serif) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--color-red-dark, #500000) !important;
}

.routine-progress-percent {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--color-red-primary, #8E0000) !important;
}

.routine-progress-track {
  width: 100% !important;
  height: 6px !important;
  background-color: #f0ebeb !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 1rem !important;
}

.routine-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #8E0000 0%, #d32f2f 100%) !important;
  border-radius: 10px !important;
  transition: width 0.35s ease-in-out !important;
}

.routine-step-pills {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.4rem !important;
}

.step-pill {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.25rem !important;
  background: #fdf8f8 !important;
  border: 1px solid #eddada !important;
  border-radius: 8px !important;
  padding: 0.45rem 0.2rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.step-pill.active {
  background-color: var(--color-red-primary, #8E0000) !important;
  border-color: var(--color-red-primary, #8E0000) !important;
  box-shadow: 0 3px 8px rgba(142, 0, 0, 0.2) !important;
}

.step-pill.completed:not(.active) {
  background-color: #f0fbf4 !important;
  border-color: #a8e6cf !important;
}

.step-pill-badge {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #e0d5d5 !important;
  color: #444444 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
}

.step-pill.active .step-pill-badge {
  background: #ffffff !important;
  color: var(--color-red-primary, #8E0000) !important;
}

.step-pill.completed .step-pill-badge {
  background: #2e7d32 !important;
  color: #ffffff !important;
}

.step-pill-label {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #666666 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.step-pill.active .step-pill-label {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.step-pill.completed:not(.active) .step-pill-label {
  color: #1b5e20 !important;
}

/* Mobile Step Carousel / Navigation Visibility */
.routine-mobile-nav {
  display: none !important;
}

@media (max-width: 768px) {
  #dos-soles-routine-builder-container {
    padding: 1.25rem 0.75rem 190px 0.75rem !important;
    border-radius: 12px !important;
  }

  /* Horizontal touch swipe for Brand chips on Mobile */
  .routine-brand-selector {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    justify-content: flex-start !important;
    padding: 4px 6px 12px 6px !important;
    width: 100% !important;
    scrollbar-width: none;
  }
  .routine-brand-selector::-webkit-scrollbar {
    display: none;
  }
  .brand-chip {
    flex-shrink: 0 !important;
    font-size: 0.75rem !important;
    padding: 0.45rem 0.9rem !important;
  }

  .routine-step-indicator-bar,
  .routine-stepper-tabs.routine-step-indicator-bar {
    display: block !important;
    padding: 0.75rem 0.5rem !important;
    position: sticky !important;
    top: 65px !important;
    z-index: 20 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
  }
  .routine-step-pills {
    display: flex !important;
    gap: 4px !important;
    justify-content: space-between !important;
  }
  .step-pill,
  .routine-tab.step-pill {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 6px 3px !important;
    text-align: center !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border: 1px solid #eddada !important;
    background: #fdf8f8 !important;
    border-radius: 8px !important;
    height: auto !important;
  }
  .routine-tab-text,
  .routine-tab-step-tag,
  .routine-tab-subtitle,
  .routine-tab-title.step-pill-label {
    display: none !important;
  }
  .step-pill-short-title {
    display: block !important;
    font-size: 0.67rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    margin-top: 2px !important;
    color: #444444 !important;
  }
  .step-pill.active .step-pill-short-title {
    color: #ffffff !important;
  }
  .step-pill.completed:not(.active) .step-pill-short-title {
    color: #1b5e20 !important;
  }
  .routine-tab-badge.step-pill-badge,
  .step-pill-badge {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.68rem !important;
    margin: 0 auto 2px auto !important;
  }
  
  /* Mobile Wizard: Only show active step slide */
  .routine-step {
    display: block !important;
    position: absolute !important;
    left: -99999px !important;
    top: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .routine-step.is-active-step {
    position: static !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    height: auto !important;
    overflow: visible !important;
    animation: fadeInStep 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  }
  .routine-step.is-active-step .routine-products-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 1rem !important;
  }

  .routine-step.is-active-step .routine-product-card {
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: auto !important;
    border-radius: 10px !important;
  }

  .routine-step.is-active-step .routine-product-card::before {
    top: 8px !important;
    right: 8px !important;
    width: 18px !important;
    height: 18px !important;
  }

  .routine-step.is-active-step .routine-product-img-wrapper {
    background: #ffffff !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 130px !important;
    min-height: 100px !important;
    padding: 4px !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }

  .routine-step.is-active-step .routine-product-img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .routine-step.is-active-step .routine-product-brand {
    font-size: 0.65rem !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.2rem !important;
  }

  .routine-step.is-active-step .routine-product-title {
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem !important;
    min-height: 2.5em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .routine-step.is-active-step .routine-product-desc-box {
    display: none !important;
  }

  .routine-step.is-active-step .routine-product-price {
    font-size: 0.88rem !important;
  }

  .routine-step.is-active-step .routine-card-installments {
    font-size: 0.64rem !important;
  }

  .routine-step.is-active-step .routine-product-card-footer {
    margin-top: 0.35rem !important;
  }

  .routine-step.is-active-step .routine-product-detail-link {
    font-size: 0.68rem !important;
  }

  @keyframes fadeInStep {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .routine-mobile-nav {
    display: none !important;
  }

  /* Sticky Bottom Dock on Mobile */
  .routine-summary-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    z-index: 990 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12) !important;
    border-radius: 16px 16px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px !important;
    gap: 6px !important;
    background: #ffffff !important;
  }
  .routine-dock-slots {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 6px !important;
    scrollbar-width: none;
    padding-bottom: 2px !important;
  }
  .routine-dock-slots::-webkit-scrollbar {
    display: none;
  }
  .routine-dock-slot {
    flex: 0 0 115px !important;
    min-width: 110px !important;
    height: 38px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
  }
  .routine-dock-slot .slot-thumb-wrapper {
    width: 28px !important;
    height: 28px !important;
  }
  .routine-dock-slot .slot-title,
  .routine-dock-slot.empty .slot-placeholder-title {
    font-size: 0.63rem !important;
  }

  .routine-dock-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .routine-summary-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }
  .routine-summary-price-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 6px !important;
  }
  .routine-summary-total {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #000000 !important;
    white-space: nowrap !important;
  }
  .routine-summary-count {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .routine-dock-installments {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #059669 !important;
    line-height: 1 !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
    text-align: right !important;
  }

  .routine-dock-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
  }
  .btn-dock-next-step,
  .btn-routine-checkout {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    height: 42px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }
  .btn-dock-next-step {
    padding: 0 0.65rem !important;
    font-size: 0.76rem !important;
    background: #ffffff !important;
    color: var(--color-red-primary, #8E0000) !important;
    border: 1.5px solid var(--color-red-primary, #8E0000) !important;
  }
  .btn-routine-checkout {
    padding: 0 0.65rem !important;
    font-size: 0.78rem !important;
    background: var(--color-red-primary, #8E0000) !important;
    color: #ffffff !important;
    border: none !important;
  }
  .btn-routine-checkout:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    border: none !important;
    cursor: not-allowed !important;
  }
}

/* WhatsApp Floating Repositioning for Routine Builder */
body.routine-builder-active .joinchat,
body.routine-builder-active #ht-ctc-chat,
body.routine-builder-active [class*="whatsapp"],
body.routine-builder-active .whatsapp-button,
body.routine-builder-active .whatsapp-float-btn,
body:has(#dos-soles-routine-builder-container) .joinchat,
body:has(#dos-soles-routine-builder-container) #ht-ctc-chat,
body:has(#dos-soles-routine-builder-container) [class*="whatsapp"] {
    bottom: 95px !important;
    right: 20px !important;
    z-index: 998 !important;
    transition: bottom 0.25s ease !important;
}

@media (max-width: 768px) {
    body.routine-builder-active .joinchat,
    body.routine-builder-active #ht-ctc-chat,
    body.routine-builder-active [class*="whatsapp"],
    body.routine-builder-active .whatsapp-button,
    body.routine-builder-active .whatsapp-float-btn,
    body:has(#dos-soles-routine-builder-container) .joinchat,
    body:has(#dos-soles-routine-builder-container) #ht-ctc-chat,
    body:has(#dos-soles-routine-builder-container) [class*="whatsapp"] {
        bottom: 185px !important;
        right: 14px !important;
    }
}

/* =========================================================================
   USER FEEDBACK CUSTOMIZATIONS: BOLD BLACK TITLES & PRICES + VIBRANT LOGO RED BUTTONS
   ========================================================================= */

/* 1. Nombre tienda / Títulos de PDP y Rutinas en Negro Negrita */
.routine-product-title,
.product_title,
.view-more-title {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* 2. Precios en Negro Negrita */
ul.products li.product .price,
ul.products li.product .price .amount,
ul.products li.product .price ins .amount,
ul.products li.product .price del .amount,
.woocommerce-Price-amount,
.amount,
span.price,
.routine-product-price,
.routine-summary-total,
.routine-summary-total span {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* 3. Botones en Rojo Vibrante de Logo (#D4000C / #c1000b) en lugar de Rojo Bordó */
.btn-routine-checkout,
.btn-step-next,
.step-pill.active,
.routine-pill-btn:hover,
.btn-view-more,
.product-carousel-card.view-more-card:hover .btn-view-more,
.subcategory-item.routine-highlight-pill .routine-pill-highlight,
.routine-step-number,
.routine-product-card.selected::before,
.brand-chip.active,
.button.product_type_simple,
.button.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button,
a.button.alt,
button.button.alt,
input.button.alt {
  background-color: var(--color-red-primary, #D4000C) !important;
  border-color: var(--color-red-primary, #D4000C) !important;
  color: #ffffff !important;
}

.btn-routine-checkout:hover,
.btn-step-next:hover,
.btn-view-more:hover,
.button.product_type_simple:hover,
.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  background-color: var(--color-red-menu, #c1000b) !important;
  border-color: var(--color-red-menu, #c1000b) !important;
  color: #ffffff !important;
}

.subcategory-item.routine-highlight-pill .routine-pill-highlight {
  background: linear-gradient(135deg, #D4000C 0%, #c1000b 100%) !important;
  box-shadow: 0 3px 10px rgba(212, 0, 12, 0.25) !important;
}

.routine-progress-fill {
  background: linear-gradient(90deg, #D4000C 0%, #ff2a38 100%) !important;
}

.shop-routine-promo-card {
  border-color: rgba(212, 0, 12, 0.2) !important;
}

.shop-routine-promo-badge {
  color: #D4000C !important;
  background-color: rgba(212, 0, 12, 0.08) !important;
}

.shop-routine-promo-title {
  color: #D4000C !important;
}

/* Mobile optimizations for section titles */
@media (max-width: 767px) {
  .section-title {
    font-size: 1.6rem !important;
    word-break: break-word;
    hyphens: auto;
  }
}

/* ==========================================================================
   MOBILE UI/UX POLISH & CONVERSION FIXES — DOS SOLES
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. PDP Title Responsive Size Fix */
  .single-product h1.product_title,
  .product_title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    word-break: break-word;
  }

  /* 2. Fixed Notice Banners in Checkout Fix */
  .woocommerce-checkout .woocommerce-info,
  .woocommerce-checkout .woocommerce-notice,
  .woocommerce-checkout .woocommerce-message {
    position: static !important;
    bottom: auto !important;
    margin-bottom: 1rem !important;
    font-size: 0.85rem !important;
  }

  /* 3. WhatsApp Floating Button Position Fix */
  .whatsapp-float-btn,
  .joinchat,
  [class*="whatsapp"] {
    bottom: 20px !important;
    right: 15px !important;
    z-index: 99 !important;
  }

  /* 4. Submenu Level 3 Indentation */
  .nav-menu .sub-menu .sub-menu a {
    padding-left: 2.2rem !important;
    font-size: 0.88rem !important;
    opacity: 0.95;
  }

  /* 5. Smooth Horizontal Scroll for Category Pills */
  .category-pills-row,
  .shop-categories-pills {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
}

/* ==========================================================================
   MOBILE STICKY PDP BUY BAR & CLEARANCE
   ========================================================================== */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(11, 26, 72, 0.12);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 998;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.mobile-sticky-bar.is-visible {
    transform: translateY(0);
}
.sticky-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    margin-right: 12px;
}
.sticky-bar-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border-light, #eaeaea);
    flex-shrink: 0;
}
.sticky-bar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sticky-bar-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-dark, #111111);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.sticky-bar-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-red-primary, #D4000C);
    margin-top: 2px;
}
.sticky-bar-btn {
    background-color: var(--color-red-primary, #D4000C);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(212, 0, 12, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.sticky-bar-btn:active {
    transform: scale(0.96);
    background-color: var(--color-red-dark, #8B0000);
}
@media (min-width: 992px) {
    .mobile-sticky-bar {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .single-product .whatsapp-float-btn,
    .single-product .joinchat,
    .single-product [class*="whatsapp"],
    .routine-active-layout .whatsapp-float-btn,
    .routine-active-layout .joinchat,
    .routine-active-layout [class*="whatsapp"],
    .routine-active-layout #whatsapp-floating {
        bottom: 85px !important;
    }

    /* WCAG 2.2 SC 2.5.8: Mobile Touch Targets >= 44x44px */
    .quantity-pill {
        min-height: 44px !important;
        padding: 2px 4px !important;
    }
    .quantity-pill .qty-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 18px !important;
    }
    .quantity-pill input.qty {
        height: 40px !important;
        font-size: 16px !important;
    }
    .woocommerce-cart-form .remove,
    .remove-card-btn,
    .cart-drawer-item-remove {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* WCAG 2.2 AA / AAA Price Contrast Enhancement */
del,
del .amount,
del.regular-price,
.product-price del,
.cart-item-price del,
ul.products li.product .price del .amount {
    color: #595959 !important; /* 7.0:1 Contrast Ratio against white */
    text-decoration: line-through !important;
    font-weight: 500 !important;
    opacity: 0.88 !important;
}

/* ==========================================================================
   CONSOLIDATED MOBILE-FIRST, WCAG 2.2 AA & CRO AUDIT STYLES
   ========================================================================== */

/* 1. Prevención Global de Auto-Zoom en Safari iOS (<16px) y Dianas Táctiles (>=44px) */
@media (max-width: 768px) {
  #header-search-input,
  #newsletter-email,
  .woocommerce-ordering select.orderby,
  .storefront-sorting:first-of-type .woocommerce-ordering select.orderby,
  .storefront-sorting .woocommerce-ordering select.orderby,
  .shop-sidebar input:not([type="checkbox"]):not([type="radio"]),
  .shop-sidebar select,
  .woocommerce-checkout input.input-text,
  .woocommerce-checkout select,
  .woocommerce-checkout textarea,
  .coupon-form-group input.input-text,
  #coupon_code {
    font-size: 16px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  .mobile-menu-header .menu-close-btn,
  .dos-soles-cart-drawer-wrapper .cart-drawer-close-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    color: var(--color-red-primary, #D4000C) !important;
    padding: 8px !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }

  .cart-trigger {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .menu-toggle-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }

  .menu-toggle-btn .hamburger-line {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background-color: var(--color-red-dark, #8B0000) !important;
    border-radius: 2px !important;
    transition: var(--transition-smooth, all 0.3s ease) !important;
    margin: 0 !important;
  }

  /* Paginación Táctil del Hero Slider */
  .slider-dot {
    position: relative !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    max-width: 6px !important;
    min-height: 6px !important;
    max-height: 6px !important;
    margin: 0 4px !important;
    border-radius: 50% !important;
  }
  .slider-dot.active {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 6px !important;
    min-height: 6px !important;
    max-height: 6px !important;
    border-radius: 9999px !important;
  }
  .slider-dot::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 44px !important;
    height: 44px !important;
  }

  /* Grilla Móvil de Productos Uniforme (2 Columnas) */
  ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 10px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }
  ul.products li.product a img {
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
  }
  ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.8em !important;
    line-height: 1.4em !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 8px 0 6px 0 !important;
  }
  ul.products li.product .price {
    margin-top: auto !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111111 !important;
  }
  ul.products li.product .add_to_cart_button {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
  }

  /* Paginación Táctil WCAG 2.5.5 y Eliminación de Overflow Horizontal (+48px) */
  nav.woocommerce-pagination {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
    overflow-x: hidden !important;
  }
  nav.woocommerce-pagination ul,
  .woocommerce-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 100% !important;
    border: none !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  nav.woocommerce-pagination ul li,
  .woocommerce-pagination ul.page-numbers li {
    border: none !important;
    margin: 0 !important;
  }
  .woocommerce-pagination ul.page-numbers li a,
  .woocommerce-pagination ul.page-numbers li span {
    min-width: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    margin: 0 !important;
  }
}

/* 2. Armador de Rutinas: Contraste y Dianas Táctiles */
.routine-brand-selector .brand-chip {
  min-height: 44px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  border-radius: 24px !important;
}

.btn-step-next {
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
}

.btn-routine-checkout:disabled,
#btn-add-routine-to-cart:disabled {
  background-color: #E5E7EB !important;
  border-color: #D1D5DB !important;
  color: #4B5563 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.95 !important;
}

.btn-routine-checkout:not(:disabled),
#btn-add-routine-to-cart:not(:disabled) {
  background-color: var(--color-red-primary, #D4000C) !important;
  border-color: var(--color-red-primary, #D4000C) !important;
  color: #ffffff !important;
  min-height: 52px !important;
}

/* 3. Side Drawer del Carrito: Cierre, Eliminar y Sticky Footer */
.dos-soles-cart-drawer-wrapper .mini_cart_item a.remove,
.woocommerce-mini-cart .mini_cart_item a.remove {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  color: #888888 !important;
  padding: 10px !important;
  touch-action: manipulation;
}

.dos-soles-cart-drawer-wrapper .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons {
  position: sticky;
  bottom: 0;
  background-color: #ffffff;
  z-index: 10;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px)) 0 !important;
  box-shadow: 0 -6px 16px rgba(0,0,0,0.05);
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons .button.checkout {
  order: 1 !important;
  min-height: 48px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  background-color: var(--color-red-primary, #D4000C) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}

.dos-soles-cart-drawer-wrapper .woocommerce-mini-cart__buttons .button:not(.checkout) {
  order: 2 !important;
  min-height: 40px !important;
  font-size: 11px !important;
  color: #444444 !important;
  border: 1px solid #d0d0d0 !important;
}

/* 4. Ficha de Producto: Sticky Bar Insets y Tabs */
@media (max-width: 991px) {
  .mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 12px)) 16px !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 998;
  }
}

.woocommerce-tabs ul.tabs li a {
  color: #334155 !important;
  font-weight: 600 !important;
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--color-red-primary, #D4000C) !important;
  border-bottom: 2px solid var(--color-red-primary, #D4000C) !important;
}

/* 5. Checkout: Resumen Colapsable Superior (Móvil Únicamente) */
@media (min-width: 992px) {
  .dos-soles-mobile-order-summary-toggle,
  .dos-soles-mobile-order-summary-content {
    display: none !important;
  }
}

.dos-soles-mobile-order-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  cursor: pointer;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: background-color 0.2s;
}
.dos-soles-mobile-order-summary-toggle:hover {
  background: #f8fafc !important;
}
.summary-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-red-primary, #d11a2a);
}
.summary-toggle-text {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.summary-arrow-icon {
  transition: transform 0.2s;
  color: #64748b;
}
.dos-soles-mobile-order-summary-toggle.is-open .summary-arrow-icon {
  transform: rotate(180deg);
}
.summary-total-amount {
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-weight: 850;
  font-size: 15px;
  color: var(--color-red-primary, #d11a2a);
}
.dos-soles-mobile-order-summary-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}
.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.summary-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.summary-item-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.summary-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.summary-item-qty {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #475569;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}
.summary-item-details {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.summary-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}
.summary-subtotals-box {
  border-top: 1px solid #E2E8F0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  color: #64748B;
}
.summary-line.highlight-total {
  font-size: 15px;
  font-weight: 800;
  color: #1E293B;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
}

/* Radio Cards en Checkout (Envío y Pago) */
.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce-checkout ul#shipping_method li {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-bottom: 10px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: block !important;
}
.woocommerce-checkout #payment ul.payment_methods li:hover,
.woocommerce-checkout ul#shipping_method li:hover {
  border-color: #CBD5E1 !important;
  background: #F8FAFC !important;
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked,
.woocommerce-checkout ul#shipping_method li input[type="radio"]:checked {
  accent-color: var(--color-red-primary, #D4000C) !important;
}

/* 6. Dinámica de WhatsApp Flotante para Evitar Colisiones */
body.cart-drawer-open .ht-ctc-chat,
body.cart-drawer-open [class*="whatsapp"],
body.cart-drawer-open #joinchat,
body.cart-drawer-open .whatsapp-float-btn,
body.filter-drawer-open .ht-ctc-chat,
body.filter-drawer-open [class*="whatsapp"],
body.filter-drawer-open #joinchat,
body.filter-drawer-open .whatsapp-float-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 991px) {
  .single-product .ht-ctc-chat,
  .single-product [class*="whatsapp"],
  .page-template-template-tienda-problema .ht-ctc-chat,
  .page-template-template-tienda-problema [class*="whatsapp"] {
    bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .woocommerce-checkout .ht-ctc-chat,
  .woocommerce-checkout [class*="whatsapp"] {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Estado Vacío Enriquecido del Cart Drawer (CRO) */
.dos-soles-empty-cart-drawer {
  padding: 30px 20px;
  text-align: center;
}
.dos-soles-empty-cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary, #111111);
  margin-bottom: 8px;
}
.dos-soles-empty-cart-desc {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.4;
}
.dos-soles-empty-cart-drawer .btn-empty-cart-shop {
  display: inline-block;
  background-color: var(--color-red-primary, #D4000C) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}
.dos-soles-empty-cart-drawer .btn-empty-cart-shop:hover {
  background-color: var(--color-red-dark, #A80008) !important;
}

/* ==========================================================================
   ROUTINE BUILDER QUICK VIEW MODAL
   ========================================================================== */
.routine-modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}
.routine-modal-wrapper.is-open {
    display: flex;
}
.routine-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.routine-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
    padding: 2.2rem 2rem;
    box-sizing: border-box;
    animation: routineModalFadeIn 0.25s ease-out;
}
@keyframes routineModalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
body.routine-modal-active {
    overflow: hidden;
}
.routine-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f4f4f4;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #444444;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.routine-modal-close:hover {
    background: #e2e2e2;
    color: #000000;
}
.routine-modal-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.routine-modal-img-wrapper {
    flex: 0 0 220px;
    background: #fafafa;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eeeeee;
}
.routine-modal-img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}
.routine-modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.routine-modal-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-red-primary, #d11a2a);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}
.routine-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
    margin: 0 0 0.8rem 0;
}
.routine-modal-price-box {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}
.routine-modal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111111;
}
.routine-modal-installment {
    font-size: 0.78rem;
    color: #666666;
    background: #f5f5f5;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}
.routine-modal-desc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 0.3rem;
}
.routine-modal-desc {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-height: 150px;
    overflow-y: auto;
}
.routine-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}
.btn-modal-select-prod {
    background: var(--color-red-primary, #d11a2a);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.btn-modal-select-prod:hover {
    background: var(--color-red-dark, #a8101e);
    box-shadow: 0 4px 12px rgba(209, 26, 42, 0.25);
}
.btn-modal-view-pdp {
    font-size: 0.8rem;
    color: #666666;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}
.btn-modal-view-pdp:hover {
    color: var(--color-red-primary, #d11a2a);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .routine-modal-content {
        flex-direction: column;
        align-items: center;
    }
    .routine-modal-img-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-height: 180px;
    }
    .routine-modal-dialog {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE (PDP) DESKTOP POLISH & FIXES
   ========================================================================== */
/* Hide broken edge pagination arrows */
.single-product .storefront-product-pagination {
    display: none !important;
}

.single-product #content.site-content {
    padding-top: 2rem !important;
    padding-bottom: 3.5rem !important;
    background: #ffffff !important;
}

.single-product div.product {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box;
}

.single-product h1.product_title {
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
    font-size: 1.95rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #111111 !important;
    margin-top: 0 !important;
    margin-bottom: 0.8rem !important;
    letter-spacing: -0.3px;
}

.single-product .woocommerce-product-gallery {
    margin-bottom: 2rem !important;
    position: relative !important;
    max-width: 100% !important;
    overflow-x: clip !important;
}

.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    max-height: 520px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    height: 480px !important;
    max-height: 480px !important;
    overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
    background: #fafafa !important;
    border-radius: 12px !important;
    border: 1px solid #f0f0f0 !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery .flex-active-slide img {
    max-height: 460px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Ensure zoomImg created by jQuery Zoom expands to natural high resolution */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img.zoomImg {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    cursor: crosshair !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    cursor: zoom-in !important;
}

.single-product .woocommerce-product-gallery__trigger {
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e0e0e0 !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 99 !important;
}

/* Modern Horizontal Thumbnail Carousel Strip */
.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 6px 2px !important;
    margin: 10px 0 0 0 !important;
    list-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    max-height: 75px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.single-product .woocommerce-product-gallery ol.flex-control-thumbs::-webkit-scrollbar {
    height: 4px;
}
.single-product .woocommerce-product-gallery ol.flex-control-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.single-product .woocommerce-product-gallery ol.flex-control-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.single-product .woocommerce-product-gallery ol.flex-control-thumbs li {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1.5px solid #e5e7eb !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product .woocommerce-product-gallery ol.flex-control-thumbs li:hover,
.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active,
.single-product .woocommerce-product-gallery ol.flex-control-thumbs li.flex-active {
    border-color: var(--color-red-primary, #D4000C) !important;
    box-shadow: 0 2px 8px rgba(212, 0, 12, 0.2) !important;
}

.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    max-width: 54px !important;
    max-height: 54px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    .single-product .woocommerce-product-gallery .flex-viewport,
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
        max-height: 380px !important;
    }
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
        height: 350px !important;
        max-height: 350px !important;
        padding: 0 !important;
        border: none !important;
    }
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
        padding: 0.5rem !important;
    }
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
    .single-product .woocommerce-product-gallery .flex-active-slide img {
        max-height: 340px !important;
    }
}


.single-product p.price,
.single-product span.price {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #111111 !important;
    margin-bottom: 1rem !important;
}

.single-product .single_add_to_cart_button {
    background-color: var(--color-red-primary, #d11a2a) !important;
    border-color: var(--color-red-primary, #d11a2a) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 0.8rem 2rem !important;
    transition: all 0.2s ease !important;
}
.single-product .single_add_to_cart_button:hover {
    background-color: var(--color-red-dark, #a8101e) !important;
    border-color: var(--color-red-dark, #a8101e) !important;
    box-shadow: 0 4px 12px rgba(209, 26, 42, 0.25) !important;
}

/* ==========================================================================
   KILL-SWITCH GLOBAL: ARMADOR DE RUTINAS Y BUSCADOR POR PROBLEMA (STAGING)
   (Reactivado para testing y auditoría de productos capilares por Anto)
   ========================================================================== */
/*
.problem-finder-section,
.shop-routine-promo-card,
.routine-highlight-pill,
.smart-search-routine-banner,
#dos-soles-routine-builder-container,
.problem-active-banner,
.routine-view-all-cta,
.routine-modal-wrapper {
    display: none !important;
}
*/

/* ==========================================================================
   B2B WHOLESALE: CLEAN EXPERIENCE
   Oculta tablas externas de cuotas en la ficha de producto para profesionales
   ========================================================================== */
body.b2b-professional #table_c1218_pw,
body.b2b-professional .table_c1218_pw,
body.b2b-professional .finance_col_c1218_pw,
body.b2b-professional form.cart table,
body.b2b-professional #trieangle_table,
body.b2b-professional .installments-info,
body.b2b-professional .product-installments {
    display: none !important;
}

/* --- Botón Header: SOY PROFESIONAL --- */
.action-links .btn-soy-profesional {
    display: none;
}
@media (min-width: 768px) {
    .action-links .btn-soy-profesional {
        display: inline-flex;
    }
}

.btn-soy-profesional {
    align-items: center;
    gap: 0.45rem;
    background-color: transparent;
    border: 1.5px solid var(--color-red-primary, #c61920);
    color: var(--color-red-primary, #c61920) !important;
    padding: 0.45rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    line-height: 1;
}
.btn-soy-profesional:hover {
    background-color: var(--color-red-primary, #c61920);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(198, 25, 32, 0.25);
    transform: translateY(-1px);
}
.btn-soy-profesional .btn-prof-icon {
    flex-shrink: 0;
}
.btn-soy-profesional.b2b-active {
    background-color: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff !important;
}
.btn-soy-profesional.b2b-active:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

/* --- Mobile Drawer: Soy Profesional CTA --- */
.mobile-b2b-cta {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #faf8f8;
    border-bottom: 1px solid #f0e6e6;
}
@media (min-width: 768px) {
    .mobile-b2b-cta {
        display: none !important;
    }
}
.btn-soy-profesional-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 9999px;
    text-align: center;
    white-space: nowrap;
}

/* --- PDP Callout: Aviso Mayorista en Ficha de Producto --- */
.b2b-pdp-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #fff9f9;
    border: 1px dashed rgba(198, 25, 32, 0.4);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-top: 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.b2b-pdp-callout:hover {
    border-color: var(--color-red-primary, #c61920);
    box-shadow: 0 2px 10px rgba(198, 25, 32, 0.08);
}
.b2b-pdp-callout-icon {
    color: var(--color-red-primary, #c61920);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b2b-pdp-callout-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.35;
}
.b2b-pdp-title {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.85rem;
}
.b2b-pdp-desc {
    color: #4a4a4a;
}
.b2b-pdp-link {
    color: var(--color-red-primary, #c61920) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.b2b-pdp-link:hover {
    color: var(--color-red-dark, #9e1017) !important;
}

/* --- Registro B2B en Mi Cuenta --- */
.dos-soles-b2b-registration-fields {
    background-color: #fdfaf9;
    border: 1px solid #f0dede;
    border-radius: 8px;
    padding: 1.15rem 1.25rem;
    margin: 1.25rem 0;
}
.dos-soles-b2b-registration-fields .woocommerce-form__label-for-checkbox {
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.dos-soles-b2b-registration-fields .b2b-reg-badge {
    background: var(--color-red-primary, #c61920);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.b2b-pending-notice {
    background-color: #fff9e6;
    border-left: 4px solid #ffb300;
    padding: 0.85rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    color: #6d4c41;
}
.b2b-pending-notice strong {
    color: #bf360c;
}
.b2b-approved-notice {
    background-color: #e8f5e9;
    border-left: 4px solid #43a047;
    padding: 0.85rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    color: #2e7d32;
}
.b2b-approved-notice strong {
    color: #1b5e20;
}

/* ==========================================================================
   PORTAL DE ACCESO Y REGISTRO (/mi-cuenta/) - CLEAN LUXURY REDESIGN
   ========================================================================== */

/* 1. Neutralize Storefront 2-Column Split & Float Defaults */
body.woocommerce-account #primary {
    float: none !important;
    width: 100% !important;
    margin: 0 auto !important;
}

body.woocommerce-account .site-main {
    margin-bottom: 0 !important;
}

body.woocommerce-account .entry-header {
    display: none !important; /* Replaced by elegant card header */
}

body.woocommerce-account .u-columns.col2-set {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.woocommerce-account .u-column1.col-1,
body.woocommerce-account .u-column2.col-2 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Centered Editorial Card Container */
.dos-soles-auth-card-wrapper {
    width: 100%;
    max-width: 540px;
    margin: 2.5rem auto 4.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.dos-soles-auth-card {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    padding: 2.5rem 2.25rem 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* 3. Card Branded Header */
.dos-soles-auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.dos-soles-auth-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c61920;
    margin-bottom: 0.35rem;
}

.dos-soles-auth-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.dos-soles-auth-desc {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* 4. Segmented Pill Tab Switcher */
.dos-soles-auth-tabs {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 4px;
    display: flex;
    gap: 4px;
    margin-bottom: 1.75rem;
    box-sizing: border-box;
}

.dos-soles-tab-btn {
    flex: 1;
    background: transparent;
    color: #4b5563;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    min-height: 48px;
    padding: 0.65rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dos-soles-tab-btn:hover:not(.is-active) {
    color: #111827;
}

.dos-soles-tab-btn:focus,
.dos-soles-tab-btn:focus-visible,
button.dos-soles-tab-btn:focus,
button.dos-soles-tab-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(198, 25, 32, 0.2) !important;
}

.dos-soles-tab-btn.is-active {
    background: #ffffff;
    color: #c61920;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dos-soles-tab-btn.is-active:focus,
.dos-soles-tab-btn.is-active:focus-visible,
button.dos-soles-tab-btn.is-active:focus,
button.dos-soles-tab-btn.is-active:focus-visible {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(198, 25, 32, 0.2) !important;
}

/* 5. Tab Panels & Smooth Transition */
.dos-soles-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dos-soles-tab-panel.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 6. Form Fields & Inputs */
.woocommerce-account form.login,
.woocommerce-account form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-account form.login .form-row,
.woocommerce-account form.register .form-row {
    padding: 0 !important;
    margin-bottom: 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-account form label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.woocommerce-account form label .required {
    color: #c61920 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.woocommerce-account input.input-text,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 1rem !important;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    color: #111827 !important;
    background-color: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-account input.input-text:focus,
.woocommerce-account input[type="text"]:focus,
.woocommerce-account input[type="email"]:focus,
.woocommerce-account input[type="password"]:focus {
    border-color: #c61920 !important;
    box-shadow: 0 0 0 3px rgba(198, 25, 32, 0.15) !important;
    outline: none !important;
}

/* 7. Action Buttons (Submit CTAs) */
.woocommerce-account button.woocommerce-form-login__submit,
.woocommerce-account button.woocommerce-form-register__submit {
    width: 100% !important;
    height: 50px !important;
    min-height: 48px !important;
    background: #c61920 !important;
    color: #ffffff !important;
    border: 1px solid #c61920 !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.22s ease-in-out !important;
    box-shadow: 0 4px 14px rgba(198, 25, 32, 0.25) !important;
    margin-top: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-account button.woocommerce-form-login__submit:hover,
.woocommerce-account button.woocommerce-form-register__submit:hover {
    background: #a71319 !important;
    border-color: #a71319 !important;
    box-shadow: 0 6px 20px rgba(198, 25, 32, 0.38) !important;
    transform: translateY(-1px);
}

.woocommerce-account button.woocommerce-form-login__submit:active,
.woocommerce-account button.woocommerce-form-register__submit:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* 8. Remember Me & Lost Password */
.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-height: 44px !important;
    font-size: 0.84rem !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    margin-bottom: 0.5rem !important;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    accent-color: #c61920 !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.woocommerce-LostPassword.lost_password {
    text-align: center !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.woocommerce-LostPassword.lost_password a {
    font-size: 0.84rem !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    padding: 0.4rem 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
}

.woocommerce-LostPassword.lost_password a:hover {
    color: #c61920 !important;
    text-decoration: underline !important;
}

/* 9. Professional Accreditation Module (Card & Switch) */
.dos-soles-b2b-pro-card {
    background: #fffbfa;
    border: 1.5px solid #fed7d7;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    box-sizing: border-box;
    width: 100%;
}

.b2b-pro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.b2b-pro-header-info {
    flex: 1;
}

.b2b-pro-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #c61920;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.b2b-pro-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.b2b-pro-subtitle {
    font-size: 0.8rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.35;
}

/* iOS-Style Toggle Switch */
.b2b-pro-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    flex-shrink: 0;
}

.b2b-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.b2b-switch::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.b2b-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.b2b-switch-slider {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 28px;
    background-color: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 9999px;
    pointer-events: none;
}

.b2b-switch input:focus-visible + .b2b-switch-slider {
    box-shadow: 0 0 0 3px rgba(198, 25, 32, 0.2);
}

.b2b-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.b2b-switch input:checked + .b2b-switch-slider {
    background-color: #c61920;
}

.b2b-switch input:checked + .b2b-switch-slider:before {
    transform: translateX(20px);
}

/* 10. Conditional Fields Smooth Accordion */
.b2b-conditional-fields {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
    overflow: hidden;
}

.b2b-conditional-fields.is-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #fed7d7;
}

.b2b-conditional-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.b2b-field-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.b2b-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.b2b-input-wrap {
    position: relative;
    width: 100%;
}

.b2b-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.b2b-field-helper {
    display: block;
    font-size: 0.74rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

.b2b-field-helper.is-success {
    color: #16a34a !important;
    font-weight: 600;
}

.b2b-field-helper.is-error {
    color: #dc2626 !important;
    font-weight: 600;
}

.b2b-input.is-valid {
    border-color: #16a34a !important;
}

.b2b-input.is-invalid {
    border-color: #dc2626 !important;
}

.b2b-validation-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem 0.85rem;
    font-size: 0.78rem;
    color: #7f1d1d;
    line-height: 1.35;
    box-sizing: border-box;
}

.b2b-notice-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

/* 11. Trust Badges Bar */
.dos-soles-auth-trust-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    margin-top: 2rem;
    box-sizing: border-box;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
}

.trust-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge-content {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.trust-badge-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.trust-badge-desc {
    font-size: 0.7rem;
    color: #6b7280;
}

/* 12. Responsive Mobile Layout (375px - 480px) */
@media (max-width: 480px) {
    .dos-soles-auth-card-wrapper {
        margin: 1rem auto 2.5rem;
        padding: 0 0.85rem;
    }

    .dos-soles-auth-card {
        border-radius: 12px;
        padding: 1.5rem 1.15rem 1.25rem;
    }

    .dos-soles-auth-title {
        font-size: 1.4rem;
    }

    .dos-soles-tab-btn {
        min-height: 48px;
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }

    .dos-soles-auth-trust-bar {
        flex-direction: column;
        gap: 0.85rem;
    }

    .b2b-pro-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* =========================================================================
   DOS SOLES LUXURY CHECKOUT, ORDER RECEIVED & NATIVE WOO STYLES
   ========================================================================= */

/* 1. Page Container & Typography */
body.woocommerce-checkout,
body.woocommerce-order-received {
    background-color: #f8fafc;
}

.woocommerce-checkout #primary,
.woocommerce-order-received #primary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

@media (min-width: 992px) {
    .woocommerce-checkout #primary,
    .woocommerce-order-received #primary {
        padding: 40px 24px 80px;
    }
}

.woocommerce-checkout .entry-title,
.woocommerce-order-received .entry-title {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 24px !important;
    font-weight: 850 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #0f172a !important;
    margin-bottom: 24px !important;
    text-align: left !important;
}

@media (min-width: 768px) {
    .woocommerce-checkout .entry-title,
    .woocommerce-order-received .entry-title {
        font-size: 28px !important;
    }
}

/* 2. Notice Banners (Login, Coupon, Errors) */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-order-received .woocommerce-info {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--color-red-primary, #8e0000) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    color: #2d3748 !important;
    font-size: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.woocommerce-checkout .woocommerce-info a,
.woocommerce-checkout .woocommerce-message a,
.woocommerce-order-received .woocommerce-info a {
    color: var(--color-red-primary, #8e0000) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-message::before,
.woocommerce-checkout .woocommerce-error::before {
    display: none !important;
}

/* 3. Dropdown Forms (Coupon & Login) */
.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout form.login {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-checkout form.checkout_coupon input.input-text,
.woocommerce-checkout form.login input.input-text {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    height: 48px !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout form.checkout_coupon .button,
.woocommerce-checkout form.login .button {
    background: var(--color-red-primary, #8e0000) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 24px !important;
    height: 48px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.woocommerce-checkout form.checkout_coupon .button:hover,
.woocommerce-checkout form.login .button:hover {
    background: #730000 !important;
}

/* 4. Layout Grid (Desktop Two-Column vs Mobile Single-Column) */
@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 32px !important;
        align-items: start !important;
    }

    .woocommerce-checkout #customer_details {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        float: none !important;
        width: 100% !important;
        margin: 0 0 24px 0 !important;
    }

    .woocommerce-checkout #order_review_heading {
        display: none !important;
    }

    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
        position: sticky !important;
        top: 90px !important;
    }
}

@media (max-width: 991px) {
    .woocommerce-checkout form.checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    .woocommerce-checkout #order_review_heading {
        margin-top: 10px !important;
        margin-bottom: 0 !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #1a202c !important;
    }
}

/* 5. Customer Details Cards (Billing, Shipping, Additional Fields) */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 22px 18px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 24px !important;
}

@media (min-width: 768px) {
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields {
        padding: 28px 28px !important;
    }
}

.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3,
#ship-to-different-address,
#order_review_heading {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #edf2f7 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#ship-to-different-address label {
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

#ship-to-different-address input[type="checkbox"] {
    accent-color: var(--color-red-primary, #8e0000) !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}

/* 6. Form Fields & Inputs */
.woocommerce-checkout .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout .form-row label .required {
    color: var(--color-red-primary, #8e0000) !important;
    font-weight: bold !important;
    text-decoration: none !important;
    margin-left: 2px !important;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: #1a202c !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row select {
    height: 48px !important;
    background-color: #ffffff !important;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--color-red-primary, #8e0000) !important;
    box-shadow: 0 0 0 3px rgba(142, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
}

.woocommerce-checkout .form-row .input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
    color: #a0aec0 !important;
}

/* 7. Order Review Card ("Tu Pedido") */
.woocommerce-checkout #order_review {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05) !important;
}

@media (min-width: 768px) {
    .woocommerce-checkout #order_review {
        padding: 28px 24px !important;
    }
}

.woocommerce-checkout #order_review::before {
    content: 'RESUMEN DE TU PEDIDO' !important;
    display: block !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #edf2f7 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 18px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
    padding: 10px 0 !important;
    border-top: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
    color: #718096 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #edf2f7 !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name {
    color: #2d3748 !important;
    font-weight: 500 !important;
    padding-right: 12px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name strong.product-quantity {
    color: #718096 !important;
    font-weight: 600 !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-total {
    text-align: right !important;
    font-weight: 600 !important;
    color: #1a202c !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal td {
    color: #4a5568 !important;
    font-weight: 600 !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal td {
    text-align: right !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
    font-size: 18px !important;
    font-weight: 800 !important;
    border-bottom: none !important;
    border-top: 2px solid #edf2f7 !important;
    padding-top: 14px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
    color: var(--color-red-primary, #8e0000) !important;
    text-align: right !important;
}

/* 8. Payment Section (#payment) */
.woocommerce-checkout #payment {
    background: #fafbfc !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 18px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    padding: 12px 14px !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked) {
    border-color: var(--color-red-primary, #8e0000) !important;
    background: #fffafa !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1a202c !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"] {
    accent-color: var(--color-red-primary, #8e0000) !important;
    margin-right: 6px !important;
    cursor: pointer !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    margin-top: 10px !important;
    color: #4a5568 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* 9. Place Order Button (#place_order) */
.woocommerce-checkout #place_order {
    background: linear-gradient(135deg, #d11a2a 0%, #b31422 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    height: 52px !important;
    min-height: 52px !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    width: 100% !important;
    margin-top: 18px !important;
    box-shadow: 0 4px 16px rgba(209, 26, 42, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #b31422 0%, #8b0000 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 22px rgba(209, 26, 42, 0.5) !important;
}

/* Terms & Conditions Checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 16px !important;
    padding: 10px 0 !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: var(--color-red-primary, #d11a2a) !important;
    margin-right: 8px !important;
    width: 16px !important;
    height: 16px !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: var(--color-red-primary, #d11a2a) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* 10. Order Received / Thank You Page */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    color: #15803d !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    letter-spacing: 0.01em !important;
}

.woocommerce-order-received ul.order_details {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: space-around !important;
    list-style: none !important;
    margin-bottom: 28px !important;
}

.woocommerce-order-received ul.order_details li {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    text-align: center !important;
    border-right: none !important;
}

.woocommerce-order-received ul.order_details li strong {
    display: block !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin-top: 6px !important;
    letter-spacing: normal !important;
}

.woocommerce-order-received section.woocommerce-order-details,
.woocommerce-order-received section.woocommerce-customer-details,
.woocommerce-order-received section.woocommerce-bacs-bank-details {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 26px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 24px !important;
}

.woocommerce-order-received h2 {
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #0f172a !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #edf2f7 !important;
}

/* WhatsApp Positioning Safeguard */
body.woocommerce-checkout #ht-ctc-chat,
body.woocommerce-cart #ht-ctc-chat {
    z-index: 40 !important;
    bottom: 24px !important;
    right: 24px !important;
}
@media (max-width: 768px) {
    body.woocommerce-checkout #ht-ctc-chat,
    body.woocommerce-cart #ht-ctc-chat {
        bottom: 20px !important;
        right: 16px !important;
        transform: scale(0.85) !important;
        transform-origin: bottom right !important;
    }
}

/* 11. Empty Cart & Reset Password Pages */
.woocommerce-cart .cart-empty {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 40px 24px !important;
    text-align: center !important;
    font-size: 16px !important;
    color: #4a5568 !important;
    margin: 30px auto !important;
    max-width: 550px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.woocommerce-cart .return-to-shop {
    text-align: center !important;
    margin-top: 20px !important;
}

.woocommerce-cart .return-to-shop .button {
    background: var(--color-red-primary, #8e0000) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.woocommerce-cart .return-to-shop .button:hover {
    background: #730000 !important;
}

.woocommerce-ResetPassword,
.lost_reset_password {
    max-width: 460px !important;
    margin: 40px auto !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-ResetPassword .button {
    background: var(--color-red-primary, #8e0000) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    height: 48px !important;
    font-weight: 600 !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}






/* ==========================================================================
   DOS SOLES REMEDIATION PATCH — AUDITORÍA INTEGRAL UX/UI & CRO
   Fecha: Septiembre 2026
   Afecta: Global, Home, Catálogo, PDP, Carrito y Checkout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL & RESOLUCIÓN DE DESBORDES (OVERFLOW)
   -------------------------------------------------------------------------- */
/* Corrección de Sticky Header: 'overflow-x: clip' recorta sin romper position:sticky */
html, body {
  overflow-x: clip !important;
  max-width: 100vw !important;
}

/* Fijación garantizada de Cabecera al scrollear */
header.main-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

/* CRÍTICO: Corrección de desborde horizontal por Select2 en Checkout (+163px / +33px) */
select.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
  left: 0 !important;
  right: auto !important;
}

/* CRÍTICO: Corrección de sangrado horizontal del Cart Drawer (+8px) */
body:not(.cart-drawer-open) #dos-soles-cart-drawer,
body.woocommerce-cart #dos-soles-cart-drawer,
body.woocommerce-checkout #dos-soles-cart-drawer,
#dos-soles-cart-drawer:not(.is-open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.dos-soles-continue-shopping-wrapper {
  margin-top: 14px !important;
  text-align: center !important;
  width: 100% !important;
}
.dos-soles-continue-shopping-btn {
  display: block !important;
  width: 100% !important;
  padding: 12px 20px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 50px !important;
  color: #475569 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  transition: all 0.2s ease !important;
  background: #ffffff !important;
  text-align: center !important;
}
.dos-soles-continue-shopping-btn:hover {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}

/* Recorte en carrusel de marcas para prevenir sub-pixel overflow en 375px */
.brand-carousel-wrapper,
.brand-carousel {
  overflow: hidden !important;
  max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   2. REPOSICIONAMIENTO DEL BOTÓN FLOTANTE DE WHATSAPP (CRO)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #ht-ctc-chat {
    bottom: 20px !important;
    right: 14px !important;
    width: 52px !important;
    height: 52px !important;
  }
  #ht-ctc-chat .ht_ctc_style {
    width: 52px !important;
    height: 52px !important;
  }
  /* Espacio de separación para que el botón flotante no tape CTAs de compra */
  .product-tabbed-carousel {
    padding-bottom: 24px !important;
  }
  .woocommerce-cart .dos-soles-cart-layout,
  .woocommerce-checkout form.woocommerce-checkout {
    padding-bottom: 80px !important;
  }
}

/* --------------------------------------------------------------------------
   3. PÁGINA DE INICIO (HOME)
   -------------------------------------------------------------------------- */
/* Barra de Beneficios: Cuadrícula simétrica 2x2 en mobile con texto legible */
@media (max-width: 768px) {
  section.benefits-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px !important;
    padding: 16px !important;
    margin: 20px 0 !important;
    height: auto !important;
  }
  .benefit-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .benefit-item span,
  .benefit-item .benefit-text {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-align: left !important;
    line-height: 1.25 !important;
  }
}

/* Evitar títulos cortados y sin presentación en tarjetas de carrusel */
@media (max-width: 768px) {
  .product-carousel-card .product-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    min-height: 48px !important;
  }
  .product-tab-btn {
    white-space: nowrap !important;
    font-size: 12.5px !important;
    padding: 8px 12px !important;
  }
}

/* Asegurar visibilidad inmediata de tarjetas sin atasco de IntersectionObserver */
.carousel-track .product-carousel-card {
  opacity: 1 !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   4. CATÁLOGO Y SISTEMA DE FILTROS (/tienda/)
   -------------------------------------------------------------------------- */
/* CRÍTICO: Eliminar quiebre mid-word de títulos en desktop ("Acondicionado r") */
ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.875rem !important; /* 14px */
  line-height: 1.35 !important;
  font-weight: 600 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7em !important;
}

/* Ocultar botón duplicado nativo dentro del drawer de filtros */
.shop-sidebar .apply-filters,
.shop-sidebar button.apply-filters,
.shop-sidebar .yith-wcan-submit-button {
  display: none !important;
}

/* Margen de seguridad para píldoras de categorías en mobile sin tapar flechas */
@media (max-width: 768px) {
  .category-subcategory-list-wrapper .container {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}

/* --------------------------------------------------------------------------
   5. FICHA DE PRODUCTO (PDP SIMPLE & VARIABLE)
   -------------------------------------------------------------------------- */
/* CRÍTICO: Solución visual a los 82 swatches mudos de Majirel */
.variations ul.variable-items-wrapper li.variable-item {
  min-width: 48px !important;
  min-height: 48px !important;
  position: relative !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  border: 1.5px solid #e2e8f0 !important;
}

.variations ul.variable-items-wrapper li.image-variable-item::after {
  content: attr(data-value);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 14px;
  padding: 2px 0;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}

/* Ocultar tabla redundante de cuotas promocionales debajo de descripción */
.single-product .summary #table_c1218_pw,
.single-product .summary .cuotas-promocionales-wrapper {
  display: none !important;
}

/* Botón Añadir al carrito a ancho completo en Mobile */
@media (max-width: 767px) {
  .single-product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .single-product form.cart .quantity {
    flex: 0 0 auto !important;
  }
  .single-product form.cart .single_add_to_cart_button {
    flex: 1 1 auto !important;
    min-height: 46px !important;
    width: auto !important;
    text-align: center !important;
  }
  /* Barra sticky móvil: evitar recorte de texto */
  .dos-soles-sticky-pdp-bar .sticky-bar-btn {
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }
  .dos-soles-sticky-pdp-bar .sticky-bar-price {
    font-size: 13px !important;
  }
}

/* --------------------------------------------------------------------------
   6. CARRITO DE COMPRAS (/carrito/)
   -------------------------------------------------------------------------- */
/* Botón de cálculo de envío con touch target de 44px y rojo corporativo */
.woocommerce-cart .shipping-calculator-button {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  color: #d4000c !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Normalización de título de carrito y eliminación del desborde de 8px */
.dos-soles-cart-banner-header h2 {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
}
.dos-soles-cart-banner-header .cart-count {
  position: static !important;
  display: inline !important;
  color: var(--color-red-primary, #8e0000) !important;
  top: auto !important;
  right: auto !important;
}

/* Botón vaciar carrito */
.dos-soles-empty-cart-btn {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* --------------------------------------------------------------------------
   7. FINALIZAR COMPRA / CHECKOUT (/finalizar-compra/)
   -------------------------------------------------------------------------- */
/* Checkbox de Términos y Condiciones con touch target accesible */
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  cursor: pointer !important;
  padding: 6px 0 !important;
}

.woocommerce-checkout #terms {
  width: 20px !important;
  height: 20px !important;
  margin-right: 10px !important;
  cursor: pointer !important;
}

/* Banner estético para mensajes de validación y errores de checkout */
.woocommerce-NoticeGroup-checkout .woocommerce-error {
  background-color: #fff5f5 !important;
  border-left: 4px solid #d4000c !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 8px rgba(212, 0, 12, 0.08) !important;
  list-style: none !important;
}

.woocommerce-NoticeGroup-checkout .woocommerce-error li {
  color: #9b1c1c !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin-bottom: 6px !important;
}

/* Ocultar título redundante en checkout */
#order_review_heading {
  display: none !important;
}

/* --------------------------------------------------------------------------
   8. ACCESIBILIDAD, TOUCH TARGETS (WCAG 2.5.5) Y TIPOGRAFÍA
   -------------------------------------------------------------------------- */
/* Altura mínima de 44px en botones interactivos */
.product-carousel-card .add_to_cart_button,
a.btn-bento-primary,
ul.products li.product .button.add_to_cart_button {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.carousel-arrow,
.slider-arrow {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

/* Pie de página: eliminación de vínculos violetas y contraste AA */
footer.main-footer a,
footer.main-footer .logo-link {
  color: #ffffff !important;
}

footer.main-footer a:hover {
  color: #f1f1f1 !important;
  text-decoration: underline !important;
}

footer.main-footer .footer-column .footer-links a {
  display: inline-block !important;
  padding: 8px 0 !important;
  min-height: 36px !important;
}

footer.main-footer .social-links {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 1rem !important;
}

footer.main-footer .social-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
}

footer.main-footer .social-links a:hover {
  background-color: #ffffff !important;
  color: #8e0000 !important;
  border-color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
}

footer.main-footer .social-links a svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 auto !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

footer.main-footer .site-info,
footer.main-footer .copyright {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Unificación de Tipografía de Marca Montserrat */
.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-cart button,
.woocommerce-checkout button,
.woocommerce-cart input,
.woocommerce-checkout input,
.shop-sidebar .widget-title,
.wc-tabs li a {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}


/* ==========================================================================
   PÁGINAS LEGALES E INSTITUCIONALES (Privacidad, Términos, Envíos, Arrepentimiento)
   ========================================================================== */
.legal-page-wrapper {
  max-width: 960px;
  width: 100%;
  margin: 0 auto !important;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.legal-badge {
  display: inline-block;
  background: #f8f9fa;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.legal-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}

.legal-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.legal-meta svg {
  vertical-align: -2px;
  margin-right: 4px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 3rem 3.5rem;
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.04);
  color: #334155;
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-section {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.legal-section-header .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff1f2;
  color: #8e0000;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-section-header h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 !important;
}

.legal-list {
  padding-left: 0;
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.75rem;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  top: 0;
  color: #8e0000;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.4;
}

.legal-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff8f8;
  border: 1px solid #fed7d7;
  border-left: 4px solid #8e0000;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #4a5568;
}

.legal-callout-official {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-left-color: #64748b;
  color: #64748b;
}

.legal-contact-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.legal-contact-box .contact-item {
  font-size: 0.88rem;
  color: #475569;
}

/* Shipping Options Grid (Cambios y Devoluciones) */
.shipping-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.shipping-option-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.shipping-option-card .option-icon {
  width: 44px;
  height: 44px;
  background: #fff1f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.shipping-option-card h3 {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 0.5rem !important;
}

.shipping-option-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* Paso a paso de Cambios */
.steps-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.step-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.step-box .step-number {
  display: inline-block;
  background: #8e0000;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.step-box h4 {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 0.5rem !important;
}

.step-box p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.arrepentimiento-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.arrepentimiento-cta-text h3 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #8e0000 !important;
  margin: 0 0 0.25rem 0 !important;
}

.arrepentimiento-cta-text p {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0;
}

.btn-arrepentimiento-cta {
  display: inline-flex;
  align-items: center;
  background: #8e0000;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-arrepentimiento-cta:hover {
  background: #6d0000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(142, 0, 0, 0.25);
}

/* Formulario de Botón de Arrepentimiento */
.arrepentimiento-intro {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.intro-badge-icon {
  width: 50px;
  height: 50px;
  background: #fff1f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-text h3 {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 0.4rem !important;
}

.intro-text p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.arrepentimiento-form .form-row-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.arrepentimiento-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.arrepentimiento-form label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.arrepentimiento-form input[type="text"],
.arrepentimiento-form input[type="email"],
.arrepentimiento-form input[type="tel"],
.arrepentimiento-form input[type="date"],
.arrepentimiento-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
  transition: all 0.2s ease;
  background: #ffffff;
}

.arrepentimiento-form input:focus,
.arrepentimiento-form textarea:focus {
  border-color: #8e0000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(142, 0, 0, 0.1);
}

.arrepentimiento-form .field-help {
  font-size: 0.75rem;
  color: #94a3b8;
}

.form-privacy-check {
  margin: 1.5rem 0;
}

.form-privacy-check .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1.5;
}

.form-privacy-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #8e0000;
}

.btn-submit-arrepentimiento {
  background: #8e0000;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 1rem 2.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-submit-arrepentimiento:hover {
  background: #6d0000;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 15px rgba(142, 0, 0, 0.25);
}

.arrepentimiento-success-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.arrepentimiento-success-state .success-icon-wrap {
  width: 70px;
  height: 70px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.arrepentimiento-success-state h2 {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 0.75rem !important;
}

.arrepentimiento-success-state .code-box {
  display: inline-block;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 1.25rem;
}

.arrepentimiento-success-state .code-box strong {
  color: #8e0000;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.arrepentimiento-success-state p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #64748b;
  line-height: 1.65;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-success-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-success-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-1px);
}

.btn-success-home {
  background: #f1f5f9;
  color: #334155 !important;
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-success-home:hover {
  background: #e2e8f0;
}

/* Footer Boton de Arrepentimiento & Defensa del Consumidor */
.footer-arrepentimiento-item {
  margin-top: 0.65rem;
}

.btn-footer-arrepentimiento {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-footer-arrepentimiento:hover {
  background: #ffffff !important;
  color: #8e0000 !important;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.consumer-defense-link {
  margin-top: 0.35rem;
}

.consumer-defense-link a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.consumer-defense-link a:hover {
  color: #ffffff;
}

/* ==========================================================================
   CUSTOM 404 SHOWCASE
   ========================================================================== */
.error404 #primary,
.error404 .site-content,
.error404 #content,
.error-404-page-wrapper {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 900px !important;
  box-sizing: border-box !important;
}

.error-404-page-wrapper {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-404-showcase {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.25rem;
  width: 100%;
}

.error-404-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f2;
  color: #8e0000;
  border: 1px solid #fecdd3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.error-404-tag-badge .error-dot {
  width: 7px;
  height: 7px;
  background: #8e0000;
  border-radius: 50%;
}

.error-404-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 0.95;
  color: #1e293b;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem 0;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404-number .accent {
  color: #8e0000;
}

.error-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.15rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  line-height: 1.25 !important;
  margin-bottom: 0.85rem !important;
  text-align: center !important;
}

.error-desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

.error-search-box-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 2rem auto;
}

.search-input-group-404 {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.search-input-group-404:focus-within {
  border-color: #8e0000;
  box-shadow: 0 0 0 3px rgba(142, 0, 0, 0.1);
}

.search-icon-404 {
  flex-shrink: 0;
  margin-right: 10px;
}

.search-field-404 {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 0.92rem !important;
  font-family: 'Montserrat', sans-serif !important;
  color: #1e293b !important;
  flex: 1 !important;
  min-width: 0 !important;
  padding: 8px 0 !important;
  box-shadow: none !important;
}

.search-submit-404 {
  background: #8e0000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.search-submit-404:hover {
  background: #6d0000 !important;
}

.error-actions-primary {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
  width: 100%;
}

.btn-404-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #8e0000;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-404-home:hover {
  background: #6d0000;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 15px rgba(142, 0, 0, 0.25);
}

.btn-404-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1e293b;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-404-shop:hover {
  background: #0f172a;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.25);
}

.error-shortcuts-section {
  width: 100%;
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shortcuts-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
  margin-bottom: 1.15rem;
  text-align: center;
}

.error-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.category-pill-404 {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.category-pill-404 .pill-bullet {
  width: 6px;
  height: 6px;
  background: #8e0000;
  border-radius: 50%;
}

.category-pill-404:hover {
  background: #ffffff;
  border-color: #8e0000;
  color: #8e0000 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.error-help-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 2rem;
  text-align: left;
  box-sizing: border-box;
}

.error-help-card .help-content {
  flex: 1;
}

.error-help-card .help-content h4 {
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 0.35rem 0 !important;
  line-height: 1.3 !important;
}

.error-help-card .help-content p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.btn-404-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-404-wa:hover {
  background: #1ebc59;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* Responsividad Mobile */
@media (max-width: 768px) {
  .legal-page-wrapper {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .legal-title {
    font-size: 1.75rem !important;
  }
  .legal-subtitle {
    font-size: 0.95rem;
  }
  .legal-card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }
  .arrepentimiento-form .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .arrepentimiento-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .btn-arrepentimiento-cta {
    width: 100%;
    justify-content: center;
  }
  
  /* 404 Mobile Symmetrical Adjustments */
  .error-404-page-wrapper {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .error-404-number {
    font-size: 4.5rem;
    margin-bottom: 1rem;
  }
  .error-title {
    font-size: 1.5rem !important;
  }
  .error-desc {
    font-size: 0.92rem;
  }
  .error-actions-primary {
    flex-direction: column;
    gap: 0.75rem;
  }
  .btn-404-home,
  .btn-404-shop {
    width: 100%;
    justify-content: center;
  }
  .error-help-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 1.25rem;
    gap: 1.15rem;
  }
  .error-help-card .help-content h4,
  .error-help-card .help-content p {
    text-align: center;
  }
  .btn-404-wa {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   DESKTOP REACTIVE FILTERING & LOADING STATES (M1)
   ========================================================================== */
.shop-catalog-content.is-filtering,
.shop-catalog-content.filtering-active,
.woocommerce-shop-container.is-filtering .shop-catalog-content,
.woocommerce-shop-container.filtering-active .shop-catalog-content {
    opacity: 0.55 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    position: relative !important;
}

.shop-catalog-content.is-filtering::after,
.shop-catalog-content.filtering-active::after {
    content: '' !important;
    position: absolute !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border: 3px solid rgba(142, 0, 0, 0.15) !important;
    border-top-color: #8e0000 !important;
    border-radius: 50% !important;
    animation: dsFilterSpinner 0.7s linear infinite !important;
    z-index: 99 !important;
}

@keyframes dsFilterSpinner {
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Desktop Filter Header & Controls */
.shop-sidebar .desktop-filter-header {
    display: none;
}
@media (min-width: 992px) {
    .shop-sidebar .desktop-filter-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 0.85rem !important;
        margin-bottom: 1.25rem !important;
        border-bottom: 1px solid #E5E7EB !important;
    }
    .shop-sidebar .desktop-filter-header .desktop-filter-title {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        color: #111111 !important;
        margin: 0 !important;
    }
    .shop-sidebar .desktop-filter-header .desktop-clear-filters-btn {
        background: none !important;
        border: none !important;
        padding: 4px 8px !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        color: #8e0000 !important;
        cursor: pointer !important;
        text-decoration: underline !important;
        text-underline-offset: 3px !important;
        transition: color 0.2s ease, opacity 0.2s ease !important;
    }
    .shop-sidebar .desktop-filter-header .desktop-clear-filters-btn:hover {
        color: #c61920 !important;
        opacity: 0.85 !important;
    }
}

/* Active / Selected / Chosen filter styling on desktop & mobile */
.shop-sidebar .filter-items li.chosen,
.shop-sidebar .filter-items li:has(input:checked),
.shop-sidebar .filter-items li.active {
    background-color: rgba(142, 0, 0, 0.04) !important;
    border-radius: 6px !important;
}
.shop-sidebar .filter-items li.chosen > label,
.shop-sidebar .filter-items li:has(input:checked) > label,
.shop-sidebar .filter-items li.active > label,
.shop-sidebar .filter-items li.chosen > a.term-label,
.shop-sidebar .filter-items li:has(input:checked) > a.term-label,
.shop-sidebar .filter-items li.active > a.term-label {
    color: #8e0000 !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   COLORATION SHADE SELECTOR REDESIGN (DOS SOLES SALON STANDARD)
   Transforms crowded swatches into an organized, readable list with photo & name
   ========================================================================== */
.variations_form .variable-items-wrapper.image-variable-items-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 8px !important;
    max-height: 380px !important;
    overflow-y: auto !important;
    padding: 10px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 12px !important;
    background: #F9FAFB !important;
    box-sizing: border-box !important;
}

@media (max-width: 576px) {
    .variations_form .variable-items-wrapper.image-variable-items-wrapper {
        grid-template-columns: 1fr !important;
        max-height: 340px !important;
    }
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 8px 14px !important;
    background: #ffffff !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    text-align: left !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item:hover {
    border-color: #D4000C !important;
    background: #FFF8F8 !important;
    transform: translateY(-1px) !important;
}

/* Suppress plugin ticks, tooltips, and default pseudo-elements */
.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item::before,
.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item::after,
.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item .variable-item-contents::before,
.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item .variable-item-contents::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item {
    position: relative !important;
    padding-right: 36px !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item.selected {
    border-color: #D4000C !important;
    background: #FFF5F5 !important;
    box-shadow: 0 0 0 1.5px #D4000C !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item.selected::after {
    display: flex !important;
    content: "✓" !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background: #D4000C !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 2px 5px rgba(212, 0, 12, 0.3) !important;
    z-index: 5 !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item.swatch-hidden {
    display: none !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item .variable-item-contents {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item img.variable-item-image {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0,0,0,0.12) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    background-color: #e5e7eb !important;
}

.swatch-shade-label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    line-height: 1.25 !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.swatch-shade-code {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    letter-spacing: 0.02em !important;
}

.swatch-shade-name {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    color: #6B7280 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.variations_form .variable-items-wrapper.image-variable-items-wrapper li.variable-item.selected .swatch-shade-code {
    color: #D4000C !important;
}

.swatch-search-wrapper {
    margin-bottom: 10px !important;
    position: relative !important;
}

.swatch-search-input {
    width: 100% !important;
    padding: 10px 14px 10px 36px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-family: 'Montserrat', sans-serif !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

.swatch-search-input:focus {
    border-color: #D4000C !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 0, 12, 0.1) !important;
}

.swatch-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9CA3AF !important;
    font-size: 14px !important;
    pointer-events: none !important;
}

/* ==========================================================================
   MILESTONE 3: STOREFRONT CHILD THEME SHOP GRID FRAMING & OVERFLOW GUARDS
   ========================================================================== */

/* 1. Global Horizontal Overflow Guard */
html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

.site,
#page,
.site-content,
.content-area,
.woocommerce-shop-container,
.single-product-container,
.single-product div.product {
    max-width: 100% !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
}

/* 2. WooCommerce Loop Product Card Framing (Desktop, Tablet & Mobile) */
ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    text-decoration: none !important;
}

ul.products li.product img,
ul.products li.product a img,
ul.products li.product .woocommerce-LoopProduct-link img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background-color: #fcfcfc !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin: 0 0 12px 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

ul.products li.product:hover img {
    transform: scale(1.02);
}

@media (max-width: 767px) {
    ul.products li.product img,
    ul.products li.product a img,
    ul.products li.product .woocommerce-LoopProduct-link img {
        padding: 8px !important;
        margin: 0 0 8px 0 !important;
        max-height: none !important;
    }
}

/* ==========================================================================
   HOME PAGE: LAYOUT RESTORATION & INTEGRITY ENFORCEMENT
   ========================================================================== */

/* 1. Header & Section Titles Restoration */
.home .carousel-section .section-header,
.home .bento-grid-section .section-header,
.home .instagram-feed-section .section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
  margin-bottom: 24px !important;
  border-bottom: none !important;
}

.home .section-title {
  font-family: var(--font-primary), 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin: 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 2px solid #f1f5f9 !important;
  line-height: 1.3 !important;
}

.home .carousel-section .section-header .section-title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.home .carousel-section .carousel-nav {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 0 !important;
}

/* 2. Component Visibility Guarantees (Prevents blank gaps on desktop/mobile) */
.home .bento-tile,
.home .product-carousel-card,
.home .instagram-grid-item,
.home .brand-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* 3. Section Container & Symmetric Centering Alignment */
.home #primary,
.home #main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.home .hero-grid-container,
.home .payment-promos-section,
.home .bento-grid-section,
.home .brand-carousel-wrapper,
.home .product-tabbed-showcase,
.home .instagram-feed-section {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}

.home .bento-grid-section {
  margin-top: 40px !important;
  margin-bottom: 50px !important;
}

.home .bento-grid-section .section-title {
  text-align: center !important;
  border-bottom: none !important;
  margin-bottom: 28px !important;
}

.home .brand-carousel-wrapper {
  margin-top: 50px !important;
  margin-bottom: 50px !important;
}

.home .product-tabbed-showcase {
  margin-top: 50px !important;
  margin-bottom: 60px !important;
}

/* 4. Carousel Snapping & Track Alignment */
.carousel-container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
}

.carousel-container::-webkit-scrollbar {
  display: none !important;
}

.carousel-track,
.product-tabbed-carousel .carousel-track {
  display: flex !important;
  touch-action: pan-y !important;
}

/* Card Widths & Exact Gap Geometry (No Cut-off) */
/* Desktop (min-width: 1025px): Exactly 4 cards, 20px gap */
@media (min-width: 1025px) {
  .carousel-track,
  .product-tabbed-carousel .carousel-track {
    gap: 20px !important;
  }
  .product-carousel-card,
  .brand-carousel .brand-card {
    flex: 0 0 calc((100% - 60px) / 4) !important;
    width: calc((100% - 60px) / 4) !important;
    min-width: calc((100% - 60px) / 4) !important;
    max-width: calc((100% - 60px) / 4) !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
  }
}

/* Tablet (min-width: 768px) and (max-width: 1024px): Exactly 3 cards, 16px gap */
@media (min-width: 768px) and (max-width: 1024px) {
  .carousel-track,
  .product-tabbed-carousel .carousel-track {
    gap: 16px !important;
  }
  .product-carousel-card,
  .brand-carousel .brand-card {
    flex: 0 0 calc((100% - 32px) / 3) !important;
    width: calc((100% - 32px) / 3) !important;
    min-width: calc((100% - 32px) / 3) !important;
    max-width: calc((100% - 32px) / 3) !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
  }
}

/* Mobile (max-width: 767px): Exactly 2 cards, 12px gap */
@media (max-width: 767px) {
  .carousel-track,
  .product-tabbed-carousel .carousel-track {
    gap: 12px !important;
  }
  .product-carousel-card,
  .brand-carousel .brand-card {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
  }
  .product-carousel-card {
    padding: 12px !important;
  }
  .product-image-wrapper {
    height: 140px !important;
  }
  .product-title {
    font-size: 11px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 6px 0 4px 0 !important;
  }
  .product-price {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }
  .product-action-wrapper .button {
    font-size: 10px !important;
    padding: 7px 0 !important;
  }
}

/* 5. Instagram Feed Section Polish */
.home .instagram-feed-section {
  margin-top: 50px !important;
  margin-bottom: 60px !important;
}

.home .instagram-feed-section .section-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.home .instagram-feed-section .section-header .section-title {
  border-bottom: none !important;
}

.home .instagram-action {
  display: flex !important;
  justify-content: center !important;
  margin-top: 32px !important;
}

.home .instagram-action .btn-discover {
  width: auto !important;
  min-width: 240px !important;
  max-width: 320px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  background-color: var(--color-red-primary, #D4000C) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(212, 0, 12, 0.25) !important;
}

.home .instagram-action .btn-discover:hover {
  background-color: var(--color-red-dark, #8E0000) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(212, 0, 12, 0.35) !important;
}

/* 6. Product Tabs Showcase Details */
.home .product-tabs-wrapper {
  margin-bottom: 24px !important;
}

.home .product-tabs-nav {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
}

.home .product-tab-btn {
  font-family: var(--font-primary), 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.home .product-tab-btn:hover {
  color: var(--color-red-primary, #D4000C) !important;
}

.home .product-tab-btn.active {
  color: var(--color-red-primary, #D4000C) !important;
  border-bottom-color: var(--color-red-primary, #D4000C) !important;
}

/* ==========================================================================
   MOBILE UX & CHECKOUT REFINEMENTS (Cart Drawer, Cart Page, Checkout Notices)
   ========================================================================== */

/* 1. Cart Drawer: Fix double cross and overlap with price */
.dos-soles-cart-drawer-wrapper .mini_cart_item,
.woocommerce-mini-cart .mini_cart_item {
  position: relative !important;
  padding-right: 38px !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item a.remove,
.woocommerce-mini-cart .mini_cart_item a.remove {
  position: absolute !important;
  top: 14px !important;
  right: 0 !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  color: #64748b !important;
  font-size: 15px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  z-index: 5 !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item a.remove::before,
.woocommerce-mini-cart .mini_cart_item a.remove::before,
.dos-soles-cart-drawer-wrapper .mini_cart_item a.remove::after,
.woocommerce-mini-cart .mini_cart_item a.remove::after {
  content: none !important;
  display: none !important;
}

.dos-soles-cart-drawer-wrapper .mini_cart_item a.remove:hover,
.woocommerce-mini-cart .mini_cart_item a.remove:hover {
  background-color: var(--color-red-primary, #d4000c) !important;
  border-color: var(--color-red-primary, #d4000c) !important;
  color: #ffffff !important;
}

/* 2. Cart Page: Banner title count */
.dos-soles-cart-banner-header h2 {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.dos-soles-cart-banner-header .dos-soles-cart-header-count {
  display: inline-block !important;
  color: var(--color-red-primary, #d4000c) !important;
  font-weight: 700 !important;
  margin-left: 4px !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* 3. Cart Page: Symmetrical coupon block & refined empty cart action */
.dos-soles-cart-bottom-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-top: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.empty-cart-action {
  order: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dos-soles-empty-cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
}

.dos-soles-empty-cart-btn:hover {
  border-color: var(--color-red-primary, #d4000c) !important;
  color: var(--color-red-primary, #d4000c) !important;
  background-color: #fff5f5 !important;
}

.dos-soles-coupon-block {
  order: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.dos-soles-coupon-block h3 {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 12px 0 !important;
  color: #1e293b !important;
}

.coupon-form-group {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.coupon-form-group input.input-text {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background-color: #f8fafc !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

.coupon-form-group input.input-text:focus {
  border-color: var(--color-red-primary, #d4000c) !important;
  background-color: #ffffff !important;
}

.coupon-form-group button.button {
  flex: 0 0 auto !important;
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 6px !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background-color 0.2s ease !important;
}

.coupon-form-group button.button:hover {
  background-color: var(--color-red-primary, #d4000c) !important;
}

/* 4. Checkout: Fix curly red brackets ("llaves") on notice boxes */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-order-received .woocommerce-info {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid var(--color-red-primary, #d4000c) !important;
  border-radius: 0 10px 10px 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  padding: 14px 18px !important;
  color: #334155 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 16px !important;
}

/* 5. Checkout: Fix product counter "1" badge in order summary */
.summary-item-thumb {
  position: relative !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  overflow: visible !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

.summary-item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  display: block !important;
  overflow: hidden !important;
}

.summary-item-qty {
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  background: #475569 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
  border-radius: 50% !important;
  text-align: center !important;
  padding: 0 !important;
  box-shadow: 0 0 0 2px #ffffff !important;
}
/* =========================================================================
   JULERIAQUE-STYLE PRODUCT CARDS & FULL-WIDTH CATALOG (USER FEEDBACK)
   Hierarchy:
   1. Brand in uppercase bold
   2. Title in elegant medium uppercase font (smaller than before)
   3. Measure pill underneath title
   4. Price & Installments
   ========================================================================= */

/* Brand styling across catalog and homepage carousels */
.product-card-brand,
.product-loop-brand {
  font-family: var(--font-primary, 'Montserrat', sans-serif) !important;
  font-size: 0.72rem !important; /* ~11.5px */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin: 6px 0 2px 0 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  text-align: center !important;
}

@media (max-width: 639px) {
  .product-card-brand,
  .product-loop-brand {
    font-size: 0.65rem !important;
    letter-spacing: 0.02em !important;
    margin: 4px 0 2px 0 !important;
  }
}

/* Product title styling - clean, natural Title Case (minúsculas), centered */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title a,
.product-carousel-card .product-title,
.product-carousel-card .product-title a {
  font-family: var(--font-primary, 'Montserrat', sans-serif) !important;
  font-size: 0.875rem !important; /* ~14px */
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #111827 !important;
  text-transform: none !important; /* Letras en minúscula como solicitó Anto */
  letter-spacing: 0 !important;
  margin: 2px 0 4px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  height: 36px !important;
  min-height: 36px !important;
  text-align: center !important;
}

/* Measure pill wrapper & pill - centered */
.product-card-measure-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 2px 0 6px 0 !important;
  height: 22px !important;
}

.product-measure-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 10px !important;
  font-size: 0.6875rem !important; /* 11px */
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #475569 !important;
  background-color: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 9999px !important;
  height: 20px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.product-measure-empty {
  visibility: hidden !important;
  height: 20px !important;
  border: none !important;
  background: transparent !important;
}

/* Price inside card - Centered */
ul.products li.product .price,
.product-carousel-card .product-price {
  font-family: var(--font-primary, 'Montserrat', sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  color: #111827 !important;
  margin: 4px 0 8px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* Precio en el centro como solicitó Anto */
  text-align: center !important;
  gap: 6px !important;
  width: 100% !important;
}

ul.products li.product .price *,
.product-carousel-card .product-price * {
  text-align: center !important;
}

ul.products li.product .price del,
.product-carousel-card .product-price del {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: #9CA3AF !important;
  text-decoration: line-through !important;
}

ul.products li.product .price ins,
.product-carousel-card .product-price ins {
  font-size: 1rem !important;
  font-weight: 750 !important;
  color: #111827 !important;
  text-decoration: none !important;
}

/* Add to cart button in catalog cards - Vibrant brand red (#D30410), rounded */
ul.products li.product .button,
ul.products li.product .button.add_to_cart_button,
ul.products li.product .button.product_type_simple,
ul.products li.product .button.product_type_variable,
ul.products li.product a.button {
  margin-top: auto !important;
  width: 100% !important;
  border-radius: 8px !important;
  background-color: #D30410 !important;
  background: #D30410 !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  padding: 10px 8px !important;
  min-height: 40px !important;
  border: none !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(211, 4, 16, 0.25) !important;
}

ul.products li.product .button:hover,
ul.products li.product .button.add_to_cart_button:hover,
ul.products li.product .button.product_type_simple:hover,
ul.products li.product .button.product_type_variable:hover,
ul.products li.product a.button:hover {
  background-color: #b0000a !important;
  background: #b0000a !important;
  box-shadow: 0 4px 12px rgba(211, 4, 16, 0.35) !important;
}

/* Installments pill dropdown (woo-financing-table) - Light gray pill underneath button */
ul.products li.product select.fo_select_grid {
  margin: 6px 0 0 0 !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  background-color: #F1F3F5 !important;
  border: 1px solid transparent !important;
  color: #374151 !important;
  padding: 6px 8px !important;
  width: 100% !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  text-align: center !important;
  text-align-last: center !important;
  box-sizing: border-box !important;
}

/* Catalog Card Container Uniformity */
ul.products li.product {
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  padding: 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

ul.products li.product:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  border-color: #D1D5DB !important;
}

/* Mobile Responsiveness: Full Width Cards without lateral margins */
@media (max-width: 768px) {
  .archive.woocommerce #content .col-full,
  .shop.woocommerce #content .col-full,
  .woocommerce-page #content .col-full,
  body.tax-product_cat #content .col-full,
  body.post-type-archive-product #content .col-full,
  body.woocommerce #content .col-full,
  body.woocommerce-page #content .col-full,
  body.woocommerce-shop #content .col-full,
  .site-content > .col-full,
  #content > .col-full {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce-shop-container,
  .shop-catalog-content,
  #primary.content-area,
  .site-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  ul.products li.product {
    padding: 10px 8px !important;
    border-radius: 10px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  ul.products li.product img,
  ul.products li.product a img,
  ul.products li.product .woocommerce-LoopProduct-link img {
    padding: 4px !important;
    margin-bottom: 6px !important;
    max-height: 140px !important;
    object-fit: contain !important;
  }

  .product-card-brand,
  .product-loop-brand {
    font-size: 0.65rem !important;
    margin: 4px 0 2px 0 !important;
    text-align: center !important;
  }

  ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product .woocommerce-loop-product__title a {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.25 !important;
    height: 33px !important;
    min-height: 33px !important;
    margin: 2px 0 4px 0 !important;
    text-align: center !important;
    text-transform: none !important;
  }

  .product-measure-pill {
    font-size: 0.625rem !important; /* 10px */
    padding: 2px 6px !important;
    height: 18px !important;
  }

  ul.products li.product .price,
  ul.products li.product .price .amount,
  ul.products li.product .price ins,
  ul.products li.product .price del {
    font-size: 0.95rem !important;
    margin: 2px 0 6px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  ul.products li.product .button,
  ul.products li.product .button.add_to_cart_button,
  ul.products li.product .button.product_type_simple,
  ul.products li.product a.button {
    font-size: 11.5px !important;
    padding: 9px 4px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    margin-top: auto !important;
    background: #D30410 !important;
    background-color: #D30410 !important;
    color: #ffffff !important;
    width: 100% !important;
  }

  ul.products li.product select.fo_select_grid {
    font-size: 9.5px !important;
    padding: 5px 2px !important;
    border-radius: 8px !important;
    margin: 4px 0 0 0 !important;
    text-align: center !important;
    text-align-last: center !important;
    width: 100% !important;
  }
}

/* Catalog Toolbar: Result count on left, Filtrar + Sorting on right */
.storefront-sorting:first-of-type {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0.5rem 0 1.5rem 0 !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.storefront-sorting:first-of-type .woocommerce-result-count {
  margin: 0 !important;
  order: 1 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #666666 !important;
}

.storefront-sorting:first-of-type .shop-filter-trigger {
  order: 2 !important;
  margin-left: auto !important;
}

.storefront-sorting:first-of-type .woocommerce-ordering {
  order: 3 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .storefront-sorting:first-of-type {
    gap: 8px !important;
  }
  .storefront-sorting:first-of-type .woocommerce-result-count {
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 4px !important;
  }
  .storefront-sorting:first-of-type .shop-filter-trigger {
    flex: 1 1 auto !important;
    margin-left: 0 !important;
  }
  .storefront-sorting:first-of-type .woocommerce-ordering {
    flex: 1 1 auto !important;
  }
}

/* ==========================================================================
   CHECKOUT TERMS & CONDITIONS: FULL TAB NAVIGATION & NO INLINE ACCORDION
   ========================================================================== */
.woocommerce-terms-and-conditions,
.woocommerce-checkout .woocommerce-terms-and-conditions {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 20px !important;
  padding: 12px 0 !important;
  font-size: 13.5px !important;
  color: #4b5563 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a.woocommerce-terms-and-conditions-link,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a.dos-soles-terms-external-link {
  color: var(--color-red-primary, #d11a2a) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.2s ease !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a.woocommerce-terms-and-conditions-link:hover,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a.dos-soles-terms-external-link:hover {
  color: #8e0000 !important;
}

/* ==========================================================================
   COUPON VISUAL PRESENTATION: CART & CHECKOUT
   ========================================================================== */
.dos-soles-coupon-tag-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-family: monospace, var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.dos-soles-coupon-tag-badge svg {
  color: var(--color-red-primary, #d11a2a) !important;
  flex-shrink: 0 !important;
}

.shop_table tr.cart-discount th.coupon-label-cell,
.shop_table tr.cart-discount th {
  vertical-align: middle !important;
}

.shop_table tr.cart-discount td.coupon-amount-cell,
.shop_table tr.cart-discount td {
  vertical-align: middle !important;
}

.dos-soles-coupon-total-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.dos-soles-coupon-total-wrapper .coupon-discount-value {
  font-weight: 750 !important;
  color: #16a34a !important;
  font-size: 15px !important;
}

.dos-soles-coupon-total-wrapper .dos-soles-coupon-remove-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #fee2e2 !important;
  color: #dc2626 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  font-weight: bold !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dos-soles-coupon-total-wrapper .dos-soles-coupon-remove-pill:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  transform: scale(1.12) !important;
}

/* Checkout Coupon Toggle Bar & Form */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 24px !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid var(--color-red-primary, #d11a2a) !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 14px !important;
  color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  content: '' !important;
  display: none !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
  margin-left: auto !important;
  font-weight: 700 !important;
  color: var(--color-red-primary, #d11a2a) !important;
  text-decoration: underline !important;
  transition: color 0.2s ease !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:hover {
  color: #8e0000 !important;
}

.woocommerce-checkout form.checkout_coupon {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  margin-top: -12px !important;
  margin-bottom: 24px !important;
}

.woocommerce-checkout form.checkout_coupon .input-text {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  background: #ffffff !important;
}

.woocommerce-checkout form.checkout_coupon .button {
  background: #0f172a !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: background 0.2s ease !important;
}

.woocommerce-checkout form.checkout_coupon .button:hover {
  background: var(--color-red-primary, #d11a2a) !important;
}

/* ==========================================================================
   B2B PROFESSIONAL RATES FUNNEL (MINICART, CART, CHECKOUT, THANKYOU)
   ========================================================================== */
.dos-soles-b2b-cart-status-badge {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin-bottom: 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #166534 !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}

.dos-soles-b2b-cart-status-badge .b2b-status-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
  flex-shrink: 0 !important;
}

.dos-soles-b2b-cart-banner {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 5px solid #16a34a !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.06) !important;
}

.dos-soles-b2b-cart-banner .b2b-cart-banner-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #16a34a !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.dos-soles-b2b-cart-banner .b2b-cart-banner-info strong {
  display: block !important;
  color: #14532d !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}

.dos-soles-b2b-cart-banner .b2b-cart-banner-info p {
  color: #166534 !important;
  font-size: 13px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.dos-soles-b2b-cart-pill {
  display: inline-block !important;
  background: #16a34a !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

.subtotal-b2b-tag {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #16a34a !important;
  margin-top: 2px !important;
}

.b2b-savings-row th {
  color: #15803d !important;
  font-weight: 700 !important;
}

.b2b-savings-row td .b2b-savings-tag {
  display: inline-block !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #86efac !important;
}

.dos-soles-b2b-checkout-notice {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid #16a34a !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.dos-soles-b2b-checkout-notice .b2b-notice-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.dos-soles-b2b-checkout-notice .b2b-notice-badge {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #15803d !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}

.dos-soles-b2b-checkout-notice .b2b-account-tag {
  font-size: 11px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
}

.dos-soles-b2b-checkout-notice .b2b-notice-text {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.dos-soles-b2b-order-tag {
  display: inline-block !important;
  background: #16a34a !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

.dos-soles-b2b-thankyou-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 14px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.08) !important;
}

.dos-soles-b2b-thankyou-card .b2b-card-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #16a34a !important;
  background: #dcfce7 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  margin-bottom: 12px !important;
}

.dos-soles-b2b-thankyou-card h3 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #14532d !important;
  margin: 0 0 8px 0 !important;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}

.dos-soles-b2b-thankyou-card p {
  color: #166534 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
/* ==========================================================================
   REDISEÑO EXCLUSIVO: MEGA-MENÚ DE MARCAS Y GAMAS (DESKTOP & MOBILE)
   ========================================================================== */

/* 1. DESKTOP STYLES (>= 992px) */
@media (min-width: 992px) {
  .nav-menu li.menu-item-marcas {
    position: relative !important;
  }

  /* Ocultar el submenú móvil en Desktop */
  .nav-menu li.menu-item-marcas > .sub-menu {
    display: none !important;
  }

  /* Mega-Panel Contenedor Master-Detail */
  .ds-marcas-mega-panel {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 780px !important;
    max-width: min(780px, calc(100vw - 32px)) !important;
    height: 480px !important;
    max-height: 480px !important;
    background: #ffffff !important;
    border: 1px solid var(--color-border-light, #EBEBEB) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    z-index: 9999 !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(6px) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
    pointer-events: none !important;
  }

  .nav-menu li.menu-item-marcas:hover > .ds-marcas-mega-panel,
  .nav-menu li.menu-item-marcas.is-open > .ds-marcas-mega-panel {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* Columna Izquierda: Marcas (260px) */
  .ds-mega-brands-col {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 100% !important;
    background: #FAFAFA !important;
    border-right: 1px solid var(--color-border-light, #EBEBEB) !important;
    padding: 10px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .ds-mega-brands-scroll {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-bottom: 8px !important;
  }

  /* Scrollbars finos y sutiles */
  .ds-mega-brands-scroll::-webkit-scrollbar,
  .ds-mega-gamas-container::-webkit-scrollbar {
    width: 5px !important;
  }
  .ds-mega-brands-scroll::-webkit-scrollbar-thumb,
  .ds-mega-gamas-container::-webkit-scrollbar-thumb {
    background: #d8d8d8 !important;
    border-radius: 4px !important;
  }
  .ds-mega-brands-scroll::-webkit-scrollbar-thumb:hover,
  .ds-mega-gamas-container::-webkit-scrollbar-thumb:hover {
    background: #bcbcbc !important;
  }

  .ds-mega-section-title {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #999999 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 8px 18px 4px 18px !important;
  }

  .ds-brand-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border-left: 3px solid transparent !important;
    text-transform: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  }

  .ds-brand-item:hover,
  .ds-brand-item.is-active {
    background: #ffffff !important;
    color: var(--color-red-primary, #D4000C) !important;
  }

  .ds-brand-item.is-active {
    border-left-color: var(--color-red-primary, #D4000C) !important;
    font-weight: 700 !important;
  }

  .ds-brand-arrow {
    color: #cccccc !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
  }

  .ds-brand-item:hover .ds-brand-arrow,
  .ds-brand-item.is-active .ds-brand-arrow {
    color: var(--color-red-primary, #D4000C) !important;
    transform: translateX(2px) !important;
  }

  .ds-mega-divider {
    height: 1px !important;
    background: var(--color-border-light, #EBEBEB) !important;
    margin: 8px 16px !important;
  }

  .ds-mega-view-all-brands {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 11px 12px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: var(--color-red-primary, #D4000C) !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    background: #FFF5F5 !important;
    border-top: 1px solid #FFE3E3 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
  }
  .ds-mega-view-all-brands:hover {
    background: #ffecec !important;
    color: #b3000a !important;
  }

  /* Columna Derecha: Paneles de Gamas / Showcase (520px) */
  .ds-mega-gamas-container {
    flex: 1 !important;
    width: 520px !important;
    height: 100% !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    padding: 22px 26px !important;
    box-sizing: border-box !important;
  }

  .ds-gamas-panel {
    display: none !important;
  }

  .ds-gamas-panel.is-active {
    display: block !important;
    animation: dsFadeIn 0.15s ease-out !important;
  }

  @keyframes dsFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Header del Panel de Gamas */
  .ds-gamas-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 1.5px solid #F0F0F0 !important;
    margin-bottom: 16px !important;
  }

  .ds-gamas-brand-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
  }

  .ds-gamas-view-all-link {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--color-red-primary, #D4000C) !important;
    text-decoration: none !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
  }
  .ds-gamas-view-all-link:hover {
    color: #b3000a !important;
    transform: translateX(2px) !important;
  }

  /* Grid de Gamas: 2 columnas simétricas */
  .ds-gamas-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 14px !important;
  }

  .ds-gama-card {
    display: flex !important;
    align-items: center !important;
    padding: 7.5px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #3a3a3a !important;
    text-decoration: none !important;
    text-transform: none !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease !important;
  }

  .ds-gama-card:hover {
    background: #F8F9FA !important;
    color: var(--color-red-primary, #D4000C) !important;
    border-color: #EFEFEF !important;
    transform: translateX(3px) !important;
    font-weight: 600 !important;
  }

  .ds-gama-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-transform: none !important;
  }

  /* Showcase para marcas sin gamas (Wahl, Babyliss, Hair Therapy, etc.) */
  .ds-brand-showcase {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important;
    min-height: 340px !important;
    padding: 10px 6px !important;
  }
  .ds-showcase-box {
    background: #FAFAFA !important;
    border: 1px solid var(--color-border-light, #EBEBEB) !important;
    border-radius: 12px !important;
    padding: 28px 24px !important;
    text-align: center !important;
  }
  .ds-showcase-badge {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--color-red-primary, #D4000C) !important;
    background: #FFF5F5 !important;
    border: 1px solid #FFE3E3 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    margin-bottom: 12px !important;
  }
  .ds-showcase-desc {
    font-size: 13px !important;
    color: var(--color-text-neutral, #555555) !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-transform: none !important;
  }
  .ds-showcase-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--color-red-primary, #D4000C) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 11px 22px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
  }
  .ds-showcase-btn:hover {
    background: #b3000a !important;
    transform: translateY(-1px) !important;
  }
  .ds-showcase-features {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid #ECECEC !important;
  }
  .ds-feature-item {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #666666 !important;
    text-transform: none !important;
  }
  .ds-feature-item span {
    display: block !important;
    color: var(--color-red-primary, #D4000C) !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }
}

/* 2. MOBILE STYLES (<= 991px) */
@media (max-width: 991px) {
  /* Ocultar el Mega-Panel en Mobile */
  .ds-marcas-mega-panel {
    display: none !important;
  }

  /* Suprimir flecha ::after de submenú en mobile para que no duplique con el botón +/- */
  .nav-menu .sub-menu li.menu-item-has-children > a::after {
    display: none !important;
    content: none !important;
  }

  .nav-menu .ds-mobile-marcas-menu {
    width: 100% !important;
    background: transparent !important;
    padding: 0 0 0.5rem 0.5rem !important;
  }

  .ds-mobile-brand-item {
    position: relative !important;
    width: 100% !important;
  }

  .ds-mobile-brand-item > a {
    padding: 0.65rem 0 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #222222 !important;
    text-transform: none !important;
  }

  .ds-mobile-brand-item > .menu-accordion-toggle {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Submenú Nivel 3 (Gamas con stock anidadas con guía roja) */
  .nav-menu .ds-mobile-gamas-submenu {
    border-left: 2px solid var(--color-red-primary, #D4000C) !important;
    padding: 0.25rem 0 0.5rem 1rem !important;
    margin: 0.25rem 0 0.5rem 0.5rem !important;
  }

  .nav-menu .ds-mobile-gamas-submenu li a {
    text-transform: none !important;
    font-size: 0.85rem !important;
  }

  .ds-mobile-ver-todo-gama > a {
    color: var(--color-red-primary, #D4000C) !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    border-bottom: 1px dashed #FFD6D6 !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
    text-transform: none !important;
  }

  .ds-mobile-ver-todas-marcas {
    margin-top: 0.5rem !important;
  }

  .ds-mobile-ver-todas-marcas > a {
    background: #FFF5F5 !important;
    border: 1px solid #FFE0E0 !important;
    border-radius: 8px !important;
    color: var(--color-red-primary, #D4000C) !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    display: flex !important;
    text-transform: none !important;
  }
}

/* =========================================================================
   R4: CHECKOUT REDESIGN & EDITORIAL UX
   ========================================================================= */

/* Reducción drástica del espacio superior vacío en Checkout */
.woocommerce-checkout .entry-header {
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
}

.woocommerce-checkout .entry-title {
    margin-bottom: 8px !important;
}

.woocommerce-checkout .woocommerce-info {
    margin-bottom: 14px !important;
}

/* Cabecera Editorial Limpia para Checkout */
.dos-soles-checkout-editorial-header {
    text-align: left;
    padding-top: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-checkout .checkout-editorial-title,
.woocommerce-checkout .entry-title.checkout-editorial-title {
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

@media (max-width: 768px) {
    .dos-soles-checkout-editorial-header {
        padding-top: 1.25rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .woocommerce-checkout .checkout-editorial-title,
    .woocommerce-checkout .entry-title.checkout-editorial-title {
        font-size: 1.45rem !important;
    }
}

/* Tabla de Revisión de Pedido (Review Order Table) con Miniaturas y Enlaces */
.woocommerce-checkout-review-order-table .product-name {
    vertical-align: middle;
    padding: 12px 10px;
}

.checkout-review-product-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.checkout-review-thumbnail-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-review-thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 7px;
}

.checkout-review-item-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 4px;
}

.checkout-review-quantity-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4b5563;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.checkout-review-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.checkout-review-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.checkout-review-title-link {
    color: #111111 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.checkout-review-title-link:hover {
    color: var(--color-red-primary, #D4000C) !important;
    text-decoration: underline !important;
}

.woocommerce-checkout-review-order-table .product-total {
    vertical-align: middle;
    font-size: 0.95rem;
    font-weight: 800;
    color: #111111;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .checkout-editorial-title {
        font-size: 1.6rem !important;
    }
    .checkout-editorial-subtitle {
        font-size: 0.85rem;
    }
    .checkout-steps-list .step-name {
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Bento Grid Responsive Hardening (Prevent Mobile Horizontal Overflow)
   ========================================================================== */
.bento-grid-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.bento-grid {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.bento-card,
.bento-tile {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.bento-image-wrapper {
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.bento-image,
.bento-grid img,
.bento-card img,
.bento-tile img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  overflow: hidden !important;
  display: block !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .bento-grid-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .bento-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .bento-card,
  .bento-tile {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .bento-image-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .bento-image,
  .bento-grid img,
  .bento-card img,
  .bento-tile img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

