/* ============================================
   FERREMASTER - Estilos Compartidos
   Inspirado en Amazon + AliExpress + Alibaba
   ============================================ */

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

:root {
  --primary: #FF6B00;
  --primary-dark: #E55E00;
  --primary-light: #FFF3E8;
  --secondary: #1B2838;
  --secondary-light: #2C3E50;
  --accent: #FFB800;
  --accent-green: #00C853;
  --danger: #E53935;
  --bg: #F0F2F5;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #E0E0E0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --shadow-hover: 0 8px 25px rgba(255,107,0,.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: .25s ease;
  --max-width: 1400px;
  --header-height: 140px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---- HEADER ---- */
.top-bar {
  background: var(--secondary);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: #eee; margin-left: 15px; transition: color var(--transition); }
.top-bar a:hover { color: var(--primary); }

.main-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-md);
}
.main-header .container {
  display: flex; align-items: center; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: white; font-size: 26px; font-weight: 800;
  white-space: nowrap; flex-shrink: 0;
}
.logo i { color: var(--primary); font-size: 30px; }
.logo span { color: var(--primary); }

.search-bar {
  flex: 1; display: flex; max-width: 700px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--primary);
}
.search-bar select {
  padding: 12px 14px; border: none; background: #f8f8f8;
  font-size: 13px; color: var(--text-secondary); outline: none;
  border-right: 1px solid var(--border);
}
.search-bar input {
  flex: 1; padding: 12px 16px; border: none; font-size: 15px; outline: none;
  min-width: 0;
}
.search-bar button {
  background: var(--primary); color: white;
  padding: 12px 22px; font-size: 16px;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

.header-actions {
  display: flex; align-items: center; gap: 18px; flex-shrink: 0;
}
.header-action {
  display: flex; flex-direction: column; align-items: center;
  color: white; font-size: 11px; gap: 3px;
  transition: color var(--transition); background: none; padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.header-action i { font-size: 22px; }
.header-action:hover { color: var(--primary); }
.header-action .badge {
  position: relative;
}
.header-action .badge-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---- NAV CATEGORÍAS ---- */
.category-nav {
  background: var(--secondary-light);
  padding: 0;
  border-bottom: 3px solid var(--primary);
}
.category-nav .container {
  display: flex; align-items: stretch; gap: 0;
}
.category-nav a {
  color: white; padding: 11px 18px; font-size: 13px; font-weight: 500;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.category-nav a:hover, .category-nav a.active {
  background: var(--primary); color: white;
}
.category-nav a i { font-size: 11px; }

/* ---- HERO CAROUSEL ---- */
.hero-section {
  position: relative; overflow: hidden;
  margin-bottom: 0;
}
.hero-carousel {
  display: flex; transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.hero-slide {
  min-width: 100%; position: relative;
  height: 420px; overflow: hidden;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex; align-items: center; padding: 0 60px;
}
.hero-content { color: white; max-width: 550px; }
.hero-content h1 {
  font-size: 40px; font-weight: 800; line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.hero-content p {
  font-size: 18px; opacity: .9; margin-bottom: 24px;
}
.hero-content .btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: white;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(255,107,0,.4);
}
.hero-content .btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,0,.5);
}

.hero-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none;
  transition: all var(--transition);
}
.hero-dot.active { background: var(--primary); transform: scale(1.2); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  color: white; border: none;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 20px;
  transition: all var(--transition);
  z-index: 10;
}
.hero-arrow:hover { background: var(--primary); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ---- BENEFICIOS BAR ---- */
.benefits-bar {
  background: white;
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--radius-md);
  transition: all var(--transition);
}
.benefit-item:hover { background: var(--primary-light); }
.benefit-item i {
  font-size: 28px; color: var(--primary);
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: 50%;
  flex-shrink: 0;
}
.benefit-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.benefit-item p { font-size: 12px; color: var(--text-muted); }

/* ---- SECCIÓN TÍTULOS ---- */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-header h2 {
  font-size: 24px; font-weight: 800;
  position: relative;
}
.section-header h2::after {
  content: ''; position: absolute;
  bottom: -14px; left: 0;
  width: 60px; height: 3px;
  background: var(--primary); border-radius: 2px;
}
.section-header .view-all {
  color: var(--primary); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.section-header .view-all:hover { gap: 8px; }

/* ---- CATEGORÍAS GRID ---- */
.categories-section {
  padding: 40px 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.category-card {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; height: 180px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 18px;
}
.category-card-overlay i {
  font-size: 28px; color: var(--primary);
  margin-bottom: 8px;
}
.category-card-overlay h3 {
  color: white; font-size: 16px; font-weight: 700;
}

/* ---- FLASH DEALS ---- */
.flash-deals-section {
  padding: 40px 0;
}
.flash-deals-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.flash-deals-header h2 {
  font-size: 26px; font-weight: 800; color: var(--danger);
}
.countdown {
  display: flex; gap: 8px; align-items: center;
}
.countdown-label {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.countdown-block {
  background: var(--secondary);
  color: white; padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 18px; font-weight: 800;
  min-width: 42px; text-align: center;
}
.countdown-sep { font-weight: 700; font-size: 18px; color: var(--secondary); }

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

/* ---- PRODUCT CARDS ---- */
.product-card {
  background: white; border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-card-image {
  position: relative; overflow: hidden;
  height: 220px; background: #f8f8f8;
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; color: white;
  z-index: 2;
}
.product-badge.hot { background: var(--danger); }
.product-badge.new { background: var(--accent-green); }
.product-badge.sale { background: var(--primary); }
.product-badge.top { background: var(--accent); color: var(--secondary); }

.product-discount-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--danger); color: white;
  padding: 4px 8px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800;
}

.product-wishlist {
  position: absolute; top: 10px; right: 10px;
  background: white; color: var(--text-muted);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  opacity: 0;
  z-index: 2;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { color: var(--danger); transform: scale(1.1); }

.product-actions-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  padding: 12px;
  display: flex; gap: 8px; justify-content: center;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.product-card:hover .product-actions-overlay { transform: translateY(0); }
.product-actions-overlay button {
  background: white; color: var(--text-primary);
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  transition: all var(--transition);
}
.product-actions-overlay button:hover {
  background: var(--primary); color: white;
}

.product-card-info { padding: 16px; }
.product-card-info .product-category {
  font-size: 11px; color: var(--primary);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 6px;
}
.product-card-info h3 {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 8px; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.product-card-info h3:hover { color: var(--primary); }

.product-rating {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.product-rating .stars { color: var(--accent); font-size: 13px; }
.product-rating .stars i.empty { color: #ddd; }
.product-rating .rating-text {
  font-size: 12px; color: var(--text-muted);
}

.product-price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.product-price {
  font-size: 22px; font-weight: 800; color: var(--danger);
}
.product-price-original {
  font-size: 14px; color: var(--text-muted);
  text-decoration: line-through;
}

.product-sold {
  font-size: 11px; color: var(--text-muted);
}
.product-sold-bar {
  height: 6px; background: #eee; border-radius: 3px;
  margin-top: 4px; overflow: hidden;
}
.product-sold-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--danger));
  border-radius: 3px; transition: width .5s ease;
}

.free-shipping-tag {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent-green); font-size: 11px; font-weight: 600;
  margin-top: 6px;
}
.free-shipping-tag i { font-size: 13px; }

.product-add-cart {
  width: 100%; margin-top: 12px;
  background: var(--primary); color: white;
  padding: 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.product-add-cart:hover { background: var(--primary-dark); }

/* ---- PRECIOS ESCALONADOS (MAYOREO) ---- */
.price-tiers-bar {
  display: flex; gap: 0; margin: 10px 0 6px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid #e0e0e0;
  font-size: 11px;
}
.price-tier {
  flex: 1; text-align: center; padding: 6px 4px;
  background: #f8f8f8; cursor: pointer;
  transition: all .2s ease;
  border-right: 1px solid #e0e0e0;
  position: relative;
}
.price-tier:last-child { border-right: none; }
.price-tier:hover { background: #fff3e0; }
.price-tier.active {
  background: var(--primary);
  color: white;
}
.price-tier .tier-qty {
  font-weight: 700; font-size: 10px;
  display: block; line-height: 1.3;
}
.price-tier .tier-price {
  font-weight: 800; font-size: 13px;
  display: block; line-height: 1.4;
}
.price-tier.active .tier-price { color: white; }
.price-tier:not(.active) .tier-price { color: var(--danger); }
.price-tier .tier-save {
  font-size: 9px; color: var(--accent-green);
  font-weight: 700; display: block;
}
.price-tier.active .tier-save { color: #a5f3a5; }

.qty-selector {
  display: flex; align-items: center; gap: 0;
  margin-top: 8px; margin-bottom: 4px;
}
.qty-selector button {
  width: 32px; height: 32px;
  background: #f0f0f0; border: 1px solid #ddd;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s ease;
  color: var(--text-primary);
}
.qty-selector button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty-selector button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty-selector button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-selector input {
  width: 50px; height: 32px; text-align: center;
  border: 1px solid #ddd; border-left: none; border-right: none;
  font-size: 14px; font-weight: 700;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-selector .qty-unit {
  font-size: 11px; color: var(--text-muted);
  margin-left: 8px; white-space: nowrap;
}

.tier-total-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; margin-top: 4px; padding: 4px 0;
  border-top: 1px dashed #e0e0e0;
}
.tier-total-line .tier-total-label { color: var(--text-muted); }
.tier-total-line .tier-total-value {
  font-weight: 800; color: var(--primary); font-size: 14px;
}
.tier-active-label {
  display: inline-block; font-size: 10px;
  background: var(--accent-green); color: white;
  padding: 1px 6px; border-radius: 10px;
  font-weight: 700; margin-left: 4px;
  vertical-align: middle;
}

/* ---- PROMO BANNERS ---- */
.promo-section { padding: 40px 0; }
.promo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.promo-banner {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; height: 220px;
  cursor: pointer;
  transition: all var(--transition);
}
.promo-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-banner-content {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.7), transparent);
  display: flex; flex-direction: column;
  justify-content: center; padding: 30px;
  color: white;
}
.promo-banner-content h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.promo-banner-content p { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.promo-banner-content .btn-promo {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: white;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  width: fit-content;
  transition: all var(--transition);
}
.promo-banner-content .btn-promo:hover { background: white; color: var(--primary); }

/* ---- FEATURED PRODUCTS GRID ---- */
.featured-section { padding: 40px 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--secondary);
  color: #bbb; padding: 50px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  color: white; font-size: 16px; font-weight: 700;
  margin-bottom: 16px; position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--primary);
}
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col a {
  display: block; color: #bbb; font-size: 13px;
  padding: 4px 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 13px;
}
.footer-contact-item i { color: var(--primary); font-size: 16px; width: 20px; text-align: center; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-payment { display: flex; gap: 12px; align-items: center; }
.footer-payment i { font-size: 28px; color: #888; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .products-grid, .deals-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-header .container { flex-wrap: wrap; }
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .hero-slide { height: 300px; }
  .hero-content h1 { font-size: 28px; }
  .products-grid, .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .products-grid, .deals-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-slide { height: 220px; }
  .hero-content h1 { font-size: 22px; }
  .hero-overlay { padding: 0 20px; }
  .header-actions { gap: 10px; }
  .category-nav .container { overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .brands-track { animation-duration: 15s !important; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .mobile-menu-toggle { display: flex !important; }
  .category-nav { display: none; }
  .category-nav.mobile-open { display: block; }
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; z-index: 9998;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  transition: all .3s ease;
  text-decoration: none;
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,.5);
}
.whatsapp-tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: white; color: var(--text-primary);
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 25px rgba(37,211,102,.6), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 160px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--secondary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 9997;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  border: none; cursor: pointer;
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover { background: var(--primary); }

/* ---- TESTIMONIALS ---- */
.testimonials-section { padding: 50px 0; background: white; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 12px; right: 20px;
  font-size: 60px; color: var(--primary); opacity: .15;
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--primary-light);
}
.testimonial-info h4 { font-size: 15px; font-weight: 700; }
.testimonial-info p { font-size: 12px; color: var(--text-muted); }
.testimonial-info .location {
  font-size: 11px; color: var(--primary); font-weight: 500;
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}
.testimonial-stars { margin-bottom: 12px; color: var(--accent); font-size: 14px; }
.testimonial-text {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
  font-style: italic;
}

/* ---- BRANDS CAROUSEL ---- */
.brands-section {
  padding: 40px 0; background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.brands-section .section-header { margin-bottom: 30px; }
.brands-track-wrapper { overflow: hidden; position: relative; }
.brands-track-wrapper::before,
.brands-track-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px;
  z-index: 2; pointer-events: none;
}
.brands-track-wrapper::before {
  left: 0; background: linear-gradient(90deg, white, transparent);
}
.brands-track-wrapper::after {
  right: 0; background: linear-gradient(-90deg, white, transparent);
}
.brands-track {
  display: flex; gap: 60px; align-items: center;
  animation: scroll-brands 25s linear infinite;
  width: max-content;
}
.brands-track:hover { animation-play-state: paused; }
.brand-item {
  flex-shrink: 0;
  height: 45px; opacity: .5;
  filter: grayscale(100%);
  transition: all .4s ease;
  display: flex; align-items: center; justify-content: center;
}
.brand-item:hover { opacity: 1; filter: grayscale(0); transform: scale(1.1); }
.brand-item img { height: 100%; width: auto; object-fit: contain; }
.brand-item span {
  font-size: 22px; font-weight: 800; color: #555;
  letter-spacing: 1px; white-space: nowrap;
}
@keyframes scroll-brands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #1a3a5c 100%);
  color: white;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.newsletter-text h2 {
  font-size: 28px; font-weight: 800; margin-bottom: 8px;
}
.newsletter-text p { font-size: 15px; opacity: .8; }
.newsletter-form {
  display: flex; gap: 0; max-width: 460px; width: 100%;
}
.newsletter-form input {
  flex: 1; padding: 14px 20px; border: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 14px; outline: none;
  min-width: 0;
}
.newsletter-form button {
  background: var(--primary); color: white;
  padding: 14px 28px; border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }
.newsletter-check {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; opacity: .7; margin-top: 10px;
}
.newsletter-check input { width: 14px; height: 14px; }

/* ---- STATS / TRUST SECTION ---- */
.stats-section {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #E55E00 100%);
  color: white;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; text-align: center;
}
.stat-item { padding: 10px; }
.stat-item i {
  font-size: 38px; margin-bottom: 12px;
  opacity: .9;
}
.stat-value {
  font-size: 36px; font-weight: 900;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.stat-label { font-size: 14px; opacity: .85; font-weight: 500; }

/* ---- SOCIAL PROOF POPUP ---- */
.social-proof-popup {
  position: fixed; bottom: 28px; left: 28px;
  background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  z-index: 9996;
  transform: translateX(-120%);
  transition: transform .5s cubic-bezier(.68,-.55,.27,1.55);
  max-width: 340px; border-left: 4px solid var(--accent-green);
}
.social-proof-popup.show { transform: translateX(0); }
.social-proof-popup .sp-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-green); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.social-proof-popup .sp-text { font-size: 13px; line-height: 1.4; }
.social-proof-popup .sp-text strong { color: var(--text-primary); }
.social-proof-popup .sp-text .sp-product { color: var(--primary); font-weight: 600; }
.social-proof-popup .sp-text .sp-time { color: var(--text-muted); font-size: 11px; display: block; margin-top: 2px; }
.social-proof-popup .sp-close {
  position: absolute; top: 6px; right: 8px;
  background: none; color: var(--text-muted);
  font-size: 12px; cursor: pointer; border: none;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}

/* ---- COOKIE CONSENT ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--secondary); color: white;
  padding: 18px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 13px; line-height: 1.6; flex: 1; }
.cookie-banner p a { color: var(--primary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions button {
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; border: none;
  transition: all var(--transition);
}
.cookie-accept { background: var(--primary); color: white; }
.cookie-accept:hover { background: var(--primary-dark); }
.cookie-reject { background: transparent; color: #ccc; border: 1px solid #555 !important; }
.cookie-reject:hover { background: rgba(255,255,255,.1); }

/* ---- SEARCH AUTOCOMPLETE ---- */
.search-bar { position: relative; }
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: white; border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto;
  z-index: 1001;
  display: none;
}
.search-dropdown.show { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  transition: background var(--transition);
  cursor: pointer; border-bottom: 1px solid #f5f5f5;
}
.search-result-item:hover { background: var(--primary-light); }
.search-result-item img {
  width: 44px; height: 44px; object-fit: cover;
  border-radius: var(--radius-sm);
}
.search-result-item .sr-info h4 { font-size: 13px; font-weight: 600; }
.search-result-item .sr-info p { font-size: 12px; color: var(--primary); font-weight: 700; }
.search-no-results {
  padding: 20px; text-align: center;
  color: var(--text-muted); font-size: 14px;
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none !important; background: none; border: none;
  color: white; font-size: 24px; padding: 4px 8px;
  flex-shrink: 0;
}
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9999; opacity: 0; visibility: hidden;
  transition: all .3s ease;
}
.mobile-menu-overlay.show { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; left: -300px; bottom: 0;
  width: 280px; background: white; z-index: 10000;
  overflow-y: auto; transition: left .3s ease;
  box-shadow: var(--shadow-lg);
}
.mobile-menu-overlay.show .mobile-menu { left: 0; }
.mobile-menu-header {
  background: var(--secondary); color: white;
  padding: 20px; display: flex;
  align-items: center; justify-content: space-between;
}
.mobile-menu-header h3 { font-size: 18px; font-weight: 700; }
.mobile-menu-close {
  background: none; border: none; color: white;
  font-size: 22px; cursor: pointer;
}
.mobile-menu-links { padding: 10px 0; }
.mobile-menu-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid #f0f0f0;
  transition: all var(--transition);
}
.mobile-menu-links a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-menu-links a i { width: 20px; text-align: center; color: var(--primary); }

/* ---- SCROLL REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
}

/* ---- SKELETON LOADING ---- */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- FOOTER SOCIAL ---- */
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--primary); color: white; transform: translateY(-2px);
}

