/* ── Page Banner ─────────────────────────────────────────────────────────── */
.page-banner {
  position: relative;
  background: var(--powder-blue);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-banner__inner {
  position: relative;
  z-index: 2;
  padding: var(--md-2) var(--sm-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sm-2);
}

.page-banner__title {
  font-size: var(--headline-lg-fs);
  line-height: var(--headline-lg-lh);
  font-weight: 600;
  color: var(--dark-blue);
  margin: 0;
}

.page-banner__molecule {
  position: absolute;
  width: clamp(140px, 14vw, 200px);
  max-width: 40%;
  pointer-events: none;
  z-index: 1;
}

.page-banner__molecule--left {
  left: 0;
  bottom: 0;
  transform: translate(-10%, 10%);
}

.page-banner__molecule--right {
  right: 0;
  bottom: 0;
  transform: translate(0, 10%);
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--xs-1);
  font-size: var(--breadcrumb-default-fs);
  line-height: var(--breadcrumb-default-lh);
  flex-wrap: wrap;
  justify-content: center;
}

.page-breadcrumb a {
  color: var(--dark-blue);
}

.page-breadcrumb a:hover {
  color: var(--highlight-blue);
}

.page-breadcrumb__sep {
  color: var(--dark-50);
}

.page-breadcrumb__active {
  color: var(--body-blue);
  font-weight: 600;
}

/* ── Category Info ───────────────────────────────────────────────────────── */
.category-info {
  padding: var(--md-1) 0;
}

.category-info__inner {
  display: flex;
  flex-direction: row;
  gap: var(--md-2);
  align-items: center;
}

.category-info__img {
  flex: 0 0 45%;
  width: 55%;
  object-fit: cover;
  border-radius: var(--rad-md);
}

.category-info__title {
  font-size: var(--headline-lg-fs);
  line-height: var(--headline-lg-lh);
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: var(--sm-4);
}

.category-info__desc {
  color: var(--body-blue);
  margin: 0;
}

@media (max-width: 767.98px) {
  .category-info__inner {
    grid-template-columns: 1fr;
  }
}


/* ── Product Controls ────────────────────────────────────────────────────── */
.product-controls {
  display: flex;
  align-items: center;
  gap: var(--sm-3);
  flex-wrap: wrap;
  margin-bottom: var(--sm-2);
}

.product-controls__search {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--dark-25);
  border-radius: var(--rad-sm);
  font-family: inherit;
  font-size: var(--body-sm-fs);
  line-height: var(--body-sm-lh);
  color: var(--body-blue);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-controls__search:focus {
  outline: none;
  border-color: var(--highlight-blue);
  box-shadow: 0 0 0 3px rgba(0, 171, 228, 0.18);
}

.product-controls__select {
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--dark-25);
  border-radius: var(--rad-sm);
  font-family: inherit;
  font-size: var(--body-sm-fs);
  line-height: var(--body-sm-lh);
  color: var(--body-blue);
  background: var(--white);
  min-width: 180px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.product-controls__select:focus {
  outline: none;
  border-color: var(--highlight-blue);
  box-shadow: 0 0 0 3px rgba(0, 171, 228, 0.18);
}

.product-controls__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--xs-1);
  height: 40px;
  min-width: 40px;
  padding: 0 var(--sm-3);
  border: none;
  border-radius: var(--rad-sm);
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.product-controls__btn:hover:not(:disabled) {
  background-color: var(--highlight-blue);
}

.product-controls__btn:disabled {
  background-color: var(--dark-25);
  color: var(--dark-50);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ── Product Table ───────────────────────────────────────────────────────── */
.product-table-section {
  padding-top: var(--sm-3);
  padding-bottom: var(--lg-2);
}

.product-table-wrapper {
  border: 1px solid var(--dark-10);
  border-radius: var(--rad-md);
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
}

#productsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--body-sm-fs);
  line-height: var(--body-sm-lh);
}

#productsTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: var(--dark-blue);
  color: var(--white);
  font-weight: 600;
  padding: 1.2rem 1.6rem;
  text-align: left;
  white-space: nowrap;
}

#productsTable td {
  padding: 1rem 1.6rem;
  border-bottom: 1px solid var(--dark-10);
  vertical-align: top;
  white-space: pre-line;
}

#productsTable tbody tr:last-child td {
  border-bottom: none;
}

#productsTable tbody tr:hover {
  background-color: var(--section-background);
}

/* ── Catalogue CTA ───────────────────────────────────────────────────────── */
.catalogue-cta {
  text-align: center;
  padding-bottom: var(--md-2);
}

.catalogue-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sm-4);
  padding: var(--sm-3) var(--md-4);
  background-color: var(--dark-blue);
  color: var(--white);
  border-radius: var(--btn-rad);
  font-weight: 600;
  font-size: var(--body-sm-fs);
  transition: background-color 0.2s ease;
}

.catalogue-cta__btn:hover,
.catalogue-cta__btn:focus {
  color: var(--white);
  background-color: var(--highlight-blue);
}

/* ── CTA Banner (same as home) ───────────────────────────────────────────── */
.cta-banner {
  position: relative;
  background: var(--powder-blue);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--md-2) var(--sm-1);
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sm-2);
}

.cta-headline {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.8rem, 1.1rem + 2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: center;
  max-width: 20ch;
}

.cta-headline__blue { color: var(--dark-blue); font-weight: 500; }
.cta-headline__black { color: var(--black); font-weight: 600; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sm-3);
  padding: var(--sm-3) var(--md-4);
  background-color: var(--dark-blue);
  color: var(--white);
  border: none;
  border-radius: var(--btn-rad);
  font-family: inherit;
  font-size: var(--body-sm-fs);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  color: var(--white);
  background-color: var(--highlight-yellow);
  transform: translateY(-1px);
}

.cta-molecule {
  position: absolute;
  width: clamp(140px, 14vw, 200px);
  max-width: 40%;
  pointer-events: none;
  z-index: 1;
}

.cta-molecule--left  { left: 0;  bottom: 0; transform: translate(-10%, 10%); }
.cta-molecule--right { right: 0; bottom: 0; transform: translate(0, 10%); }

/* ── Page Loader ─────────────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--dark-10);
  border-top-color: var(--dark-blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sm-3);
}

.loader-content p {
  font-size: var(--body-sm-fs);
  color: var(--dark-blue);
  margin: 0;
}

@keyframes spin {
  to { rotate: 1turn; }
}

@media (max-width: 767.98px) {
  .product-table-wrapper {
    overflow-x: auto;
  }

  .product-table-section .col-10 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  .product-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .product-controls__btn {
    width: 100%;
  }
}
