/* ========================================
   CELL SPACE - TIENDA PROFESIONAL
   ======================================== */

:root {
  --primary: #FF6A00;
  --primary-dark: #E55A00;
  --primary-light: #FF8533;
  --dark: #0A0A0A;
  --darker: #050505;
  --card: #151515;
  --card-light: #1A1A1A;
  --text: #FFFFFF;
  --text-muted: #888888;
  --border: #2A2A2A;
  --success: #4CAF50;
  --warning: #FFD700;
  --danger: #FF4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--darker);
  color: var(--text);
  line-height: 1.6;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.header-top-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  height: 50px;
  width: auto;
}

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

.logo-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.logo-sub {
  font-size: 12px;
  color: var(--text);
  letter-spacing: 2px;
}

.header-search {
  flex: 1;
  max-width: 600px;
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

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

.search-btn {
  padding: 12px 20px;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: var(--primary-dark);
}

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

.header-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  position: relative;
}

.header-action:hover {
  color: var(--primary);
}

.header-action i {
  font-size: 20px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */
.main-navigation {
  background: var(--dark);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
  list-style: none;
  padding: 10px 0;
}

/* Hover solo en dispositivos con puntero real */
@media (hover: hover) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* En táctil se abre con la clase .open (ver JS más abajo) */
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.dropdown li a:hover {
  background: var(--primary);
  color: white;
}

/* ========================================
   HERO DE TIENDA
   ======================================== */
.shop-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--card) 100%);
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.shop-hero-content {
  max-width: 500px;
  padding: 0 40px;
}

.shop-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.shop-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.shop-features {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding: 0 40px;
}

.shop-feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-feature i {
  font-size: 32px;
  color: var(--primary);
}

.shop-feature strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
}

.shop-feature span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   LAYOUT DE TIENDA
   ======================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

/* Botón de filtros: solo visible en móvil */
.filters-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.filters-toggle i { color: var(--primary); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
}

.sidebar-backdrop.active { display: block; }

.sidebar-close {
  display: none;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* ========================================
   SIDEBAR
   ======================================== */
.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text);
}

.sidebar-title i {
  color: var(--primary);
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 8px;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.3s;
}

.category-list a:hover,
.category-list li.active a {
  background: var(--primary);
  color: white;
}

.category-list a i {
  width: 20px;
  text-align: center;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.price-range {
  padding: 10px 0;
}

.price-slider {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.filter-search,
.filter-select {
  width: 100%;
  padding: 10px 15px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}

.filter-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FF6A00' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 35px;
  cursor: pointer;
}

.filter-select option {
  background: var(--dark);
  color: var(--text);
}

/* ---------- desplegable propio (reemplaza la lista nativa del navegador) ---------- */
.cs-select-wrap {
  position: relative;
  margin-bottom: 10px;
}
.cs-select-wrap select.filter-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}
.cs-select-trigger {
  width: 100%;
  padding: 10px 35px 10px 15px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: block;
}
.cs-select-trigger::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 10px;
  height: 6px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FF6A00' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .2s ease;
}
.cs-select-wrap.open .cs-select-trigger::after { transform: translateY(-50%) rotate(180deg); }
.cs-select-wrap.open .cs-select-trigger { border-color: var(--primary); }

.cs-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.5);
  z-index: 50;
}
.cs-select-wrap.open .cs-select-panel { display: block; }

.cs-select-option {
  padding: 10px 15px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.cs-select-option:hover { background: rgba(255,106,0,0.15); }
.cs-select-option.selected { background: var(--primary); color: #fff; }

.filter-search:focus,
.filter-select:focus {
  border-color: var(--primary);
}

.btn-filter {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-filter:hover {
  background: var(--primary-dark);
}

.sidebar-promo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  position: relative;
}

.promo-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--warning);
  color: var(--dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-promo h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
}

.sidebar-promo p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 15px;
}

