/* =============================================
   NEXUS RAÍCES - Bio-Artesanía Sostenible
   Sistema de Diseño + Animaciones
   ============================================= */

/* ===== 1. DESIGN TOKENS ===== */
:root {
  --nexus-bg: #F4F1EA;
  --nexus-cta: #B84A39;
  --nexus-text: #2C2520;
  --nexus-green: #2E7D32;
  --nexus-teal: #00897B;
  --nexus-gold: #B9A16B;
  --nexus-beige-light: #EDE8DC;
  --nexus-shadow-dark: #DCD8CE;
  --nexus-shadow-light: #FFFFFF;
  --nexus-font: 'Jost', sans-serif;
  --nexus-font-deco: 'Allura', cursive;
  
  --anim-fast: 0.2s;
  --anim-normal: 0.3s;
  --anim-slow: 0.5s;
  --anim-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --anim-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --anim-spring: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

body {
  background-color: var(--nexus-bg);
  color: var(--nexus-text);
  font-family: var(--nexus-font);
}

/* ===== 2. KEYFRAMES ===== */
@keyframes nexus-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes nexus-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.8; }
}

@keyframes nexus-shimmer {
  0% { background-position: -300px 0; }
  100% { background-position: calc(300px + 100%) 0; }
}

@keyframes nexus-slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nexus-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nexus-fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes nexus-fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes nexus-bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 0.8; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes nexus-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes nexus-wavy {
  0%, 100% { transform: translateY(0) scaleY(1); }
  25% { transform: translateY(-3px) scaleY(1.05); }
  50% { transform: translateY(0) scaleY(0.95); }
  75% { transform: translateY(2px) scaleY(1.02); }
}

@keyframes nexus-countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nexus-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes nexus-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes nexus-ripple {
  0% { box-shadow: 0 0 0 0 rgba(184, 74, 57, 0.4); }
  100% { box-shadow: 0 0 0 18px rgba(184, 74, 57, 0); }
}

@keyframes nexus-typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes nexus-blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--nexus-cta); }
}

@keyframes nexus-leafGrow {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes nexus-leafGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(46,125,50,0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(46,125,50,0.4)); }
}

@keyframes nexus-particle {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-20px) translateX(10px) scale(1.1); opacity: 0.8; }
  50% { transform: translateY(-10px) translateX(-5px) scale(0.9); opacity: 0.4; }
  75% { transform: translateY(-25px) translateX(8px) scale(1.05); opacity: 0.7; }
}

@keyframes nexus-heroShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== 3. UTILITY CLASSES ===== */
.nexus-float { animation: nexus-float 3s ease-in-out infinite; }
.nexus-pulse { animation: nexus-pulse 2s ease-in-out infinite; }
.nexus-bounce-in { animation: nexus-bounceIn 0.5s var(--anim-bounce); }
.nexus-spin { animation: nexus-spin 1.5s linear infinite; }
.nexus-wavy { animation: nexus-wavy 2s ease-in-out infinite; }
.nexus-shake { animation: nexus-shake 0.4s ease-out; }
.nexus-ripple { animation: nexus-ripple 1.5s infinite; }
.nexus-fade-in-up { animation: nexus-fadeInUp 0.6s var(--anim-smooth); }
.nexus-fade-in-left { animation: nexus-fadeInLeft 0.5s var(--anim-smooth); }
.nexus-fade-in-right { animation: nexus-fadeInRight 0.5s var(--anim-smooth); }
.nexus-slide-down { animation: nexus-slideDown 0.4s var(--anim-bounce); }
.nexus-draw-anim { stroke-dasharray: 100; animation: nexus-draw 1s ease-out forwards; }

.nexus-leaf-glow { animation: nexus-leafGlow 3s ease-in-out infinite; }
.nexus-particle { animation: nexus-particle 5s ease-in-out infinite; }
.nexus-particle:nth-child(2n) { animation-duration: 4s; animation-delay: -1s; }
.nexus-particle:nth-child(3n) { animation-duration: 6s; animation-delay: -2s; }