/* ---- RESPONSIVE ADDITIONS ---- */
@media (max-width: 1200px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .mobile-menu-toggle { display: flex !important; }
  .header-actions { gap: 10px; }
}
@media (max-width: 600px) {
  .social-proof-popup { max-width: 280px; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 26px; bottom: 20px; right: 20px; }
  .back-to-top { bottom: 84px; right: 24px; width: 38px; height: 38px; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .stat-value { font-size: 28px; }
}

/* ============================================
   ADMIN-ONLY STYLES
   ============================================ */
.admin-body { background: #E8ECF0; }

.admin-toolbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: white; z-index: 9999;
  box-shadow: var(--shadow-md);
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--primary);
}
.admin-toolbar-left {
  display: flex; align-items: center; gap: 16px;
}
.admin-toolbar .admin-logo {
  font-size: 18px; font-weight: 800; color: var(--secondary);
  display: flex; align-items: center; gap: 8px;
}
.admin-toolbar .admin-logo i { color: var(--primary); }
.admin-toolbar .admin-badge {
  background: var(--primary-light); color: var(--primary);
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}

.admin-toolbar-actions {
  display: flex; gap: 10px; align-items: center;
}
.btn-admin {
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.btn-admin-primary {
  background: var(--primary); color: white;
}
.btn-admin-primary:hover { background: var(--primary-dark); }
.btn-admin-secondary {
  background: #f0f0f0; color: var(--text-primary);
}
.btn-admin-secondary:hover { background: #e0e0e0; }
.btn-admin-danger {
  background: #FDE8E8; color: var(--danger);
}
.btn-admin-danger:hover { background: var(--danger); color: white; }
.btn-admin-success {
  background: #E8F5E9; color: var(--accent-green);
}
.btn-admin-success:hover { background: var(--accent-green); color: white; }

.admin-content {
  margin-top: 60px;
}

/* Editable sections */
.admin-section-wrapper {
  position: relative;
  border: 2px dashed transparent;
  transition: all var(--transition);
  margin-bottom: 4px;
}
.admin-section-wrapper:hover {
  border-color: var(--primary);
}
.admin-section-wrapper.dragging {
  opacity: .5; border-color: var(--primary);
  border-style: solid;
}
.admin-section-wrapper.drag-over {
  border-color: var(--accent-green);
  background: rgba(0,200,83,.05);
  border-style: solid;
}

.admin-section-controls {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px; z-index: 100;
  opacity: 0; transition: opacity var(--transition);
  background: white; padding: 6px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.admin-section-wrapper:hover .admin-section-controls { opacity: 1; }

.admin-section-controls button {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all var(--transition);
  background: #f5f5f5; color: var(--text-secondary);
}
.admin-section-controls button:hover { background: var(--primary); color: white; }
.admin-section-controls button.delete-btn:hover { background: var(--danger); }

.admin-drag-handle {
  position: absolute; top: 8px; left: 8px;
  cursor: grab; z-index: 100;
  background: white; padding: 6px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity var(--transition);
  color: var(--text-muted); font-size: 14px;
  display: flex; align-items: center; gap: 6px;
}
.admin-drag-handle:active { cursor: grabbing; }
.admin-section-wrapper:hover .admin-drag-handle { opacity: 1; }
.admin-drag-handle span {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
}

/* Editable content */
[contenteditable="true"] {
  outline: none;
  border: 1px dashed transparent;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all var(--transition);
}
[contenteditable="true"]:hover {
  border-color: rgba(255,107,0,.3);
  background: rgba(255,107,0,.03);
}
[contenteditable="true"]:focus {
  border-color: var(--primary);
  background: rgba(255,107,0,.05);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}

/* Image upload overlay */
.admin-image-upload {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  cursor: pointer; z-index: 50;
  color: white; gap: 8px;
}
.admin-image-upload:hover { opacity: 1; }
.admin-image-upload i { font-size: 32px; }
.admin-image-upload span { font-size: 13px; font-weight: 600; }

/* Notification toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--secondary); color: white;
  padding: 14px 24px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  z-index: 99999;
  transform: translateY(120%);
  transition: transform .3s ease;
}
.toast.show { transform: translateY(0); }
.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--danger); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--accent-green); }
.toast.error i { color: var(--danger); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .3s ease;
}
.modal-backdrop.show { opacity: 1; visibility: visible; }
.modal {
  background: white; border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 600px; width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(.9); transition: transform .3s ease;
}
.modal-backdrop.show .modal { transform: scale(1); }
.modal h3 {
  font-size: 20px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.modal-form input, .modal-form textarea, .modal-form select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color var(--transition);
}
.modal-form input:focus, .modal-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px;
}

/* Section adder */
.add-section-btn {
  width: 100%;
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
  margin: 10px 0;
}
.add-section-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Status indicator */
.admin-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--accent-green); font-weight: 600;
}
.admin-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ============================================
   PRODUCT QUICK VIEW MODAL
   ============================================ */
.product-view-modal {
  max-width: 900px; width: 95%;
  max-height: 90vh; overflow-y: auto;
  position: relative; padding: 0;
}
.modal-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); color: var(--text-primary);
  font-size: 16px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close-btn:hover { background: var(--danger); color: white; }
