/* ==========================================================================
   SPORTLINE CLINICAL & ATHLETIC SOCKS DESIGN SYSTEM
   Visual identity exact to sportline.com.do:
   - High contrast dark & white aesthetic
   - Sportline red accent & clinical volt accents
   - Clean product cards with custom SVG compression socks
   - Prescription customizer modal
   ========================================================================== */

:root {
  --primary: #0F1115;
  --primary-hover: #1F222A;
  --accent: #E52D27;
  --accent-cyan: #0066FF;
  --accent-neon: #00D26A;
  
  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F3F5;
  
  --text-main: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  
  --border-color: #E5E7EB;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-hover: 0 14px 30px rgba(0,0,0,0.12);
  --shadow-modal: 0 25px 60px rgba(0,0,0,0.3);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* TOP TICKER BAR */
.top-ticker {
  background: #000000;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.04em;
}

.top-ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-rd {
  background: #1F2430;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: #70FF00;
  font-weight: 800;
  font-size: 11px;
}

.top-ticker-links {
  display: flex;
  gap: 20px;
  color: #9CA3AF;
}

.top-ticker-links a:hover {
  color: #FFF;
}

/* HEADER */
.site-header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.04em;
  color: #000000;
}

.brand-logo .logo-accent {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-style: italic;
  font-size: 18px;
}

.brand-logo .logo-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6B7280;
  align-self: flex-end;
  padding-bottom: 4px;
}

.header-search {
  flex: 1;
  max-width: 580px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-wrapper:focus-within {
  border-color: #000000;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.search-wrapper svg {
  color: var(--text-muted);
  margin-right: 12px;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--accent);
}

.cart-counter {
  position: absolute;
  top: -4px;
  right: -2px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* NAVIGATION */
.site-nav {
  border-top: 1px solid var(--border-color);
  background: #FFFFFF;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-item {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--accent);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.nav-item.rx-special {
  color: var(--accent-cyan);
}

/* ===== BOTÓN CUADRADO OFERTAS ===== */
.nav-item.nav-ofertas {
  position: relative;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em;
  color: #FFFFFF !important;
  background-color: #E60000 !important;
  padding: 8px 18px !important;
  border-radius: 0px !important; /* Totalmente cuadrado */
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(230, 0, 0, 0.4);
  transition: all 0.25s ease;
  overflow: hidden;
  cursor: pointer;
}

/* Destello amarillo pasando cada 7 segundos */
.nav-item.nav-ofertas::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 235, 59, 0.2) 20%,
    rgba(255, 240, 0, 0.85) 50%,
    rgba(255, 235, 59, 0.2) 80%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: ofertas-btn-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

.nav-item.nav-ofertas:hover {
  background-color: #cc0000 !important;
  color: #FFFFFF !important;
  box-shadow: 0 5px 18px rgba(230, 0, 0, 0.65);
  transform: translateY(-2px);
}

.nav-item.nav-ofertas.active {
  background-color: #b30000 !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
}

.nav-item.nav-ofertas.active::after {
  display: none; /* Sin la barra inferior típica del nav */
}

@keyframes ofertas-btn-shimmer {
  0% {
    left: -150%;
  }
  45% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

/* ===== BANNER TEMPORIZADOR DE OFERTAS ===== */
.ofertas-timer-banner {
  background: linear-gradient(135deg, #1a0505 0%, #6b0d0d 40%, #b91c1c 100%);
  display: none;
  overflow: hidden;
  position: relative;
}

.ofertas-timer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.03) 18px,
    rgba(255,255,255,0.03) 36px
  );
}

.ofertas-timer-banner.visible {
  display: block !important;
  animation: bannerSlideDown 0.35s ease forwards;
}

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

.ofertas-timer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.timer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timer-text-block {
  display: flex;
  flex-direction: column;
}

.timer-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.timer-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timer-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 60px;
}

.timer-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
}

.timer-num.flip {
  transform: scale(1.2);
  color: #FCD34D;
}

.timer-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

.timer-sep {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  animation: blink-sep 1s step-end infinite;
  margin-bottom: 14px;
}

