.category-container {
  margin-bottom: 2rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #ffffff;
}

/* Category Heading */
.category-container .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background-color: #20396B;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.category-container .heading:hover {
  background-color: #1b2f5b;
}

.category-container .heading h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #EBF5FA;
}

.category-container .heading .toggle-arrow {
  font-size: 1.5rem;
  color: #EBF5FA;
  transition: transform 0.3s ease;
}

.category-container.active .heading .toggle-arrow {
  transform: rotate(90deg);
}

/* Product Table */
.product-table-container {
  display: none;
  padding: 1rem 1.75rem 1.75rem;
  background: #ffffff;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-table-container table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 1.5rem;
  font-family: "Roboto", sans-serif;
  color: #1B1B1B;
}

.product-table-container th,
.product-table-container td {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  text-align: left;
  vertical-align: middle;
}

.product-table-container th {
  background-color: #EBF5FA;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #20396B;
  border-bottom: 2px solid #20396B;
}

.product-table-container tr:nth-child(even) {
  background-color: rgba(235, 245, 250, 0.4);
}

.product-table-container tr:hover {
  background-color: rgba(32, 57, 107, 0.08);
}

/* Column Widths */
.product-table-container tr th:nth-child(1) { width: 20%; }
.product-table-container tr th:nth-child(2) { width: 25%; }
.product-table-container tr th:nth-child(3) { width: auto; }
.product-table-container tr th:nth-child(4) { width: 25%; }
.product-table-container tr th:nth-child(5) { width: 80px; }

/* Stock Column */
.stock-available {
  color: #2e7d32;
  font-weight: 500;
}

.stock-delay {
  color: #cc0000;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  display: block;
}

/* Quantity Input */
.product-table-container input[type="number"] {
  width: 70px;
  padding: 0.5rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-table-container input[type="number"]:focus {
  border-color: #20396B;
  box-shadow: 0 0 0 2px rgba(32, 57, 107, 0.15);
  outline: none;
}

/* Submit Button */
.product-table-form button {
  display: inline-block;
  background-color: #20396B;
  color: #EBF5FA;
  border: 2px solid #20396B;
  padding: 0.75rem 1.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-table-form button:hover {
  background-color: transparent;
  color: #20396B;
  border-color: #20396B;
}

.product-table-form button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 57, 107, 0.25);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .category-container .heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .product-table-container table,
  .product-table-container th,
  .product-table-container td {
    display: block;
    width: 100%;
  }

  .product-table-container tr {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .product-table-container td {
    padding: 0.5rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .product-table-container td::before {
    content: attr(data-label);
    font-family: "Oswald", sans-serif;
    color: #20396B;
    text-transform: uppercase;
    font-size: 0.85rem;
  }
}

/* Companion products modal */
.cpl-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cpl-modal__panel {
  background: #fff;
  border-radius: 8px;
  width: min(720px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cpl-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cpl-modal__header h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: #20396B;
}

.cpl-modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0 0.25rem;
}

.cpl-modal__close:hover {
  color: #111;
}

.cpl-modal__panel > p {
  margin: 0 0 1.25rem;
  color: #cc0000;
  font-weight: 600;
  line-height: 1.5;
  font-size: 0.95rem;
}

.cpl-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cpl-modal__btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid #20396B;
}

.cpl-modal__btn--primary {
  background-color: #20396B;
  color: #EBF5FA;
}

.cpl-modal__btn--primary:hover {
  background-color: transparent;
  color: #20396B;
}

.cpl-modal__btn--ghost {
  background: transparent;
  color: #20396B;
  border-color: transparent;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0.5rem;
}

.cpl-modal__btn--ghost:hover {
  color: #111;
}

/* Modal table column widths (no stock column) */
.cpl-modal .product-table-container tr th:nth-child(1) { width: 25%; }
.cpl-modal .product-table-container tr th:nth-child(2) { width: 40%; }
.cpl-modal .product-table-container tr th:nth-child(3) { width: auto; }
.cpl-modal .product-table-container tr th:nth-child(4) { width: 80px; }

/* ---------------------------------------------------------------------------
   Gallon kit bulk discount notices
   --------------------------------------------------------------------------- */
.cpl-bulk-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cpl-bulk-notice--applied {
  background: #edfaf1;
  border: 1px solid #52c279;
  color: #1a5c33;
}

.cpl-bulk-notice--teaser {
  background: #fff8e6;
  border: 1px solid #f0c040;
  color: #6b4d00;
}

.cpl-bulk-notice__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 0.05rem;
}

.cpl-bulk-notice__text strong {
  display: block;
  margin-bottom: 0.15rem;
}