/* ============================================
   SALUDMEDIC — Design System & Styles
   Ortopedia · Instrumentos Médicos
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  /* Brand Colors */
  --primary: #143d6a;
  --primary-dark: #0d2a4a;
  --primary-rgb: 20, 61, 106;
  --accent: #007bc0;
  --accent-dark: #005f94;
  --accent-rgb: 0, 123, 192;
  --accent-light: #e8f4fd;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;

  /* Functional */
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(var(--primary-rgb), 0.06);
  --shadow-md: 0 4px 16px rgba(var(--primary-rgb), 0.08);
  --shadow-lg: 0 8px 32px rgba(var(--primary-rgb), 0.12);
  --shadow-xl: 0 16px 48px rgba(var(--primary-rgb), 0.16);

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 80px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: var(--radius-full);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 16px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-left a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
}

.top-bar-left a:hover {
  color: var(--white);
}

.top-bar-left a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-right a {
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.top-bar-right a:hover {
  color: var(--white);
  transform: scale(1.15);
}

.top-bar-right a svg {
  width: 18px;
  height: 18px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--white);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  transition: height var(--transition-base);
}

.navbar.scrolled .navbar-logo img {
  height: 40px;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
}

.navbar-logo-text span:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.navbar-logo-text span:last-child {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--accent);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-cta .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 100px 32px 40px;
  transition: right var(--transition-slow);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- HERO SLIDER ---------- */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  padding: 40px 0;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

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

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.88) 0%, rgba(var(--accent-rgb), 0.72) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0;
  margin-left: 0;
}

.hero-badges-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeInDown 0.6s var(--ease-out) 0.2s both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: fadeInDown 0.6s var(--ease-out) 0.4s both;
}

.hero-content p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  line-height: 1.6;
  animation: fadeInDown 0.6s var(--ease-out) 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s var(--ease-out) 0.7s both;
}

/* Stats Counter Grid inside Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 16px;
  animation: fadeInDown 0.6s var(--ease-out) 0.8s both;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-item .stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #00f0ff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 240, 255, 0.3);
}

.hero-stat-item .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Trust Bullets */
.hero-trust-bullets {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInDown 0.6s var(--ease-out) 0.9s both;
}

.hero-trust-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Hero Right Side Full-Band Graphic with Soft Left Fade (Altomedic UI/UX Style) */
.hero-graphic-side {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-graphic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.05);
  transition: transform 8s ease;
}

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

.hero-graphic-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #143d6a 0%,
    rgba(20, 61, 106, 0.95) 15%,
    rgba(20, 61, 106, 0.7) 32%,
    rgba(20, 61, 106, 0.15) 60%,
    rgba(20, 61, 106, 0) 100%
  );
  pointer-events: none;
}

/* CSS Masking for silky smooth gradient blending into dark blue hero background */
@supports (-webkit-mask-image: linear-gradient(to right, transparent, black)) or (mask-image: linear-gradient(to right, transparent, black)) {
  .hero-graphic-side {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 12%, rgba(0,0,0,0.85) 30%, black 50%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 12%, rgba(0,0,0,0.85) 30%, black 50%, black 100%);
  }
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--accent);
  width: 32px;
}

/* ---------- BENEFITS BAR ---------- */
.benefits-bar {
  background: var(--gray-50);
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

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

.benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.benefit-item:hover .benefit-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.05);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.benefit-text p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- CATEGORIES ---------- */
.categories {
  padding: var(--section-pad) 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.category-card:hover .category-card-img {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--primary-rgb), 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: all var(--transition-base);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.9) 100%);
}

.category-card-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.category-card-overlay .cat-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transform: translateX(10px);
  opacity: 0;
  transition: all var(--transition-base);
}

.category-card:hover .cat-arrow {
  transform: translateX(0);
  opacity: 1;
}

/* ---------- PRODUCTS ---------- */
.products {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.product-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-500);
  background: var(--white);
  border: 2px solid var(--gray-200);
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.product-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: #7dd3fc;
}

