/* WOOLTEX — products.html catalogue (below hero) */

.product-catalogue {
  padding: 32px clamp(24px, 5vw, 80px) 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.catalogue-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* —— Main card —— */
.cat-main-card {
  background: #ffffff;
  border: 1px solid rgba(26, 35, 126, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 35, 126, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.cat-main-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26, 35, 126, 0.18);
}


.cat-img-wrap {
  position: relative;
  height: 240px;
  background: #eceff1;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}


.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #e53935;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.cat-badge--navy {
  background: #1a237e;
}

.cat-body {
  padding: 20px;
}

.cat-name {
  color: #0d1b4b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
}

.cat-desc {
  color: #37474f;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-toggle,
.cat-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #1a237e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.cat-toggle:hover,
.cat-link-btn:hover {
  background: #e53935;
}

.cat-toggle-icon {
  display: inline-flex;
  transition: transform 0.3s ease;
  font-size: 12px;
}

.cat-toggle[aria-expanded="true"] .cat-toggle-icon,
.cat-toggle.is-modal-open .cat-toggle-icon {
  transform: rotate(180deg);
}

.cat-enquire-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #e53935;
  color: #e53935;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.cat-enquire-inline:hover {
  background: #e53935;
  color: #ffffff;
}

/* —— Variant modal —— */
.cat-modal-body-lock {
  overflow: hidden;
}

.cat-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cat-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cat-modal-overlay[hidden] {
  display: none;
}

.cat-modal-overlay.is-open[hidden] {
  display: flex;
}

.cat-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(13, 27, 75, 0.25);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-family: "Poppins", sans-serif;
}

.cat-modal-overlay.is-open .cat-modal {
  transform: scale(1);
  opacity: 1;
}

.cat-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #9e9e9e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.cat-modal-close:hover {
  color: #e53935;
}

.cat-modal-title {
  color: #0d1b4b;
  font-size: 20px;
  font-weight: 700;
  margin: 0 36px 8px 0;
  line-height: 1.3;
}

.cat-modal-sub {
  color: #9e9e9e;
  font-size: 13px;
  margin: 0 0 20px;
}

.cat-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.cat-modal-back {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: none;
  background: none;
  color: #1a237e;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}

.cat-modal-back:hover {
  color: #e53935;
}

.cat-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  width: 100%;
  text-align: left;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  box-sizing: border-box;
}

.cat-modal-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #eceff1;
}

.cat-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-modal-row .cat-modal-row-name {
  flex: 1;
  margin-left: 4px;
}

button.cat-modal-row {
  background: #f5f7fa;
  border: 1px solid rgba(26, 35, 126, 0.12);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cat-modal-row:hover {
  border-color: #1a237e;
  background: #eef0fb;
}

.cat-modal-row-name {
  color: #0d1b4b;
  font-weight: 600;
  font-size: 14px;
}

.cat-modal-row-action {
  color: #e53935;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-modal-row:hover .cat-modal-row-action {
  text-decoration: underline;
}

.cat-modal-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: #25d366;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.cat-modal-wa:hover {
  background: #1ebe57;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* —— Image fallback —— */
.cat-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.cat-media.is-error img,
.wtx-media.is-error img {
  visibility: hidden;
}

.cat-media.is-error,
.wtx-media.is-error {
  background: #eceff1;
}

/* —— Wholesale CTA (unchanged layout) —— */
.products-cta {
  margin: 0 80px 80px 80px;
  padding: 60px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #0d1b4b, #1a237e);
}

.products-cta-circle {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 280px;
  border-radius: 50%;
  background: rgba(26, 35, 126, 0.07);
  pointer-events: none;
}

.products-cta-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.products-cta h2 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  margin-top: 8px;
}

.products-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-top: 8px;
}

.products-cta-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.products-cta-btn {
  border-radius: 10px;
  padding: 14px 28px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.products-cta-btn.primary {
  background: #e53935;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
}

.products-cta-btn.primary:hover {
  background: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.products-cta-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.products-cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .product-catalogue {
    padding: 40px 24px 48px;
  }

  .products-cta {
    margin: 0 24px 40px 24px;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }

  .cat-sub-grid {
    grid-template-columns: 1fr;
  }
}