@keyframes blink-sep {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.timer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.timer-badge-savings {
  background: #FCD34D;
  color: #7C2D12;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .ofertas-timer-inner { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .timer-right { width: 100%; align-items: center; }
  .timer-title { font-size: 14px; }
  .timer-num { font-size: 20px; }
  .timer-unit { min-width: 46px; padding: 6px 10px; }
}



/* HERO BANNER SLIDER / PASARELA DE FOTOS */
.hero-slider-section {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 28px;
  position: relative;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: center;
  background: #000;
  box-shadow: var(--shadow-md);
}

.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-banner-img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 16, 0.92) 0%, rgba(8, 10, 16, 0.65) 55%, rgba(8, 10, 16, 0.25) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 54px;
  max-width: 720px;
  color: #FFFFFF;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00D26A;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 15px;
  color: #E5E7EB;
  margin-bottom: 26px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* RELOJ DE PUBLICIDAD EN EL HERO */
.hero-promo-clock-card {
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 230, 0, 0.4);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(230, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 280px;
  max-width: 310px;
  animation: heroClockFloat 3s ease-in-out infinite alternate;
}

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

.promo-clock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFE600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.promo-clock-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.promo-clock-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-clock-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-clock-unit {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 52px;
  text-align: center;
}

.promo-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  display: block;
}

.promo-lbl {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  margin-top: 3px;
  display: block;
}

.promo-sep {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: #FFE600;
  animation: blinkSep 1s infinite step-end;
}
@keyframes blinkSep {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.promo-free-shipping-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 106, 0.15);
  border: 1px solid rgba(0, 210, 106, 0.4);
  color: #00D26A;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-top: 4px;
}

.promo-clock-btn {
  background: linear-gradient(135deg, #E60000 0%, #b30000 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(230, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.promo-clock-btn:hover {
  background: #ff1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 0, 0.6);
}

@media (max-width: 1024px) {
  .hero-promo-clock-card {
    display: none;
  }
}

/* Controles de la Pasarela de Fotos */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-arrow-btn:hover {
  background: rgba(0, 82, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(0, 102, 255, 0.5);
}

.slider-arrow-btn.prev {
  left: 20px;
}

.slider-arrow-btn.next {
  right: 20px;
}

.slider-dots-container {
  position: absolute;
  bottom: 20px;
  left: 54px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: #00D26A;
  width: 44px;
}

.btn-primary {
  background: #FFFFFF;
  color: #000000;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229, 45, 39, 0.35);
}

.btn-secondary {
  border: 2px solid rgba(255,255,255,0.4);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.12);
}

/* MEDICAL HIGHLIGHTS BAR */
.medical-badges-bar {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 28px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.badge-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.badge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.badge-card h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* MAIN STOREFRONT */
.storefront-container {
  max-width: 1400px;
  margin: 32px auto 60px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
}

/* FILTERS SIDEBAR */
.filters-sidebar {
  position: sticky;
  top: 130px;
  height: fit-content;
}

.filter-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.filter-header h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clear-btn {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-main);
}

.filter-checkbox input {
  accent-color: #000000;
  width: 16px;
  height: 16px;
}

.rx-upload-sidebar-box {
  background: #0B0E14;
  color: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  border-left: 4px solid #00D26A;
}

.rx-upload-sidebar-box h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #00D26A;
}

.rx-upload-sidebar-box p {
  font-size: 12px;
  color: #9CA3AF;
  margin: 6px 0 14px;
  line-height: 1.5;
}

.btn-sidebar-rx {
  width: 100%;
  background: #FFFFFF;
  color: #000;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.btn-sidebar-rx:hover {
  background: #00D26A;
  color: #000;
}

/* PRODUCTS GRID & CARDS */
.products-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.results-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.results-count span {
  color: var(--text-main);
  font-weight: 800;
}

.socks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.product-image-container {
  position: relative;
  background: #F8F9FA;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.product-visual-wrapper {
  width: 160px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-visual-wrapper {
  transform: scale(1.08) rotate(-1deg);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #000000;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-badge.popular {
  background: var(--accent);
}

.product-badge.custom {
  background: #0066FF;
}

.product-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 2;
}