.product-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 90%;
  pointer-events: none;
}

.product-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.product-card-badge.new {
  background: linear-gradient(135deg, #143d6a 0%, #007bc0 100%);
  color: #ffffff;
}

.product-card-badge.sale {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
}

.product-card-img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}

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

.product-card-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(60px);
  opacity: 0;
  transition: all var(--transition-base);
}

.product-card:hover .product-card-actions {
  transform: translateX(0);
  opacity: 1;
}

.product-card-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.product-card-action-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.product-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.product-title-clamped,
.product-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s ease;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-title-clamped:hover,
.product-card-info h3:hover {
  color: var(--accent);
}

.product-card-price-section {
  margin-top: auto;
  padding-top: 6px;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 6px;
}

.product-card-price .current {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  display: inline-block;
}

.product-card-price .old {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
}

.product-card-bottom {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.product-card-bottom .btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.product-card-bottom .btn-see-more {
  background: var(--gray-100);
  color: var(--primary);
  flex: 0 0 auto;
  width: 40px;
  padding: 0;
}

.product-card-bottom .btn-see-more:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- SPACES (Arma tu Espacio) ---------- */
.spaces {
  padding: var(--section-pad) 0;
}

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

.space-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.space-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.space-card:hover img {
  transform: scale(1.08);
}

.space-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(var(--primary-rgb), 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 32px;
  transition: all var(--transition-base);
}

.space-card:hover .space-card-overlay {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.9) 100%);
}

.space-card-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.space-card-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.space-card-overlay .btn {
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.space-card:hover .space-card-overlay .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- STATS ---------- */
.stats {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.03);
}

.stats::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.03);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 24px;
}

.testimonial-card-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(20, 61, 106, 0.08);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-inner:hover {
  box-shadow: 0 16px 40px rgba(20, 61, 106, 0.12);
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--warning);
}

.testimonial-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 1.08rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-text::before {
  content: '"';
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 0;
  display: block;
  margin-bottom: 8px;
}

/* Delivery / Product Proof Photo Container */
.testimonial-photo-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 24px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 3px solid #e0f2fe;
  background: #f8fafc;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-photo-box:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 36px rgba(0, 123, 192, 0.22);
  border-color: var(--accent);
}

.testimonial-delivery-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.testimonial-photo-box:hover .testimonial-delivery-img {
  transform: scale(1.03);
}

.testimonial-photo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  letter-spacing: 0.3px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.testimonial-author-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 61, 106, 0.15);
  border: 2px solid var(--white);
}

.testimonial-author-info {
  text-align: left;
}

.testimonial-author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.testimonial-author-info p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 2px 0 0 0;
}

/* Lightbox Modal for Full-Res Delivery Photo */
.testimonial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

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

.testimonial-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0f172a;
}

.testimonial-modal-overlay.active .testimonial-modal-content {
  transform: scale(1);
}

.testimonial-modal-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.testimonial-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.testimonial-modal-close:hover {
  background: rgba(255,255,255,0.45);
  transform: scale(1.1);
}

.testimonial-modal-caption {
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
}

.testimonial-dot.active {
  background: var(--accent);
  width: 28px;
}

