/* ========== CSS VARIABLES ========== */
:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #059669;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --whatsapp: #25D366;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

label.form-label {
  font-size: 14px !important;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.875rem !important;
}

.bg-emerald-subtle {
  background-color: #ecfdf5 !important;
}

.text-emerald {
  color: #059669 !important;
}

.text-emerald-400 {
  color: #34d399 !important;
}

.border-emerald-subtle {
  border-color: #d1fae5 !important;
}

.alert {
  font-family: inherit;
  font-size: 0.875rem !important;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 55px;
}

.navbar-brand {
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.navbar-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--green-700);
  background: var(--green-50);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-700);
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  border: none;
}

.nav-icon:hover {
  background: var(--gray-100);
  color: var(--green-600);
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: var(--green-600);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-portal:hover {
  background-color: var(--green-700);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-700);
  padding: 0.5rem;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  min-height: 65vh;
  background-color: var(--gray-900);
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 65vh;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 7.5rem;
  /* Margen superior e inferior para navbar y estadísticas */
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.slide .hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-content>div {
  max-width: 56rem;
  margin: 0 auto;
}

.hero-slider h1 {
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-slider h1 em {
  font-style: normal;
  color: #34d399;
}

.hero-slider .lead {
  color: #e5e7eb;
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Controles de Navegación */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
}

.slider-arrow:hover {
  background: var(--green-600);
  border-color: var(--green-500);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.prev-arrow {
  left: 2rem;
}

.next-arrow {
  right: 2rem;
}

/* Indicadores de Diapositiva */
.slider-dots {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 12;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slider-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slider-dots .dot.active {
  background: var(--green-500);
  width: 26px;
  border-radius: 5px;
}

/* Contenedor de Estadísticas Fijas */
.hero-stats-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 10;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.hero-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: #d1d5db;
}

/* Adaptabilidad para Dispositivos Móviles */
@media (max-width: 768px) {

  .hero-slider,
  .slider-container {
    min-height: 70vh;
  }

  .slide {
    padding: 4.5rem 1rem 8.5rem;
  }

  .hero-slider h1 {
    font-size: 2.25rem;
  }

  .hero-slider .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-btns {
    margin-bottom: 1.5rem;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev-arrow {
    left: 0.5rem;
  }

  .next-arrow {
    right: 0.5rem;
  }

  .slider-dots {
    bottom: 7.5rem;
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .hero-stat-num {
    font-size: 1.75rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }
}


/* ========== BUTTONS ========== */
/*
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}
*/

/*
.btn-primary {
  background: var(--green-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
*/

.btn-primary {
  --bs-btn-bg: #059669;
  /* Color de fondo normal */
  --bs-btn-border-color: #059669;
  /* Color de borde normal */
  --bs-btn-hover-bg: #047857;
  /* Fondo al pasar el mouse (hover) */
  --bs-btn-hover-border-color: #047857;
  /* Borde en hover */
  --bs-btn-focus-shadow-rgb: 5, 150, 105;
  /* Sombra al enfocar (formato R, G, B) */
  --bs-btn-active-bg: #065f46;
  /* Fondo al hacer clic (active) */
  --bs-btn-active-border-color: #065f46;
  /* Borde en active */
  --bs-btn-color: #ffffff;
  /* Color del texto */
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

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

.btn-dark {
  background: var(--gray-800);
  color: #fff;
}

.btn-dark:hover {
  background: var(--gray-900);
}

.btn-outline-dark {
  background: transparent;
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
}

.btn-outline-dark:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/*
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 6px;
}
*/

#action-buttons button.btn-sm {
  padding: 0.7rem 1.5rem !important;
}

.btn-danger-outline {
  background: transparent;
  color: #ef4444;
  border: 1px solid #fca5a5;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.btn-danger-outline:hover {
  background: #fef2f2;
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-light {
  background: var(--gray-50);
}

/*.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }*/
.section-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.text-center {
  text-align: center;
}

/* ========== BRANDS ========== */
.brands-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  height: 90px;
  min-width: 180px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.brand-card:hover {
  border-color: var(--green-200);
  color: var(--gray-700);
  box-shadow: var(--shadow-md);
}

/* ========== CATEGORIES ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.category-card {
  text-align: center;
  padding: 1.5rem 0.75rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--green-500);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.1);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 2.2rem;
  color: var(--green-600);
  margin-bottom: 0.6rem;
}

.category-card h6 {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.category-card small {
  color: var(--gray-400);
  font-size: 0.8rem;
}

/* ========== PRODUCT CARDS ========== */
.products-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--gray-50);
}

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

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

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #059669;
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
}

.product-card-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.product-sku {
  font-size: 0.65rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.3rem 0;
  color: var(--gray-800);
  cursor: pointer;
}

.product-name:hover {
  color: var(--green-700);
}

.product-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.product-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray-800);
}

.product-price small {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.product-original-price {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 500;
}

.product-discount {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
}

.product-whatsapp {
  color: var(--whatsapp);
  font-size: 1.1rem;
  transition: var(--transition);
}

.product-whatsapp:hover {
  transform: scale(1.15);
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-card-actions .btn {
  justify-content: center;
  font-size: 0.82rem;
}

/* ========== VIEW SWITCHER & ALTERNATIVE VIEWS ========== */
.view-switcher-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.view-btn {
  border: none;
  background: transparent;
  color: var(--gray-600);
  padding: 0.4rem 0.7rem;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.view-btn:not(:last-child) {
  border-right: 1px solid var(--gray-200);
}

.view-btn:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.view-btn.active {
  background: var(--green-600);
  color: #fff;
}

.view-btn.active:hover {
  background: var(--green-700);
}

/* LIST VIEW */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-list-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: var(--transition);
}

.product-list-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.product-list-img-wrap {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-list-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.product-list-content {
  flex: 1;
  min-width: 0;
}

.product-list-meta {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.product-list-category {
  color: var(--green-600);
  font-weight: 600;
}

.product-list-dot {
  color: var(--gray-400);
}

.product-list-brand {
  color: var(--gray-700);
  font-weight: 500;
}

.product-list-badge {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-list-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.25rem;
  text-decoration: none;
  line-height: 1.3;
}

.product-list-title:hover {
  color: var(--green-600);
}

.product-list-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.45rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-list-specs {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.product-list-specs span {
  display: inline-flex;
  gap: 0.25rem;
}

.product-list-specs b {
  font-weight: 600;
  color: var(--gray-600);
}

.product-list-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  flex-shrink: 0;
  min-width: 175px;
}

.product-list-price-block {
  text-align: right;
}

.product-list-price-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-600);
  line-height: 1.1;
}

.product-list-price-orig {
  font-size: 0.82rem;
  color: var(--gray-400);
  text-decoration: line-through;
  display: block;
  margin-top: 0.1rem;
}

.product-list-stock {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-600);
  margin-top: 0.2rem;
}

.product-list-stock.out-of-stock {
  color: #dc2626;
}

.product-list-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-detail-outline {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-detail-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  color: var(--gray-900);
}

.btn-add-emerald {
  padding: 0.4rem 0.95rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--green-600);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-add-emerald:hover {
  background: var(--green-700);
  color: #fff;
}

/* TABLE VIEW */
.products-table-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.products-table-count-tag {
  color: var(--green-700);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.products-table-hint {
  color: var(--gray-400);
  font-size: 0.82rem;
}

.products-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.83rem;
  min-width: 950px;
}

.products-table thead tr {
  background: var(--green-600);
  color: #fff;
}

.products-table th {
  padding: 0.7rem 0.65rem;
  font-weight: 700;
  font-size: 0.82rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.products-table th:last-child {
  border-right: none;
}

.products-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s ease;
}

.products-table tbody tr:hover {
  background: #f0fdf4;
  cursor: pointer;
}

.products-table td {
  padding: 0.6rem 0.65rem;
  vertical-align: middle;
  color: var(--gray-700);
}

.products-table .col-idx {
  color: var(--gray-400);
  font-weight: 500;
  text-align: center;
  width: 30px;
}

.products-table .col-img img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--gray-50);
}