.product-fav-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.compression-pill-indicator {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rx-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-rx-badge {
  font-size: 10px;
  font-weight: 800;
  color: #00D26A;
  background: rgba(0, 210, 106, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-rating {
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
}

.product-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* LÍNEA DE TIEMPO / BARRA DE STOCK AGOTÁNDOSE */
.product-stock-timeline-box {
  background: #FFF9F9;
  border: 1px solid #FFE4E4;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stock-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.stock-alert-text {
  font-weight: 800;
  color: #DC2626;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}

.stock-count-highlight {
  font-weight: 900;
  color: #991B1B;
}

.stock-progress-track {
  width: 100%;
  height: 6px;
  background: #FEE2E2;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.stock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #DC2626 0%, #F59E0B 100%);
  border-radius: 9999px;
  transition: width 0.6s ease;
  position: relative;
}

.stock-free-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  width: fit-content;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.price-current {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--font-body);
  color: var(--text-main);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.card-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-customize-rx {
  width: 100%;
  background: #0066FF;
  color: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-customize-rx:hover {
  background: #004edb;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-add-cart {
  width: 100%;
  background: #000000;
  color: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(229, 45, 39, 0.25);
}

/* Botón COTIZAR VÍA WHATSAPP en tarjeta de producto */
.btn-wa-cotizar {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-wa-cotizar:hover {
  background: #1ebe5a;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

/* Botón COTIZAR VÍA WHATSAPP en el drawer del carrito */
.btn-checkout-wa {
  width: 100%;
  background: #25D366;
  color: #fff;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-checkout-wa:hover {
  background: #1ebe5a;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   PRESCRIPTION & CUSTOMIZATION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.prescription-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  z-index: 1001;
  box-shadow: var(--shadow-modal);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.prescription-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.modal-product-summary {
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: #000;
}

.upload-file-zone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #FAFAFA;
}

.btn-modal-cancel {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-modal-submit {
  background: #0066FF;
  color: #FFFFFF;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: var(--shadow-modal);
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
}

.close-drawer-btn {
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-preview {
  width: 65px;
  height: 65px;
  background: #F8F9FA;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

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

.cart-item-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.cart-item-compression {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-rx-tag {
  font-size: 11px;
  color: #0066FF;
  background: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  margin-top: 6px;
  letter-spacing: 0;
}

.cart-item-del {
  color: var(--accent);
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: #FAFAFA;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 15px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(229, 45, 39, 0.3);
  transition: var(--transition);
}

.btn-checkout:hover {
  background: #c8201b;
}

/* FOOTER */
.site-footer {
  background: #0B0D11;
  color: #FFFFFF;
  padding: 60px 28px 24px;
  border-top: 4px solid var(--accent);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: #9CA3AF;
  font-size: 13px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-desc {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.7;
  max-width: 320px;
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid #1F2430;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6B7280;
}

/* TOAST */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111;
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  border-left: 4px solid #00D26A;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MEJORAS DE EXPERIENCIA DE USUARIO (UX) — MÓVIL Y TODOS LOS DISPOSITIVOS
   1) Estilos faltantes que las páginas ya usaban (ofertas, carrito, FAB, receta)
   2) Base UX global (táctil, accesible, sin scroll horizontal)
   3) Componentes móviles: nav inferior, drawer de filtros, barra de compra
   4) Responsive completo: ≤1024, ≤768, ≤560
   ========================================================================== */

/* ---------- 1a. Título del drawer del carrito (categoria/producto/ofertas) */
.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-drawer-title svg {
  flex-shrink: 0;
}

/* Bloque de texto del logo: solo index.html lo definía en su <style> inline */
.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-title, .brand-subtitle-gold, .brand-tagline-small {
  display: block;
}

/* Contenedor de items del carrito en las páginas que usan otra clase */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 1b. Botón flotante de WhatsApp (compartido en las 4 páginas) */
.whatsapp-float-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
/* Con el carrito abierto no se muestra: el drawer ya trae su botón «Cotizar vía WhatsApp» */
body.cart-open .whatsapp-float-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.wa-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  flex-shrink: 0;
  animation: waPulse 2.5s infinite;
}
.wa-fab:hover {
  background: #1ebe5a;
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
  animation: none;
}
@keyframes waPulse {
  0%   { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-icon-open, .wa-icon-close {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.wa-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}
.whatsapp-float-container.expanded .wa-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}
.whatsapp-float-container.expanded .wa-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.whatsapp-float-container.expanded .wa-fab {
  animation: none;
  background: #e53935;
  box-shadow: 0 6px 24px rgba(229, 57, 53, 0.4);
}
.wa-title-tag {
  background: rgba(10, 10, 10, 0.85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.whatsapp-float-container.expanded .wa-title-tag {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.wa-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px 10px 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  min-width: 190px;
}
.wa-option-btn:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.3);
  transform: translateX(0) scale(1.02) !important;
}
#waOpt1 { transition-delay: 0.05s; }
#waOpt2 { transition-delay: 0.12s; }
.whatsapp-float-container.expanded .wa-option-btn {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0) scale(1);
}
.wa-opt-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.wa-opt-info { display: flex; flex-direction: column; gap: 2px; }
.wa-opt-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
}
.wa-opt-num {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.01em;
}

/* ---------- 1c. Tarjetas de producto de la página de Ofertas */
.product-svg-wrapper {
  width: 160px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-svg-wrapper {
  transform: scale(1.08) rotate(-1deg);
}
.product-info-block {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.product-category-name {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.product-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-subdesc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}
.product-price-block {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.product-price-current {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--font-body);
  color: var(--text-main);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.product-price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}
.product-discount-pill {
  font-size: 10px;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- 1d. Modal de receta (variante con zona de arrastre) */
.rx-product-summary {
  background: var(--bg-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.rx-upload-zone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
}
.rx-upload-zone h4 {
  font-size: 13px;
  font-weight: 800;
  margin: 8px 0 4px;
  color: var(--text-main);
}
.rx-upload-zone p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.btn-file-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0052FF;
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
}
.btn-file-select:hover {
  background: #0043cc;
}
.rx-file-preview {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #166534;
  margin-top: 12px;
}
.btn-submit-rx {
  background: #0052FF;
  color: #FFFFFF;
  padding: 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit-rx:hover {
  background: #0043cc;
}
/* Inputs del formulario de receta sin clase propia */
.prescription-modal .form-group input:not([type="file"]),
.prescription-modal .form-group textarea,
.prescription-modal .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--text-main);
}
.prescription-modal .form-group input:focus,
.prescription-modal .form-group textarea:focus,
.prescription-modal .form-group select:focus {
  border-color: #000;
}
.prescription-modal .form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* ---------- 2. BASE UX GLOBAL ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
}
a, button, input, select, label {
  -webkit-tap-highlight-color: transparent;
}
a, button, [onclick] {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #0052FF;
  outline-offset: 2px;
  border-radius: 4px;
}
body.no-scroll {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. COMPONENTES MÓVILES (inyectados vía hogar-app.js) ---------- */
/* Barra de navegación inferior */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: none;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.mbn-item {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.mbn-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mbn-item.active {
  color: var(--accent);
}
.mbn-item.mbn-wa {
  color: #128C4B;
}
.mbn-cart-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 24px);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* Botón flotante para abrir filtros (página principal) */
.mobile-filter-toggle {
  display: none;
  position: fixed;
  left: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-filter-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Barra de compra fija (página de producto) */
.mobile-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: none;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  padding: 10px 14px;
  gap: 12px;
  align-items: center;
}
.mbb-price-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mbb-price-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mbb-price {
  font-size: 19px;
  font-weight: 900;
  color: #E60000;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.btn-mbb-add {
  flex: 1;
  min-height: 46px;
  background: #FFD814;
  border: 1px solid #FCD200;
  color: #0F1111;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: inherit;
  padding: 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-mbb-add svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-mbb-add:active {
  background: #F7CA00;
}
.btn-mbb-wa {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.btn-mbb-wa svg {
  width: 22px;
  height: 22px;
}

/* ---------- 4a. RESPONSIVE ≤ 1024px (tablets) ---------- */
@media (max-width: 1024px) {
  /* Storefront apilado y grid de 2 columnas (reglas originales restauradas) */
  .storefront-container {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
  }
  .socks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* Nav de categorías: chips deslizables horizontalmente (evita desbordes) */
  .nav-container { padding: 0 10px; }
  .nav-links {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 4px;
    scroll-snap-type: x proximity;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
  }
  .nav-item.active::after { display: none; }
  .nav-item.active {
    background: #000;
    color: #fff;
    border-color: #000;
  }
  .nav-item.rx-special { color: var(--accent-cyan); }
  .nav-item.nav-ofertas {
    border-radius: 9999px !important;
    padding: 9px 16px !important;
    margin-left: 0;
  }
}

/* ---------- 4b. RESPONSIVE ≤ 768px (móviles y tablets verticales) ---------- */
@media (max-width: 768px) {
  /* Componentes móviles visibles */
  .mobile-bottom-nav { display: flex; }
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  body.has-mobile-buy-bar {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-buy-bar { display: flex; }
  .whatsapp-float-container { display: none !important; }

  /* Ticker superior compacto */
  .top-ticker {
    padding: 6px 12px;
    font-size: 10.5px;
    gap: 10px;
  }
  .top-ticker-links { display: none; }
  .top-ticker-content { min-width: 0; }
  .top-ticker-content span:not(.badge-rd) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .badge-rd { flex-shrink: 0; }

  /* Header en dos filas: logo+acciones / búsqueda */
  .site-header { position: static; }
  .header-main {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .brand-logo-container { gap: 10px; }
  .brand-logo-img {
    width: 52px;
    height: 52px;
    border-width: 2px;
  }
  .brand-title { font-size: 16px; }
  .brand-subtitle-gold { font-size: 10px; margin-top: 1px; }
  .brand-tagline-small { display: none; }
  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }
  .search-wrapper { padding: 10px 14px; }
  .header-actions {
    margin-left: auto;
    gap: 4px;
  }
  .action-btn {
    font-size: 10px;
    gap: 2px;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  /* Botones redundantes con la barra inferior */
  .header-actions .btn-inicio-top,
  .header-actions .btn-volver-tienda { display: none; }

  /* Nav de categorías: chips deslizables horizontalmente */
  .nav-container { padding: 0 10px; }
  .nav-links {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 4px;
    scroll-snap-type: x proximity;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 11.5px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    scroll-snap-align: start;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .nav-item.active::after { display: none; }
  .nav-item.active {
    background: #000;
    color: #fff;
    border-color: #000;
  }
  .nav-item.rx-special { color: var(--accent-cyan); }
  .nav-item.nav-ofertas {
    border-radius: 9999px !important;
    padding: 9px 16px !important;
    margin-left: 0;
    min-height: 36px;
  }

  /* Hero: alto automático, texto abajo, botones a lo ancho */
  .hero-slider-section {
    padding: 0 12px;
    margin: 12px auto;
  }
  .hero-banner-card {
    height: auto;
    min-height: 460px;
    align-items: stretch;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.3) 0%, rgba(8, 10, 16, 0.55) 45%, rgba(8, 10, 16, 0.94) 100%);
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 90px 16px 58px;
    max-width: 100%;
    width: 100%;
  }
  .hero-tag {
    font-size: 10px;
    padding: 5px 12px;
    align-self: flex-start;
  }
  .hero-title {
    font-size: clamp(22px, 6.2vw, 30px);
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 13.5px;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
  }
  .slider-arrow-btn {
    width: 40px;
    height: 40px;
  }
  .slider-arrow-btn.prev { left: 10px; }
  .slider-arrow-btn.next { right: 10px; }
  .slider-dots-container {
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    gap: 8px;
  }
  /* Zona táctil ampliada en los puntos del slider */
  .slider-dot {
    position: relative;
  }
  .slider-dot::after {
    content: '';
    position: absolute;
    inset: -12px -6px;
  }

  /* Storefront: filtros pasan a drawer lateral */
  .storefront-container {
    padding: 0 14px;
    margin-top: 20px;
    gap: 20px;
  }
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    z-index: 1001;
    background: var(--bg-page);
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    margin: 0;
  }
  .filters-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-modal);
  }
  .mobile-filter-header { display: flex; }
  .mobile-filter-toggle { display: inline-flex; }

  /* Toolbar y grid de productos */
  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
  }
  .socks-grid { gap: 14px; }

  /* Tarjetas de producto más compactas */
  .product-image-container { height: 240px; }
  .product-visual-wrapper, .product-svg-wrapper {
    width: 140px;
    height: 185px;
  }
  .product-details, .product-info-block { padding: 14px; }
  .product-name, .product-title { font-size: 14.5px; }
  .card-action-buttons button {
    min-height: 46px;
  }

  /* Banner del temporizador de ofertas */
  .ofertas-timer-inner { padding: 12px 14px; }

  /* Hero de categoría y ofertas */
  .category-hero-section { padding: 26px 16px 24px; }
  .ofertas-hero-section { padding: 32px 16px 28px; }
  .category-toolbar, .ofertas-filter-bar { padding: 0 14px; }
  .btn-inicio-top { width: auto; }

  /* Chips de ofertas deslizables */
  .ofertas-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ofertas-category-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .ofertas-category-chips::-webkit-scrollbar { display: none; }
  .oferta-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 14px;
  }

  /* Página de producto: galería con miniaturas horizontales abajo
     (especificidad doble para vencer al <style> inline de la página) */
  .product-breadcrumbs {
    padding: 0 14px;
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .product-detail-layout {
    padding: 0 14px;
    margin: 16px auto 40px;
    gap: 22px;
  }
  .product-detail-layout .amazon-gallery-wrap {
    flex-direction: column-reverse;
    position: static;
    gap: 12px;
  }
  .product-detail-layout .amazon-thumbnails-column {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .product-detail-layout .amazon-thumbnails-column::-webkit-scrollbar { display: none; }
  .product-detail-layout .thumb-btn {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
  }
  .product-detail-layout .amazon-main-image-box {
    flex: 0 0 auto;
    height: 340px;
    padding: 16px;
  }
  .product-detail-layout .amazon-buy-box {
    position: static;
    padding: 16px;
  }
  .product-detail-layout .detail-product-title { font-size: clamp(20px, 5.6vw, 26px); }
  .product-detail-layout .detail-price-current { font-size: 28px; }
  .product-detail-layout .detail-price-main { flex-wrap: wrap; }

  /* Modales como hoja inferior (bottom sheet) */
  .prescription-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .prescription-modal.open { transform: translateY(0); }
  .modal-header { padding: 16px; }
  .modal-header h3 { font-size: 15px; padding-right: 30px; }
  .modal-body { padding: 16px; gap: 16px; }
  .modal-footer {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    position: sticky;
    bottom: 0;
  }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .btn-modal-submit {
    flex: 1;
    min-height: 46px;
    padding: 10px 18px;
  }
  .btn-modal-cancel { min-height: 46px; padding: 10px 18px; }

  /* Evitar zoom automático de iOS en inputs */
  .search-input,
  .form-input,
  .form-select,
  .sort-select,
  .buy-box-qty-select,
  .prescription-modal .form-group input:not([type="file"]),
  .prescription-modal .form-group textarea,
  .prescription-modal .form-group select {
    font-size: 16px;
  }

  /* Carrito a pantalla completa con botón de cierre amplio */
  .cart-drawer { max-width: 100%; }
  .cart-drawer-header { padding: 14px 16px; }
  .cart-items-list, .cart-items-container { padding: 14px 16px; }
  .cart-drawer-footer {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .close-drawer-btn {
    font-size: 26px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Toast centrado sobre la barra inferior */
  .toast-notice {
    left: 12px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    justify-content: center;
    text-align: center;
  }

  /* Footer compacto */
  .site-footer { padding: 36px 16px 20px; }
  .footer-grid { margin-bottom: 30px; }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* Contenedores con padding en línea (categoria/ofertas) */
  main[style*="padding: 0 24px"] {
    padding: 0 14px !important;
  }
}

/* ---------- 4c. RESPONSIVE ≤ 700px ---------- */
@media (max-width: 700px) {
  .socks-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-image-container { height: 250px; }
  .product-visual-wrapper, .product-svg-wrapper {
    width: 150px;
    height: 195px;
  }
}

/* ---------- 4d. RESPONSIVE ≤ 560px ---------- */
@media (max-width: 560px) {
  .brand-title { font-size: 15px; }
  .brand-logo-img { width: 46px; height: 46px; }
  .hero-banner-card { min-height: 430px; }
  .hero-content { padding: 80px 14px 56px; }
  .timer-unit { min-width: 44px; padding: 6px 8px; }
  .timer-num { font-size: 18px; }
  .hero-timer-block { min-width: 56px; padding: 8px 10px; }
  .hero-timer-num { font-size: 26px; }
  .badges-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   INVENTARIO – PRODUCTO AGOTADO
   ========================================================================== */
.sold-out-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.62);
  color: #E52D27;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.14em;
  pointer-events: none;
}
.stock-sold-out {
  border: 1px solid rgba(229, 45, 39, 0.25) !important;
  background: rgba(229, 45, 39, 0.06) !important;
}
.stock-sold-out .stock-progress-track { display: none; }

/* ==========================================================
   CRONÓMETROS DE PRODUCTO (fechas del Panel Admin)
   ========================================================== */
.product-timer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #E52D27, #b91c1c);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 9999px;
  margin: 2px 0 8px;
  width: fit-content;
  white-space: nowrap;
}
.product-timer-chip b,
.product-timer-big b {
  font-variant-numeric: tabular-nums;
}
.product-timer-big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #E52D27, #b91c1c);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 10px 0;
}
.product-timer-big b {
  font-size: 22px;
}

/* ════════════════════════════════════════════════════════════════
   FORMULARIO DE SOLICITUD DE ENVÍO (paso previo al WhatsApp)
   ════════════════════════════════════════════════════════════════ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(10, 12, 20, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.checkout-overlay.open { display: flex; }
.checkout-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 22px 18px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: ckIn 0.22s ease;
}
@keyframes ckIn {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.checkout-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 27px;
  line-height: 1;
  color: #9CA3AF;
  cursor: pointer;
}
.checkout-close:hover { color: #111; }
.checkout-title { font-size: 19px; font-weight: 900; margin: 0 0 4px; color: #0B0D17; }
.checkout-sub { font-size: 12.5px; color: #6B7280; margin: 0 0 12px; line-height: 1.5; }
.checkout-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin: 12px 0 5px;
}
.checkout-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  color: #111;
  background: #fff;
}
.checkout-input:focus {
  outline: none;
  border-color: #0052FF;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}
.checkout-textarea { resize: vertical; min-height: 72px; }
.checkout-error {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 12px 0 0;
  line-height: 1.45;
}
.checkout-summary {
  margin-top: 14px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}
.checkout-actions { display: flex; gap: 10px; margin-top: 16px; }
.checkout-btn-cancel {
  flex: 0 0 34%;
  border: 1.5px solid #D1D5DB;
  background: #fff;
  color: #374151;
  font-weight: 800;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.checkout-btn-cancel:hover { background: #F3F4F6; }
.checkout-btn-send {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 12px 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}
.checkout-btn-send:hover { background: #1ebe5a; }
@media (max-width: 480px) {
  .checkout-actions { flex-direction: column-reverse; }
  .checkout-btn-cancel { width: 100%; flex: none; }
}

/* ════════════════════════════════════════════════════════════════
   BOTÓN COMPARTIR PRODUCTO (tarjetas del catálogo + página producto)
   ════════════════════════════════════════════════════════════════ */
.product-share-btn {
  position: absolute;
  top: 56px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 2;
  cursor: pointer;
}
.product-share-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}
.btn-buybox-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 0;
  margin-top: 10px;
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-buybox-share:hover {
  border-color: #0052FF;
  color: #0052FF;
}

/* ============================================================
   VIDEO CON SONIDO – Botón activar/silenciar sobre los videos
   de los productos. Los videos arrancan silenciados (los
   navegadores bloquean el audio automático) y el visitante
   activa el sonido con este botón.
   ============================================================ */
.video-sound-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-sound-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #111827;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.video-sound-btn:hover {
  transform: scale(1.12);
}

.video-sound-btn.is-on {
  background: #0052FF;
  color: #FFFFFF;
}

/* Variante de la galería del producto: arriba a la derecha,
   para no tapar la barra de controles del reproductor */
.video-sound-btn--top {
  bottom: auto;
  top: 8px;
}

.video-sound-btn .ico-on {
  display: none;
}

.video-sound-btn.is-on .ico-on {
  display: block;
}

.video-sound-btn.is-on .ico-off {
  display: none;
}

@media (max-width: 768px) {
  .video-sound-btn {
    width: 38px;
    height: 38px;
  }
}