/* Transición de página */
.page-transition {
  animation: nexus-fadeInUp 0.5s var(--anim-smooth);
}

/* ===== 4. NEUMORFISMO ===== */
.neumo {
  background: var(--nexus-bg);
  box-shadow: 5px 5px 10px var(--nexus-shadow-dark),
              -5px -5px 10px var(--nexus-shadow-light);
  border-radius: 16px;
  transition: all var(--anim-normal) var(--anim-smooth);
}

.neumo-pressed {
  background: var(--nexus-bg);
  box-shadow: inset 3px 3px 7px var(--nexus-shadow-dark),
              inset -3px -3px 7px var(--nexus-shadow-light);
  border-radius: 16px;
}

.neumo:hover {
  box-shadow: 6px 6px 14px var(--nexus-shadow-dark),
              -6px -6px 14px var(--nexus-shadow-light);
  transform: translateY(-2px);
}

.neumo-btn {
  background: var(--nexus-bg);
  box-shadow: 4px 4px 8px var(--nexus-shadow-dark),
              -4px -4px 8px var(--nexus-shadow-light);
  border: none;
  border-radius: 12px;
  transition: all var(--anim-normal) var(--anim-smooth);
  cursor: pointer;
  color: var(--nexus-text);
}

.neumo-btn:hover {
  box-shadow: 6px 6px 12px var(--nexus-shadow-dark),
              -6px -6px 12px var(--nexus-shadow-light);
  transform: translateY(-3px);
}

.neumo-btn:active {
  box-shadow: inset 2px 2px 6px var(--nexus-shadow-dark),
              inset -2px -2px 6px var(--nexus-shadow-light);
  transform: translateY(0);
}

.neumo-btn-primary {
  background: var(--nexus-cta);
  color: white;
  box-shadow: 4px 4px 8px rgba(184, 74, 57, 0.3),
              -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.neumo-btn-primary:hover {
  background: #a33d2e;
  color: white;
  box-shadow: 6px 6px 12px rgba(184, 74, 57, 0.4),
              -6px -6px 12px rgba(255, 255, 255, 0.5);
}

.neumo-btn-green {
  background: var(--nexus-green);
  color: white;
  box-shadow: 4px 4px 8px rgba(46, 125, 50, 0.3),
              -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.neumo-btn-teal {
  background: var(--nexus-teal);
  color: white;
  box-shadow: 4px 4px 8px rgba(0, 137, 123, 0.3),
              -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.neumo-input {
  background: var(--nexus-bg);
  box-shadow: inset 3px 3px 7px var(--nexus-shadow-dark),
              inset -3px -3px 7px var(--nexus-shadow-light);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all var(--anim-normal) var(--anim-smooth);
  color: var(--nexus-text);
}

.neumo-input:focus {
  outline: none;
  box-shadow: inset 4px 4px 10px var(--nexus-shadow-dark),
              inset -4px -4px 10px var(--nexus-shadow-light),
              0 0 0 2px rgba(184, 74, 57, 0.2);
}

/* ===== 4b. LOGO HEADER FIX ===== */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo__image {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}
.header-mobile .logo {
  max-width: 140px;
  margin: 0 auto;
}
.header-mobile .logo__image {
  max-height: 38px;
  width: auto;
}
.header-desk .logo__image {
  max-height: 56px;
}
@media (max-width: 576px) {
  .header-mobile .logo { max-width: 110px; }
  .header-mobile .logo__image { max-height: 32px; }
}

/* ===== 5. HEADER TOOLS ICONS ===== */
.header-tools__item {
  transition: transform var(--anim-normal) var(--anim-bounce);
}

.header-tools__item:hover {
  transform: scale(1.15);
}

.header-tools__item:hover svg {
  color: var(--nexus-cta) !important;
  transition: color var(--anim-fast) var(--anim-smooth);
}

.cart-amount {
  background: var(--nexus-cta);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -8px;
  right: -8px;
  transition: transform var(--anim-normal) var(--anim-bounce);
}

.cart-amount.pulse {
  animation: nexus-pulse 0.6s ease-in-out 2;
}

/* ===== 6. TOAST NOTIFICATION ===== */
.nexus-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--nexus-bg);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.15),
              -4px -4px 12px rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: nexus-slideDown 0.4s var(--anim-bounce);
  border-left: 4px solid var(--nexus-green);
}

