/* =========================================================
   CATEGORY LIST PAGE
   3 category sections, each with header + 4 product previews
   ========================================================= */

.cl-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.cl-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cl-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28, 25, 23, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  /* Fade dots out toward right edge so glow has clean room to breathe */
  mask-image: radial-gradient(ellipse 90% 90% at 25% 50%, #000 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 25% 50%, #000 30%, transparent 95%);
}

.cl-hero__bg-glow {
  position: absolute;
  top: 50%;
  right: -12%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(28, 25, 23, .18) 0%,
      rgba(28, 25, 23, .06) 40%,
      rgba(28, 25, 23, 0) 70%);
  filter: blur(40px);
  transform: translateY(-50%);
  animation: cl-hero-glow 7s ease-in-out infinite alternate;
}

@keyframes cl-hero-glow {
  0% {
    opacity: .6;
    transform: translateY(-50%) scale(.9);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

/* Make sure container content sits above the bg */
.cl-hero .container {
  position: relative;
  z-index: 1;
}

.cl-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(36px, 5vw, 56px);
  font-size: var(--t-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.cl-crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.cl-crumbs a:hover {
  color: var(--text);
}

.cl-crumbs i {
  font-size: .75rem;
  color: var(--text-light);
}

.cl-crumbs span {
  color: var(--text);
  font-weight: 500;
}

.cl-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.cl-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  font-weight: 500;
}

.cl-hero__meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--text-muted);
}

.cl-hero__count {
  font-size: var(--t-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.cl-hero__count strong {
  color: var(--text);
  font-weight: 600;
}

.cl-hero__title {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 14px;
}

.cl-hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 640px;
}

/* =========================================================
   CATEGORY SECTION
   ========================================================= */
.cl-cat {
  padding: clamp(56px, 8vw, 96px) 0;
}

.cl-cat--soft {
  background: var(--bg-soft);
}

/* Header row: logo badge + title + subtitle | CTA on right */
.cl-cat__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
}

.cl-cat__head-text {
  min-width: 0;
}

.cl-cat__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--accent);
  border-radius: 999px;
  margin-bottom: 16px;
}

.cl-cat__badge img {
  max-height: 28px;
  width: auto;
  display: block;
  filter: invert(1);
}

.cl-cat__title {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}

.cl-cat__sub {
  font-size: var(--t-md);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 620px;
}

.cl-cat__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    gap var(--t-base-d) var(--ease);
}

.cl-cat__cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  gap: 14px;
}

.cl-cat__cta i {
  font-size: .9rem;
}

.cl-cat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cl-cat--soft .product-card {
  background: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .cl-cat__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cl-hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .cl-cat__head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .cl-cat__cta {
    align-self: flex-start;
  }

  .cl-cat__grid {
    display: none;
  }

  .cl-cat {
    padding: clamp(40px, 7vw, 64px) 0;
  }
}

@media (max-width: 576px) {
  .cl-hero__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cl-hero__title {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .cl-cat__cta {
    width: 100%;
    justify-content: center;
  }
}