/* PLP Category */

.plp-category_wrapper {
  max-width: 1200px;
  margin: 16px auto 0;
  text-align: center;
}

.plp-category_wrapper p {
  max-width: 1133px;
  margin: 0 auto;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  color: var(--main-text-dark-grey);
  font: var(--font-14px-body-regular);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.plp-category_wrapper p.expanded,
.toggle-checkbox:checked + .plp-category_wrapper-clamp p {
  -webkit-line-clamp: unset;
}

.plp-category_wrapper > ul,
.plp-category_wrapper > ol {
  list-style-position: inside;
}

.plp-category_wrapper > ul li {
  list-style-type: disc;
}

.plp-category_wrapper > ol li {
  list-style-type: decimal;
}

.plp-category_wrapper > ul li,
.plp-category_wrapper > ol li {
  margin-bottom: 8px;
  padding-left: 20px;
  text-indent: -20px;
}

.toggle-button,
.plp-category_wrapper-clamp a {
  color: var(--main-text-dark-grey);
  text-decoration: underline;
}

.toggle-checkbox {
  display: none;
}

/* Shared card styles */

.plp-category_graphics-slot,
.plp-category_brand-item,
.plp-category_visual-filters-item {
  box-sizing: border-box;
  overflow: hidden;
}

.plp-category_brand-img,
.plp-category_graphics-img,
.plp-category_visual-filters-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Graphics */

.plp-category_graphics {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.plp-category_graphics-slot {
  flex: 1;
  max-width: 105px;
  max-height: 38px;
  height: 38px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Brand Carousel */

.plp-category_brand {
  display: flex;
  gap: 16px;
  margin: 16px auto 0;
  max-width: 812px;
  overflow: scroll;
  scroll-behavior: smooth;
}

.plp-category_brand::-webkit-scrollbar {
  display: none;
}

.plp-category_brand-item {
  position: relative;
  flex: 1;
  min-width: 260px;
  min-height: 113px;
  max-width: 260px;
  max-height: 113px;
  margin-top: 16px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plp-category_brand-img {
  max-height: 113px;
}

.plp-category_brand-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  width: 100%;
  height: 100%;

  color: var(--supporting-text-white);
  font: var(--font-18px-large-semi-bold);
  text-align: left;

  background: linear-gradient(
    180deg,
    #00000000 0%,
    #00000060 50%,
    #000000 100%
  );
}

/* Visual Filters */

.plp-category_visual-filters {
  display: flex;
  justify-content: space-around;
  gap: 10px;

  max-width: 1140px;
  margin: 0 auto 16px;
  padding-bottom: 32px;

  overflow-x: auto;
  scroll-behavior: smooth;
}

.plp-category_visual-filters-item {
  display: flex;
  align-items: center;

  min-width: max-content;
  min-height: 38px;
  height: 38px;

  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 6px #00000029;
}

.plp-category_visual-filters-img {
  width: 64px;
  min-width: 64px;
  height: 38px;
  min-height: 38px;
  border-radius: 3px 0 0 3px;
}

.plp-category_visual-filters-item span {
  display: block;
  width: max-content;
  padding: 0 8px;

  color: var(--main-text-dark-grey);
  font: var(--font-14px-body-regular);
}

.plp-category_visual-filters::-webkit-scrollbar {
  height: 7px;
  background: #ebebeb;
  border-radius: 11px;
}

.plp-category_visual-filters::-webkit-scrollbar-thumb {
  width: 124px;
  background: #808080;
  border-radius: 11px;
}

/* Divider */

.plp-category_divider {
  width: 100%;
  margin: 16px auto 8px;
  border: 1px solid #d8d8d8;
}

/* Responsive */

@media (max-width: 767px) {
  .plp-category_visual-filters {
    justify-content: space-between;
  }

  .plp-category_visual-filters:not(:has(> *:nth-child(3))) {
    justify-content: center;
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .plp-category_wrapper p {
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .plp-category_visual-filters {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}