/* ---------- CTA / CONTACT ---------- */
.cta-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-form-section {
  padding: var(--section-pad) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: all var(--transition-fast);
  background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-logo img {
  height: 44px;
  filter: brightness(0) invert(1);
}

.footer-brand-logo span {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all var(--transition-base);
  animation: pulse-wp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg,
.whatsapp-float img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

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

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-wp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .navbar-menu {
    display: none;
  }

  .navbar-cta .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 560px;
    height: 560px;
  }

  .hero-graphic-side {
    width: 60%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .top-bar-left {
    gap: 12px;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar-right {
    display: none;
  }

  .hero {
    min-height: auto;
    height: auto;
    padding: 40px 0;
  }

  .hero-graphic-side {
    width: 100%;
    opacity: 0.35;
  }

  .hero-graphic-fade {
    background: linear-gradient(to bottom, rgba(20, 61, 106, 0.8) 0%, rgba(20, 61, 106, 0.95) 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero-content {
    margin-left: 0;
    text-align: center;
    max-width: 100%;
  }

  .hero-badges-wrapper, .hero-buttons, .hero-trust-bullets {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-img-card img {
    height: 240px;
  }

  .hero-floating-badge.badge-top {
    top: -10px;
    right: 5px;
  }

  .hero-floating-badge.badge-bottom {
    bottom: -10px;
    left: 5px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid .category-card:last-child {
    grid-column: span 2;
    aspect-ratio: 2/1;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .spaces-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .space-card {
    aspect-ratio: 16/9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 480px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid .category-card:last-child {
    grid-column: span 1;
    aspect-ratio: 3/4;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ============================================
   URGENCY & LIVE COUNTDOWN TIMER STYLES
   ============================================ */

@keyframes urgencyPulse {
  0% { transform: scale(1); box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35); }
  50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(220, 38, 38, 0.55); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35); }
}

@keyframes pulseIndicator {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

.product-card-savings-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.08);
}

.product-card-timer-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-timer-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.card-timer-pulse {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulseIndicator 1.2s infinite ease-in-out;
  display: inline-block;
}

.card-timer-display {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-timer-display .c-unit {
  font-size: 0.7rem;
  font-weight: 700;
  color: #cbd5e1;
}

.card-timer-display .c-unit b {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fbbf24;
  font-family: monospace, monospace;
}

.product-card-urgency-note {
  background: #fefce8;
  color: #b45309;
  border: 1px solid #fef08a;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.73rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================== STORE LAYOUT & SIDEBAR FILTERS (SaludMedic) ==================== */
.store-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.store-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--gray-100);
}

.sidebar-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
}

.sidebar-widget {
  margin-bottom: 24px;
}

.widget-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--gray-400);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-cat-item:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.sidebar-cat-item.active {
  background: var(--primary);
  color: var(--white);
}

.cat-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.sidebar-cat-item.active .cat-count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.price-inputs-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.price-inputs-row input {
  flex: 1;
  width: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  font-family: var(--font-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-inputs-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 192, 0.12);
}

.price-dash {
  color: var(--gray-400);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-filter-apply {
  width: 100%;
  padding: 9px 12px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-filter-apply:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 192, 0.25);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.store-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
}

.results-count-text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.results-count-text strong {
  color: var(--primary);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 600;
}

.sort-wrapper select {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 700;
  background: var(--gray-50);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.sort-wrapper select:focus {
  border-color: var(--accent);
}

.mobile-filter-btn {
  display: none;
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .store-layout-grid {
    grid-template-columns: 1fr;
  }

  .mobile-filter-btn {
    display: flex;
  }

  .store-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 10001;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .store-sidebar.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-close-btn {
    display: block;
  }
}

/* Sidebar Overlay Backdrop for Mobile Off-Canvas Drawer */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (max-width: 992px) {
  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==================== STORE FRONT UTILITY & OPTIMIZATION CLASSES ==================== */
.free-shipping-notice-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 123, 192, 0.22);
  transition: all var(--transition-base);
}

.navbar.scrolled .free-shipping-notice-bar {
  padding: 6px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .free-shipping-notice-bar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

.notice-bar-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-guarantee {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.empty-catalog-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.empty-catalog-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-title-clamped {
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 2.6em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-title-clamped:hover {
  color: var(--accent, #007bc0);
}

/* ========== PRODUCT CARD ACTION BUTTONS (CLEAN & ELEGANT) ========== */
.btn-card-add-cart {
  flex: 1;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  background: #f0f7ff;
  color: #007bc0;
  border: 1.5px solid #007bc0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.btn-card-add-cart:hover {
  background: #007bc0;
  color: #ffffff;
  border-color: #007bc0;
  box-shadow: 0 4px 12px rgba(0, 123, 192, 0.25);
  transform: translateY(-1px);
}

.btn-card-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-card-wa:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-card-details,
.product-card-actions {
  display: none !important;
}

/* ========== NAVBAR CART BUTTON — LUXURY PILL DESIGN ========== */
.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid #007bc0 !important;
  border-radius: 24px !important;
  color: #007bc0 !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 2px 10px rgba(0, 123, 192, 0.12) !important;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

.nav-cart-btn:hover {
  background: #007bc0 !important;
  color: #ffffff !important;
  border-color: #007bc0 !important;
  box-shadow: 0 4px 18px rgba(0, 123, 192, 0.35) !important;
  transform: translateY(-2px);
}

.nav-cart-btn * {
  pointer-events: none;
}

.nav-cart-btn svg {
  transition: transform 0.2s ease;
}

/* ========== 2-STEP CHECKOUT IN CART DRAWER ========== */
.cart-step-view {
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px);
}

.checkout-form-group {
  margin-bottom: 10px;
}

.checkout-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.checkout-form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 135, 212, 0.12);
}

.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-radio-card:hover,
.payment-radio-card.active-payment {
  border-color: var(--accent);
  background: #f0f9ff;
}

.payment-radio-card input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.payment-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-card-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 1.2;
}

.payment-details-info-box {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-cart-btn:hover svg {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 12px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.4);
  border: 2px solid #ffffff;
  animation: cartBadgePulse 2s infinite;
}

@keyframes cartBadgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(226, 232, 240, 0.8);
}

.cart-drawer.active {
  right: 0 !important;
  transform: none !important;
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.cart-drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.cart-drawer-close {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.cart-drawer-close:hover {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.cart-drawer-body::-webkit-scrollbar {
  width: 6px;
}

.cart-drawer-body::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 4px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  position: relative;
}

.cart-item-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 123, 192, 0.1);
  transform: translateY(-2px);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.cart-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-item-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #f8fafc;
  margin-top: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-qty-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.cart-qty-val {
  width: 34px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--gray-900);
}

.cart-item-remove {
  background: #f1f5f9;
  border: 1px solid var(--gray-200);
  color: var(--gray-400);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.08);
}

.cart-drawer-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.03);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.cart-summary-row.total-row {
  padding-top: 12px;
  border-top: 1px dashed var(--gray-300);
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
}

.cart-summary-row.total-row strong {
  color: var(--primary);
  font-size: 1.35rem;
}

.cart-btn-checkout {
  width: 100%;
  justify-content: center;
  padding: 14px 20px !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  border-radius: var(--radius-md) !important;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cart-btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5) !important;
}

.cart-empty-box {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed var(--gray-200);
  margin: 20px 0;
}

.cart-empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  background: #e0f2fe;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

/* ============================================
   AUDITORÍA INTEGRAL UI/UX ENHANCEMENTS
   ============================================ */

/* 🚚 Free Shipping Progress Bar */
.free-shipping-progress-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 123, 192, 0.08);
}

.free-shipping-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.free-shipping-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(203, 213, 225, 0.6);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.free-shipping-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #007bc0 0%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease-out);
  position: relative;
}

.free-shipping-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite ease-in-out;
}

/* Keyframes Animations */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes urgencyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(0.98); }
}

@keyframes pulseIndicator {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Focus Visible for Accessibility (WCAG 2.1) */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile Quick Cart Bar (Bottom Floating for Touch Accessibility) */
.mobile-cart-float-bar {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 80px; /* Leave space for WA floating icon */
  z-index: 999;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(20, 61, 106, 0.4);
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.mobile-cart-float-bar:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .mobile-cart-float-bar {
    display: flex;
  }
}

/* Enhanced Toast Styling */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99999;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}