.table-badge-sku {
  background: var(--gray-100);
  color: var(--gray-700);
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  letter-spacing: -0.2px;
}

.table-badge-oem {
  background: #ecfdf5;
  color: var(--green-600);
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  letter-spacing: -0.2px;
}

.products-table .col-name b {
  color: var(--gray-900);
  font-size: 0.86rem;
  display: block;
  line-height: 1.2;
}

.products-table .col-name small {
  color: var(--gray-400);
  font-weight: 400;
  display: block;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.products-table .col-price {
  font-weight: 700;
  color: var(--green-600);
  font-size: 0.88rem;
  white-space: nowrap;
}

.products-table .col-price small {
  display: block;
  color: var(--gray-400);
  text-decoration: line-through;
  font-size: 0.75rem;
  font-weight: 400;
}

.table-badge-offer {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-block;
}

.table-badge-stock-in {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  display: inline-block;
  white-space: nowrap;
}

.table-badge-stock-out {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  display: inline-block;
  white-space: nowrap;
}

.tbl-btn-eye {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: #fff;
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.85rem;
}

.tbl-btn-eye:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  border-color: var(--gray-400);
}

.tbl-btn-cart {
  padding: 0.3rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: var(--green-600);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.85rem;
}

.tbl-btn-cart:hover {
  background: var(--green-700);
}

