/* === B2B CATEGORY HUB START 20260710 === */
.b2b-category-hub {
  margin: 1.75rem auto 2.375rem;
  padding: 0;
  color: #282421;
}

.b2b-category-hub__inner {
  width: min(calc(100% - 80px), 1600px);
  margin: 0 auto;
}

.b2b-category-hub__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 0 1rem;
}

.b2b-category-hub__title {
  margin: 0;
  color: #282421;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.b2b-category-hub__intro {
  max-width: 38rem;
  margin: 0;
  color: #6c655e;
  font-size: 1rem;
  line-height: 1.5;
  text-align: start;
}

.b2b-category-hub__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b2b-category-hub__item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.b2b-category-hub__card {
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #d8d2c8;
  border-radius: 14px;
  background: #fff;
  color: #282421;
  box-shadow: 0 7px 24px rgba(40, 36, 33, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.b2b-category-hub__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f2eb;
}

.b2b-category-hub__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.b2b-category-hub__card[data-b2b-category="cartons"] .b2b-category-hub__image {
  padding: 0.5rem;
  object-fit: contain;
}

.b2b-category-hub__body {
  display: flex;
  min-height: 4.5rem;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.85rem 1rem 0.95rem;
  border-top: 1px solid #eee9e1;
}

.b2b-category-hub__card-title {
  display: block;
  color: #282421;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.b2b-category-hub__note {
  display: block;
  color: #6c655e;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.b2b-category-hub__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border: 2px solid #282421;
  border-radius: 0.35rem;
  background: #ffc400;
  color: #282421;
  box-shadow: 3px 3px 0 #282421;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.b2b-category-hub__card:focus-visible {
  outline: 3px solid #c90019;
  outline-offset: 3px;
  border-color: #c90019;
}

@media (hover: hover) {
  .b2b-category-hub__card:hover {
    transform: translateY(-3px);
    border-color: #c90019;
    box-shadow: 0 12px 30px rgba(40, 36, 33, 0.15);
    color: #282421;
    text-decoration: none;
  }

  .b2b-category-hub__card:hover .b2b-category-hub__image {
    transform: scale(1.025);
  }
}

@media (max-width: 767px) {
  .b2b-category-hub {
    margin: 1.125rem auto 1.75rem;
    padding: 0;
  }

  .b2b-category-hub__heading {
    display: block;
    margin-bottom: 0.75rem;
  }

  .b2b-category-hub__title {
    font-size: 1.45rem;
  }

  .b2b-category-hub__intro {
    margin-top: 0.35rem;
    font-size: 0.92rem;
  }

  .b2b-category-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .b2b-category-hub__card {
    border-radius: 10px;
  }

  .b2b-category-hub__body {
    min-height: 4.15rem;
    padding: 0.7rem 0.75rem 0.8rem;
  }

  .b2b-category-hub__card-title {
    font-size: 0.92rem;
  }

  .b2b-category-hub__note {
    font-size: 0.74rem;
  }

  .b2b-category-hub__badge {
    top: 0.5rem;
    left: 0.5rem;
    min-height: 1.45rem;
    padding: 0.2rem 0.4rem;
    box-shadow: 2px 2px 0 #282421;
    font-size: 0.62rem;
  }
}

/* === FIX START: B2B-CAROUSEL-ALIGNMENT-20260710 === */
@media (min-width: 1751px) {
  .b2b-category-hub__inner {
    width: min(100%, 1680px);
  }
}

@media (min-width: 481px) and (max-width: 992px) {
  .b2b-category-hub__inner {
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .b2b-category-hub__inner {
    width: calc(100% - 30px);
  }
}
/* === FIX END: B2B-CAROUSEL-ALIGNMENT-20260710 === */

@media (prefers-reduced-motion: reduce) {
  .b2b-category-hub__card,
  .b2b-category-hub__image {
    transition: none;
  }
}
/* === B2B CATEGORY HUB END 20260710 === */
