/*
 * COLLECTIONS 2 production update
 * Keeps the site-wide shell and RFQ modal, while reducing Collections pages to
 * the navigation, real product imagery and enquiry actions required by the brief.
 */

.main-nav button.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.lbr-collections-trigger[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.lbr-collections-nav.is-mega-open > .mega,
.lbr-collections-nav:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-collections .mega-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start;
}

.mega-collections .mega-block {
  min-width: 0;
}

.mega-collections .mega-kicker {
  display: none;
}

.mega-collections .mega-topline {
  margin-bottom: 13px;
}

.mega-collections .mega-hub {
  display: block;
  min-height: 48px;
}

.mega-collections .mega-section {
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.mega-collections .mega-section-head {
  margin: 0;
}

.mega-collections .lbr-mega-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.mega-collections .lbr-mega-group-toggle span {
  color: #ff7a32;
  font-size: 15px;
  transition: transform .18s ease;
}

.mega-collections .mega-section .mega-list {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .24s ease, opacity .18s ease, margin .18s ease;
}

.mega-collections .mega-section:hover .mega-list,
.mega-collections .mega-section:focus-within .mega-list,
.mega-collections .mega-section.is-open .mega-list {
  max-height: 340px;
  margin-bottom: 10px;
  opacity: 1;
}

.mega-collections .mega-section:hover .lbr-mega-group-toggle span,
.mega-collections .mega-section:focus-within .lbr-mega-group-toggle span,
.mega-collections .mega-section.is-open .lbr-mega-group-toggle span {
  transform: rotate(180deg);
}

.lbr-collections-directory,
.lbr-core-collection-page,
.lbr-leaf-collection-page {
  min-height: 70vh;
  padding: 56px 0 78px;
  background: #fbf8f2;
  color: #16212b;
}

.lbr-collections-directory .shell,
.lbr-core-collection-page .shell,
.lbr-leaf-collection-page .shell {
  max-width: 1240px;
}

.lbr-collection-crumb {
  margin-bottom: 36px;
  color: #59636b;
  font-size: 12px;
}

.lbr-collection-crumb a {
  color: inherit;
  text-decoration: none;
}

.lbr-collection-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #a53b0c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lbr-collections-directory__header,
.lbr-core-collection-header,
.lbr-leaf-collection-header {
  max-width: 900px;
  margin-bottom: 38px;
}

.lbr-collections-directory__header h1,
.lbr-core-collection-header h1,
.lbr-leaf-collection-header h1 {
  max-width: 830px;
  margin: 0;
  color: #17212a;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: .98;
  letter-spacing: -.058em;
}

.lbr-collections-directory__header p,
.lbr-core-collection-header p,
.lbr-leaf-collection-header p {
  max-width: 720px;
  margin: 21px 0 0;
  color: #5e6871;
  font-size: 16px;
  line-height: 1.7;
}

.lbr-leaf-collection-header {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 50px;
  align-items: end;
}

.lbr-leaf-collection-header p {
  margin: 0;
}

.lbr-collections-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lbr-collections-core-card,
.lbr-core-collection-tile {
  overflow: hidden;
  border: 1px solid #ded7cc;
  background: #fff;
  color: #17212a;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lbr-collections-core-card:hover,
.lbr-core-collection-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(30, 35, 38, .11);
}

.lbr-collections-core-card__image,
.lbr-core-collection-tile__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #e6ddd0, #f4eee6);
}

.lbr-collections-core-card__image img,
.lbr-core-collection-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lbr-collections-core-card__content {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 25px;
}

.lbr-collections-core-card__content strong {
  font-size: 26px;
  line-height: 1.08;
}

.lbr-collections-core-card__content small {
  margin-top: 14px;
  color: #626e77;
  font-size: 13px;
  line-height: 1.62;
}

.lbr-collections-core-card__content b {
  margin-top: auto;
  padding-top: 22px;
  color: #a53b0c;
  font-size: 12px;
}

.lbr-core-collection-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lbr-core-collection-tile {
  position: relative;
}

.lbr-core-collection-tile strong,
.lbr-core-collection-tile > span:last-child {
  display: block;
  padding-inline: 20px;
}

.lbr-core-collection-tile strong {
  padding-top: 18px;
  font-size: 20px;
}

.lbr-core-collection-tile > span:last-child {
  padding-top: 8px;
  padding-bottom: 20px;
  color: #a53b0c;
  font-size: 12px;
  font-weight: 800;
}

.lbr-leaf-products {
  padding-top: 6px;
}

.lbr-leaf-collection-page .lbr-product-grid,
.lbr-related-products .lbr-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.lbr-leaf-collection-page .lbr-product-card,
.lbr-related-products .lbr-product-card {
  min-width: 0;
}

.lbr-leaf-collection-page .lbr-product-card__image,
.lbr-related-products .lbr-product-card__image {
  aspect-ratio: 1 / 1;
}

