/* ─────────────────────────────────────────────
   LA SEGUNDA PC — CATALOG UI (PREMIUM v3)
   Mobile-First · Tabs + Chips + 2-Column Grid
───────────────────────────────────────────── */

:root {
  --primary:       #0066ff;
  --primary-dark:  #0052cc;
  --primary-light: #e8f0ff;
  --success:       #25d366;
  --danger:        #ff4d4d;
  --white:         #ffffff;
  --bg-light:      #f4f6fb;
  --bg-chip:       #ffffff;
  --text-main:     #0f172a;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow:        0 10px 30px rgba(0,0,0,0.10);
  --radius-card:   20px;
  --radius-pill:   50px;
  --transition:    all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset helpers ── */
*, *::before, *::after { box-sizing: border-box; }
button { font-family: inherit; cursor: pointer; }

.catalog-page {
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   FIXED TOP BAR
═══════════════════════════════════════════ */
.catalog-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.topbar-inner {
  padding: 10px 5%;
  display: flex;
  justify-content: center;
}

.topbar-inner-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
}

/* Logo */
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-logo img { height: 40px; border-radius: 8px; }
.topbar-logo .logo-text {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
}
.topbar-logo .logo-text span { color: var(--primary); }

/* Search (central, flex-grow) */
.topbar-search {
  position: relative;
  flex-grow: 1;
  max-width: 700px;
}
.topbar-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
#searchInput {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--bg-light);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-main);
}
#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,102,255,0.1);
}
#searchInput::placeholder { color: var(--text-muted); }

/* Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.branch-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.cart-trigger {
  position: relative;
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: var(--transition);
}
.cart-trigger:hover { border-color: var(--primary); color: var(--primary); }
.count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  padding: 0 3px;
}


/* ═══════════════════════════════════════════
   SIDEBAR — Radio buttons for category
═══════════════════════════════════════════ */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 5px 5% 50px 5%;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}

/* ── Controls bar (above grid) ── */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.results-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,102,255,0.2);
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.catalog-sidebar {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 25px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 110px; /* Ajustado para el nuevo padding superior */
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}
.sidebar-header h3 {
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.btn-close-sidebar {
  display: none;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
}

.filter-group { margin-bottom: 22px; }
.filter-group h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-light);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--white);
}

.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 3px 0;
}
.filter-item:hover { color: var(--primary); }
.filter-item input[type="checkbox"],
.filter-item input[type="radio"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.filter-item span.count {
  margin-left: auto;
  font-size: 0.75rem;
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--text-muted);
}
/* Highlight active radio row */
.filter-item:has(input[type="radio"]:checked) {
  color: var(--primary);
  font-weight: 700;
}

