/* Luke bundles list (/bundles/), classes luke-bpl-. Loaded after luke-byb.css (cards .luke-pc) */

.luke-bpl {
  padding: 32px 0 calc(var(--section) * 2);
}

/***************************************************************************** HEAD ***/
.luke-bpl-head {
  border-bottom: 1px solid var(--c-dark);
  margin-bottom: 16px;
  padding-bottom: 16px;
}
.luke-bpl-head .luke-label {
  margin-bottom: 10px;
}
.luke-bpl-head .luke-h1-s {
  margin: 0;
}
@media (min-width: 768px) {
  .luke-bpl {
    padding-top: 40px;
  }
  .luke-bpl-head {
    margin-bottom: 20px;
    padding-bottom: 34px;
  }
  .luke-bpl-head .luke-label {
    margin-bottom: 18px;
  }
}

/***************************************************************************** LAYOUT ***/
.luke-bpl-side {
  display: none;
}
@media (min-width: 1200px) {
  .luke-bpl-in {
    align-items: start;
    display: grid;
    gap: 40px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .luke-bpl-side {
    display: block;
    position: sticky;
    top: 104px; /* under the sticky header (79px) */
  }
}
@media (min-width: 1500px) {
  .luke-bpl-in {
    gap: 72px;
  }
}

/***************************************************************************** FILTERS (column) ***/
.luke-bpl-filters {
  background: var(--c-white);
  border-radius: 24px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06), 0 4px 11px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
}
.luke-bpl-filters-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 28px;
  margin-bottom: 4px;
}
.luke-bpl-group {
  display: flex;
  flex-direction: column;
}
.luke-bpl-group-title {
  border-bottom: 1px solid #D9D9D9;
  color: var(--c-gray);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 20px;
  padding: 10px 0;
  text-transform: uppercase;
}
.luke-bpl-f {
  align-items: center;
  color: var(--c-dark);
  display: flex;
  font-size: 16px;
  font-weight: 500;
  gap: 8px;
  line-height: 22px;
  padding: 9px 0;
}
.luke-bpl-f:hover {
  color: var(--c-green);
}
.luke-bpl-radio {
  background: var(--c-white);
  border: 1px solid var(--c-green);
  border-radius: 50%;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}
.luke-bpl-f.active .luke-bpl-radio {
  background: var(--c-cream);
  border: 6px solid var(--c-green);
}

/* Below 1200: the Filters button */
.luke-bpl-tools {
  display: flex;
  margin-bottom: 16px;
}
.luke-bpl-open {
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-green);
  border-radius: 90px;
  color: var(--c-green);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 4px;
  line-height: 20px;
  padding: 7px 16px;
  transition: background-color .2s;
}
.luke-bpl-open:hover {
  background: #F2F8E4;
}
.luke-bpl-open span { /* ": Gym Rat" right after "Filters", without the gap */
  margin-left: -4px;
}
@media (min-width: 1200px) {
  .luke-bpl-tools {
    display: none;
  }
}