.nexus-toast.error { border-left-color: #c32929; }
.nexus-toast.info { border-left-color: var(--nexus-teal); }

.nexus-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nexus-toast-icon.success { background: #def2d7; color: var(--nexus-green); }
.nexus-toast-icon.error { background: #ecc8c5; color: #c32929; }
.nexus-toast-icon.info { background: #cde9f6; color: var(--nexus-teal); }

.nexus-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  opacity: 0.5;
  transition: opacity var(--anim-fast);
}

.nexus-toast-close:hover { opacity: 1; }

/* ===== 7. SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, #EDE8DC 25%, #E2DCCB 50%, #EDE8DC 75%);
  background-size: 300px 100%;
  animation: nexus-shimmer 1.5s infinite;
  border-radius: 12px;
}

.skeleton-card {
  padding: 0;
  overflow: hidden;
}

.skeleton-card-img {
  height: 200px;
  width: 100%;
}

.skeleton-card-body {
  padding: 16px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  width: 80%;
}

.skeleton-line.short { width: 50%; }
.skeleton-line.long { width: 95%; }

/* ===== 8. PRODUCT CARDS ===== */
.product-card {
  background: var(--nexus-bg);
  box-shadow: 4px 4px 10px var(--nexus-shadow-dark),
              -4px -4px 10px var(--nexus-shadow-light);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--anim-bounce),
              box-shadow 0.4s var(--anim-smooth);
  cursor: pointer;
  animation: nexus-fadeInUp 0.5s var(--anim-smooth) both;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 8px 8px 20px var(--nexus-shadow-dark),
              -8px -8px 20px var(--nexus-shadow-light);
}

.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s var(--anim-smooth);
}

.product-card:hover .product-card-img {
  transform: scale(1.08);
}

.product-card-body {
  padding: 16px;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--nexus-text);
}

.product-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nexus-cta);
}

.product-card-eco {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--nexus-green);
  margin-top: 4px;
}

.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.03);
  opacity: 0;
  transition: opacity var(--anim-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-btn {
  background: var(--nexus-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 2px 2px 6px var(--nexus-shadow-dark),
              -2px -2px 6px var(--nexus-shadow-light);
  cursor: pointer;
  transition: all var(--anim-normal) var(--anim-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-btn:hover {
  transform: scale(1.15);
  box-shadow: 3px 3px 8px var(--nexus-shadow-dark),
              -3px -3px 8px var(--nexus-shadow-light);
}

.product-card-btn.active {
  color: var(--nexus-cta);
}

/* ===== 9. ECO BADGES ===== */
.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--nexus-green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.eco-badge-large {
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* ===== 10. IMPACT METRICS ===== */
.metric-card {
  background: var(--nexus-bg);
  box-shadow: 4px 4px 10px var(--nexus-shadow-dark),
              -4px -4px 10px var(--nexus-shadow-light);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: transform var(--anim-normal) var(--anim-smooth);
  animation: nexus-fadeInUp 0.6s var(--anim-smooth) both;
}

.metric-card:hover {
  transform: translateY(-4px);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--nexus-cta);
  line-height: 1;
}

.metric-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.metric-eco .metric-number { color: var(--nexus-green); }
.metric-water .metric-number { color: var(--nexus-teal); }

/* ===== 11. HERO SECTION ===== */
.nexus-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F4F1EA 0%, #EDE8DC 50%, #E2DCCB 100%);
}

.nexus-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(46,125,50,0.03) 0%, transparent 70%);
  animation: nexus-float 8s ease-in-out infinite;
}

.nexus-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--nexus-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  animation: nexus-fadeInUp 0.8s var(--anim-smooth);
}