.lbr-leaf-collection-page .lbr-product-card__content,
.lbr-related-products .lbr-product-card__content {
  min-height: 142px;
  padding: 17px;
}

.lbr-leaf-collection-page .lbr-product-card h3,
.lbr-related-products .lbr-product-card h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.18;
}

.lbr-leaf-collection-page .lbr-product-card__link,
.lbr-related-products .lbr-product-card__link {
  padding-top: 14px;
}

.lbr-custom-direction-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9d1c5;
  background: #f0e9de;
  color: #17212a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lbr-custom-direction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(19, 32, 43, .12);
}

.lbr-custom-direction-card__visual {
  display: grid;
  aspect-ratio: 1 / 1;
  place-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #e6d9c7, #f7f0e5);
}

.lbr-custom-direction-card__visual i {
  display: block;
  width: 78px;
  height: 10px;
  border: 1px solid rgba(43, 48, 51, .3);
  border-radius: 10px;
}

.lbr-custom-direction-card__visual i:nth-child(2) {
  width: 112px;
  background: rgba(222, 91, 30, .13);
}

.lbr-custom-direction-card > span:not(.lbr-custom-direction-card__visual),
.lbr-custom-direction-card > strong,
.lbr-custom-direction-card > small,
.lbr-custom-direction-card > b {
  margin-inline: 17px;
}

.lbr-custom-direction-card > span:not(.lbr-custom-direction-card__visual) {
  margin-top: 17px;
}

.lbr-custom-direction-card > strong {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.18;
}

.lbr-custom-direction-card > small {
  margin-top: 9px;
  color: #63707a;
  font-size: 12px;
  line-height: 1.55;
}

.lbr-custom-direction-card > b {
  margin-top: auto;
  padding: 16px 0 18px;
  color: #a53b0c;
  font-size: 12px;
}

.lbr-collection-inquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  margin-top: 58px;
  padding: 36px;
  background: #17242d;
  color: #fff;
}

.lbr-collection-inquiry h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.lbr-collection-inquiry p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #c7d0d5;
  font-size: 14px;
  line-height: 1.65;
}

.lbr-related-products {
  padding: 68px 0;
  border-top: 1px solid #ded7cd;
  background: #f3eee6;
}

.lbr-related-products__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.lbr-related-products__heading h2 {
  margin: 10px 0 0;
  font-size: clamp(29px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.lbr-related-products__heading > a {
  color: #a53b0c;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.lbr-detail-page .lbr-detail-actions {
  display: block;
}

.lbr-detail-page .lbr-detail-actions .btn {
  width: 100%;
}

.lbr-product-inquiry {
  background: #e9e2d7;
}

@media (max-width: 1050px) {
  .lbr-leaf-collection-page .lbr-product-grid,
  .lbr-related-products .lbr-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lbr-collections-directory__grid,
  .lbr-core-collection-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lbr-leaf-collection-header,
  .lbr-collection-inquiry {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lbr-collection-inquiry .btn {
    width: max-content;
  }
}

@media (max-width: 680px) {
  .lbr-collections-directory,
  .lbr-core-collection-page,
  .lbr-leaf-collection-page {
    padding: 32px 0 54px;
  }

  .lbr-collection-crumb {
    margin-bottom: 25px;
  }

  .lbr-collections-directory__header h1,
  .lbr-core-collection-header h1,
  .lbr-leaf-collection-header h1 {
    font-size: clamp(37px, 12vw, 52px);
  }

  .lbr-collections-directory__grid,
  .lbr-core-collection-collage {
    grid-template-columns: 1fr;
  }

  .lbr-leaf-collection-page .lbr-product-grid,
  .lbr-related-products .lbr-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lbr-leaf-collection-page .lbr-product-card__content,
  .lbr-related-products .lbr-product-card__content {
    min-height: 130px;
    padding: 13px;
  }

  .lbr-leaf-collection-page .lbr-product-card h3,
  .lbr-related-products .lbr-product-card h3,
  .lbr-custom-direction-card > strong {
    font-size: 15px;
  }

  .lbr-custom-direction-card > span:not(.lbr-custom-direction-card__visual),
  .lbr-custom-direction-card > strong,
  .lbr-custom-direction-card > small,
  .lbr-custom-direction-card > b {
    margin-inline: 13px;
  }

  .lbr-custom-direction-card__visual i {
    width: 55px;
  }

  .lbr-custom-direction-card__visual i:nth-child(2) {
    width: 78px;
  }

  .lbr-collection-inquiry {
    margin-top: 38px;
    padding: 25px 21px;
  }

  .lbr-related-products {
    padding: 48px 0;
  }

  .lbr-related-products__heading {
    display: block;
  }

  .lbr-related-products__heading > a {
    display: inline-block;
    margin-top: 15px;
  }
}
