/* Fashion Theme Custom Styles - Amazon-like but for Fashion */
:root {
  /* Fashion color palette */
  --primary: #1a1a2e;
  --primary-foreground: #ffffff;
  --secondary: #f5f0e8;
  --secondary-foreground: #1a1a2e;
  --accent: #c9a962;
  --accent-foreground: #1a1a2e;
  --muted: #f5f0e8;
  --muted-foreground: #6b5b4a;
  --border: #e8dfd4;
  --ring: #c9a962;
  
  /* Fashion-specific colors */
  --fashion-gold: #c9a962;
  --fashion-dark: #1a1a2e;
  --fashion-cream: #fdfbf7;
  --fashion-blush: #f5e6e0;
  --fashion-sage: #e8f0e8;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--fashion-cream);
  color: var(--fashion-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--fashion-dark);
}

/* Button styles - Amazon-like but fashion */
.btn-primary {
  background-color: var(--fashion-dark);
  color: var(--fashion-cream);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #2d2d4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--fashion-dark);
  border: 2px solid var(--fashion-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--fashion-dark);
  color: var(--fashion-cream);
}

/* Product card - Amazon-like grid but fashion */
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--fashion-gold);
}

.product-card-image {
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.02);
}

.product-card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--fashion-dark);
  margin: 0.5rem 0 0.25rem;
}

.product-card-price {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--fashion-dark);
  font-weight: 600;
}

/* Navigation - Amazon-like */
.navbar {
  background-color: var(--fashion-dark);
  border-bottom: 1px solid var(--fashion-gold);
}

.nav-link {
  color: var(--fashion-cream);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--fashion-gold);
}

/* Header search - Amazon style */
.search-bar {
  background: white;
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  transition: border-color 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--fashion-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

/* Category badges - Fashion style */
.category-badge {
  background: var(--fashion-blush);
  color: #a0522d;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sale badge */
.sale-badge {
  background: var(--fashion-gold);
  color: var(--fashion-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Footer - Fashion style */
.footer {
  background-color: var(--fashion-dark);
  color: var(--fashion-cream);
  border-top: 3px solid var(--fashion-gold);
}

/* Product grid - Amazon-like */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Collection hero */
.collection-hero {
  background: linear-gradient(135deg, var(--fashion-cream) 0%, var(--fashion-blush) 100%);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Cart drawer - Amazon style */
.cart-drawer {
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--fashion-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

/* Card component */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* Price display */
.price {
  font-family: var(--font-heading);
  font-weight: 600;
}

.price-original {
  text-decoration: line-through;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.price-sale {
  color: #c0392b;
  font-size: 1.25rem;
}

/* Trust indicators */
.trust-strip {
  background: var(--fashion-sage);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Newsletter signup */
.newsletter-form {
  background: var(--fashion-dark);
  color: var(--fashion-cream);
  padding: var(--space-xl) var(--space-md);
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fashion-cream);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  border-color: var(--fashion-gold);
  background: rgba(255, 255, 255, 0.15);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
  }
}
/* WhatsApp flotante + volver arriba */
.mi-whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mi-whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.mi-back-top {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 59;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--fashion-gold, #c8a96a);
  background: #fff;
  color: #2b2b2b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.mi-back-top.is-visible {
  display: flex;
}

@media (max-width: 640px) {
  .mi-whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
  .mi-back-top {
    right: 14px;
    bottom: 74px;
  }
}
