/* ============================================================
   BOLSAS SAN JORGE - Premium Navy, Red & Gold Design
   Mobile-First Optimized v2.0
   Color palette: Azul Marino + Rojo + Dorado
   ============================================================ */

:root {
  /* Navy Blue */
  --navy-900: #0A1628;
  --navy-800: #0F2240;
  --navy-700: #152D52;
  --navy-600: #1B3A68;
  --navy-500: #1E4D8C;
  --navy-400: #2A6CB5;
  --navy-300: #4A8FD4;
  --navy-200: #7AB3E8;
  --navy-100: #D0E4F7;

  /* Red */
  --red-900: #5A0A0A;
  --red-800: #7A1010;
  --red-700: #8B1A1A;
  --red-600: #A52020;
  --red-500: #B22222;
  --red-400: #C83232;
  --red-300: #D45050;

  /* Gold */
  --gold-100: #FFF8E7;
  --gold-200: #F5E6B8;
  --gold-300: #E8C547;
  --gold-400: #D4A836;
  --gold-500: #C8962C;
  --gold-600: #B8860B;
  --gold-700: #96700A;

  /* Cream / Neutral */
  --cream: #F8FAFD;
  --cream-dark: #EDF2F8;

  /* Functional colors */
  --bg-body: #F5F7FB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFF;
  --text-primary: #0F2240;
  --text-secondary: #2D4A6E;
  --text-muted: #6B839E;
  --border-light: #D8E2EE;
  --border-medium: #B8C9DC;

  --accent: #B22222;
  --accent-light: #D45050;
  --accent-dark: #8B1A1A;
  --gold: #C8962C;
  --gold-light: #E8C547;
  --gold-dark: #96700A;

  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 20px 60px rgba(10, 22, 40, 0.15);
  --shadow-gold: 0 4px 20px rgba(200, 150, 44, 0.3);
  --shadow-navy: 0 4px 20px rgba(30, 77, 140, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ============ SPLASH SCREEN ============ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 30%, var(--navy-700) 60%, var(--navy-900) 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(200, 150, 44, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(178, 34, 34, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 248, 231, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.splash-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  animation: splashFadeIn 1s ease-out;
}

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

.splash-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.splash-logo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 44, 0.3) 0%, rgba(178, 34, 34, 0.1) 50%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.splash-logo-img {
  width: 240px;
  height: 240px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 8px 40px rgba(200, 150, 44, 0.5));
}

.splash-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 3px;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.splash-subtitle {
  font-size: 1.1rem;
  color: var(--gold-200);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.splash-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1rem 0;
}

.splash-divider::before,
.splash-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.splash-diamond {
  color: var(--gold-400);
  font-size: 0.6rem;
}

.splash-desc {
  font-size: 0.9rem;
  color: rgba(208, 228, 247, 0.8);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.splash-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.splash-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.splash-feature i {
  color: var(--gold-400);
  font-size: 1.3rem;
}

.splash-feature span {
  color: var(--gold-200);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.splash-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #FFF;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(178, 34, 34, 0.5);
  transition: all 0.3s ease;
  border: 2px solid rgba(200, 150, 44, 0.3);
}

.splash-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(178, 34, 34, 0.6);
  border-color: var(--gold-400);
}

.splash-enter-btn:active {
  transform: translateY(0);
}

.splash-enter-btn i {
  transition: transform 0.3s ease;
}

.splash-enter-btn:hover i {
  transform: translateX(4px);
}

/* ============ HEADER (scrollable, NOT sticky) ============ */
.main-header {
  position: relative;
  z-index: 50;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.3);
}

.header-top {
  padding: 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(200, 150, 44, 0.4));
}

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

.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-line1 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold-200);
  letter-spacing: 5px;
}

.brand-line2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

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

.btn-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(200, 150, 44, 0.15);
  border: 1px solid rgba(200, 150, 44, 0.3);
  border-radius: var(--radius-md);
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-info:hover {
  background: rgba(200, 150, 44, 0.25);
  border-color: var(--gold-400);
}

.btn-info i { font-size: 1rem; }
.btn-info-text { letter-spacing: 0.5px; }

@media (max-width: 360px) {
  .btn-info-text { display: none; }
  .btn-info { padding: 8px 10px; }
  .brand-line2 { font-size: 1.2rem; }
}

/* ============ INFO BANNER ============ */
.info-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-bottom: 2px solid rgba(200, 150, 44, 0.2);
}

.info-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.info-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}

.info-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-300);
  font-size: 0.9rem;
  font-weight: 600;
}

.info-banner-title i {
  font-size: 1.1rem;
  color: var(--gold-400);
}

.info-banner-arrow {
  color: var(--gold-400);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.info-banner-arrow.rotated {
  transform: rotate(180deg);
}

.info-banner-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.info-banner-body.open {
  max-height: 2000px;
  padding: 0 0 20px 0;
}

.info-banner-intro {
  color: rgba(208, 228, 247, 0.8);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.info-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .info-banner-grid { grid-template-columns: 1fr 1fr; }
}

.info-banner-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(200, 150, 44, 0.1);
}

.info-banner-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: 50%;
  color: #FFF;
  font-size: 0.9rem;
}

.info-banner-item strong {
  color: var(--gold-300);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 4px;
}

.info-banner-text-xl {
  color: rgba(208, 228, 247, 0.7);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 2px 0;
}

.info-banner-cta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  margin-top: 12px;
  background: rgba(200, 150, 44, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(200, 150, 44, 0.2);
}

.info-banner-cta > i {
  color: var(--gold-400);
  font-size: 1rem;
  margin-top: 2px;
}

/* ============ STICKY FILTER BAR (FROZEN/STICKY) ============ */
.sticky-filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 2px solid var(--navy-100);
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.08);
  transition: box-shadow var(--transition);
}

.sticky-filter-bar.scrolled {
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.15);
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
}

.search-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-400);
  font-size: 0.9rem;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 40px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

.search-wrapper input:focus {
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.12);
}

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

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-500);
  color: #FFF;
  font-size: 0.7rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.filter-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-pills-row::-webkit-scrollbar { display: none; }

.pill-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #FFF;
  border: 1.5px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
}

.pill:hover {
  border-color: var(--navy-300);
  color: var(--navy-500);
}

.pill.active {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  border-color: var(--navy-500);
  color: #FFF;
  box-shadow: 0 2px 10px rgba(30, 77, 140, 0.3);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pill-dot.plano { background: var(--gold-400); }
.pill-dot.adhesivo { background: var(--red-400); }
.pill-dot.cenefa { background: var(--navy-400); }

.micras-row {
  margin-top: 6px;
}

/* ============ RESULTS BAR ============ */
.results-bar {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border-light);
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.results-type {
  color: var(--navy-500);
  font-weight: 600;
  margin-left: 4px;
}

/* ============ MAIN CONTENT ============ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 100px;
}

/* ============ PRODUCT GRID ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ============ PRODUCT CARD — New Design ============ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  animation: cardFadeIn 0.4s ease-out both;
  display: flex;
  flex-direction: column;
}

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

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--navy-200);
}

.product-card.selected {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 2px rgba(200, 150, 44, 0.2), var(--shadow-md);
}

.card-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #F0F5FA, #E4ECF5);
  overflow: hidden;
  cursor: pointer;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image:hover img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.card-badge.plano {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #FFF;
}

.card-badge.adhesivo {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #FFF;
}

.card-badge.cenefa {
  background: linear-gradient(135deg, var(--navy-500), var(--navy-700));
  color: #FFF;
}

.card-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-row {
  cursor: pointer;
}

.card-badge-inline {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-badge-inline.plano {
  background: rgba(200, 150, 44, 0.12);
  color: var(--gold-700);
}

.card-badge-inline.adhesivo {
  background: rgba(178, 34, 34, 0.1);
  color: var(--red-600);
}

.card-badge-inline.cenefa {
  background: rgba(30, 77, 140, 0.1);
  color: var(--navy-600);
}

.card-medida {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  margin-bottom: 2px;
}

.card-medida span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.card-grosor {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  cursor: pointer;
}

/* --- NEW PRICE LAYOUT --- */
.card-prices {
  cursor: pointer;
  margin-bottom: 8px;
}

.card-price-row {
  display: flex;
  gap: 4px;
}

.card-price-item {
  flex: 1;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
}

.card-price-item.menudeo {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.04), rgba(30, 77, 140, 0.08));
  border: 1px solid rgba(30, 77, 140, 0.12);
}

.card-price-item.mayoreo {
  background: linear-gradient(135deg, rgba(200, 150, 44, 0.06), rgba(200, 150, 44, 0.12));
  border: 1px solid rgba(200, 150, 44, 0.15);
}

.price-label-card {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.card-price-item.menudeo .price-label-card {
  color: var(--navy-500);
}

.card-price-item.mayoreo .price-label-card {
  color: var(--gold-600);
}

.price-label-card i {
  margin-right: 2px;
  font-size: 0.5rem;
}

.price-value-card {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
}

.card-price-item.menudeo .price-value-card {
  color: var(--navy-700);
}

.card-price-item.mayoreo .price-value-card {
  color: var(--gold-700);
}

/* Quick Add button - Red with gold accent */
.card-quick-add {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #FFF;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  margin-top: auto;
  border: 1px solid rgba(200, 150, 44, 0.2);
}

.card-quick-add:hover {
  background: linear-gradient(135deg, var(--red-700), var(--red-500));
  box-shadow: 0 4px 12px rgba(178, 34, 34, 0.3);
  border-color: rgba(200, 150, 44, 0.4);
}

/* Card qty section (when selected) */
.card-qty-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: linear-gradient(135deg, rgba(30, 77, 140, 0.06), rgba(30, 77, 140, 0.1));
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 77, 140, 0.2);
  margin-top: auto;
}

.card-qty-section.card-qty-mayoreo {
  background: linear-gradient(135deg, rgba(200, 150, 44, 0.08), rgba(200, 150, 44, 0.14));
  border-color: rgba(200, 150, 44, 0.25);
}

.card-qty-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--navy-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-qty-mayoreo .card-qty-label {
  color: var(--gold-600);
}

.card-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-500);
  color: #FFF;
  font-size: 0.6rem;
  transition: all var(--transition);
}

.card-qty-mayoreo .card-qty-btn {
  background: var(--gold-600);
}

.card-qty-btn:hover {
  transform: scale(1.1);
}

.card-qty-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

.card-qty-total {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-700);
}

.card-qty-mayoreo .card-qty-total {
  color: var(--gold-700);
}

/* ============ NO RESULTS ============ */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  color: var(--border-medium);
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 0.9rem;
}

/* ============ CART BAR ============ */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 -4px 20px rgba(10, 22, 40, 0.3);
  padding: 0;
  border-top: 2px solid var(--gold-400);
}

.cart-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-bar-count {
  font-size: 0.75rem;
  color: var(--navy-200);
  font-weight: 500;
}

.cart-bar-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-300);
}

.cart-bar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #FFF;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid rgba(200, 150, 44, 0.3);
}

.cart-bar-btn:hover {
  box-shadow: 0 4px 16px rgba(178, 34, 34, 0.4);
}

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(178, 34, 34, 0.1);
  color: var(--red-500);
  font-size: 1rem;
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--red-500);
  color: #FFF;
}

/* ============ PRODUCT MODAL ============ */
.modal-product {
  position: relative;
  background: #FFF;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-product-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #F0F5FA, #E4ECF5);
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-product-details {
  padding: 20px;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-badge.plano {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #FFF;
}

.modal-badge.adhesivo {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #FFF;
}

.modal-badge.cenefa {
  background: linear-gradient(135deg, var(--navy-500), var(--navy-700));
  color: #FFF;
}

.modal-product-details h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 12px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.spec-item {
  text-align: center;
  padding: 8px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.spec-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.spec-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-700);
}

/* Modal price toggle */
.modal-price-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.modal-price-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition);
}

.modal-price-toggle-btn.active {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #FFF;
  box-shadow: var(--shadow-navy);
}

.modal-price-toggle-btn i {
  font-size: 0.75rem;
}

/* Modal price display */
.modal-price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 2px solid;
}

.modal-price-display.menudeo-active {
  background: linear-gradient(135deg, rgba(30, 77, 140, 0.04), rgba(30, 77, 140, 0.08));
  border-color: rgba(30, 77, 140, 0.2);
}

.modal-price-display.mayoreo-active {
  background: linear-gradient(135deg, rgba(200, 150, 44, 0.06), rgba(200, 150, 44, 0.12));
  border-color: rgba(200, 150, 44, 0.3);
}

.modal-price-type-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-price-type-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.modal-price-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-700);
}

.modal-price-display.mayoreo-active .modal-price-amount {
  color: var(--gold-700);
}

/* Modal qty */
.modal-qty-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.modal-qty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-500);
  color: #FFF;
  font-size: 0.75rem;
  transition: all var(--transition);
}

.qty-btn:hover {
  background: var(--navy-400);
  transform: scale(1.1);
}

.qty-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 30px;
  text-align: center;
}

.modal-qty-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-700);
}

.modal-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

/* Modal buttons */
.btn-add-to-cart {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--red-700), var(--red-500));
  color: #FFF;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  margin-bottom: 8px;
  border: 1px solid rgba(200, 150, 44, 0.2);
}

.btn-add-to-cart:hover {
  box-shadow: 0 4px 16px rgba(178, 34, 34, 0.4);
}

.btn-whatsapp-modal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #FFF;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-whatsapp-modal:hover {
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-modal.btn-wa-disabled {
  background: #AAA;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-whatsapp-modal.btn-wa-enabled {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  cursor: pointer;
  opacity: 1;
}

/* ============ CART MODAL ============ */
.modal-cart {
  position: relative;
  background: #FFF;
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.cart-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 2px solid var(--navy-100);
}

.cart-header i {
  color: var(--navy-500);
  font-size: 1.3rem;
}

.cart-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-800);
}

.cart-body {
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 2.5rem;
  color: var(--border-medium);
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child { border-bottom: none; }

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

.cart-item-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-800);
}

.cart-item-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-unit {
  display: block;
  font-size: 0.7rem;
  color: var(--navy-500);
  font-weight: 600;
  margin-top: 2px;
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-500);
  color: #FFF;
  font-size: 0.6rem;
  transition: all var(--transition);
}

.cart-qty-btn:hover { transform: scale(1.1); }

.cart-qty-val {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-700);
  min-width: 60px;
  text-align: right;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(178, 34, 34, 0.08);
  color: var(--red-500);
  font-size: 0.7rem;
  transition: all var(--transition);
}

.cart-item-remove:hover {
  background: var(--red-500);
  color: #FFF;
}

.cart-footer {
  padding: 16px 20px 20px;
  border-top: 2px solid var(--navy-500);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-row span:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cart-total-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red-700);
}

/* Payment/Pickup sections */
.payment-select-section {
  margin-bottom: 16px;
}

.payment-select-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
}

.payment-select-title i {
  color: var(--gold-500);
}

.payment-select-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  cursor: pointer;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.payment-option input:checked + .payment-option-content {
  border-color: var(--navy-500);
  background: rgba(30, 77, 140, 0.05);
}

.payment-option-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: 50%;
  color: var(--navy-500);
  font-size: 0.85rem;
}

.payment-option input:checked + .payment-option-content .payment-option-icon {
  background: var(--navy-500);
  color: #FFF;
}

.payment-option-info {
  flex: 1;
}

.payment-option-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-option-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.payment-option-check {
  color: transparent;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.payment-option input:checked + .payment-option-content .payment-option-check {
  color: var(--navy-500);
}

.payment-hint {
  font-size: 0.75rem;
  color: var(--red-500);
  text-align: center;
  padding: 8px;
  margin: 8px 0;
  background: rgba(178, 34, 34, 0.06);
  border-radius: var(--radius-sm);
}

.payment-hint.hidden { display: none; }

.payment-hint i { margin-right: 4px; }

.btn-clear-cart {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  margin-top: 8px;
}

.btn-clear-cart:hover {
  background: rgba(178, 34, 34, 0.06);
  color: var(--red-500);
}

/* ============ INFO MODAL ============ */
.modal-info {
  position: relative;
  background: #FFF;
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.info-header {
  text-align: center;
  padding: 30px 20px 20px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.info-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  margin: 0 auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(200, 150, 44, 0.4));
}

.info-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 2px;
}

.info-subtitle {
  font-size: 0.85rem;
  color: var(--gold-200);
  margin-top: 4px;
}

.info-body {
  padding: 20px;
}

.info-section {
  margin-bottom: 20px;
}

.info-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.info-section h3 i {
  color: var(--gold-500);
}

.info-section p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.features-list li i {
  color: var(--gold-500);
  font-size: 0.8rem;
  margin-top: 3px;
}

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

.payment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.payment-item i {
  color: var(--gold-500);
}

.payment-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.delivery-text {
  padding: 10px 16px;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold-500);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition);
}

.contact-card i {
  width: 20px;
  text-align: center;
  color: var(--navy-500);
}

.contact-card.whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.06);
}

.contact-card.whatsapp i { color: var(--whatsapp); }

.contact-card.whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  transform: translateX(4px);
}

.contact-card:hover {
  border-color: var(--navy-300);
  transform: translateX(4px);
}

/* ============ CATALOG INFO SECTION (in info modal) ============ */
.catalog-product-type {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--navy-500);
}

.catalog-product-type h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 4px;
}

.catalog-product-type .catalog-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

.catalog-product-type .catalog-features-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 6px;
}

.catalog-product-type ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.catalog-product-type ul li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.catalog-product-type ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 700;
}

/* ============ FLOATING WHATSAPP ============ */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  border-radius: 50%;
  color: #FFF;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp.cart-active {
  bottom: 80px;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 150;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  border-radius: 50%;
  color: #FFF;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(30, 77, 140, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top.cart-active {
  bottom: 80px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 400px) {
  .splash-logo-img { width: 180px; height: 180px; }
  .splash-title { font-size: 1.8rem; }
  .splash-features { gap: 1rem; }
  .modal-product-details h2 { font-size: 1.2rem; }
  .card-medida { font-size: 1rem; }
  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item-right { width: 100%; justify-content: space-between; }
}

@media (min-width: 768px) {
  .header-container { padding: 14px 24px; }
  .filter-container { padding: 14px 24px; }
  .main-content { padding: 20px 24px 100px; }
  .brand-line2 { font-size: 1.7rem; }
  .header-logo-img { width: 60px; height: 60px; }
}

@media (min-width: 1024px) {
  .splash-logo-img { width: 280px; height: 280px; }
  .splash-title { font-size: 2.8rem; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb {
  background: var(--navy-400);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }

/* ============ SELECTION ============ */
::selection {
  background: rgba(30, 77, 140, 0.2);
  color: var(--text-primary);
}
