/* ===================================================
   GABISTORE - MODERN & CLEAN E-COMMERCE DESIGN SYSTEM
   =================================================== */

:root {
  --primary: #0066B3;
  --primary-hover: #00529C;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0066B3 0%, #00529C 100%);
  --secondary: #0B1F3A;
  --secondary-light: #172033;
  --accent: #25D366; /* WhatsApp Green */
  --success: #25D366;
  --danger: #DC2626; /* Ofertas */
  --bg-main: #F5F7FA;
  --bg-card: #ffffff;
  --text-main: #172033;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ================= TOP BAR ================= */
.topbar {
  background: #061222;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 8px 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-links {
  display: flex;
  gap: 16px;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  transition: var(--transition);
}

.topbar-links a:hover {
  color: #ffffff;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.site-header {
  background: #0B1F3A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-main {
  padding: 14px 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 102, 179, 0.35);
}

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

.logo-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.logo-title span {
  color: #0088ff;
}

.logo-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Header Top Action Icons */
.header-top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn-header {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn-header:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* TOP MAIN TABS (Catálogo vs Carrito) */
.top-main-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 10px 0;
}

.top-tab-btn {
  height: 46px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  background: #f1f5f9;
  color: #475569;
}

.top-tab-btn.active {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 102, 179, 0.12);
}

.tab-badge {
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 2px;
}

.search-btn-red {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn-red:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 18px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.12);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px 8px 0;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
}

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

.search-clear {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  color: var(--danger);
}

.search-btn {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.search-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  background: white;
  color: var(--secondary);
}

.btn-header:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-cart {
  background: var(--secondary);
  color: white;
  border: none;
  position: relative;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-cart:hover {
  background: #0f172a;
  color: white;
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  height: 20px;
  min-width: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ================= HERO SECTION ================= */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  color: white;
  padding: 36px 0;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  margin-bottom: 24px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(230, 34, 56, 0.35) 0%, rgba(230, 34, 56, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 34, 56, 0.2);
  color: #ff8a98;
  border: 1px solid rgba(230, 34, 56, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-title span {
  color: #ff4b60;
  background: linear-gradient(90deg, #ff4b60, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.hero-card-features i {
  color: #10b981;
}

.btn-hero-action {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(230, 34, 56, 0.4);
}

.btn-hero-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 34, 56, 0.6);
}

/* ================= QUICK CATEGORY PILLS ================= */
.categories-bar-wrapper {
  margin-bottom: 24px;
}

.categories-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px 2px;
  scrollbar-width: thin;
}

.categories-bar::-webkit-scrollbar {
  height: 6px;
}

.categories-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(230, 34, 56, 0.25);
}

.cat-pill .count {
  font-size: 0.75rem;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.cat-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
}

/* ================= MAIN CONTENT LAYOUT ================= */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

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

