/* Product and Detail Page Styles */

.category-page {
  padding: 4vw 6vw;
  background-color: #ffffff;
}

.category-title {
  font-size: 2.5vw;
  color: var(--brand-blue);
  margin-bottom: 1vw;
  border-bottom: 3px solid var(--brand-blue);
  display: inline-block;
  padding-bottom: 0.5vw;
}

.category-breadcrumb {
  font-size: 0.9vw;
  color: #64748b;
  margin-bottom: 2vw;
}

.category-description {
  font-size: 1.05vw;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 2vw;
}

.filters-bar {
  display: flex;
  gap: 2vw;
  margin-bottom: 3vw;
  background-color: #f8fafc;
  padding: 1.5vw;
  border-radius: 0.5vw;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  min-width: 20vw;
}

.filter-group label {
  font-size: 0.9vw;
  color: #64748b;
  font-weight: 600;
}

.filter-group select {
  padding: 0.8vw 1vw;
  border: 1px solid #cbd5e1;
  border-radius: 0.3vw;
  font-size: 1vw;
  color: #334155;
  background-color: white;
  outline: none;
}

.product-list-container {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
}

.product-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 2vw;
  padding: 1.5vw 0;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  transition: background-color 0.3s;
}

.product-item:hover {
  background-color: #f1f5f9;
}

.product-logo {
  width: 8vw;
  object-fit: contain;
}

.product-name {
  font-size: 1.1vw;
  color: var(--brand-blue);
  font-weight: 700;
}

.category-image {
  width: 25vw;
  border-radius: 0.5vw;
  box-shadow: 0 0.5vw 1.5vw rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

/* Detail Page */
.detail-header {
  padding: 4vw 6vw 2vw;
}

.detail-title {
  font-size: 2.2vw;
  color: var(--brand-blue);
  margin-bottom: 1vw;
}

.detail-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2vw;
  margin-top: 2vw;
}

.detail-logo {
  width: 15vw;
}

.detail-warning {
  width: 4vw;
}

.detail-specs {
  font-size: 0.95vw;
  line-height: 1.6;
  color: #475569;
  font-family: 'Courier New', Courier, monospace;
}

.detail-content {
  display: flex;
  padding: 0 6vw 4vw;
  gap: 3vw;
}

.detail-sidebar {
  width: 20vw;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5vw;
  padding: 1.5vw;
  height: fit-content;
}

.clear-btn {
  width: 100%;
  padding: 0.8vw;
  background-color: #e2e8f0;
  color: #334155;
  border: none;
  border-radius: 0.3vw;
  font-weight: 600;
  margin-bottom: 2vw;
  cursor: pointer;
}

.sidebar-title {
  font-size: 1.1vw;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1vw;
}

.sidebar-group {
  margin-bottom: 2vw;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1vw;
}

.sidebar-subtitle {
  font-size: 0.95vw;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 1vw;
  display: flex;
  justify-content: space-between;
}

.sidebar-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5vw;
  font-size: 0.9vw;
  color: #475569;
  margin-bottom: 0.8vw;
  cursor: pointer;
}

.detail-table-area {
  flex: 1;
}

.pack-row {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5vw;
  padding: 1.5vw;
  margin-bottom: 1vw;
  gap: 2vw;
}

.pack-img {
  width: 4vw;
  height: auto;
}

.pack-info {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr;
  gap: 1.5vw;
  font-size: 0.9vw;
}

.pack-col {
  display: flex;
  flex-direction: column;
}

.pack-col strong {
  color: #0f172a;
  margin-bottom: 0.3vw;
  font-size: 0.9vw;
}

.pack-col span {
  color: #475569;
}

.pack-col .dispo {
  color: var(--brand-blue);
  font-weight: 600;
}

.pack-buy {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3vw;
}

/* Our Products Grid Page */
.product-grid-section {
  padding: 4vw 6vw;
  background-color: #f8fafc;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.product-box-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8vw;
  padding: 2vw;
  box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.product-box-card:hover {
  box-shadow: 0 1vw 2vw rgba(0, 0, 0, 0.1);
  border-color: var(--brand-green);
}

.product-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.product-actions {
  display: flex;
  gap: 1vw;
  align-items: center;
}

.product-box-card h3 {
  font-size: 1.2vw;
  color: var(--brand-blue);
  margin-bottom: 0;
  line-height: 1.4;
}

.btn-read-more, .btn-file {
  display: inline-block;
  padding: 0.6vw 1.2vw;
  background-color: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.3vw;
  font-weight: 600;
  font-size: 0.95vw;
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
}

.btn-file {
  background-color: var(--brand-green);
}

.btn-read-more:hover {
  background-color: #0c4a75;
}

.btn-file:hover {
  background-color: #639316;
}

.product-dropdown-content {
  margin-top: 1.5vw;
  border-top: 2px solid #e2e8f0;
  padding-top: 1.5vw;
}

.product-dropdown-content .lcms-table-wrapper {
  border: 1px solid #cbd5e1;
  border-radius: 0.5vw;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-dropdown-content .lcms-data-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.product-dropdown-content .lcms-data-table th,
.product-dropdown-content .lcms-data-table td {
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  padding: 1vw 1.5vw;
  text-align: left;
}

.product-dropdown-content .lcms-data-table th:last-child,
.product-dropdown-content .lcms-data-table td:last-child {
  border-right: none;
}

.product-dropdown-content .lcms-data-table tr:last-child td {
  border-bottom: none;
}

.subcat-row td {
  background-color: #e0f2fe !important;
  color: var(--brand-blue);
  font-weight: bold;
  border-top: 2px solid #bae6fd;
}

.btn-file-small {
  display: inline-block;
  padding: 0.4vw 0.8vw;
  background-color: var(--brand-green);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.2vw;
  font-size: 0.8vw;
  font-weight: 600;
  transition: background-color 0.2s;
}
.btn-file-small:hover {
  background-color: #639316;
}

/* Mobile Responsiveness for Product Page */
@media (max-width: 768px) {
  .product-grid-section {
    padding: 6vw 4vw;
  }
  .product-box-card {
    padding: 4vw;
    border-radius: 2vw;
  }
  .product-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 3vw;
  }
  .product-box-card h3 {
    font-size: 18px;
    margin-bottom: 2vw;
  }
  .product-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 3vw;
  }
  .btn-read-more, .btn-file {
    font-size: 14px;
    padding: 2vw 4vw;
    border-radius: 1vw;
  }
  .product-dropdown-content {
    margin-top: 4vw;
    padding-top: 3vw;
  }
  .product-dropdown-content .lcms-table-wrapper {
    overflow-x: auto;
  }
  .product-dropdown-content .lcms-data-table th,
  .product-dropdown-content .lcms-data-table td {
    font-size: 14px;
    padding: 3vw 2vw;
    white-space: nowrap;
  }
  .btn-file-small {
    font-size: 12px;
    padding: 1.5vw 3vw;
    border-radius: 1vw;
  }
}