.promo-code {
  background: white;
  color: var(--primary);
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.sidebar-promo small {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}

/* ========================================
   CONTENIDO DE TIENDA
   ======================================== */
.shop-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 15px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.showing-products {
  font-size: 14px;
  color: var(--text-muted);
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sort-options label {
  font-size: 14px;
  color: var(--text);
}

.sort-select {
  padding: 8px 15px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  max-width: 100%;
}

.view-mode {
  display: flex;
  gap: 5px;
}

.view-btn {
  padding: 8px 12px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========================================
   GRID DE PRODUCTOS (estilo compacto)
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.2);
  border-color: var(--primary);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.product-badge.new {
  background: #2196F3;
}

.product-badge.sale {
  background: var(--danger);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  background: var(--dark);
  display: block;
}

.product-info {
  padding: 14px;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text);
  overflow-wrap: break-word;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
}

.price-old {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.product-rating .stars {
  color: var(--warning);
  font-size: 12px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.btn-add-cart {
  flex: 1;
  padding: 9px 12px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background: var(--primary-dark);
}

.btn-wishlist {
  padding: 12px 15px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-wishlist:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ========================================
   PAGINACIÓN
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 10px 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-dots {
  color: var(--text-muted);
}

/* ========================================
   BENEFICIOS
   ======================================== */
.shop-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
}

.benefit i {
  font-size: 32px;
  color: var(--primary);
}

.benefit strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
}

.benefit span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  overflow-wrap: break-word;
}

.contact-info i {
  color: var(--primary);
  width: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
}

.payment-methods {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.payment-methods img {
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.payment-methods img:hover {
  opacity: 1;
}

/* ========================================
   CARRITO MODAL
   ======================================== */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-modal-overlay.active {
  display: flex;
}

.cart-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--dark);
  border-radius: 12px;
  margin-bottom: 15px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

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

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  overflow-wrap: break-word;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.cart-modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.total-price {
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-checkout:hover {
  background: var(--primary-dark);
}

/* ========================================
   RESPONSIVE  (SIEMPRE AL FINAL DEL ARCHIVO)
   ======================================== */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  /* El sidebar pasa a ser un panel lateral que se abre con el botón */
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    padding: 20px 16px;
    background: var(--darker);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 2100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .shop-sidebar.open {
    transform: translateX(0);
  }

  .filters-toggle { display: flex; }
  .sidebar-close  { display: block; }

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

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header compacto: logo + acciones en una fila, buscador debajo */
  .header-top {
    padding: 12px 0;
  }

  .header-top-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo { gap: 10px; }
  .logo img { height: 38px; }
  .logo-main { font-size: 17px; }
  .logo-sub { font-size: 10px; letter-spacing: 1px; }

  .header-actions {
    margin-left: auto;
    gap: 16px;
  }

  .header-action span { display: none; }
  .header-action i { font-size: 22px; }

  .header-search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
  }

  /* El menú se desliza horizontalmente en vez de apilarse */
  .nav-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar { display: none; }

  .nav-link {
    padding: 13px 14px;
    white-space: nowrap;
    font-size: 12px;
  }

  /* Evita el zoom automático de iOS al enfocar un campo */
  .search-input,
  .filter-search,
  .filter-select,
  .sort-select,
  .cs-select-trigger {
    font-size: 16px;
  }

  .shop-hero {
    padding: 36px 0;
    margin-bottom: 24px;
  }

  .shop-hero-content { padding: 0 20px; }

  .shop-title { font-size: 28px; }
  .shop-subtitle { font-size: 15px; }

  .shop-features {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
    margin-top: 26px;
  }

  .shop-toolbar {
    padding: 12px 14px;
  }

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

  .product-info { padding: 11px; }
  .product-title { font-size: 13px; }
  .price-current { font-size: 17px; }

  .product-badge {
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    font-size: 10px;
  }

  .btn-add-cart {
    font-size: 12px;
    padding: 10px 8px;
    min-height: 42px;
  }

  .btn-wishlist { padding: 10px 12px; }

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

  .site-footer {
    padding: 40px 0 24px;
    margin-top: 50px;
  }

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  /* Carrito como hoja inferior: más cómodo con una mano */
  .cart-modal-overlay { align-items: flex-end; }

  .cart-modal {
    width: 100%;
    max-width: none;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }

  .cart-item img { width: 64px; height: 64px; }
}

@media (max-width: 420px) {
  .products-grid { gap: 10px; }

  .shop-title { font-size: 23px; }

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

  .product-actions { flex-direction: column; }
  .btn-wishlist { width: 100%; }
}