.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset-filters {
  font-size: 0.8rem;
  color: var(--primary);
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-reset-filters:hover {
  text-decoration: underline;
}

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

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.filter-checkbox-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.filter-checkbox-item input {
  accent-color: var(--primary);
  margin-right: 8px;
  cursor: pointer;
}

.filter-checkbox-item .label-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-checkbox-item .count-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Price Range Inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.price-inputs input:focus {
  border-color: var(--primary);
}

.btn-apply-price {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-apply-price:hover {
  background: var(--primary);
}

/* Switch toggle */
.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.switch-slider {
  width: 38px;
  height: 22px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
}

.switch-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .switch-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .switch-slider::before {
  transform: translateX(16px);
}

/* ================= CATALOG SECTION ================= */
.catalog-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}

.results-info {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.results-info strong {
  color: var(--secondary);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.select-control {
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.88rem;
  color: var(--secondary);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-control:focus {
  border-color: var(--primary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 24px;
}

.btn-fav {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px 4px;
  transition: var(--transition);
}

.btn-fav:hover {
  color: #ef4444;
  transform: scale(1.15);
}

.btn-fav.active {
  color: #e11d48;
}

.card-code-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.pieces-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Catalog count box */
.products-count-box {
  display: flex;
  flex-direction: column;
}

.count-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: #e11d48;
  line-height: 1;
}

.count-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: lowercase;
}

/* MOBILE FIXED BOTTOM NAVIGATION BAR */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.nav-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.nav-bottom-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.nav-bottom-item.active {
  color: #e11d48;
  font-weight: 800;
}

.nav-bottom-item.active i {
  transform: scale(1.1);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 22%;
  background: #e11d48;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 5px;
  min-width: 14px;
  text-align: center;
  border: 1.5px solid white;
}

.badge-stock {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-stock.in-stock {
  background: #dcfce7;
  color: #15803d;
}

.badge-stock.low-stock {
  background: #fef3c7;
  color: #b45309;
}

.badge-stock.out-of-stock {
  background: #fee2e2;
  color: #b91c1c;
}

.card-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 150px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border: 1px dashed #e2e8f0;
  box-sizing: border-box;
}

.card-visual img.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  transition: var(--transition);
}

.product-card:hover .card-visual img.card-img {
  transform: scale(1.06);
}

.card-visual i {
  font-size: 2.5rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.product-card:hover .card-visual i {
  transform: scale(1.1);
  color: var(--primary);
}

.quick-view-btn {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  color: white;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  z-index: 5;
}

.product-card:hover .quick-view-btn {
  bottom: 8px;
}

.card-brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 6px;
  height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  min-height: 28px;
  justify-content: center;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-row i {
  font-size: 0.68rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.price-currency {
  font-size: 0.85rem;
  font-weight: 700;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-main);
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 34px;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.qty-input {
  width: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--secondary);
  outline: none;
}

.btn-add-cart {
  flex: 1;
  background: var(--secondary);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

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

.btn-add-cart.added {
  background: var(--success);
}

/* ================= PAGINATION ================= */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--secondary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

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

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ================= CART DRAWER ================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-card);
  z-index: 201;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

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

.cart-drawer-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
}

.cart-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.cart-close-btn:hover {
  background: #fee2e2;
  color: var(--danger);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cart-empty i {
  font-size: 3.5rem;
  color: #cbd5e1;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
  margin: 2px 0 6px 0;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-item-delete {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.cart-item-delete:hover {
  color: var(--danger);
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-subtotal-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.cart-subtotal-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-checkout {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(230, 34, 56, 0.35);
}

.btn-checkout:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-clear-cart {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-cart:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--danger);
}

/* ================= MODALS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 34, 56, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Quick View specific */
.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.quickview-icon-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: crosshair;
}

.quickview-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out, transform-origin 0.15s ease-out;
  pointer-events: none;
}

.zoom-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.quickview-icon-box:hover .zoom-badge {
  opacity: 0;
}

.quickview-icon-box i {
  font-size: 4.5rem;
  color: var(--primary);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  background: var(--bg-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
}

.spec-list span {
  color: var(--text-muted);
}

.spec-list strong {
  color: var(--secondary);
}

/* ================= FLOATING WHATSAPP & BACK TO TOP ================= */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.float-whatsapp {
  background: #25d366;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.float-top {
  background: var(--secondary);
  display: none;
}

.float-top:hover {
  background: #0f172a;
  transform: translateY(-3px);
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 24px 0;
  margin-top: 48px;
}

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

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ================= TOAST NOTIFICATION ================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--secondary);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.toast.success {
  background: #065f46;
  border: 1px solid #10b981;
}

.toast.info {
  background: #1e3a8a;
  border: 1px solid #3b82f6;
}

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

/* ================= RESPONSIVE DESIGN & MOBILE OPTIMIZATION ================= */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-filters {
    display: none;
  }
  .sidebar-filters.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 150;
    padding: 24px;
    overflow-y: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .topbar .container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    font-size: 0.78rem;
  }
  .topbar-links {
    justify-content: center;
    gap: 14px;
  }
  .header-main {
    padding: 10px 0;
  }
  .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .brand-logo {
    order: 1;
  }
  .header-top-icons {
    order: 2;
  }
  .top-main-tabs {
    order: 3;
    margin: 8px 0;
  }
  .header-search {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
  }
  .search-box {
    height: 44px;
  }
  .search-box input {
    font-size: 0.88rem;
  }
  .categories-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .categories-scroll::-webkit-scrollbar {
    display: none;
  }
  .categories-bar {
    padding: 10px 0;
  }
}

@media (max-width: 640px) {
  .hero-banner {
    padding: 20px 0;
    border-radius: 0 0 16px 16px;
  }
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }
  .hero-stats {
    gap: 12px;
  }
  .stat-num {
    font-size: 1.15rem;
  }

  /* Products Grid 2 Columns - Uniform Alignment */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .product-card {
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
  }

  .card-top {
    margin-bottom: 6px;
    gap: 4px;
    min-height: 20px;
  }

  .badge-stock {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 6px;
  }

  .card-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 130px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #f8fafc;
  }

  .card-visual img.card-img {
    padding: 4px;
  }

  .quick-view-btn {
    bottom: 5px;
    left: auto;
    right: 5px;
    transform: none;
    font-size: 0.62rem;
    padding: 3px 7px;
    opacity: 0.95;
  }

  .card-brand {
    font-size: 0.68rem;
    font-weight: 800;
    color: #e11d48;
    margin-bottom: 2px;
    text-transform: uppercase;
  }

  .card-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    height: 2.5em;
    margin-bottom: 4px;
  }

  .card-meta {
    font-size: 0.66rem;
    min-height: 20px;
    margin-bottom: 6px;
    color: #64748b;
  }

  .card-meta-row i {
    font-size: 0.62rem;
  }

  .card-footer {
    padding-top: 6px;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
  }

  .price-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
  }

  .price-val {
    font-size: 1.05rem;
    font-weight: 900;
    color: #e11d48;
  }

  .card-actions {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .qty-stepper {
    width: 100%;
    justify-content: space-between;
    height: 32px;
    padding: 1px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
  }

  .qty-input {
    height: 28px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
  }

  .btn-add-cart {
    width: 100%;
    height: 36px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    justify-content: center;
    padding: 0 6px;
    background: #0f172a;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
  }

  .btn-add-cart:hover {
    background: #1e293b;
  }

  /* Cart Drawer Mobile Full Width */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  /* Modals Mobile Bottom Sheet */
  .modal-container {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    margin-top: auto;
  }

  .form-grid, .quickview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quickview-icon-box {
    height: 180px;
  }

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

  .floating-actions {
    bottom: 76px;
    right: 14px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* Ultra Small Phones (<360px) */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card-visual {
    max-height: 160px;
  }
}
