/* RC8 premium product detail sheet. Keeps the RC7 cart/order flow intact. */
.product-sheet.rc8-product-detail-ready {
  max-height: 94svh;
  padding: 0 20px 0;
  border-radius: 34px 34px 0 0;
  background: #fff;
  color: #171717;
  scroll-padding-bottom: 96px;
  overscroll-behavior: contain;
}

.product-sheet.rc8-product-detail-ready .sheet-close {
  position: absolute;
  z-index: 8;
  top: 18px;
  left: 18px;
  right: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20,20,20,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #171717;
  box-shadow: 0 7px 20px rgba(0,0,0,.10);
  font-size: 27px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.rc8-sheet-favourite {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20,20,20,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #171717;
  box-shadow: 0 7px 20px rgba(0,0,0,.10);
  font: 29px/1 Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.rc8-sheet-favourite.active {
  color: var(--accent, #f26a21);
}

.product-sheet.rc8-product-detail-ready .sheet-image {
  height: min(48svh, 390px);
  min-height: 280px;
  margin: 0 -20px 24px;
  border-radius: 34px 34px 28px 28px;
  overflow: hidden;
  background: #f4f3f0;
}

.product-sheet.rc8-product-detail-ready .sheet-image.has-photo img,
.product-sheet.rc8-product-detail-ready .sheet-image .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-sheet.rc8-product-detail-ready #sheet-category {
  margin: 0 0 8px;
  color: #939089;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.product-sheet.rc8-product-detail-ready #sheet-name {
  margin: 0;
  font-size: clamp(32px, 8.6vw, 46px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
}

.product-sheet.rc8-product-detail-ready .sheet-description {
  margin: 14px 0 0;
  color: #6f6c66;
  font-size: 16px;
  line-height: 1.5;
}

.product-sheet.rc8-product-detail-ready .sheet-price {
  margin: 18px 0 20px;
  color: #171717;
  font-size: 22px;
  font-weight: 750;
}

.rc8-product-purchase {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.rc8-product-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid #ebe8e3;
  border-radius: 22px;
  background: #faf9f7;
}

.rc8-product-qty-copy {
  display: grid;
  gap: 2px;
}

.rc8-product-qty-copy strong {
  font-size: 16px;
  font-weight: 750;
}

.rc8-product-qty-copy small {
  color: #8a877f;
  font-size: 12px;
  font-weight: 650;
}

.rc8-product-qty-picker {
  display: grid;
  grid-template-columns: 40px minmax(28px, auto) 40px;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e8e5df;
}

.rc8-product-qty-picker button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #efeeeb;
  color: #171717;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
}

.rc8-product-qty-picker strong {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 750;
}

.rc8-product-add-more {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #dedbd5;
  border-radius: 20px;
  padding: 14px 18px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.rc8-product-add-more-plus {
  font-size: 31px;
  font-weight: 350;
  line-height: .8;
  transform: translateY(-1px);
}

.rc8-product-add-more strong {
  font-size: 16px;
  font-weight: 700;
}

.rc8-product-add-more:active {
  background: #f7f6f3;
}

.rc8-product-add-more:disabled {
  opacity: .45;
}

.rc8-product-add-more[hidden] {
  display: none !important;
}

.rc8-product-note {
  display: grid;
  gap: 8px;
}

.rc8-product-note > span {
  color: #5e5b55;
  font-size: 14px;
  font-weight: 750;
}

.rc8-product-note small {
  color: #9b9891;
  font-weight: 600;
}

.rc8-product-note textarea {
  width: 100%;
  min-height: 78px;
  resize: none;
  border: 1px solid #ebe8e3;
  border-radius: 20px;
  padding: 14px 15px;
  background: #faf9f7;
  color: #171717;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
}

.rc8-product-note textarea:focus {
  border-color: #bbb6ae;
  box-shadow: 0 0 0 3px rgba(23,23,23,.06);
}

.product-sheet.rc8-product-detail-ready .sheet-actions {
  position: sticky;
  z-index: 6;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 -20px;
  padding: 10px 20px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,.76), #fff 24%);
  box-shadow: 0 -12px 28px rgba(0,0,0,.05);
  backdrop-filter: blur(16px);
}

.product-sheet.rc8-product-detail-ready .secondary-button,
.product-sheet.rc8-product-detail-ready .whatsapp-button {
  min-height: 50px;
  border-radius: 17px;
  font-size: 14px;
  font-weight: 750;
}

.product-sheet.rc8-product-detail-ready .secondary-button {
  background: #f0efec;
}

.product-sheet.rc8-product-detail-ready .whatsapp-button {
  background: #18a35b;
}

.product-sheet.rc8-product-detail-ready .order-from-product {
  grid-column: 1 / -1;
  min-height: 60px;
  border-radius: 19px;
  padding: 16px 18px;
  background: #171717;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}

.product-sheet.rc8-product-detail-ready .order-from-product:disabled {
  opacity: .45;
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 760px) {
    .product-sheet.rc8-product-detail-ready .sheet-actions {
      padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
  }
}

@media (max-height: 720px) {
  .product-sheet.rc8-product-detail-ready .sheet-image {
    height: 250px;
    min-height: 250px;
  }
}


/* Product-only Airbnb-style sticky commerce bar. */
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .sheet-actions {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .95fr);
  align-items: center;
  gap: 14px;
  margin: 0 -20px;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #ecebea;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -8px 24px rgba(0,0,0,.055);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-sheet.rc8-product-detail-ready.rc8-commerce-product .sheet-actions #sheet-call,
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .sheet-actions #sheet-whatsapp {
  display: none !important;
}

.rc8-product-sticky-summary {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
}

.rc8-product-sticky-summary[hidden] {
  display: none !important;
}

.rc8-product-sticky-summary strong {
  overflow: hidden;
  color: #171717;
  font-size: 21px;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc8-product-sticky-summary small {
  color: #74716b;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
}

.product-sheet.rc8-product-detail-ready.rc8-commerce-product .order-from-product {
  grid-column: auto;
  width: 100%;
  min-height: 58px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: #171717;
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.05;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .product-sheet.rc8-product-detail-ready.rc8-commerce-product .sheet-actions {
    grid-template-columns: minmax(0, 1fr) minmax(142px, .92fr);
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .rc8-product-sticky-summary strong {
    font-size: 19px;
  }

  .product-sheet.rc8-product-detail-ready.rc8-commerce-product .order-from-product {
    min-height: 54px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 14px;
  }
}


/* Room detail Airbnb-style split booking bar */
.product-sheet.rc8-product-detail-ready.rc8-room-detail .sheet-actions{
  grid-template-columns:minmax(0,1fr) minmax(160px,.95fr);
  align-items:center;
  gap:14px;
  margin:0 -20px;
  padding:12px 20px max(12px, env(safe-area-inset-bottom));
  border-top:1px solid #ecebea;
  background:rgba(255,255,255,.985);
  box-shadow:0 -8px 24px rgba(0,0,0,.055);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.product-sheet.rc8-product-detail-ready.rc8-room-detail .sheet-actions #sheet-call,
.product-sheet.rc8-product-detail-ready.rc8-room-detail .sheet-actions #sheet-whatsapp{
  display:none!important;
}
.product-sheet.rc8-product-detail-ready.rc8-room-detail .rc8-product-sticky-summary{
  display:grid!important;
  grid-template-columns:auto auto;
  align-items:baseline;
  justify-content:start;
  gap:5px;
}
.product-sheet.rc8-product-detail-ready.rc8-room-detail .rc8-product-sticky-summary strong{
  font-size:21px;
  font-weight:760;
}
.product-sheet.rc8-product-detail-ready.rc8-room-detail .rc8-product-sticky-summary small{
  font-size:12px;
  font-weight:560;
  white-space:nowrap;
}
.product-sheet.rc8-product-detail-ready.rc8-room-detail .order-from-product{
  grid-column:auto;
  width:100%;
  min-height:58px;
  margin:0;
  border:0;
  border-radius:22px;
  padding:14px 18px;
  background:#222;
  color:#fff;
  font-size:17px;
  font-weight:760;
  line-height:1.05;
  white-space:nowrap;
}
@media(max-width:390px){
  .product-sheet.rc8-product-detail-ready.rc8-room-detail .sheet-actions{
    grid-template-columns:minmax(0,1fr) minmax(142px,.92fr);
    gap:10px;
    padding-left:16px;
    padding-right:16px;
  }
  .product-sheet.rc8-product-detail-ready.rc8-room-detail .rc8-product-sticky-summary{
    grid-template-columns:1fr;
    gap:1px;
  }
  .product-sheet.rc8-product-detail-ready.rc8-room-detail .rc8-product-sticky-summary strong{
    font-size:19px;
  }
  .product-sheet.rc8-product-detail-ready.rc8-room-detail .order-from-product{
    min-height:54px;
    padding-left:14px;
    padding-right:14px;
    font-size:16px;
  }
}



/* Detail-modal interaction hardening — scoped to product/detail views only. */
#sheet-backdrop:not([hidden]) {
  z-index: 119;
}

.product-sheet.rc8-product-detail-ready:not([hidden]) {
  z-index: 120;
  pointer-events: auto;
}

.product-sheet.rc8-product-detail-ready .sheet-close,
.product-sheet.rc8-product-detail-ready .sheet-actions,
.product-sheet.rc8-product-detail-ready .sheet-actions *,
.product-sheet.rc8-product-detail-ready #sheet-order {
  pointer-events: auto;
}

.product-sheet.rc8-product-detail-ready .sheet-close {
  z-index: 22;
}

.product-sheet.rc8-product-detail-ready .sheet-actions {
  z-index: 21;
}

/* Detail hero images end square at the bottom; homepage/cards are untouched. */
.product-sheet.rc8-product-detail-ready .sheet-image {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Full-screen customer product detail — same interaction model as rooms. */
.product-sheet.rc8-product-detail-ready.rc8-commerce-product{
  top:0;
  bottom:0;
  height:100svh;
  min-height:100svh;
  max-height:100svh;
  border-radius:0;
  background:#fff;
  box-shadow:none;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
}
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .sheet-close,
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .rc8-sheet-favourite{
  top:max(18px, env(safe-area-inset-top));
}
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .sheet-image{
  border-radius:0 0 28px 28px;
  cursor:zoom-in;
}


/* Break Point: App Store-style horizontal carousel, three vertical rows per page. */
.rc8-frequently-bought {
  padding: 22px 18px 12px;
  border-top: 8px solid #f5f5f5;
  background: #fff;
  min-width: 0;
}

.rc8-frequently-bought[hidden] {
  display: none !important;
}

.rc8-frequently-bought h2 {
  margin: 0 0 16px;
  color: #111;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rc8-frequently-bought-list {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 8px;
}
.rc8-frequently-bought-list::-webkit-scrollbar { display: none; }

.rc8-frequently-bought-slide {
  flex: 0 0 90%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.rc8-frequently-bought-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 12px 0;
  border-bottom: 1px solid #ededed;
}

.rc8-frequently-bought-item:last-child {
  border-bottom: 0;
}

.rc8-frequently-bought-media {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #f6f6f4;
}

.rc8-frequently-bought-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rc8-frequently-bought-placeholder {
  color: #999;
  font-size: 24px;
}

.rc8-frequently-bought-copy {
  min-width: 0;
}

.rc8-frequently-bought-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #121212;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rc8-frequently-bought-copy > span {
  display: block;
  margin-top: 4px;
  color: #303030;
  font-size: 15px;
}

.rc8-frequently-bought-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: #707070;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rc8-frequently-bought-add {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
  color: #111;
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.rc8-frequently-bought-add:disabled {
  opacity: 0.7;
}

.rc8-frequently-bought-add.is-selected {
  background: #555;
  border-color: #555;
  color: #fff;
}

@media (min-width: 768px) {
  .rc8-frequently-bought-slide { flex-basis: min(90%, 560px); }
}

@media (max-width: 390px) {
  .rc8-frequently-bought { padding-inline: 14px; }
  .rc8-frequently-bought-item {
    grid-template-columns: 66px minmax(0, 1fr) 42px;
    gap: 10px;
  }
  .rc8-frequently-bought-media { width: 66px; }
  .rc8-frequently-bought-add { width: 42px; height: 42px; }
  .rc8-frequently-bought-copy strong { font-size: 15px; }
  .rc8-frequently-bought-copy p { font-size: 12px; }
}

/* Breakpoint: keep Add to Cart in its existing row, right-aligned. */
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .rc8-product-add-more {
  width: fit-content;
  min-width: 168px;
  min-height: 48px;
  margin-left: auto;
  margin-right: 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  gap: 9px;
}
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .rc8-product-add-more strong { font-size: 14px; font-weight: 650; }
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .rc8-product-add-more-plus { font-size: 19px; line-height: 1; transform: none; }
.product-sheet.rc8-product-detail-ready.rc8-commerce-product .rc8-product-add-more:active { background: #343434; }

/* Accompaniment cards: 2.5 visible, horizontal swipe. */
.rc8-accompaniments[hidden]{display:none!important}
.rc8-accompaniments{margin:12px 0 16px;min-width:0}
.rc8-accompaniments h3{font-size:15px;font-weight:650;margin:0 0 10px;color:#292929}
.rc8-accompaniments-track{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 8px}
.rc8-accompaniments-track::-webkit-scrollbar{display:none}
.rc8-accompaniment-card{flex:0 0 calc((100% - 20px)/2.5);min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:5px;background:#fff;color:#292929;border:2px solid transparent;border-radius:14px;padding:6px;scroll-snap-align:start;cursor:pointer;font:inherit}
.rc8-accompaniment-card.selected{background:#171717;color:#fff;border-color:#ef9b57;box-shadow:inset 0 0 0 1px #ef9b57}
.rc8-accompaniment-card img,.rc8-accompaniment-placeholder{width:100%;aspect-ratio:5/4;object-fit:cover;background:#f4f1ed;border-radius:9px}
.rc8-accompaniment-placeholder{display:grid;place-items:center;font-size:26px;color:#555}
.rc8-accompaniment-name{font-size:12px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}
.rc8-accompaniment-card small{font-size:11px;color:#777}
.rc8-accompaniment-card.selected small{color:#dedede}
.rc8-accompaniment-card:focus-visible{outline:2px solid #ef9b57;outline-offset:2px}

/* BreakPoint: the open third row of the last People also buy page is actionable. */
.rc8-frequently-bought-more-row {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 146px;
  padding: 9px 0 12px;
}
.rc8-frequently-bought-see-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 129px;
  padding: 10px 12px;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  background: #fafafa;
  color: #171717;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rc8-see-more-stack {
  position: relative;
  display: block;
  flex: 0 0 76px;
  width: 128px;
  height: 76px;
}
.rc8-see-more-thumb {
  position: absolute;
  display: block;
  top: 7px;
  left: 33px;
  width: 62px;
  height: 62px;
  border: 3px solid #fff;
  border-radius: 14px;
  background: #f4f1ed;
  box-shadow: 0 3px 9px rgba(0,0,0,.14);
  overflow: hidden;
  transform: rotate(-2deg);
}
.rc8-see-more-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rc8-see-more-stack--2 .rc8-see-more-thumb--1 {
  left: 17px;
  top: 13px;
  z-index: 1;
  transform: rotate(-9deg);
}
.rc8-see-more-stack--2 .rc8-see-more-thumb--2 {
  left: 52px;
  top: 5px;
  z-index: 2;
  transform: rotate(8deg);
}
.rc8-see-more-stack--3 .rc8-see-more-thumb--1 {
  left: 3px;
  top: 15px;
  z-index: 1;
  transform: rotate(-11deg);
}
.rc8-see-more-stack--3 .rc8-see-more-thumb--2 {
  left: 33px;
  top: 3px;
  z-index: 3;
  transform: rotate(-1deg);
}
.rc8-see-more-stack--3 .rc8-see-more-thumb--3 {
  left: 63px;
  top: 14px;
  z-index: 2;
  transform: rotate(10deg);
}
.rc8-frequently-bought-see-more .rc8-see-more-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #171717;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}
.rc8-frequently-bought-see-more .rc8-see-more-arrow {
  font-size: 20px;
  line-height: 1;
}
.rc8-see-more-no-photo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 76px;
  color: #777;
  font-size: 32px;
}
.rc8-frequently-bought-see-more:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}
.rc8-frequently-bought-see-more:active {
  background: #ededed;
}
