:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #111827;
  --accent-highlight: #ea580c;
  --accent-highlight-hover: #c2410c;
  --accent-badge-bg: #fff7ed;
  --accent-badge-text: #c2410c;
  --accent-badge-border: #fed7aa;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 28px -10px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 22px 42px -12px rgba(234, 88, 12, 0.14), 0 8px 18px -6px rgba(15, 23, 42, 0.08);
  --shadow-focus: 0 0 0 3px rgba(234, 88, 12, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* Top Corporate Contact Bar */
.top-contact-bar {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.top-company-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #cbd5e1;
}

.top-company-name strong {
  color: #ffffff;
}

.top-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.top-divider {
  opacity: 0.35;
}

.top-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.top-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  transition: all var(--transition-fast);
}

.top-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.top-link.whatsapp-pill {
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.top-link.whatsapp-pill:hover {
  background: #16a34a;
  color: #ffffff;
}

.top-link.highlight-pill {
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fdba74;
}

.top-link.highlight-pill:hover {
  background: var(--accent-highlight);
  color: #ffffff;
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
}

.brand-company-legal {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Header & Brand */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0 1.75rem;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.brand {
  max-width: 760px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-badge-text);
  background-color: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-title span {
  color: var(--accent-highlight);
}

.brand-subtitle {
  margin-top: 0.55rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.header-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  box-shadow: var(--shadow-sm);
}

.stat-pill strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-highlight);
  line-height: 1.1;
}

.stat-pill span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* Controls Bar */
.controls-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  background: var(--bg-surface);
  padding: 0.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .controls-bar {
    grid-template-columns: 1fr 260px;
  }
}

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

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

.search-input:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--accent-highlight);
  box-shadow: var(--shadow-focus);
}

.category-select {
  width: 100%;
  height: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.category-select:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--accent-highlight);
  box-shadow: var(--shadow-focus);
}

/* Category Quick Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab-btn:hover {
  border-color: var(--accent-highlight);
  color: var(--accent-highlight);
  transform: translateY(-1px);
}

.category-tab-btn.active {
  background: var(--accent-highlight);
  border-color: var(--accent-highlight);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.category-tab-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.category-tab-btn.active .category-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Main Content & Meta */
.main-content {
  flex: 1;
  padding-top: 1.75rem;
  padding-bottom: 4rem;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.reset-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-highlight);
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  cursor: pointer;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.reset-btn:hover {
  background-color: var(--accent-highlight);
  color: #ffffff;
}

/* Product Grid & Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: #fdba74;
  outline: none;
}

.card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  overflow: hidden;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-category-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.card-sku-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: #ffffff;
  color: var(--accent-highlight);
  border: 1px solid var(--accent-badge-border);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.card-photos-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
}

.card-tag-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 247, 237, 0.95);
  color: var(--accent-badge-text);
  border: 1px solid var(--accent-badge-border);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-subcategory {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-highlight);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-price-group {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.card-cta-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-highlight);
  background-color: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.product-card:hover .card-cta-tag {
  background-color: var(--accent-highlight);
  border-color: var(--accent-highlight);
  color: #ffffff;
}

/* Modal / Product Detail Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: 22px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  padding: 2rem;
}

.modal-close-btn {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-highlight);
  border-color: var(--accent-highlight);
  color: #ffffff;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  clear: both;
}

@media (min-width: 860px) {
  .modal-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.gallery-nav-btn:hover {
  background: var(--accent-highlight);
  border-color: var(--accent-highlight);
  color: #ffffff;
}

.gallery-nav-btn.prev {
  left: 0.85rem;
}

.gallery-nav-btn.next {
  right: 0.85rem;
}

.gallery-counter {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.gallery-thumbnails {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumb-btn {
  width: 74px;
  height: 58px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: #ffffff;
  padding: 0.25rem;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumb-btn.active {
  border-color: var(--accent-highlight);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

/* Modal Right Info */
.modal-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-category-badge {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.modal-subcategory-badge {
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  border: 1px solid var(--accent-badge-border);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.modal-ref-code {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.modal-price {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-highlight);
}

.modal-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.15rem 0;
}

.modal-section {
  margin-bottom: 1.25rem;
}

.modal-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.modal-lead-desc {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-detailed-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-specs-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-specs-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--accent-highlight);
  font-weight: 900;
}

