/* ==========================================================================
   QUIMCA - MODERN CHEMICAL CATALOG DESIGN SYSTEM
   ========================================================================== */

:root {
  --primary: #023665;
  --primary-hover: #0082c8;
  --primary-light: #f0f7fc;
  --primary-border: #bae6fd;
  
  --secondary: #012445;
  --secondary-surface: #0a335c;
  
  --brand-navy: #023665;
  --brand-navy-dark: #012445;
  --brand-blue: #0082c8;
  --brand-blue-hover: #006ea8;
  --brand-teal: #36c088;
  --brand-teal-light: #53c893;
  --brand-gradient: linear-gradient(135deg, #012445 0%, #023665 45%, #0082c8 85%, #36c088 100%);
  
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  --whatsapp-dark: #128C7E;
  
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  
  --text-main: #012445;
  --text-muted: #52637a;
  --text-light: #8fa0b5;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}

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

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement {
  background: linear-gradient(90deg, #012445 0%, #023665 100%);
  color: #f1f5f9;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-teal);
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-links a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.announcement-links a:hover {
  color: #bae6fd;
  text-decoration: underline;
}

/* ==========================================================================
   SITE HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 3px solid var(--brand-teal);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(2, 54, 101, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-logo-img {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo:hover .site-logo-img {
  transform: scale(1.02);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 580px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  background-color: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.search-input-wrap input:focus {
  background-color: #ffffff;
  border-color: var(--brand-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 130, 200, 0.18);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-whatsapp-header {
  background-color: var(--whatsapp);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 9px 18px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

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

.cart-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0f7fc;
  color: var(--brand-navy);
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-pill-btn:hover {
  background-color: #e0f2fe;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.cart-pill-count {
  background-color: var(--brand-navy);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  background: 
    radial-gradient(circle at 85% 20%, rgba(54, 192, 136, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(0, 130, 200, 0.25) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M60 0 L90 17.3 L90 52 L60 69.3 L30 52 L30 17.3 Z M0 52 L30 69.3 L30 104 L0 121.3 L-30 104 L-30 69.3 Z M120 52 L150 69.3 L150 104 L120 121.3 L90 104 L90 69.3 Z' fill='none' stroke='%2338bdf8' stroke-width='1.2' stroke-opacity='0.12'/%3E%3Ccircle cx='60' cy='34.6' r='3.5' fill='%2336c088' fill-opacity='0.3'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #012445 0%, #023665 50%, #005a96 100%);
  color: #ffffff;
  padding: 56px 0 46px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-teal);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 54, 101, 0.65);
  border: 1px solid rgba(54, 192, 136, 0.45);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e0f2fe;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-teal);
  box-shadow: 0 0 10px var(--brand-teal);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 750px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-subtitle strong {
  color: #ffffff;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}

.feature-icon {
  font-size: 1.4rem;
}

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

.feature-text strong {
  font-size: 0.875rem;
  color: #ffffff;
}

.feature-text span {
  font-size: 0.725rem;
  color: #94a3b8;
}

/* ==========================================================================
   FILTERS & CATEGORIES
   ========================================================================== */
.filters-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.category-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.category-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}
.category-scroll-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.category-pills {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.cat-pill {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background-color: #f8fafc;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.cat-pill.active {
  background: linear-gradient(135deg, #023665 0%, #0082c8 100%);
  color: #ffffff;
  border-color: #023665;
  box-shadow: 0 3px 10px rgba(2, 54, 101, 0.25);
}

.secondary-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.875rem;
}

.filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-wrap label {
  font-weight: 600;
  color: var(--text-muted);
}

.select-wrap select {
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
}

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

.results-stats strong {
  color: var(--primary);
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */
.products-section {
  padding: 36px 0 60px;
}

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

/* PRODUCT CARD */
.product-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: 0 12px 24px -4px rgba(2, 54, 101, 0.14);
}

/* Card Image Area */
.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card-media-wrap:hover .product-img {
  transform: scale(1.05);
}

/* Badges on Image */
.card-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.badge-grade {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-grade-usp {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.badge-grade-pharma {
  background-color: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.badge-grade-cosmetic {
  background-color: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.badge-grade-food {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-grade-technical {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-source {
  display: none !important;
}

.card-quick-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-media-wrap:hover .card-quick-zoom {
  opacity: 1;
}

/* Card Content Area */
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.card-brand {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-cas {
  font-family: var(--font-mono);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.card-title-row {
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--primary);
}

.card-comm-name {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-mfg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 4px;
  padding-top: 6px;
  border-top: 1px dashed #f1f5f9;
}

.mfg-tag {
  color: #64748b;
  font-size: 0.72rem;
}

.mfg-tag strong {
  color: #334155;
  font-weight: 700;
}

/* Presentation Pills Selector */
.presentation-selector {
  margin-top: auto;
  padding: 10px 0;
  border-top: 1px dashed #e2e8f0;
}

.pres-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pres-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pres-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background-color: #f8fafc;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pres-pill:hover {
  border-color: var(--primary);
  background-color: #f0f9ff;
}

.pres-pill.active {
  background: linear-gradient(135deg, #023665 0%, #0082c8 100%);
  color: #ffffff;
  border-color: #023665;
  box-shadow: 0 2px 6px rgba(2, 54, 101, 0.25);
}

/* Real Weight / Liters to Kg Equivalence Highlight */
.card-equiv-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 9px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
}

.equiv-badge {
  font-weight: 700;
  color: #15803d;
  letter-spacing: -0.01em;
}

.equiv-density-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #0f766e;
  background: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #dcfce7;
  white-space: nowrap;
}

/* Card Price Row */
.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.price-sku {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Card Action Buttons */
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-whatsapp-buy {
  background-color: var(--whatsapp);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 10px;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-whatsapp-buy:hover {
  background-color: var(--whatsapp-hover);
}

.btn-add-quote {
  background-color: #f1f5f9;
  color: #0f172a;
  border: 1px solid var(--card-border);
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-quote:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.modal-media-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}

.modal-main-img-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 280px;
  max-height: 280px;
  background: #ffffff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: all 0.25s ease;
}

.modal-main-img-wrap:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(2, 54, 101, 0.15);
}

.modal-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: all 0.2s ease;
}

.modal-main-img-wrap:hover .modal-zoom-badge {
  background: var(--primary);
  transform: scale(1.05);
}

.modal-main-img-wrap img {
  max-width: 100%;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  pointer-events: none;
}

.btn-modal-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f8fafc;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 280px;
}

.btn-modal-zoom:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  justify-content: center;
  max-width: 280px;
  width: 100%;
}

.modal-thumb {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-thumb:hover {
  border-color: var(--primary-hover);
}

.modal-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 54, 101, 0.2);
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 6px;
}

.modal-comm-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.tech-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.tech-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}

/* ==========================================================================
   FLOATING CART BAR
   ========================================================================== */
.cart-floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: linear-gradient(90deg, #012445 0%, #023665 100%);
  color: #ffffff;
  padding: 14px 0;
  border-top: 2px solid var(--brand-teal);
  box-shadow: 0 -4px 20px rgba(1, 36, 69, 0.35);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cart-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-bar-badge {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.cart-bar-text {
  display: flex;
  flex-direction: column;
}

.cart-bar-title {
  font-size: 0.85rem;
  color: #94a3b8;
}

.cart-bar-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

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

.btn-outline-cart {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-cart:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-whatsapp-submit {
  background-color: var(--whatsapp);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-submit:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   CART DRAWER MODAL
   ========================================================================== */
.cart-drawer-container {
  max-width: 600px;
  padding: 24px;
}

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

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 6px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  gap: 12px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.cart-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

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

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 75px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.cart-drawer-summary {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--card-border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.summary-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

/* ==========================================================================
   FLOATING WHATSAPP CHAT BUTTON
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 90;
  background-color: var(--whatsapp);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--whatsapp-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow-md);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #012445 0%, #021a30 100%);
  color: #94a3b8;
  padding: 56px 0 24px;
  border-top: 4px solid var(--brand-teal);
  position: relative;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-contact-item {
  color: #e2e8f0;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: var(--whatsapp);
  text-decoration: none;
  font-weight: 700;
}

.footer-nav-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.825rem;
}

.footer-nav-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-col a:hover {
  color: #ffffff;
}

.admin-link {
  color: #38bdf8 !important;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
}

/* ==========================================================================
   LOADING & EMPTY STATES
   ========================================================================== */
.loading-state, .no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--primary-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-results-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.no-results h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   IMAGE LIGHTBOX / ZOOM MODAL
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lightbox-header {
  height: 62px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 10;
}

.lightbox-title-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}

.lightbox-title {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 450px;
}

.lightbox-hint {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #38bdf8;
}

.lightbox-level {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  min-width: 44px;
  text-align: center;
  font-weight: 700;
}

.lightbox-close {
  background: #e11d48;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: #be123c;
  transform: scale(1.05);
}

.lightbox-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.lightbox-canvas {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-width: 90vw;
  max-height: 82vh;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.lightbox-canvas img {
  max-width: 80vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  user-select: none;
  pointer-events: auto;
}

.lightbox-canvas.is-zoomed {
  cursor: grab;
}

.lightbox-canvas.is-dragging {
  cursor: grabbing;
}

.lightbox-canvas.is-dragging img {
  transition: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .hero-title { font-size: 2rem; }
  .modal-grid { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .modal-media-col { max-width: 240px; margin: 0 auto; }
  .modal-main-img-wrap { height: 240px; max-height: 240px; max-width: 240px; }
  .modal-main-img-wrap img { max-height: 215px; }
  .btn-modal-zoom { max-width: 240px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .lightbox-title { max-width: 200px; font-size: 0.88rem; }
  .lightbox-hint { display: none; }
  .lightbox-body { padding: 12px; }
  .lightbox-canvas { padding: 12px; }
  .lightbox-canvas img { max-width: 88vw; max-height: 70vh; }
}

@media (max-width: 640px) {
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; width: 100%; }
  .hero-title { font-size: 1.65rem; }
  .products-grid { grid-template-columns: 1fr; }
  .cart-bar-inner { flex-direction: column; align-items: stretch; }
  .cart-bar-actions { justify-content: space-between; }
  .whatsapp-float-btn { bottom: 95px; right: 16px; width: 52px; height: 52px; }
}
