/* Soo1 parity layer: deliberately scoped to product and collection templates. */

body[data-page-type="product"] .product-detail-wrapper,
body[data-page-type="collection"] .main-collection-container {
  background-color: #eee;
}

/* The BWE product template owns its related-object section. SHOPLINE's
 * recommendation plugin injects a second, unframed list ahead of the product
 * record, so collapse that duplicate without touching the native BWE section. */
body[data-page-type="product"] .product-recommend-plugin-wrapper {
  display: none !important;
}

@media (min-width: 960px) {
  body[data-page-type="product"] .product-detail__main[data-desktop-direction="row"] {
    flex-direction: row !important;
    column-gap: 22px !important;

    --detail-main-column-gap: 22px !important;
  }

  body[data-page-type="product"] .product-detail__main[data-desktop-direction="row"]
    .product-detail__media-group {
    --detail-col-width: 60%;
  }

  body[data-page-type="product"] .product-detail__main[data-desktop-direction="row"]
    .product-detail__info {
    --detail-col-width: 40%;
  }

  body[data-page-type="product"] .product-detail__main[data-desktop-direction="row"]
    .product-detail__col {
    --col-width: calc(var(--detail-col-width) - 11px);

    flex: 0 0 var(--col-width);
    width: var(--col-width);
  }
}

@media (min-width: 750px) and (max-width: 959px) {
  body[data-page-type="collection"] .main-collection__list {
    --column-gap: 20px;
    --column-width: calc(
      (
          100% - var(--column-gap) *
            (var(--mobile-columns) - 1)
        ) /
        var(--mobile-columns)
    );

    grid-template-columns: repeat(
      var(--mobile-columns),
      var(--column-width)
    );
    grid-auto-flow: row;
    overflow: visible;
  }
}

body[data-page-type="product"] .product-detail__info {
  padding: 20px;
  background-color: rgb(0 0 0 / 3%);
  border-radius: 0;
}

body[data-page-type="product"] .product-detail__breadcrumb {
  margin-block-end: 2px;
}

body[data-page-type="product"] .bigwhite-product-description-shell {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 14px;
  padding-block: 24px 60px;
}

body[data-page-type="product"] .bigwhite-product-description__index {
  min-width: 0;
  padding: 22px 20px;
  color: #efefeb;
  background: #111312;
  border: 1px solid #5b5e5b;
  box-shadow: 6px 6px 0 rgb(0 0 0 / 14%);
  font-family: "Courier New", Courier, monospace;
}

body[data-page-type="product"] .bigwhite-product-description__index small {
  display: block;
  color: #ed2533;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.09em;
}

body[data-page-type="product"] .bigwhite-product-description__index strong {
  display: block;
  margin: 12px 0 24px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

body[data-page-type="product"] .bigwhite-product-description__index span {
  display: block;
  min-height: 44px;
  padding: 12px 0 10px;
  color: #d8d9d5;
  border-block-start: 1px solid #494b48;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

body[data-page-type="product"] .bigwhite-product-description__records {
  min-width: 0;
  align-self: stretch;
  background: rgb(var(--color-background));
  border: 1px solid rgba(var(--color-text), 0.42);
  box-shadow: 6px 6px 0 rgba(var(--color-text), 0.08);
}

body[data-page-type="product"] .bigwhite-product-description {
  border-block-end: 1px solid rgba(var(--color-text), 0.26);
}

body[data-page-type="product"]
  .bigwhite-product-description
  + .bigwhite-product-description {
  border-block-start: 0;
}

body[data-page-type="product"] .bigwhite-product-description:last-child {
  border-block-end: 0;
}

body[data-page-type="product"] .bigwhite-product-description__summary {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

body[data-page-type="product"] .bigwhite-product-description__summary::-webkit-details-marker {
  display: none;
}

body[data-page-type="product"] .bigwhite-product-description__icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

body[data-page-type="product"] .bigwhite-product-description__icon::before,
body[data-page-type="product"] .bigwhite-product-description__icon::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 12px;
  height: 1px;
  content: "";
  background: currentcolor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

body[data-page-type="product"] .bigwhite-product-description__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

body[data-page-type="product"] .bigwhite-product-description[open]
  .bigwhite-product-description__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

body[data-page-type="product"] .bigwhite-product-description__content {
  max-width: 880px;
  padding: 5px 20px 24px;
}

body[data-page-type="product"] .section-recommended-product .block-product-card,
body[data-page-type="product"] .section-recently-viewed-product .block-product-card,
body[data-page-type="collection"] .main-collection__list .block-product-card {
  border-radius: 0;
}

body[data-page-type="product"] .section-recommended-product .block-product-image__image-wrapper,
body[data-page-type="product"] .section-recently-viewed-product .block-product-image__image-wrapper,
body[data-page-type="collection"] .main-collection__list .block-product-image__image-wrapper {
  border-radius: 0;
}

body[data-page-type="collection"] .main-collection__list {
  --column-gap: 20px;
  --row-gap: 20px;
}

body[data-page-type="collection"] .bigwhite-collection-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-block: 18px 10px;
  color: rgb(var(--color-text));
}

body[data-page-type="collection"] .bigwhite-collection-breadcrumb a {
  color: inherit;
}

body[data-page-type="collection"] .bigwhite-collection-breadcrumb__separator,
body[data-page-type="collection"] .bigwhite-collection-breadcrumb [aria-current="page"] {
  color: rgb(var(--color-light-text));
}

body[data-page-type="collection"] .main-collection-cover {
  padding-block: 0 5px;
}

body[data-page-type="collection"] .block-main-collection__heading {
  width: min(100% - (2 * var(--page-padding)), var(--page-width));
  margin-inline: auto;
}

body[data-page-type="collection"] .block-main-collection__heading {
  text-align: start;
}

body[data-page-type="collection"] .block-main-collection__description {
  margin-block-start: 20px;
}

@media (max-width: 749px) {
  body[data-page-type="product"] .product-detail__info .social-media-share {
    justify-content: flex-start;
  }

  body[data-page-type="product"] .bigwhite-product-description-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 16px 30px;
  }

  body[data-page-type="product"] .bigwhite-product-description__index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 6px 14px;
    padding: 15px 16px;
    box-shadow: 4px 4px 0 rgb(0 0 0 / 14%);
  }

  body[data-page-type="product"] .bigwhite-product-description__index small {
    grid-column: 1 / -1;
    color: #ff7578;
    font-size: 12px;
  }

  body[data-page-type="product"] .bigwhite-product-description__index strong {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 22px;
  }

  body[data-page-type="product"] .bigwhite-product-description__index span {
    display: none;
  }

  body[data-page-type="product"] .bigwhite-product-description__summary {
    min-height: 52px;
    padding-block: 12px;
  }

  body[data-page-type="product"] .bigwhite-product-description__content {
    padding: 4px 16px 20px;
  }

  body[data-page-type="collection"] .bigwhite-collection-breadcrumb {
    padding-block: 12px 8px;
  }

  body[data-page-type="collection"] .main-collection-cover {
    padding-block-end: 12px;
  }
}

@media (max-width: 350px) {
  body[data-page-type="collection"] .main-collection__list {
    --mobile-columns: 1;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