@media (max-width: 768px) {
  .product-list-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-list-img-wrap {
    width: 100%;
    height: 160px;
  }

  .product-list-actions-wrap {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
  }

  .product-list-price-block {
    text-align: left;
  }
}

/* ========== ABOUT PREVIEW ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.about-grid h2 {
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.about-grid h2 em {
  font-style: normal;
  color: var(--green-700);
}

.about-grid p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.about-img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: 300px;
}

/* ========== TRUST ========== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  transition: var(--transition);
}

.trust-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.trust-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.trust-card h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0;
}

/* ========== PAGE BANNERS ========== */
.page-banner {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-banner p {
  font-size: 0.95rem;
  color: var(--green-100);
  max-width: 500px;
  margin: 0 auto;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--green-600);
  padding: 4rem 0;
}

/* ========== SERVICE CARD ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card>div {
  flex: 1;
  width: 50%;
}

.service-card>div>img {
  width: 100%;
  height: 14rem !important;
  object-fit: cover;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--green-50);
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.service-card h6 {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* ========== ABOUT PAGE ========== */
.about-timeline {
  position: relative;
  padding-left: 30px;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-600);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--green-600);
}

.timeline-year {
  font-weight: 700;
  color: var(--green-700);
  font-size: 0.88rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.2rem 0;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-50);
  margin-bottom: 0.65rem;
}

.team-member h6 {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.team-member small {
  color: var(--gray-400);
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
}

.stats-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-600);
  line-height: 1;
}

.stats-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}

/* ========== CATALOG ========== */
.catalog-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.catalog-filters input {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.95rem;
}

.catalog-filters input:focus {
  outline: none;
  border-color: var(--green-500);
}

.catalog-filters select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.catalog-filters .badge-count {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 3rem;
}

.no-results i {
  font-size: 3rem;
  color: var(--gray-300);
}

/* ========== ALERT ========== */
.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ========== PAGE TRANSITION ========== */
.page-enter {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MOBILE FILTER BTN ========== */
#mobile-filter-btn {
  display: none !important;
}

/* ========== FAQ ========== */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* ========== FORM ROW (responsive) ========== */
.form-row {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #catalog-layout>aside {
    display: none;
  }

  #mobile-filter-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
  }

  #catalog-layout>aside.show-mobile {
    display: block !important;
    width: 100% !important;
    position: static !important;
  }

  #catalog-layout>aside.show-mobile>div {
    width: 100% !important;
    position: static !important;
  }
}

@media (max-width: 992px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero {
    min-height: 100vh;
    padding-top: 3.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .hero-stat-num {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .about-img {
    height: 250px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card>div {
    width: 100%;
  }

  .service-card>div.ps-3 {
    padding-left: 0 !important;
    padding-top: 1.25rem !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stats-num {
    font-size: 2rem;
  }
}

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr !important;
  }

  .detail-grid>div:first-child img[style*="height:420px"] {
    height: 280px !important;
  }

  .detail-grid>div:last-child {
    border-left: none !important;
  }

  .page-banner {
    padding: 2rem 0;
  }

  .page-banner h1 {
    font-size: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 0.75rem;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .product-card-img {
    height: 150px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stats-num {
    font-size: 1.75rem;
  }

  .stats-label {
    font-size: 0.75rem;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}