/* ============================================
   ALLSTYLO - STORE.CSS
   MOBILE FIRST - Versión Optimizada
   ============================================ */

:root {
  --bg-color: #141414;
  --drawer-bg: #191919;
  --card-bg: #222222;
  --text-main: #f5f5f5;
  --text-muted: #8e8e93;
  --border-color: #262626;
  --accent-gold: #d4af37;
  --whatsapp-color: #25d366;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========== RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(80px + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* ========== HEADER ========== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  height: var(--header-height);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  padding: 4px 0;
}

.logo-drawer {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  min-width: 40px;
  min-height: 40px;
  touch-action: manipulation;
}

.icon-btn:active {
  background: var(--card-bg);
}

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

.cart-link {
  position: relative;
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent-gold);
  color: #000;
  font-size: 0.5rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translate(4px, -4px);
}

.cart-badge.show {
  display: flex;
}

/* ========== MENÚ HAMBURGUESA ========== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 20;
}

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

.menu-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--drawer-bg);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transition: left var(--transition);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}

.menu-drawer.active {
  left: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  min-height: 56px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 4px 12px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-item {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  touch-action: manipulation;
  min-height: 48px;
}

.nav-item:active {
  background: var(--card-bg);
  transform: scale(0.97);
}

.nav-item.active {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav-item.sale-item {
  color: #ff5555;
}

.nav-item.sale-item:active {
  background: rgba(255, 85, 85, 0.1);
}

.nav-item span {
  opacity: 0.4;
  font-size: 0.8rem;
  transition: transform var(--transition);
}

.nav-item:active span {
  transform: translateX(4px);
  opacity: 0.8;
}

.drawer-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
  flex-shrink: 0;
  padding-bottom: calc(12px + var(--safe-bottom));
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: var(--text-main);
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
}

.social-links a:active {
  opacity: 0.5;
}

/* ========== CATEGORÍAS SCROLL HORIZONTAL ========== */
.categories-scroll {
  padding: 8px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: var(--header-height);
  background: var(--bg-color);
  z-index: 5;
  border-bottom: 1px solid var(--border-color);
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.categories-scroll-wrapper {
  display: flex;
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
}

.category-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  touch-action: manipulation;
  user-select: none;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.category-chip:active {
  transform: scale(0.95);
}

.category-chip.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.category-chip.sale-chip {
  border-color: #ff5555;
  color: #ff5555;
}

.category-chip.sale-chip.active {
  background: #ff5555;
  color: #fff;
  border-color: #ff5555;
}

/* ========== HERO BANNER ========== */
.hero-banner {
  background: linear-gradient(135deg, var(--card-bg) 0%, #1a1a1a 100%);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin: 10px 12px 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.featured-carousel { text-align: left; padding: 16px; }
.carousel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.carousel-kicker { color: var(--accent-gold); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.carousel-heading h1 { margin: 3px 0 0; font-size: 1.2rem; }
.carousel-controls { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; margin-top: 10px; }
.carousel-button { width: 34px; height: 34px; border: 1px solid var(--border-color); border-radius: 50%; background: var(--bg-color); color: var(--text-main); cursor: pointer; font: inherit; }
.carousel-button:active { transform: scale(.92); border-color: var(--accent-gold); }
.featured-viewport { overflow: hidden; border-radius: var(--radius-sm); background: #101010; }
.featured-track { display: flex; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.featured-slide { position: relative; flex: 0 0 100%; min-height: 225px; overflow: hidden; color: var(--text-main); text-decoration: none; }
.featured-slide img { width: 100%; height: 225px; display: block; object-fit: contain; object-position: center; padding: 8px 14px 52px; background: #101010; }
.featured-slide-info { position: absolute; inset: auto 0 0; display: grid; gap: 3px; padding: 34px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.94) 45%); }
.featured-slide-category { color: #ff8888; font-size: .62rem; font-weight: 800; }
.featured-slide strong { font-size: .9rem; }
.featured-price { color: var(--accent-gold); font-size: .82rem; font-weight: 800; }
.featured-price del, .product-price del { color: var(--text-muted); font-size: .65rem; font-weight: 500; margin-left: 3px; }
.featured-dots { display: flex; justify-content: center; align-items: center; gap: 5px; min-width: 0; }
.featured-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--text-muted); cursor: pointer; opacity: .5; }
.featured-dot.active { width: 18px; border-radius: 5px; background: var(--accent-gold); opacity: 1; }

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-banner h1 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-banner p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.btn-hero {
  display: inline-block;
  background: var(--accent-gold);
  color: #000;
  padding: 8px 20px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  touch-action: manipulation;
  min-height: 40px;
}

.btn-hero:active {
  transform: scale(0.95);
}

/* ========== SECCIÓN CATEGORÍAS (CARTAS GRANDES) ========== */
.category-section {
  padding: 0 12px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

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

.category-card {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  touch-action: manipulation;
}

.category-card.selected .card-image-wrapper {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.category-card.selected .card-image-wrapper img {
  transform: scale(1.05);
}

.category-card.selected .category-title {
  color: var(--accent-gold);
}

.category-card.selected .arrow {
  transform: translateX(4px);
  opacity: 1;
}

.category-card:active {
  transform: scale(0.96);
}

.card-image-wrapper {
  aspect-ratio: 4 / 5;
  background-color: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 6px;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0 2px;
}

.category-title .arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
  opacity: 0.5;
}

.category-card:active .arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ========== PRODUCTOS ========== */
.products-section {
  padding: 0 12px calc(80px + var(--safe-bottom));
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-count {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--card-bg);
  padding: 3px 10px;
  border-radius: 12px;
}

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

.products-load-sentinel {
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
  transition: opacity 0.2s ease;
}

.products-load-sentinel.is-loading {
  color: var(--accent-gold);
  opacity: 0.85;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid transparent;
  touch-action: manipulation;
}

.product-card:active {
  transform: scale(0.97);
}

.product-card.hidden {
  display: none;
}

.product-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: var(--bg-color);
}

.product-info {
  padding: 8px 10px 10px;
}

.product-category {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.product-name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.product-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.sale-badge { display: inline-block; color: #ff7777; font-size: .58rem; font-weight: 800; letter-spacing: .04em; margin-bottom: 2px; }

.add-to-cart-btn {
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  background: var(--border-color);
  border: none;
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  touch-action: manipulation;
  min-height: 32px;
}

.add-to-cart-btn:active {
  background: var(--accent-gold);
  color: #000;
  transform: scale(0.95);
}

/* ========== MODAL DE BÚSQUEDA ========== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-color);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.search-modal {
  padding: 8px 12px calc(80px + var(--safe-bottom));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER DEL SEARCH */
.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-gold);
}

.search-icon {
  font-size: 1rem;
  margin-right: 6px;
  opacity: 0.6;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  min-height: 40px;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: all 0.2s;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 32px;
  min-width: 32px;
}

.search-clear.show {
  display: flex;
}

.search-clear:active {
  background: var(--border-color);
}

.search-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-family: inherit;
  flex-shrink: 0;
  min-height: 40px;
}

.search-close:active {
  background: var(--card-bg);
  color: var(--text-main);
}

/* SUGERENCIAS */
.search-suggestions {
  padding: 16px 0 12px;
  flex-shrink: 0;
}

.suggestions-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggestion-tag {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  touch-action: manipulation;
  min-height: 30px;
}

.suggestion-tag:active {
  transform: scale(0.95);
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* RESULTADOS */
.search-results {
  flex: 1;
  overflow-y: auto;
  padding-top: 8px;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.results-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-clear {
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  display: none;
}

.results-clear.show {
  display: block;
}

.results-clear:active {
  background: var(--card-bg);
  color: var(--text-main);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.result-item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s;
  touch-action: manipulation;
}

.result-item:active {
  transform: scale(0.97);
}

.result-item .product-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.result-item .product-info {
  padding: 6px 8px 8px;
}

.result-item .product-name {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 2px;
  min-height: 30px;
}

.result-item .product-name mark {
  background: var(--accent-gold);
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}

.result-item .product-category {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item .product-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.result-item .add-to-cart-btn {
  width: 100%;
  margin-top: 4px;
  padding: 5px;
  background: var(--border-color);
  border: none;
  border-radius: 4px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-height: 28px;
}

.result-item .add-to-cart-btn:active {
  background: var(--accent-gold);
  color: #000;
}

/* ESTADO VACÍO DE BÚSQUEDA */
.search-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.search-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.search-empty .empty-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.search-empty .empty-desc {
  font-size: 0.8rem;
}

/* ESTADO VACÍO DE PRODUCTOS */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.empty-state .empty-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.empty-state .empty-desc {
  font-size: 0.8rem;
}

.empty-state .btn-reset {
  margin-top: 14px;
  background: var(--accent-gold);
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  min-height: 40px;
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-btn {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  right: 16px;
  background-color: var(--whatsapp-color);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 10;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  touch-action: manipulation;
}

.whatsapp-btn:active {
  transform: scale(0.9);
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
}

/* ========== TOAST ========== */
.toast-notification {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.8rem;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  max-width: 90%;
  text-align: center;
  animation: slideUp 0.3s ease;
  pointer-events: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================
   TABLET (600px - 1023px)
   ============================================ */
@media (min-width: 600px) {
  /* HEADER */
  .site-header {
    padding: 10px 20px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  /* CATEGORÍAS SCROLL */
  .categories-scroll {
    padding: 10px 0;
  }
  
  .categories-scroll-wrapper {
    padding: 0 20px;
    gap: 8px;
  }
  
  .category-chip {
    padding: 8px 18px;
    font-size: 0.85rem;
    min-height: 36px;
  }
  
  /* HERO */
  .hero-banner {
    padding: 28px 24px;
    margin: 12px 20px 20px;
  }
  
  .hero-banner h1 {
    font-size: 1.8rem;
  }
  
  .hero-banner p {
    font-size: 0.9rem;
  }
  
  .btn-hero {
    padding: 10px 24px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  /* CATEGORÍAS GRID */
  .category-section {
    padding: 0 20px;
    margin-bottom: 28px;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  
  .category-title {
    font-size: 0.85rem;
  }
  
  /* PRODUCTOS */
  .products-section {
    padding: 0 20px calc(80px + var(--safe-bottom));
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  
  .product-name {
    font-size: 0.85rem;
    min-height: 38px;
  }
  
  .product-price {
    font-size: 0.95rem;
  }
  
  .product-category {
    font-size: 0.6rem;
  }
  
  .add-to-cart-btn {
    font-size: 0.7rem;
    padding: 7px;
    min-height: 36px;
  }
  
  /* BÚSQUEDA */
  .search-modal {
    padding: 12px 20px calc(80px + var(--safe-bottom));
  }
  
  .search-input {
    font-size: 1rem;
    padding: 12px 0;
  }
  
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .result-item .product-name {
    font-size: 0.8rem;
  }
  
  .suggestion-tag {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
  
  /* WHATSAPP */
  .whatsapp-btn {
    width: 56px;
    height: 56px;
    bottom: calc(20px + var(--safe-bottom));
    right: 20px;
  }
  
  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .main-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* HEADER */
  .site-header {
    padding: 12px 32px;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  /* CATEGORÍAS SCROLL */
  .categories-scroll-wrapper {
    padding: 0 32px;
    gap: 10px;
  }
  
  .category-chip {
    padding: 10px 24px;
    font-size: 0.9rem;
    min-height: 40px;
  }
  
  .category-chip:hover {
    background: var(--border-color);
  }
  
  .category-chip.active:hover {
    background: var(--accent-gold);
  }
  
  /* HERO */
  .hero-banner {
    padding: 40px 32px;
    margin: 16px 32px 24px;
    border-radius: var(--radius);
  }
  
  .hero-banner h1 {
    font-size: 2.5rem;
  }
  
  .hero-banner p {
    font-size: 1rem;
  }
  
  .btn-hero {
    padding: 12px 32px;
    font-size: 1rem;
    min-height: 48px;
  }
  
  .btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  }
  
  /* CATEGORÍAS GRID */
  .category-section {
    padding: 0 32px;
    margin-bottom: 32px;
  }
  
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }
  
  .category-card:hover .card-image-wrapper img {
    transform: scale(1.05);
  }
  
  .category-card:hover .arrow {
    transform: translateX(4px);
    opacity: 1;
  }
  
  .category-title {
    font-size: 0.9rem;
  }
  
  /* PRODUCTOS */
  .products-section {
    padding: 0 32px calc(80px + var(--safe-bottom));
  }
  
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  
  .product-card:hover {
    border-color: var(--border-color);
  }
  
  .product-name {
    font-size: 0.9rem;
    min-height: 42px;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  .add-to-cart-btn:hover {
    background: var(--accent-gold);
    color: #000;
  }
  
  /* BÚSQUEDA */
  .search-modal {
    padding: 16px 32px calc(80px + var(--safe-bottom));
  }
  
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .suggestion-tag:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
  }
  
  /* WHATSAPP */
  .whatsapp-btn {
    width: 60px;
    height: 60px;
    bottom: calc(24px + var(--safe-bottom));
    right: 24px;
  }
  
  .whatsapp-btn:hover {
    transform: scale(1.1);
  }
  
  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
  
  /* MENÚ DRAWER */
  .menu-drawer {
    max-width: 380px;
  }
  
  .nav-item:hover {
    background: var(--card-bg);
  }
  
  .nav-item:hover span {
    transform: translateX(4px);
    opacity: 0.8;
  }
}

/* ============================================
   MÓVIL PEQUEÑO (< 380px)
   ============================================ */
@media (max-width: 379px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .products-grid {
    gap: 6px;
  }
  
  .product-info {
    padding: 6px 6px 8px;
  }
  
  .product-name {
    font-size: 0.65rem;
    min-height: 28px;
  }
  
  .product-price {
    font-size: 0.75rem;
  }
  
  .add-to-cart-btn {
    font-size: 0.55rem;
    padding: 4px;
    min-height: 26px;
  }
  
  .product-category {
    font-size: 0.5rem;
  }
  
  .category-title {
    font-size: 0.6rem;
  }
  
  .hero-banner h1 {
    font-size: 1.1rem;
  }
  
  .hero-banner p {
    font-size: 0.7rem;
  }
  
  .btn-hero {
    padding: 6px 16px;
    font-size: 0.7rem;
    min-height: 34px;
  }
  
  .category-chip {
    font-size: 0.65rem;
    padding: 4px 10px;
    min-height: 28px;
  }
  
  .results-grid {
    gap: 6px;
  }
  
  .result-item .product-info {
    padding: 4px 6px 6px;
  }
  
  .result-item .product-name {
    font-size: 0.6rem;
    min-height: 24px;
  }
  
  .result-item .product-price {
    font-size: 0.65rem;
  }
  
  .result-item .add-to-cart-btn {
    font-size: 0.5rem;
    padding: 4px;
    min-height: 24px;
  }
  
  .suggestion-tag {
    font-size: 0.6rem;
    padding: 4px 10px;
    min-height: 26px;
  }
  
  .search-input {
    font-size: 0.85rem;
  }
  
  .search-close {
    font-size: 0.7rem;
  }
  
  .whatsapp-btn {
    width: 44px;
    height: 44px;
    bottom: calc(12px + var(--safe-bottom));
    right: 12px;
  }
  
  .whatsapp-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   UTILIDADES
   ============================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }