/* ============================================================
   BOLSAS CELARES - Ultra Modern Professional Styles
   ============================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --gold-100: #FFF8E7;
  --gold-200: #F5E6B8;
  --gold-300: #E8C547;
  --gold-400: #D4A836;
  --gold-500: #B8860B;
  --gold-600: #96700A;
  --black: #0A0A0A;
  --gray-900: #1A1A1A;
  --gray-800: #2A2A2A;
  --gray-700: #3A3A3A;
  --gray-600: #555;
  --gray-500: #777;
  --gray-400: #999;
  --gray-300: #BBB;
  --gray-200: #DDD;
  --gray-100: #F0F0F0;
  --white: #FFFFFF;
  --bg-body: #F5F3EF;
  --bg-card: #FFFFFF;
  --accent: #B8860B;
  --accent-light: #F5E6B8;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ---- Global Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-400); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-500); }

/* ============================================================
   HEADER - Scrollable (NOT fixed)
   ============================================================ */
.main-header {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-900) 50%, #1a1308 100%);
  position: relative;
  z-index: 10;
}

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

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

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

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(184, 134, 11, 0.4));
  transition: var(--transition);
}

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

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 3px;
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 0.7rem;
  color: var(--gold-200);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.8;
}

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

.btn-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid rgba(232, 197, 71, 0.3);
  border-radius: 50px;
  background: rgba(232, 197, 71, 0.08);
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  backdrop-filter: blur(10px);
}

.btn-info:hover {
  background: rgba(232, 197, 71, 0.18);
  border-color: var(--gold-300);
  transform: translateY(-1px);
}

.btn-info i {
  font-size: 1rem;
}

.btn-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--whatsapp);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-header:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-header i {
  font-size: 1.1rem;
}

/* ============================================================
   STICKY FILTER BAR - Fixed on scroll
   ============================================================ */
.sticky-filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.sticky-filter-bar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.filter-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Search */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

#searchInput:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

#searchInput:focus + .search-icon,
#searchInput:focus ~ .search-icon {
  color: var(--gold-500);
}

#searchInput::placeholder {
  color: var(--gray-400);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-200);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 0.7rem;
  transition: var(--transition);
}

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

.search-clear:hover {
  background: var(--gray-300);
}

/* Filter Pills Row */
.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}

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

.pill-group {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  background: var(--gray-100);
  border-radius: 50px;
  padding: 3px;
}

.pill-group + .pill-group::before {
  content: '';
  display: none;
}

.pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-main);
}

.pill:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--gray-800);
}

.pill.active {
  background: var(--black);
  color: var(--gold-300);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pill i {
  font-size: 0.72rem;
}

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

.pill-dot.plano {
  background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
  border: 1px solid #AAA;
}

.pill-dot.adhesivo {
  background: linear-gradient(135deg, #FF9EAA, #FFB6C1);
  border: 1px solid #E88;
}

/* ============================================================
   RESULTS BAR
   ============================================================ */
.results-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.results-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

#resultsCount {
  font-weight: 600;
  color: var(--gray-700);
}

.results-type {
  color: var(--gold-500);
  font-weight: 500;
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}

/* ============================================================
   PRODUCT CARD - Premium Design
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

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

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 134, 11, 0.2);
}

.product-card:active {
  transform: translateY(-2px) scale(0.98);
}

/* Card Image Area */
.card-image {
  position: relative;
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

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

/* Badge */
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-badge.plano {
  background: linear-gradient(135deg, rgba(200,200,200,0.9), rgba(230,230,230,0.9));
  color: var(--gray-700);
  backdrop-filter: blur(4px);
}

.card-badge.adhesivo {
  background: linear-gradient(135deg, rgba(255,182,193,0.9), rgba(255,158,170,0.9));
  color: #8B2252;
  backdrop-filter: blur(4px);
}

/* Card Body */
.card-body {
  padding: 10px 12px 12px;
}

.card-medida {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 2px;
  font-family: var(--font-main);
}

.card-medida span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-left: 2px;
}

.card-grosor {
  font-size: 0.68rem;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 500;
}

/* Prices */
.card-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.card-price.mayoreo {
  background: linear-gradient(135deg, var(--gold-100), #FFF5D6);
  border: 1px solid rgba(184, 134, 11, 0.12);
}

.card-price.publico {
  background: var(--gray-100);
  border: 1px solid transparent;
}

.price-label-card {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 3px;
}

.price-label-card i {
  font-size: 0.6rem;
}

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

.price-value-card {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-main);
}

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

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--gray-600);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0,0,0,0.12);
  transform: rotate(90deg);
}

/* Product Modal */
.modal-product {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-product,
.modal-overlay.active .modal-info {
  transform: scale(1) translateY(0);
}

.modal-product-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #FAFAFA, #F0EDE6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.modal-product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, white);
}

.modal-product-image img {
  max-width: 70%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.1));
}

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

.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, #E8E8E8, #D0D0D0);
  color: var(--gray-700);
}

.modal-badge.adhesivo {
  background: linear-gradient(135deg, #FFB6C1, #FF9EAA);
  color: #8B2252;
}

.modal-product-details h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  font-family: var(--font-main);
}

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