.modal-footer-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.modal-back-button {
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-back-button:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Official Contact Card Section */
.contact-card-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid var(--accent-badge-border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.contact-section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.contact-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.contact-section-subtitle {
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-size: 0.98rem;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .contact-card-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.contact-details-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-company-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-box-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.contact-company-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.contact-person-role {
  font-size: 0.92rem;
  color: var(--accent-highlight);
  margin-top: 0.2rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
}

.contact-info-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-value,
.contact-value-link {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.contact-value-link:hover {
  color: var(--accent-highlight);
  text-decoration: underline;
}

.contact-inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.mini-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.mini-badge.whatsapp {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.mini-badge.whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
}

.mini-badge.phone {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.mini-badge.phone:hover {
  background: var(--text-primary);
  color: #ffffff;
}

.business-card-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.business-card-frame {
  background: #ffffff;
  padding: 0.65rem;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.14);
  width: 100%;
}

.business-card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.business-card-caption {
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Modal Direct Contact Box */
.modal-contact-box {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.modal-contact-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.modal-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-whatsapp-modal {
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: #16a34a;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-whatsapp-modal:hover {
  background: #15803d;
}

.btn-email-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-email-modal:hover {
  border-color: var(--accent-highlight);
  color: var(--accent-highlight);
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.38);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px);
  background: #15803d;
}

.footer-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-subtext a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.footer-subtext a:hover {
  color: var(--accent-highlight);
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 1.75rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-guide-link {
  color: var(--accent-highlight);
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  transition: all var(--transition-fast);
}

.footer-guide-link:hover {
  background: var(--accent-highlight);
  color: #ffffff;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
  }
}

/* ==========================================================================
   ADVANCED MOBILE & TABLET RESPONSIVE ADAPTATIONS (iOS / Android / iPad)
   ========================================================================== */

/* Touch-action and tap highlight resets */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

/* Desktop vs Mobile text helpers */
.desktop-text {
  display: inline;
}

.mobile-text {
  display: none;
}

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

/* Hide floating WhatsApp button when product modal is open */
body.modal-open .floating-whatsapp-btn {
  display: none !important;
}

/* --------------------------------------------------------------------------
   1. SMARTPHONES & MOBILE SCREENS (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .container {
    padding: 0 0.95rem;
  }

  /* Top Contact Bar */
  .top-contact-bar {
    padding: 0.4rem 0;
    font-size: 0.76rem;
  }

  .top-contact-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .top-company-name {
    justify-content: space-between;
    width: 100%;
    font-size: 0.74rem;
  }

  .top-company-name .top-divider {
    display: none;
  }

  .top-contact-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
  }

  .top-link {
    font-size: 0.73rem;
    padding: 0.25rem 0.5rem;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-toggle-btn {
    font-size: 0.73rem;
    padding: 0.24rem 0.55rem;
    flex-shrink: 0;
  }

  /* Header & Brand Row */
  .site-header {
    padding: 1.35rem 0 1.15rem;
  }

  .header-inner {
    gap: 1rem;
  }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
  }

  .brand-logo-wrap {
    gap: 0.65rem;
    margin-bottom: 0.45rem;
  }

  .brand-logo-img {
    height: 30px;
  }

  .brand-badge {
    font-size: 0.65rem;
    padding: 0.22rem 0.55rem;
    letter-spacing: 0.06em;
  }

  .brand-title {
    font-size: 2rem;
  }

  .brand-company-legal {
    font-size: 0.86rem;
  }

  .brand-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 0.35rem;
  }

  /* 3-Column Equal Stats Pills on Mobile */
  .header-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 0.45rem;
  }

  .stat-pill {
    min-width: 0;
    padding: 0.45rem 0.3rem;
    border-radius: var(--radius-sm);
  }

  .stat-pill strong {
    font-size: 1.18rem;
  }

  .stat-pill span {
    font-size: 0.66rem;
  }

  /* Controls Bar */
  .controls-bar {
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: var(--radius-md);
  }

  .search-input {
    padding: 0.68rem 0.8rem 0.68rem 2.45rem;
    font-size: 0.88rem;
  }

  .search-icon {
    left: 0.75rem;
    width: 17px;
    height: 17px;
  }

  .category-select {
    padding: 0.68rem 2.2rem 0.68rem 0.8rem;
    font-size: 0.88rem;
  }

  /* Touch-Scrollable Horizontal Category Pills (App-like UX) */
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0 0.5rem;
    margin: 0 -0.95rem;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    gap: 0.45rem;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.42rem 0.82rem;
    border-radius: var(--radius-pill);
  }

  .category-tab-count {
    font-size: 0.68rem;
    padding: 0.08rem 0.38rem;
  }

  /* Catalog Meta */
  .catalog-meta {
    margin-bottom: 1.15rem;
    gap: 0.5rem;
  }

  .results-count {
    font-size: 0.84rem;
  }

  .reset-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
  }

  /* Single Column Product Grid on Phones */
  .main-content {
    padding-top: 1.15rem;
    padding-bottom: 3rem;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .card-image-container {
    aspect-ratio: 16 / 11;
    padding: 0.85rem;
  }

  .card-category-badge {
    font-size: 0.66rem;
    padding: 0.2rem 0.52rem;
    top: 0.6rem;
    left: 0.6rem;
  }

  .card-sku-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.45rem;
    top: 0.6rem;
    right: 0.6rem;
  }

  .card-tag-badge {
    font-size: 0.64rem;
    padding: 0.16rem 0.45rem;
    bottom: 0.55rem;
    left: 0.55rem;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-photos-badge {
    font-size: 0.65rem;
    padding: 0.16rem 0.48rem;
    bottom: 0.55rem;
    right: 0.55rem;
  }

  .card-body {
    padding: 0.95rem 1.05rem 1.05rem;
  }

  .card-title {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }

  .card-description {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .card-footer {
    padding-top: 0.75rem;
  }

  .card-cta-tag {
    font-size: 0.8rem;
    padding: 0.42rem 0.8rem;
  }

  /* Modal Bottom Sheet on Mobile */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    padding: 1.15rem 1rem 2.25rem;
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.4);
  }

  .modal-close-btn {
    width: 38px;
    height: 38px;
    margin-bottom: 0.35rem;
  }

  .modal-grid {
    gap: 1.25rem;
  }

  .gallery-main-wrapper {
    aspect-ratio: 1 / 1;
    max-height: 275px;
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .gallery-nav-btn {
    width: 36px;
    height: 36px;
  }

  .gallery-nav-btn.prev {
    left: 0.5rem;
  }

  .gallery-nav-btn.next {
    right: 0.5rem;
  }

  .gallery-counter {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    bottom: 0.55rem;
    right: 0.55rem;
  }

  .gallery-thumbnails {
    gap: 0.45rem;
    padding-bottom: 0.35rem;
  }

  .gallery-thumb-btn {
    width: 58px;
    height: 46px;
  }

  .modal-header-meta {
    gap: 0.35rem;
    margin-bottom: 0.55rem;
  }

  .modal-category-badge,
  .modal-subcategory-badge,
  .modal-ref-code {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }

  .modal-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .modal-price {
    font-size: 1.2rem;
    margin-top: 0.35rem;
  }

  .modal-divider {
    margin: 0.85rem 0;
  }

  .modal-section {
    margin-bottom: 1rem;
  }

  .modal-section-title {
    font-size: 0.76rem;
    margin-bottom: 0.4rem;
  }

  .modal-lead-desc {
    font-size: 0.9rem;
  }

  .modal-detailed-desc {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .modal-specs-list li {
    font-size: 0.84rem;
    padding-left: 1.15rem;
  }

  .modal-contact-box {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
  }

  .modal-contact-title {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
  }

  .modal-contact-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-whatsapp-modal,
  .btn-email-modal {
    width: 100%;
    min-height: 44px;
    font-size: 0.85rem;
    padding: 0.7rem 0.95rem;
    text-align: center;
    justify-content: center;
  }

  .modal-footer-actions {
    margin-top: 1.15rem;
    padding-top: 0.85rem;
  }

  .modal-back-button {
    width: 100%;
    min-height: 42px;
    text-align: center;
    font-size: 0.85rem;
  }

  /* Contact Section */
  .contact-card-section {
    margin-top: 2.25rem;
    padding: 1.15rem 0.95rem;
    border-radius: 18px;
  }

  .contact-section-header {
    margin-bottom: 1.15rem;
  }

  .contact-section-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .contact-section-subtitle {
    font-size: 0.88rem;
    margin-top: 0.25rem;
  }

  .contact-card-grid {
    gap: 1.25rem;
  }

  .contact-details-box {
    padding: 1.05rem;
    border-radius: var(--radius-md);
  }

  .contact-company-header {
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .contact-box-logo {
    height: 32px;
  }

  .contact-company-name {
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .contact-person-role {
    font-size: 0.84rem;
  }

  .contact-info-list {
    gap: 0.95rem;
  }

  .contact-info-list li {
    gap: 0.75rem;
  }

  .contact-icon-circle {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .contact-label {
    font-size: 0.7rem;
  }

  .contact-value,
  .contact-value-link {
    font-size: 0.92rem;
    word-break: break-word;
  }

  .contact-inline-badges {
    gap: 0.4rem;
    margin-top: 0.35rem;
  }

  .mini-badge {
    font-size: 0.72rem;
    padding: 0.22rem 0.55rem;
  }

  .business-card-frame {
    padding: 0.4rem;
    border-radius: 14px;
  }

  .business-card-caption {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* Floating WhatsApp on Mobile */
  .floating-whatsapp-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.82rem;
    gap: 0.4rem;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
  }

  .floating-wa-icon {
    font-size: 1.1rem;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 1.35rem 0;
  }

  .footer-inner {
    gap: 0.85rem;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.55rem;
  }

  .footer-logo {
    height: 24px;
  }

  .footer-subtext {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .footer-guide-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   2. TABLETS & MID-SIZED SCREENS (min-width: 641px and max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  /* Top bar tablet */
  .top-contact-bar {
    padding: 0.5rem 0;
    font-size: 0.8rem;
  }

  .top-contact-links {
    gap: 0.5rem;
  }

  .top-link {
    font-size: 0.78rem;
    padding: 0.24rem 0.6rem;
  }

  /* Header tablet */
  .site-header {
    padding: 2rem 0 1.5rem;
  }

  .brand-title {
    font-size: 2.45rem;
  }

  .header-stats {
    gap: 0.6rem;
  }

  .stat-pill {
    min-width: 84px;
    padding: 0.5rem 0.75rem;
  }

  /* Controls tablet */
  .controls-bar {
    grid-template-columns: 1fr 220px;
    padding: 0.6rem;
  }

  /* Category tabs tablet */
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
    gap: 0.5rem;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab-btn {
    flex-shrink: 0;
    font-size: 0.84rem;
    padding: 0.5rem 0.9rem;
  }

  /* 2-3 Column Grid on Tablets (clean, proportional layout) */
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .card-body {
    padding: 1.15rem;
  }

  .card-title {
    font-size: 1.05rem;
  }

  /* Modal on Tablets */
  .modal-backdrop {
    padding: 1.25rem;
  }

  .modal-container {
    max-width: 90vw;
    padding: 1.75rem;
    border-radius: 20px;
  }

  .modal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .gallery-main-wrapper {
    max-height: 380px;
  }

  /* Contact section tablet */
  .contact-card-section {
    padding: 2rem;
    border-radius: 20px;
    margin-top: 3rem;
  }

  .contact-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
  }

  .contact-details-box {
    padding: 1.5rem;
  }

  /* Floating WhatsApp on Tablet */
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.7rem 1.05rem;
  }
}
