/* ==========================================================================
   KOUL Theme — Products & Tab Filters Page CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section 1: Sticky Filter Tabs
   -------------------------------------------------------------------------- */
.filter-tabs-container {
  position: sticky;
  top: 80px; /* Aligns below the sticky scrolled navigation bar */
  background-color: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 24px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 16px;
  transition: all 0.4s var(--ease-luxury);
}

.filter-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-1);
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.15);
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.4s var(--ease-luxury);
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--white);
  border-color: var(--gold);
  background-color: rgba(201, 168, 76, 0.05);
}

/* --------------------------------------------------------------------------
   Section 2: 3-Column Product Grid
   -------------------------------------------------------------------------- */
.products-grid-section {
  padding: 60px 0 var(--section-pad) 0;
  background-color: var(--dark-1);
}

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

.product-card {
  background-color: var(--dark-2);
  border: 1px solid rgba(201, 168, 76, 0.15);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
}

.product-card:hover {
  border-color: rgba(201, 168, 76, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.05);
}

.product-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: var(--black);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.8s var(--ease-luxury);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

/* Color Coded Division Badges */
.product-division-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 14px;
  z-index: 10;
  cursor: default;
}

/* Specific division color classifications */
.product-division-badge.aqua-genix {
  background-color: var(--teal);
}

.product-division-badge.koul-agro {
  background-color: #3A7D44; /* Premium Green */
}

.product-division-badge.suwa-seafoods {
  background-color: var(--slate);
}

.product-division-badge.driftwood {
  background-color: #8B6914; /* Luxury Amber */
}

/* Card Content Details */
.product-info {
  padding: 30px 24px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}

.product-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: block;
}

.product-desc {
  font-size: 14px;
  color: var(--grey-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-action-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s var(--ease-luxury);
}

.product-action-link .arrow {
  transition: transform 0.3s var(--ease-luxury);
}

.product-action-link:hover {
  color: var(--white);
}

.product-action-link:hover .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Section 3: Trade Terms Table
   -------------------------------------------------------------------------- */
.trade-terms-section {
  padding: var(--section-pad) 0;
  background-color: var(--dark-2);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.terms-table-wrapper {
  margin-top: 50px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  background-color: var(--dark-3);
  overflow-x: auto;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.terms-table thead {
  background-color: var(--dark-4);
  border-bottom: 2px solid var(--gold-dark);
}

.terms-table th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 22px 24px;
}

.terms-table td {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--grey-2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  line-height: 1.6;
}

.terms-table tr:last-child td {
  border-bottom: none;
}

.terms-table tr {
  transition: background-color 0.3s var(--ease-luxury);
}

.terms-table tr:hover {
  background-color: rgba(201, 168, 76, 0.02);
}

.terms-table .highlight-col {
  color: var(--white);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   PRODUCTS RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .filter-tabs-container {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 8px;
    top: 70px;
  }
  .filter-tab {
    padding: 8px 18px;
    font-size: 11px;
    flex-grow: 1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-img-wrapper {
    height: 240px;
  }
}