/* Toggle switch (Promo Only) */
.promo-filter { padding: 14px; background: #fff7ed; border-radius: 12px; border: 1px solid #fed7aa; }
.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c2410c;
}
.switch-container input { display: none; }
.slider {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}
.slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.switch-container input:checked + .slider { background: #f97316; }
.switch-container input:checked + .slider::after { left: 23px; }

.sidebar-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.btn-outline-sidebar {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-outline-sidebar:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ═══════════════════════════════════════════
   CATALOG GRID
═══════════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Loading */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
  gap: 20px;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   PRODUCT CARDS — strictly vertical at ALL sizes
═══════════════════════════════════════════ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
  overflow: hidden;         /* recorta hijos que intenten salirse */
  transition: var(--transition);
  /* FORCE vertical — never row */
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  min-width: 0;             /* CRUCIAL: evita flexbox blowout en grid/flex containers */
  max-width: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

/* Image container: always full width, fixed height */
.card-image-wrapper {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .card-image-wrapper img { transform: scale(1.05); }

/* ───────────────────────────────────────────
   CARD SWIPER (Swiper.js gallery per card)
─────────────────────────────────────────── */
/* Asegurar que los carruseles y contenedores de imagen sean blancos */
.card-swiper, 
.product-image-carousel, 
.card-image-wrapper, 
.acc-img-container {
    background-color: #ffffff !important;
}
.card-swiper {
  width: 100%;
  height: 220px;
  border-radius: 12px 12px 0 0;  /* top corners match card */
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.card-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important; /* Forzar el blanco en la diapositiva */
}
.card-swiper img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Pagination dots */
.card-swiper .swiper-pagination-bullet {
  background: #94a3b8;
  opacity: 1;
}
.card-swiper .swiper-pagination-bullet-active {
  background: var(--primary) !important;
}
/* Push pagination dots above bottom edge */
.card-swiper .swiper-pagination {
  bottom: 4px;
}
/* Navigation arrows — compact size so they don't cover the image */
.card-swiper {
  --swiper-navigation-size: 20px;
  --swiper-navigation-color: #fff;
}
.card-swiper .swiper-button-prev,
.card-swiper .swiper-button-next {
  width:  32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.card-swiper .swiper-button-prev:hover,
.card-swiper .swiper-button-next:hover {
  background: var(--primary);
}
.card-swiper .swiper-button-prev { left:  6px; }
.card-swiper .swiper-button-next { right: 6px; }
/* Hide arrows when there's only one slide (Swiper adds .swiper-button-disabled) */
.card-swiper .swiper-button-disabled { opacity: 0 !important; pointer-events: none; }


.promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.68rem;
  box-shadow: 0 4px 10px rgba(255,77,77,0.3);
  letter-spacing: 0.5px;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-sku {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}
.pill {
  background: var(--bg-light);
  color: #475569;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pill i { font-size: 0.7rem; color: var(--primary); }
.graphics-pill i { color: #f59e0b; } /* Color Ámbar para GPU */

.promo-vigencia {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--danger, #e53e3e);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.promo-vigencia i { font-size: 0.75rem; }

.branch-stock-badge {
  background: #e6f4ea;
  color: #137333;
  font-size: 0.72rem;
  padding: 7px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(19,115,51,0.12);
  flex-wrap: wrap;
}

.card-price-container { margin-top: auto; margin-bottom: 15px; }
.price-list {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
  margin-bottom: 2px;
}
.price-offer {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}
.price-offer.is-promo { color: var(--danger); }

/* ═══════════════════════════════════════════
   ADD TO CART BUTTON — always pinned to bottom
═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   CARD ACTIONS (dual buttons)
═══════════════════════════════════════════ */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.card-actions .btn-add-cart {
  flex: 1;
  margin-top: 0;  /* override the auto from standalone usage */
  padding: 11px 10px;
  font-size: 0.82rem;
}
.btn-whatsapp-direct {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 10px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
.btn-whatsapp-direct:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,211,102,0.4);
}
.btn-whatsapp-direct i { font-size: 1rem; }

.btn-add-cart {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;  /* pin to bottom of card */
  text-decoration: none;
  cursor: pointer;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   CART DRAWER (Offcanvas Right)
═══════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}
.cart-overlay.open { visibility: visible; opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 3000;
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-close {
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.btn-close:hover { background: var(--danger); color: white; }

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item-img {
  width: 65px;
  height: 65px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.cart-item-info p { font-weight: 800; color: var(--primary); font-size: 0.95rem; }
.cart-item-info small { color: var(--text-muted); font-size: 0.75rem; }
.btn-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}
.cart-summary { margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.summary-row.total {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.btn-checkout {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-pill);
  background: var(--success);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 18px rgba(37,211,102,0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.btn-checkout:hover { filter: brightness(1.08); transform: translateY(-2px); }
.checkout-note {
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════
   FLOATING ACTION BUTTON
═══════════════════════════════════════════ */
.cart-fab {
  position: fixed;
  bottom: 80px; /* Subido para dejar espacio al disclaimer */
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(0,102,255,0.35);
  z-index: 1500;
  transition: var(--transition);
}
.cart-fab:hover { transform: scale(1.08); background: var(--primary-dark); }
.fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.catalog-footer {
  text-align: center;
  padding: 40px 20px 120px; /* Espacio extra para el disclaimer fijo */
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--white);
}

/* DISCLAIMER FIJO (Legal) */
.catalog-disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95); /* Regresado a la solidez original */
  backdrop-filter: blur(10px);
  color: #f1f5f9;
  padding: 10px 5%;
  z-index: 4000;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 25px rgba(0,0,0,0.3);
}
.disclaimer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.disclaimer-content i {
  color: #fbbf24;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.disclaimer-content p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 400;
}
.disclaimer-content strong {
  color: #fbbf24;
  font-weight: 700;
}

@media (max-width: 768px) {
  .catalog-disclaimer {
    padding: 6px 3%; /* Más compacto */
  }
  .disclaimer-content {
    gap: 8px;
  }
  .disclaimer-content i {
    font-size: 1rem;
  }
  .disclaimer-content p {
    font-size: 0.68rem;
    line-height: 1.3;
  }
  .cart-fab {
    bottom: 85px !important; /* Ajustado al nuevo tamaño más pequeño */
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1100px)
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 0;
  }

  /* Sidebar → Top Down Sheet */
  .catalog-sidebar {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    max-height: 82vh;
    height: auto;
    z-index: 2500;
    border-radius: 0 0 28px 28px;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    bottom: auto;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  }
  .catalog-sidebar.open { top: 0; }

  .btn-close-sidebar { display: flex !important; }
  .mobile-filter-btn { display: flex; }
  .mobile-filter-bar {
    position: sticky;
    top: 70px; /* Debajo de la topbar fija */
    z-index: 800;
    background: var(--bg-light);
    padding: 10px 5%;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 600px) {
  .topbar-inner { padding: 10px 4%; gap: 10px; }
  .topbar-logo .logo-text { display: none; }
  .branch-pill { display: none; }
  .topbar-search { max-width: none; }

  /* MOBILE: 1-column grid, full-width vertical cards */
  .catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .catalog-layout { padding: 16px; }

  /* Guarantee column layout — block any row override */
  .product-card,
  .pos-card {
    flex-direction: column !important;
    width: 100% !important;
  }

  .card-image-wrapper,
  .pos-card .card-image-wrapper {
    width: 100% !important;
    height: 200px !important;
    flex-shrink: 0 !important;
  }

  .price-offer { font-size: 1.3rem; }
  .card-title { font-size: 0.95rem; }
}