.pv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.pv-image {
  background: #f8f8f8; display: flex;
  align-items: center; justify-content: center;
  padding: 30px; min-height: 400px;
}
.pv-image img {
  max-width: 100%; max-height: 400px;
  object-fit: contain; border-radius: 8px;
}
.pv-details { padding: 30px; }
.pv-category {
  font-size: 12px; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: .5px;
}
.pv-details h2 {
  font-size: 22px; font-weight: 800;
  margin: 8px 0 12px; line-height: 1.3;
}
.pv-rating {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.pv-price-block {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.pv-price {
  font-size: 32px; font-weight: 900; color: var(--danger);
}
.pv-price-original {
  font-size: 18px; color: var(--text-muted);
  text-decoration: line-through;
}
.pv-discount-badge {
  background: var(--danger); color: white;
  padding: 2px 8px; border-radius: 4px;
  font-size: 13px; font-weight: 700;
}
.pv-qty-row {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 8px;
}
.pv-qty-row label { font-weight: 600; font-size: 14px; }
.pv-total-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 0; margin-bottom: 12px;
  border-top: 1px dashed #e0e0e0;
  border-bottom: 1px dashed #e0e0e0;
}
.pv-total-row span:first-child { font-weight: 600; color: var(--text-secondary); }
.pv-total { font-size: 24px; font-weight: 900; color: var(--primary); }
.pv-shipping {
  color: var(--accent-green); font-size: 13px;
  font-weight: 600; margin-bottom: 16px;
}
.pv-shipping.hidden { display: none; }
.pv-actions {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.pv-btn-cart {
  flex: 1; padding: 14px 20px;
  background: var(--primary); color: white;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
}
.pv-btn-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pv-btn-whatsapp {
  padding: 14px 20px;
  background: #25D366; color: white;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
}
.pv-btn-whatsapp:hover { background: #1fb855; }
.pv-badges {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid #eee;
}
.pv-badges span {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.pv-badges i { color: var(--accent-green); }

@media (max-width: 700px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-image { min-height: 250px; padding: 20px; }
  .pv-details { padding: 20px; }
  .pv-price { font-size: 26px; }
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998; opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cart-overlay.show { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: -420px;
  width: 400px; max-width: 90vw; height: 100vh;
  background: white; z-index: 9999;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  transition: right .3s ease;
}
.cart-drawer.show { right: 0; }

.cart-drawer-header {
  display: flex; justify-content: space-between;
  align-items: center; padding: 20px;
  border-bottom: 2px solid var(--primary);
  background: var(--secondary); color: white;
}
.cart-drawer-header h3 {
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.cart-drawer-header h3 span {
  font-weight: 400; font-size: 14px; opacity: .7;
}
.cart-drawer-header button {
  background: none; color: white; font-size: 20px;
  padding: 4px; transition: all var(--transition);
}
.cart-drawer-header button:hover { color: var(--primary); }

.cart-drawer-items {
  flex: 1; overflow-y: auto; padding: 16px;
}
.cart-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.cart-empty i { font-size: 60px; margin-bottom: 16px; opacity: .2; }
.cart-empty p { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.cart-empty span { font-size: 13px; }

.cart-item {
  display: flex; gap: 12px; padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid #eee; margin-bottom: 10px;
  transition: all var(--transition);
  position: relative;
}
.cart-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.cart-item-img {
  width: 70px; height: 70px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; background: #f8f8f8;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item-tier {
  font-size: 11px; color: var(--primary);
  font-weight: 600; margin-bottom: 4px;
}
.cart-item-price-row {
  display: flex; justify-content: space-between;
  align-items: center;
}
.cart-item-unit-price { font-size: 12px; color: var(--text-muted); }
.cart-item-total { font-size: 15px; font-weight: 800; color: var(--danger); }
.cart-item-qty {
  display: flex; align-items: center; gap: 0; margin-top: 6px;
}
.cart-item-qty button {
  width: 26px; height: 26px; background: #f0f0f0;
  border: 1px solid #ddd; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty button:first-child { border-radius: 4px 0 0 4px; }
.cart-item-qty button:last-child { border-radius: 0 4px 4px 0; }
.cart-item-qty button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cart-item-qty input {
  width: 40px; height: 26px; text-align: center;
  border: 1px solid #ddd; border-left: none; border-right: none;
  font-size: 13px; font-weight: 700;
  -moz-appearance: textfield;
}
.cart-item-qty input::-webkit-outer-spin-button,
.cart-item-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-item-remove {
  position: absolute; top: 8px; right: 8px;
  background: none; color: var(--text-muted);
  font-size: 14px; padding: 2px;
  transition: all var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 2px solid #eee;
  background: #fafafa;
}
.cart-summary { margin-bottom: 12px; }
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 14px;
}
.cart-summary-total {
  font-weight: 800; font-size: 18px;
  color: var(--primary); padding-top: 8px;
  border-top: 1px solid #eee;
}
.cart-checkout-btn {
  width: 100%; padding: 14px;
  background: var(--accent-green); color: white;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
  margin-bottom: 8px;
}
.cart-checkout-btn:hover { background: #00a844; transform: translateY(-1px); }
.cart-continue-btn {
  width: 100%; padding: 10px;
  background: none; color: var(--primary);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.cart-continue-btn:hover { background: var(--primary-light); }

/* Wishlist active state */
.product-wishlist.active { color: var(--danger); }
.product-wishlist.active i { font-weight: 900; }

/* Cart added animation */
@keyframes cartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.cart-bounce .badge-count { animation: cartBounce .4s ease; }

/* Category nav active filter */
.category-nav a.active {
  background: var(--primary); color: #FFFFFF; border-color: var(--primary);
  font-weight: 700;
}

/* ============================================
   QUOTE / COTIZACIÓN MAYOREO
   ============================================ */
.quote-header-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: white !important; border-radius: 8px !important;
  padding: 8px 14px !important;
  animation: quotePulse 3s ease-in-out infinite;
}
.quote-header-btn i { color: white !important; }
.quote-header-btn span { color: white !important; font-weight: 700 !important; }
@keyframes quotePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,0,0); }
}

.quote-modal {
  max-width: 800px; width: 95%;
  max-height: 92vh; overflow-y: auto;
  padding: 0; position: relative;
}

.quote-header {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 30px; background: linear-gradient(135deg, var(--secondary) 0%, #2d4a6a 100%);
  color: white; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.quote-header-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--primary); display: flex;
  align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.quote-header h2 { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.quote-header p { font-size: 13px; opacity: .8; }

/* Steps */
.quote-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 20px 30px; background: #f8f9fa;
  border-bottom: 1px solid #eee;
}
.quote-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  transition: all .3s ease;
}
.quote-step.active { color: var(--primary); }
.quote-step.done { color: var(--accent-green); }
.quote-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #ddd; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  transition: all .3s ease;
}
.quote-step.active .quote-step-num { background: var(--primary); }
.quote-step.done .quote-step-num { background: var(--accent-green); }
.quote-step-line {
  width: 40px; height: 2px; background: #ddd;
  margin: 0 8px; transition: background .3s ease;
}
.quote-step-line.done { background: var(--accent-green); }

/* Panels */
.quote-panel { padding: 24px 30px; }

/* Search */
.quote-search-row { margin-bottom: 16px; position: relative; }
.quote-search-input {
  position: relative; display: flex;
  align-items: center; background: white;
  border: 2px solid #e0e0e0; border-radius: 10px;
  padding: 0 14px; transition: border-color .2s;
}
.quote-search-input:focus-within { border-color: var(--primary); }
.quote-search-input i { color: var(--text-muted); margin-right: 10px; }
.quote-search-input input {
  flex: 1; border: none; padding: 12px 0;
  font-size: 14px; outline: none; background: none;
}

/* Product catalog grid */
.quote-catalog {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; max-height: 320px; overflow-y: auto;
  margin-bottom: 16px; padding: 4px 2px;
}
.quote-catalog::-webkit-scrollbar { width: 5px; }
.quote-catalog::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.quote-cat-card {
  display: flex; flex-direction: column;
  align-items: center; padding: 12px 8px;
  border: 2px solid #eee; border-radius: 10px;
  cursor: pointer; transition: all .2s ease;
  background: white; text-align: center;
  position: relative;
}
.quote-cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.quote-cat-card.added { border-color: var(--accent-green); background: #f0fdf4; }
.quote-cat-card.added::after {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 6px; right: 6px;
  background: var(--accent-green); color: white;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.quote-cat-card.hidden { display: none; }
.quote-cat-card img {
  width: 60px; height: 60px; border-radius: 8px;
  object-fit: cover; margin-bottom: 6px;
}
.quote-cat-card h5 {
  font-size: 11px; font-weight: 600; line-height: 1.3;
  margin-bottom: 4px; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.quote-cat-card .qc-price {
  font-size: 12px; font-weight: 800; color: var(--primary);
}
.quote-cat-card .qc-unit {
  font-size: 10px; color: var(--text-muted);
}
.quote-cat-card .qc-add-btn {
  margin-top: 6px; padding: 4px 12px;
  background: var(--primary); color: white;
  border-radius: 6px; font-size: 11px; font-weight: 700;
  transition: all .15s;
}
.quote-cat-card:hover .qc-add-btn { background: var(--primary-dark); }
.quote-cat-card.added .qc-add-btn { background: var(--accent-green); }

/* Selected header */
.quote-selected-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: linear-gradient(135deg, #fff3e0, #fff8e1);
  border-radius: 8px; margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}
.quote-selected-header h4 {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
}
.quote-selected-header h4 i { color: var(--primary); margin-right: 4px; }

/* Items list */
.quote-items-list {
  min-height: 0; max-height: 250px;
  overflow-y: auto;
}
.quote-items-empty {
  text-align: center; padding: 50px 20px;
  color: var(--text-muted);
}
.quote-items-empty i { font-size: 48px; opacity: .15; margin-bottom: 12px; display: block; }
.quote-items-empty p { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.quote-items-empty span { font-size: 13px; }

.quote-item {
  display: flex; gap: 12px; padding: 14px;
  border: 1px solid #eee; border-radius: 10px;
  margin-bottom: 8px; align-items: center;
  transition: all .2s ease;
}
.quote-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.quote-item-img {
  width: 56px; height: 56px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; background: #f8f8f8;
}
.quote-item-img img { width: 100%; height: 100%; object-fit: cover; }
.quote-item-info { flex: 1; min-width: 0; }
.quote-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.quote-item-tier { font-size: 11px; color: var(--primary); font-weight: 600; }
.quote-item-prices {
  display: flex; align-items: baseline; gap: 6px; margin-top: 2px;
}
.quote-item-unit { font-size: 12px; color: var(--text-muted); }
.quote-item-line-total { font-size: 15px; font-weight: 800; color: var(--danger); }

.quote-item-qty {
  display: flex; align-items: center; gap: 0;
}
.quote-item-qty button {
  width: 28px; height: 28px; background: #f0f0f0;
  border: 1px solid #ddd; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.quote-item-qty button:first-child { border-radius: 4px 0 0 4px; }
.quote-item-qty button:last-child { border-radius: 0 4px 4px 0; }
.quote-item-qty button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.quote-item-qty input {
  width: 50px; height: 28px; text-align: center;
  border: 1px solid #ddd; border-left: none; border-right: none;
  font-size: 13px; font-weight: 700;
  -moz-appearance: textfield;
}
.quote-item-qty input::-webkit-outer-spin-button,
.quote-item-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.quote-item-remove {
  background: none; color: var(--text-muted);
  font-size: 16px; padding: 4px;
  transition: all .15s; flex-shrink: 0;
}
.quote-item-remove:hover { color: var(--danger); }

/* Summary bar */
.quote-summary-bar {
  display: flex; justify-content: space-between;
  align-items: center; padding: 16px 20px;
  background: var(--primary-light); border-radius: 10px;
  margin-top: 16px;
}
.quote-summary-info {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
}
.quote-summary-total { font-size: 18px; }
.quote-summary-total strong { color: var(--primary); font-weight: 900; }

.quote-next-btn {
  background: var(--primary); color: white;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.quote-next-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.quote-back-btn {
  background: none; color: var(--text-secondary);
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1px solid #ddd;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.quote-back-btn:hover { border-color: var(--primary); color: var(--primary); }
.quote-nav-btns {
  display: flex; justify-content: space-between;
  margin-top: 20px; gap: 12px;
}

/* Step 2: Form */
.quote-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-form-full { grid-column: 1 / -1; }
.quote-form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text-secondary);
}
.quote-form-group label i { color: var(--primary); margin-right: 4px; }
.quote-form-group input,
.quote-form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; transition: border-color .2s;
}
.quote-form-group input:focus,
.quote-form-group textarea:focus { border-color: var(--primary); outline: none; }
.quote-form-group textarea { resize: vertical; }

/* Step 3: Review */
.quote-review-card {
  background: white; border: 2px solid #eee;
  border-radius: 12px; overflow: hidden;
}
.quote-review-header {
  background: var(--secondary); color: white;
  padding: 20px 24px;
  display: flex; justify-content: space-between;
  align-items: center;
}
.quote-review-header h3 { font-size: 18px; font-weight: 800; }
.quote-review-header .quote-review-date { font-size: 12px; opacity: .7; }
.quote-review-client {
  padding: 16px 24px; background: #f8f9fa;
  border-bottom: 1px solid #eee;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-size: 13px;
}
.quote-review-client strong { color: var(--text-primary); }
.quote-review-table {
  width: 100%; border-collapse: collapse;
}
.quote-review-table th {
  background: #f8f9fa; padding: 10px 16px;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .5px; text-align: left;
  color: var(--text-muted); font-weight: 700;
}
.quote-review-table td {
  padding: 10px 16px; border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.quote-review-table tr:hover td { background: #fafafa; }
.quote-review-table .text-right { text-align: right; }
.quote-review-table .row-total { font-weight: 800; color: var(--danger); }
.quote-review-footer {
  padding: 16px 24px; background: var(--primary-light);
  display: flex; justify-content: space-between;
  align-items: center;
}
.quote-review-footer .grand-total {
  font-size: 22px; font-weight: 900; color: var(--primary);
}

/* Send options */
.quote-send-options {
  margin-top: 20px; text-align: center;
}
.quote-send-options h4 {
  font-size: 15px; margin-bottom: 14px;
  color: var(--text-secondary);
}
.quote-send-btns {
  display: flex; gap: 12px; justify-content: center;
}
.quote-send-wa {
  padding: 14px 28px; background: #25D366; color: white;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.quote-send-wa:hover { background: #1fb855; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37,211,102,.3); }
.quote-send-pdf {
  padding: 14px 28px; background: var(--danger); color: white;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.quote-send-pdf:hover { background: #c62828; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(229,57,53,.3); }

/* Floating quote CTA */
.quote-float-cta {
  position: fixed; bottom: 96px; right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; padding: 14px 20px;
  border-radius: 50px; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,107,0,.3);
  display: flex; align-items: center; gap: 8px;
  z-index: 999; cursor: pointer;
  transition: all .3s ease;
  animation: quotePulse 3s ease-in-out infinite;
}
.quote-float-cta:hover { transform: translateY(-3px) scale(1.05); }

@media (max-width: 700px) {
  .quote-modal { max-height: 95vh; }
  .quote-header { padding: 16px 20px; }
  .quote-panel { padding: 16px 20px; }
  .quote-form-grid { grid-template-columns: 1fr; }
  .quote-send-btns { flex-direction: column; }
  .quote-review-client { grid-template-columns: 1fr; }
  .quote-float-cta span { display: none; }
  .quote-float-cta { padding: 14px; border-radius: 50%; }
  .quote-steps span:not(.quote-step-num) { display: none; }
  .quote-catalog { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 240px; }
  .quote-cat-card img { width: 46px; height: 46px; }
}