.nexus-hero-title em,
.nexus-hero-title .nexus-deco {
  font-family: var(--nexus-font-deco);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nexus-hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-top: 16px;
  line-height: 1.6;
  animation: nexus-fadeInUp 0.8s var(--anim-smooth) 0.2s both;
}

.nexus-hero-subtitle span {
  font-family: var(--nexus-font-deco);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.nexus-hero-eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--nexus-green);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  animation: nexus-fadeInUp 0.6s var(--anim-smooth);
}

/* ===== 12. HOW IT WORKS ===== */
.step-card {
  text-align: center;
  padding: 24px;
  animation: nexus-fadeInUp 0.5s var(--anim-smooth) both;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--nexus-cta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
  transition: transform var(--anim-normal) var(--anim-bounce);
}

.step-card:hover .step-number {
  transform: scale(1.15);
}

/* ===== 13. MAP ===== */
.eco-map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 4px 4px 12px var(--nexus-shadow-dark),
              -4px -4px 12px var(--nexus-shadow-light);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  animation: nexus-pulse 1.5s ease-in-out infinite;
  margin-right: 6px;
}

/* ===== 14. INPUT ANIMATIONS ===== */
.input-underline {
  position: relative;
}

.input-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--nexus-cta);
  transition: all var(--anim-normal) var(--anim-smooth);
  transform: translateX(-50%);
}

.input-underline:focus-within::after {
  width: 100%;
}

/* ===== 15. FAVORITE BUTTON ===== */
.btn-favorite {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform var(--anim-normal) var(--anim-bounce);
}

.btn-favorite:hover {
  transform: scale(1.2);
}

.btn-favorite.active svg path {
  fill: var(--nexus-cta);
  transition: fill var(--anim-normal);
}

/* ===== 16. ECO IMPACT CALCULATOR ===== */
.eco-calculator {
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.05), rgba(46, 125, 50, 0.05));
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(0, 137, 123, 0.15);
  animation: nexus-fadeInUp 0.5s var(--anim-smooth);
}

.eco-calculator-icon {
  font-size: 2.5rem;
  color: var(--nexus-teal);
  animation: nexus-wavy 2s ease-in-out infinite;
}

.eco-calculator-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--nexus-teal);
}

/* ===== 17. PROGRESS STEPS (CHECKOUT) ===== */
.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.progress-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nexus-bg);
  box-shadow: inset 2px 2px 5px var(--nexus-shadow-dark),
              inset -2px -2px 5px var(--nexus-shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #999;
  transition: all var(--anim-normal) var(--anim-bounce);
}

.progress-step.active .progress-step-circle {
  background: var(--nexus-cta);
  color: white;
  box-shadow: 2px 2px 6px rgba(184, 74, 57, 0.3),
              -2px -2px 6px rgba(255,255,255,0.5);
  animation: nexus-bounceIn 0.4s var(--anim-bounce);
}

.progress-step.done .progress-step-circle {
  background: var(--nexus-green);
  color: white;
}

/* ===== 18. LOADING SPINNER ===== */
.nexus-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--nexus-shadow-dark);
  border-top-color: var(--nexus-cta);
  border-radius: 50%;
  animation: nexus-spin 0.8s linear infinite;
}

.nexus-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

.nexus-spinner-green {
  border-top-color: var(--nexus-green);
}

/* ===== 19. RIPPLE BUTTON ===== */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ===== 20. STAGGER ANIMATIONS ===== */
.stagger-children > * {
  animation: nexus-fadeInUp 0.5s var(--anim-smooth) both;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ===== 21. SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--nexus-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--nexus-shadow-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--nexus-cta);
}