/***************************************************************************** PROMO ***/
/* Mobile: text, then two equal offers; from 768 the offers with a dot; from 1500 all in one row */
.luke-bpl-promo {
  background: #E5D5F6;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
}
.luke-bpl-promo-text {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}
.luke-bpl-promo-text svg {
  color: var(--c-green);
  flex-shrink: 0;
  height: 24px;
  width: 24px;
}
.luke-bpl-promo-text div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.luke-bpl-promo-text b {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.luke-bpl-promo-text span {
  font-size: 13px;
  line-height: 18px;
}
.luke-bpl-promo-offers {
  align-items: center;
  display: flex;
  gap: 12px;
}
.luke-bpl-promo-offers span {
  align-items: center;
  align-self: stretch;
  background: #E9FAC0;
  border: 1px dashed var(--c-green-btn);
  border-radius: 10px;
  display: flex;
  flex: 1 1 0;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  line-height: 14px;
  min-width: 0;
  padding: 4px 12px;
  text-align: center;
}
.luke-bpl-promo-offers i {
  display: none;
}
@media (min-width: 768px) {
  .luke-bpl-promo {
    border-radius: 24px;
    margin-bottom: 24px;
    padding: 14px 24px;
  }
  .luke-bpl-promo-text {
    align-items: center;
    gap: 12px;
  }
  .luke-bpl-promo-text svg {
    height: 32px;
    width: 32px;
  }
  .luke-bpl-promo-text div {
    gap: 0;
  }
  .luke-bpl-promo-text b {
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 24px;
  }
  .luke-bpl-promo-text span {
    font-size: 16px;
    line-height: 22px;
  }
  .luke-bpl-promo-offers span {
    align-self: auto;
    border-color: var(--c-dark);
    border-radius: 50px;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    padding: 3px 16px;
    white-space: nowrap;
  }
  .luke-bpl-promo-offers i {
    background: var(--c-dark);
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    height: 5px;
    width: 5px;
  }
}
@media (min-width: 1500px) {
  .luke-bpl-promo {
    align-items: center;
    border-radius: 50px;
    flex-direction: row;
    justify-content: space-between;
  }
}

/***************************************************************************** GRID ***/
/* Cards have order 10, 20, 30…; the milk card and the second promo go between them by order */
.luke-bpl-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.luke-bpl-grid .luke-bpl-promo-2 {
  grid-column: 1 / -1;
  margin: 0;
  order: 85; /* after 8 cards (4 rows of 2, or 8 + milk = 3 rows of 3) */
}
.luke-bpl-grid .luke-bpl-milk {
  order: 25; /* after 2 cards */
}
.luke-bpl-grid.filtered .luke-bpl-milk,
.luke-bpl-grid.filtered .luke-bpl-promo-2 {
  display: none;
}
@media (min-width: 768px) {
  .luke-bpl-grid {
    gap: 24px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .luke-bpl-grid:not(.with-milk) .luke-bpl-promo-2 {
    order: 95; /* 3 rows of 3 cards */
  }
}
@media (min-width: 1200px) {
  .luke-bpl-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .luke-bpl-grid .luke-bpl-milk {
    order: 35; /* the last one in the first row */
  }
  .luke-bpl-grid .luke-bpl-promo-2 {
    order: 115; /* 11 cards + milk = 3 rows */
  }
  .luke-bpl-grid:not(.with-milk) .luke-bpl-promo-2 {
    order: 125;
  }
}

/***************************************************************************** CARD ***/
/* The whole card opens the bundle page (the title link covers it); the eye and Add to cart are on top */
.luke-bpl-name {
  color: var(--c-dark);
}
.luke-bpl-name::after {
  border-radius: inherit;
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}
.luke-bpl-card .luke-pc-view,
.luke-bpl-card .lbtn {
  position: relative;
  z-index: 2;
}
.luke-bpl-card .luke-pc-view {
  position: absolute;
}
.luke-bpl-name {
  font-size: 16px;
  letter-spacing: -.03em;
  line-height: 22px;
}
.luke-bpl-card:hover .luke-bpl-name {
  color: var(--c-green);
}
.luke-bpl-type {
  background: #DAF1FE;
  border-radius: 60px;
  color: #00456C;
  font-size: 10px;
  font-weight: 700;
  left: 9px;
  line-height: 14px;
  padding: 5px 9px;
  position: absolute;
  text-transform: uppercase;
  top: 9px;
  white-space: nowrap;
}
.luke-bpl-card .luke-pc-info {
  padding: 16px;
}
.luke-bpl-atc { /* mobile: line, price, full-width button */
  border-top: 1px solid var(--c-divider);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.luke-pc-sub + .luke-bpl-atc {
  margin-top: auto;
}
.luke-bpl-card .luke-pc-sub {
  margin-bottom: 12px;
}
.luke-bpl-price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  font-weight: 600;
  gap: 0 8px;
  white-space: nowrap;
}
.luke-bpl-price b {
  color: var(--c-sale);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.luke-bpl-price.full b { /* no discount (logged in) */
  color: var(--c-dark);
}
.luke-bpl-price s {
  color: var(--c-gray);
  font-size: 14px;
  line-height: 20px;
}
.luke-bpl-atc .lbtn {
  font-size: 14px;
  line-height: 20px;
  padding: 8px 16px;
  width: 100%;
}
@media (min-width: 768px) {
  .luke-bpl-type {
    font-size: 13px;
    left: 11px;
    line-height: 18px;
    padding: 7px 14px;
    top: 11px;
  }
  .luke-bpl-card .luke-pc-info {
    padding: 16px 20px;
  }
  .luke-bpl-atc {
    align-items: center;
    border-top: 0;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0;
  }
  .luke-bpl-price {
    flex-direction: column;
    gap: 0;
  }
  .luke-bpl-atc .lbtn {
    flex-shrink: 0;
    padding: 8px 22px;
    width: auto;
  }
}

/* Free milk (logged-out customers only): mobile - a full row, photo left; from 768 - a card with the photo on top */
.luke-bpl-milk {
  background: var(--c-green-btn);
  border-radius: 16px;
  display: flex;
  grid-column: 1 / -1;
  padding: 10px;
}
.luke-bpl-milk img {
  border-radius: 16px 0 0 16px;
  flex: 1 1 0;
  min-width: 0;
  object-fit: cover;
  width: 50%;
}
.luke-bpl-milk div {
  background: var(--c-white);
  border-radius: 0 16px 16px 0;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
}
.luke-bpl-milk b {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 22px;
}
.luke-bpl-milk span {
  font-size: 14px;
  line-height: 20px;
}
@media (min-width: 768px) {
  .luke-bpl-milk {
    border-radius: 24px;
    flex-direction: column;
    grid-column: auto;
  }
  .luke-bpl-milk img {
    aspect-ratio: 1;
    border-radius: 24px 24px 0 0;
    flex: none;
    width: 100%;
  }
  .luke-bpl-milk div {
    border-radius: 0 0 24px 24px;
    flex: 1 0 auto;
    justify-content: flex-start;
    padding: 16px 20px;
  }
  .luke-bpl-milk b {
    font-size: 20px;
    line-height: 24px;
  }
}

/***************************************************************************** FILTERS SHEET (below 1200) ***/
.luke-bpl-sheet {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  align-items: flex-end;
  background: rgba(2, 16, 11, .3);
  cursor: pointer; /* iOS Safari fires click on a div only with a pointer cursor */
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: fixed;
  transition: opacity .3s, visibility .3s;
  visibility: hidden;
  z-index: 65;
}
.luke-bpl-sheet-open .luke-bpl-sheet {
  opacity: 1;
  visibility: visible;
}
.luke-bpl-sheet-box {
  -webkit-overflow-scrolling: touch;
  background: var(--c-white);
  border-radius: 16px 16px 0 0;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  max-height: 90dvh;
  max-width: 600px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  transform: translateY(100%);
  transition: transform .3s;
  width: 100%;
}
.luke-bpl-sheet-open .luke-bpl-sheet-box {
  transform: none;
}
.luke-bpl-sheet-box:focus {
  outline: 0;
}
.luke-bpl-sheet-head {
  align-items: center;
  border-bottom: 1px solid var(--c-beige0);
  display: flex;
  font-size: 18px;
  font-weight: 500;
  justify-content: space-between;
  letter-spacing: -.03em;
  line-height: 22px;
  padding-bottom: 12px;
}
.luke-bpl-sheet-close {
  color: var(--c-dark);
  display: flex;
}
.luke-bpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.luke-bpl-chip {
  background: var(--c-white);
  border: 1px solid var(--c-beige1);
  border-radius: 90px;
  color: var(--c-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 5px 12px;
  transition: border-color .2s, color .2s;
}
.luke-bpl-chip:hover,
.luke-bpl-chip.active {
  border-color: var(--c-green);
  color: var(--c-green);
}
.luke-bpl-sheet-by {
  color: var(--c-gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 16px;
  text-transform: uppercase;
}
.luke-bpl-acc-item + .luke-bpl-acc-item {
  border-top: 1px solid #F2F0E8;
}
.luke-bpl-acc-btn {
  align-items: center;
  color: var(--c-dark);
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  line-height: 22px;
  padding: 8px 0;
  width: 100%;
}
.luke-bpl-acc-btn svg {
  flex-shrink: 0;
  transition: transform .2s;
}
.luke-bpl-acc-item.open .luke-bpl-acc-btn svg {
  transform: rotate(180deg);
}
.luke-bpl-acc-item .luke-bpl-chips {
  display: none;
  gap: 8px;
  padding: 2px 0 10px;
}
.luke-bpl-acc-item.open .luke-bpl-chips {
  display: flex;
}
.luke-bpl-apply {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 20px;
  margin-top: 4px;
  padding: 8px 24px;
  width: 100%;
}
@media (min-width: 768px) {
  .luke-bpl-sheet-box {
    border-radius: 24px 24px 0 0;
    padding: 20px 24px 24px;
  }
}
@media (min-width: 1200px) {
  .luke-bpl-sheet {
    display: none;
  }
}
