.category-hub {
  width: min(1320px, calc(100% - 32px));
  max-width: 100%;
  margin: 20px auto 42px;
  display: grid;
  gap: 24px;
  overflow-x: clip;
  box-sizing: border-box;
}

.category-hub__hero,
.category-hub__section,
.category-hub__empty {
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

.category-hub__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 20px;
  align-items: end;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 168, 76, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(253, 224, 71, 0.14), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #fff4e5 100%);
}

.category-hub__eyebrow,
.category-hub__section-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.category-hub__hero h1,
.category-hub__section h2 {
  margin: 0 0 10px;
  color: #111827;
}

.category-hub__hero h1 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.08;
  max-width: 14ch;
}

.category-hub__hero p,
.category-hub__section-copy p,
.category-hub__product-seller,
.category-hub__meta,
.category-hub__empty p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.category-hub__hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-hub__hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(249, 115, 22, 0.14);
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 700;
}

.category-hub__hero-actions {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.category-hub__primary,
.category-hub__secondary,
.category-hub__section-link,
.category-hub__ghost,
.category-hub__cart,
.category-hub__empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.category-hub__primary,
.category-hub__section-link,
.category-hub__cart,
.category-hub__empty a {
  border: 0;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.22);
}

.category-hub__secondary,
.category-hub__ghost {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  color: #0f172a;
}

.category-hub__primary:hover,
.category-hub__secondary:hover,
.category-hub__section-link:hover,
.category-hub__ghost:hover,
.category-hub__cart:hover,
.category-hub__empty a:hover {
  transform: translateY(-1px);
}

.category-hub__sections {
  display: grid;
  gap: 22px;
}

.category-hub__section {
  padding: 24px 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 194, 120, 0.14), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
}

.category-hub__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.category-hub__section-title-group {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  flex: 1 1 680px;
}

.category-hub__section-media {
  flex: 0 0 clamp(78px, 9vw, 96px);
  width: clamp(78px, 9vw, 96px);
  height: clamp(78px, 9vw, 96px);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1d6 0%, #ffe1bc 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
}

.category-hub__section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hub__section-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.category-hub__section-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.category-hub__section-copy p {
  max-width: 62ch;
}

.category-hub__section-link {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: center;
}

.category-hub__product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.category-hub__product-card {
  display: grid;
  grid-template-rows: 188px minmax(0, 1fr);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  min-height: 100%;
  min-width: 0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.category-hub__product-media {
  display: block;
  background: #f8fafc;
  min-width: 0;
}

.category-hub__product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.category-hub__product-body {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 10px;
  padding: 16px;
  min-width: 0;
}

.category-hub__product-seller {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
}

.category-hub__product-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.38;
  min-height: 4.1em;
  min-width: 0;
}

.category-hub__product-body h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111827;
  text-decoration: none;
}

.category-hub__product-body h3 a:hover {
  text-decoration: underline;
}

.category-hub__price-block {
  display: grid;
  gap: 2px;
}

.category-hub__price-block small {
  color: #94a3b8;
  text-decoration: line-through;
}

.category-hub__price-block strong {
  color: #111827;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.category-hub__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.82rem;
  min-width: 0;
}

.category-hub__meta span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.category-hub__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  min-width: 0;
}

.category-hub__ghost,
.category-hub__cart {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.9rem;
  min-width: 0;
  text-align: center;
}

.category-hub__cart {
  cursor: pointer;
}

.category-hub__empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.category-hub__empty h2 {
  margin: 0;
  color: #111827;
}

@media (max-width: 960px) {
  .category-hub {
    width: min(100%, calc(100% - 18px));
  }

  .category-hub__hero {
    grid-template-columns: 1fr;
  }

  .category-hub__section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-hub__hero-actions,
  .category-hub__section-link {
    width: 100%;
  }

  .category-hub__product-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .category-hub__hero,
  .category-hub__section,
  .category-hub__empty {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .category-hub__section-title-group {
    align-items: flex-start;
  }

  .category-hub__section-media {
    flex-basis: 74px;
    width: 74px;
    height: 74px;
  }

  .category-hub__product-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-hub__actions {
    grid-template-columns: 1fr;
  }

  .category-hub__product-body h3 {
    min-height: auto;
  }
}