/* ===== 22. PROFESSIONAL REFINEMENTS ===== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(184, 74, 57, 0.15);
  color: var(--nexus-text);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  color: var(--nexus-text);
}

a {
  color: var(--nexus-cta);
  transition: color var(--anim-fast) var(--anim-smooth);
}

a:hover {
  color: #a33d2e;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nexus-shadow-dark), transparent);
}

/* Enhanced neumorphism with subtle depth */
.neumo {
  border: 1px solid rgba(255,255,255,0.5);
}

.neumo:hover {
  border-color: rgba(255,255,255,0.8);
}

/* Professional card hover */
.product-card {
  position: relative;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity var(--anim-normal) var(--anim-smooth);
  pointer-events: none;
}

.product-card:hover::after {
  opacity: 1;
}

/* Better buttons */
.neumo-btn {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.neumo-btn-primary {
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Smooth image loading */
.product-card-img {
  background: var(--nexus-beige-light);
  transition: transform 0.6s var(--anim-smooth), opacity 0.4s var(--anim-smooth);
}

/* Eco badge refinement */
.eco-badge {
  letter-spacing: 0.02em;
}

/* Better metrics */
.metric-card {
  border: 1px solid rgba(255,255,255,0.6);
}

.metric-number {
  font-feature-settings: 'tnum';
}

/* Section spacing consistency */
section, .section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section, .section { padding: 48px 0; }
}

/* Search bar input refinement */
#searchInput::placeholder {
  color: #aaa;
  font-size: 0.85rem;
}

/* Better filter pills */
.filter-pill {
  transition: all var(--anim-normal) var(--anim-bounce);
}

.filter-pill.active {
  background: var(--nexus-cta) !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(184, 74, 57, 0.3);
}

/* Page size buttons */
.page-size-btn.active {
  background: var(--nexus-cta) !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(184,74,57,0.3) !important;
}

/* Empty states */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  animation: nexus-fadeInUp 0.5s var(--anim-smooth);
}

/* Cart & checkout refinements */
.qty-control__number {
  font-variant-numeric: tabular-nums;
}

/* Payment method cards */
[id^="pm"]:has(input:checked),
[id^="ship"]:has(input:checked) {
  border: 2px solid var(--nexus-cta) !important;
  background: rgba(184, 74, 57, 0.03) !important;
}

/* Toast refinement */
.nexus-toast {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* Desktop header refinement */
.header-desk .navigation__link {
  position: relative;
  font-weight: 500;
}

.header-desk .navigation__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--nexus-cta);
  transition: all var(--anim-normal) var(--anim-smooth);
  transform: translateX(-50%);
}

.header-desk .navigation__link:hover::after {
  width: 100%;
}

/* Auth refinement */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 40px;
  background: linear-gradient(180deg, var(--nexus-bg) 0%, #EDE8DC 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
}

/* Price formatting */
.price {
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
}

/* ===== 23. RESPONSIVE ===== */
@media (max-width: 992px) {
  .header-desk .logo__image { max-height: 48px; }
}
@media (max-width: 768px) {
  .nexus-hero-title {
    font-size: 2rem;
  }
  .nexus-hero-subtitle {
    font-size: 1rem;
  }
  .metric-number {
    font-size: 1.5rem;
  }
  .product-card-img {
    height: 160px;
  }
  .auth-card { padding: 28px 20px; }
}

@media (max-width: 576px) {
  .nexus-hero-title {
    font-size: 1.6rem;
  }
  .product-card-img {
    height: 140px;
  }
  .auth-card { padding: 24px 16px; }
}

/* ===== 24. RESPONSIVE GRIDS ===== */
.nexus-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.eco-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .nexus-grid-2,
  .eco-grid {
    grid-template-columns: 1fr;
  }
}
