/* ==============================================================================
   VINASTECH DESIGN SYSTEM — 5-COLUMN PRODUCT CATALOG GRID (STRICT OVERRIDE)
   ============================================================================== */

/* 5-COLUMN CSS GRID CONTAINER (PRIMARY & RELATED PRODUCTS) */
div#vst-catalog-grid,
#vst-catalog-grid,
.vst-catalog-5col-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1.25rem !important;
  width: 100% !important;
  margin-top: 1rem !important;
  box-sizing: border-box !important;
}

#vst-catalog-grid > *,
.vst-catalog-5col-grid > * {
  grid-column: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1440px) {
  div#vst-catalog-grid,
  #vst-catalog-grid,
  .vst-catalog-5col-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1100px) {
  div#vst-catalog-grid,
  #vst-catalog-grid,
  .vst-catalog-5col-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  div#vst-catalog-grid,
  #vst-catalog-grid,
  .vst-catalog-5col-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  div#vst-catalog-grid,
  #vst-catalog-grid,
  .vst-catalog-5col-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* PRODUCT CARD STYLING FOR 5 COLUMNS */
.vst-product-card-flat {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  text-decoration: none !important;
  color: #0f172a !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 360px !important;
  background-color: #ffffff !important;
  transition: all 180ms ease !important;
  position: relative !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  box-sizing: border-box !important;
}

.vst-product-card-flat:hover {
  border-color: #2563eb !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

.vst-product-card-flat img {
  width: 100% !important;
  height: 160px !important;
  object-fit: contain !important;
  margin: 0.5rem 0 1rem 0 !important;
  border-radius: 6px !important;
  transition: transform 200ms ease !important;
}

.vst-product-card-flat:hover img {
  transform: scale(1.03) !important;
}

.vst-product-tag {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #2563eb !important;
  letter-spacing: 0.05em !important;
  display: inline-block !important;
  padding: 0.2rem 0.55rem !important;
  background: #eff6ff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 4px !important;
  width: fit-content !important;
}

.vst-product-card-flat h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.38 !important;
  margin: 0.4rem 0 0.4rem 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.vst-product-card-flat p {
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin: 0 !important;
}

.vst-spec-table-flat {
  width: 100% !important;
  border-collapse: collapse !important;
}

.vst-spec-table-flat th,
.vst-spec-table-flat td {
  padding: 1.25rem 1rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-align: left !important;
  font-size: 1rem !important;
}

.vst-spec-table-flat th {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  width: 35% !important;
}

.vst-spec-table-flat tr:hover td {
  color: #2563eb !important;
}