.spec-item {
  text-align: center;
  padding: 10px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

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

.spec-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
}

.modal-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-price-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-100), #FFF5D6);
  border: 1.5px solid rgba(184, 134, 11, 0.15);
  text-align: center;
}

.modal-price-box.public {
  background: var(--gray-100);
  border-color: transparent;
}

.price-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-600);
  margin-bottom: 6px;
}

.modal-price-box.public .price-label {
  color: var(--gray-500);
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-500);
  font-family: var(--font-main);
}

.modal-price-box.public .price-amount {
  color: var(--gray-800);
}

.modal-note {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 16px;
  font-style: italic;
}

.btn-whatsapp-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  background: var(--whatsapp);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-modal:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-modal i {
  font-size: 1.2rem;
}

/* ============================================================
   INFO MODAL
   ============================================================ */
.modal-info {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-xl);
}

.info-header {
  text-align: center;
  padding: 32px 24px 24px;
  background: linear-gradient(135deg, var(--black), var(--gray-900));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.info-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(184, 134, 11, 0.3));
}

.info-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-300);
  letter-spacing: 5px;
  margin-bottom: 4px;
}

.info-subtitle {
  font-size: 0.75rem;
  color: var(--gold-200);
  letter-spacing: 1px;
  opacity: 0.8;
}

.info-body {
  padding: 24px;
}

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

.info-section:last-child {
  margin-bottom: 0;
}

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

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

.info-section p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 8px;
}

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

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.features-list li i {
  color: var(--gold-500);
  margin-top: 3px;
  flex-shrink: 0;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--gray-700);
  text-align: center;
}

.payment-item i {
  font-size: 1.2rem;
  color: var(--gold-500);
}

.delivery-text {
  padding: 12px 16px;
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--whatsapp);
  font-weight: 500 !important;
  color: #2E7D32 !important;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

a.contact-card:hover {
  background: var(--gray-200);
  transform: translateX(4px);
}

.contact-card i {
  font-size: 1.1rem;
  color: var(--gray-500);
  width: 24px;
  text-align: center;
}

.contact-card.whatsapp {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.15);
}

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

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

.contact-card.email {
  background: rgba(184, 134, 11, 0.06);
  border: 1px solid rgba(184, 134, 11, 0.12);
}

.contact-card.email i {
  color: var(--gold-500);
}

.contact-card.email:hover {
  background: rgba(184, 134, 11, 0.12);
}

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

.no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.no-results h3 {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}

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

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: var(--whatsapp-dark);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: var(--gold-300);
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .logo-img {
    width: 42px;
    height: 42px;
  }

  .logo-text h1 {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .logo-text .tagline {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .btn-info span,
  .btn-whatsapp-header span {
    display: none;
  }

  .btn-info,
  .btn-whatsapp-header {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .btn-info i,
  .btn-whatsapp-header i {
    margin: 0;
    font-size: 1.1rem;
  }

  .filter-container {
    padding: 10px 12px;
  }

  #searchInput {
    padding: 10px 38px;
    font-size: 0.85rem;
  }

  .pill {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

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

  .main-content {
    padding: 12px 12px 100px;
  }

  .card-image {
    height: 95px;
  }

  .card-body {
    padding: 8px 10px 10px;
  }

  .card-medida {
    font-size: 1rem;
  }

  .modal-product {
    max-width: 100%;
    margin: 0 8px;
    border-radius: var(--radius-lg);
  }

  .modal-info {
    max-width: 100%;
    margin: 0 8px;
    border-radius: var(--radius-lg);
  }

  .modal-product-image {
    height: 180px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .card-image {
    height: 80px;
  }

  .card-medida {
    font-size: 0.9rem;
  }

  .card-price {
    padding: 4px 6px;
  }

  .price-value-card {
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

@media (min-width: 1025px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }

  .card-image {
    height: 120px;
  }
}

/* ============================================================
   ANIMATION DELAYS for grid items
   ============================================================ */
.product-card:nth-child(1) { animation-delay: 0.02s; }
.product-card:nth-child(2) { animation-delay: 0.04s; }
.product-card:nth-child(3) { animation-delay: 0.06s; }
.product-card:nth-child(4) { animation-delay: 0.08s; }
.product-card:nth-child(5) { animation-delay: 0.10s; }
.product-card:nth-child(6) { animation-delay: 0.12s; }
.product-card:nth-child(7) { animation-delay: 0.14s; }
.product-card:nth-child(8) { animation-delay: 0.16s; }
.product-card:nth-child(9) { animation-delay: 0.18s; }
.product-card:nth-child(10) { animation-delay: 0.20s; }
.product-card:nth-child(11) { animation-delay: 0.22s; }
.product-card:nth-child(12) { animation-delay: 0.24s; }
.product-card:nth-child(n+13) { animation-delay: 0.26s; }

/* ============================================================
   SKELETON / LOADING STATE
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Price toggle animation ---- */
.price-hidden {
  display: none !important;
}

.price-visible {
  display: flex !important;
}
