:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #10b981;
  --accent-hover: #059669;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: #0f172a;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

/* Top Contact Bar */
.top-contact-bar {
  background: #090d16;
  color: #94a3b8;
  font-size: 0.775rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 20px;
}

.top-contact-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contact-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-contact-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-wa-link {
  color: #34d399;
  text-decoration: none;
  transition: color 0.15s;
}

.top-wa-link:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--bg-header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.desktop-only {
  display: inline-flex;
}

@media (max-width: 640px) {
  .desktop-only {
    display: none !important;
  }
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.brand-info span {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
}

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

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cart {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
}

.btn-cart:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.cart-count {
  background: #ffffff;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 36px 20px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* Main Container */
.catalog-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Search and Filters Bar */
.filter-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  background: var(--bg-main);
  color: var(--text-main);
}

.search-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  display: none;
}

.search-box.has-text .clear-search-btn {
  display: block;
}

.sort-select {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* Category Pills Bar */
.categories-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

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

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

.category-pill {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover {
  background: var(--border-light);
  color: var(--text-main);
}

.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.pill-count {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.07);
}

.category-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Colors Filter Bar */
.color-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.color-filter-title {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 6px;
}

.color-chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.color-chip:hover {
  border-color: #94a3b8;
  background: var(--border-light);
}

.color-chip.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Status / Results Count */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.results-count strong {
  color: var(--text-main);
}

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

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}

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

/* Load More Section */
.load-more-wrapper {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-load-more {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-load-more:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.load-more-remaining {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 85%;
  background: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

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

.placeholder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.placeholder-img svg {
  width: 44px;
  height: 44px;
  stroke: #94a3b8;
}

.card-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

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

.card-code {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-copy-code {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
}

.btn-copy-code:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-colors {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-height: 22px;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.more-colors-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-view-detail {
  flex: 1;
  padding: 10px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-view-detail:hover {
  background: var(--primary);
  color: #fff;
}

.btn-add-interest {
  padding: 10px 14px;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-add-interest:hover {
  background: var(--border-color);
}

.btn-add-interest.in-cart {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-state svg {
  width: 60px;
  height: 60px;
  stroke: #cbd5e1;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
  z-index: 10;
}

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

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 32px;
}

.modal-media {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 340px;
}

.modal-media img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-category-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.modal-code-tag {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.modal-code-tag strong {
  color: var(--primary);
}

.modal-desc-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-line;
  color: #334155;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.modal-colors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-color-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.btn-whatsapp-quote {
  padding: 14px 20px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

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

.btn-toggle-cart {
  padding: 12px 18px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-toggle-cart:hover {
  background: #e2e8f0;
}

/* Drawer: Mi Selección / Cotización */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
}

.drawer-content.open {
  transform: translateX(0);
}

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

.drawer-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

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

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

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.cart-item-colors {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.btn-remove-item:hover {
  color: #ef4444;
}

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

/* Config Modal */
.config-input-group {
  margin-bottom: 16px;
}

.config-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.config-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  outline: none;
}

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

.config-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 48px 20px 24px;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 36px;
  text-align: left;
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-link-wa {
  color: #34d399;
  text-decoration: none;
  font-weight: 700;
}

.footer-link-wa:hover {
  text-decoration: underline;
}

.footer-link-mail {
  color: #60a5fa;
  text-decoration: none;
}

.footer-link-mail:hover {
  text-decoration: underline;
}

.footer-terms {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.825rem;
  color: #94a3b8;
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--whatsapp);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  z-index: 40;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none;
}

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

/* Print Sheet Container (hidden on screen) */
#printQuotationSheet {
  display: none;
}

@page {
  size: A4 portrait;
  margin: 10mm 12mm 10mm 12mm;
}

/* Print Media */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-header, .top-contact-bar, .hero-section, .filter-panel, .results-header,
  .products-grid, .modal-overlay, .floating-whatsapp, .drawer-overlay, .drawer-content,
  .site-footer, .load-more-wrapper {
    display: none !important;
  }

  #printQuotationSheet {
    display: block !important;
    padding: 0;
    margin: 0;
  }

  .print-page {
    font-family: Arial, sans-serif;
    color: #0f172a;
    line-height: 1.4;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .print-header img {
    height: 60px;
    object-fit: contain;
  }

  .print-header-info {
    text-align: right;
    font-size: 11px;
    color: #475569;
  }

  .print-title {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 4px;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 11px;
  }

  .print-table thead {
    display: table-header-group;
  }

  .print-table tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-table th, .print-table td {
    border: 1px solid #cbd5e1;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
  }

  .print-table th {
    background-color: #f1f5f9 !important;
    color: #0f172a;
    font-weight: bold;
  }

  .print-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }

  .print-terms {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    font-size: 10px;
    color: #64748b;
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .drawer-content {
    width: 100vw;
    max-width: 100vw;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .modal-media {
    min-height: 220px;
  }
  .header-top {
    padding: 12px 16px;
  }
}
