/* David Lloyd: Grab & Go lineup tiles, category sheet and product sheet.
   Sheet measurements follow the David Lloyd reference captures at 1080 × 1920. */

.v-dl .tile-img { filter: none; }
.v-dl .tile-img .lineup { display: block; width: 100%; height: 100%; }

.v-dl .basket.is-open { width: calc(80px + var(--n, 3) * 30px); }

/* ---------- Overlay layers ---------- */
.dl-layer { position: absolute; inset: 0; z-index: 15; opacity: 0; transition: opacity .32s ease; }
.dl-layer.is-open { opacity: 1; }
.dl-layer[hidden] { display: none; }
#productLayer { z-index: 16; }
.screen.has-layer .help { display: none; }
.screen.has-layer .footer { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.screen.has-layer .footer .a11y { pointer-events: auto; }

.dl-backdrop {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(56, 56, 56, .64) 64.28%, rgba(0, 0, 0, .8) 100%);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
}
#productLayer .dl-backdrop {
  background: linear-gradient(var(--c1, #383838) 36.33%, var(--c2, #121212) 117.68%);
}
.dl-sheet {
  position: absolute; left: 128px; top: 130px; width: 824px; height: 1790px; box-sizing: border-box;
  border-radius: 40px 40px 0 0;
  transform: translateY(48px); transition: transform .42s cubic-bezier(.2, .85, .2, 1);
}
.dl-layer.is-open .dl-sheet { transform: none; }
.dl-cat-scroll, .dl-pd-scroll { overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.dl-cat-scroll::-webkit-scrollbar, .dl-pd-scroll::-webkit-scrollbar { display: none; }
.dl-sheet :where(h2, p) { margin: 0; }

.dl-back {
  position: absolute; left: 16px; top: 977px; z-index: 2;
  width: 96px; height: 96px; border-radius: 999px; background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 -3px 20px rgba(0, 0, 0, .1), 0 -4px 90px rgba(0, 0, 0, .15);
}
.dl-back svg { width: 56px; height: 56px; }

/* ---------- Category sheet ---------- */
.dl-cat {
  background: #121212;
  box-shadow: inset 0 -104px 60px -60px rgba(0, 0, 0, .8);
}
.dl-cat-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 432px; box-sizing: border-box; padding: 32px 32px 0;
  background: #121212; border-radius: 40px 40px 0 0;
}
.dl-cat-scroll { position: absolute; top: 432px; left: 0; right: 0; bottom: 0; padding: 0 32px 300px; }
.dl-cat-title { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; font-size: 32px; font-weight: 500; line-height: 41.6px; letter-spacing: -1px; }
.dl-cat-hero {
  margin-top: 32px; width: 760px; height: 326px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, .6);
  background: linear-gradient(106.24deg, #242424 8.61%, #121212 107.75%);
}
.dl-cat-hero img { width: 100%; height: 100%; object-fit: cover; }
.dl-cat-hero .lineup { display: block; height: 100%; margin: 0 auto; }
.dl-cat-title svg { width: 32px; height: 32px; }
.dl-grid { margin-top: 136px; display: grid; grid-template-columns: repeat(3, 232px); column-gap: 32px; row-gap: 128px; }
.dl-card {
  position: relative; height: 243px; border-radius: 32px; cursor: pointer;
  background: linear-gradient(#121212 0%, #242424 100%);
}
.dl-card img { position: absolute; left: 0; top: -79px; width: 232px; height: 218px; object-fit: contain; pointer-events: none; }
.dl-grid.is-tiles { margin-top: 202px; grid-template-columns: repeat(2, 364px); row-gap: 194px; }
.dl-grid.is-tiles .dl-card img { top: -156px; width: 364px; height: 218px; }
.dl-card-text {
  position: absolute; left: 16px; right: 16px; top: 86px; text-align: center;
  font-size: 24px; font-weight: 700; line-height: 26.4px; letter-spacing: -.7px;
}
.dl-card-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-price {
  position: absolute; left: 50%; top: 163px; transform: translateX(-50%);
  min-width: 120px; height: 48px; padding: 0 24px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#1B1B1B 0%, #121212 100%);
  box-shadow: 0 0 12px rgba(0, 0, 0, .2), inset 0 -3px 1px rgba(0, 0, 0, .4), inset 0 2px 1px rgba(255, 255, 255, .35);
  font-size: 24px; font-weight: 700; line-height: 1;
}

/* ---------- Product sheet ----------
   The sheet and its header stay put; only .dl-pd-scroll moves. It starts at the header's bottom edge,
   so content slides under the translucent button bar but never over the header. */
.dl-pd {
  display: flex; flex-direction: column;
  background: linear-gradient(#1B1B1B 0%, #121212 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
}
.dl-pd-shot { position: absolute; left: 16px; top: -35px; z-index: 3; width: 214px; height: 300px; object-fit: contain; }
.dl-pd-head {
  flex: none; height: 330px; box-sizing: border-box; padding: 40px 32px 40px 246px;
  border-bottom: 2px solid transparent; transition: border-color .2s ease;
}
.dl-pd.is-scrolled .dl-pd-head { border-bottom-color: #383838; }
.dl-pd-brand, .dl-pd-cost { color: #BABABA; font-size: 32px; font-weight: 400; line-height: 35.2px; }
.dl-pd-name, .dl-pd-sub { font-size: 40px; font-weight: 700; line-height: 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-pd-name { margin-top: 24px; }
.dl-pd-sub { margin-top: 6px; }
.dl-pd-meta { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.dl-pd-size {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 24px; border: 2px solid #fff; border-radius: 500px;
  font-size: 24px; font-weight: 700; line-height: 28.8px; white-space: nowrap;
}
.dl-pd-body { position: relative; flex: 1; min-height: 0; }
.dl-pd-scroll { position: absolute; inset: 0; padding: 195px 56px 300px; }
.dl-pd-actions {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 51px 56px 48px;
  display: grid; grid-template-columns: 341px 347px; gap: 24px;
  background: rgba(24, 24, 24, .55);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
}
.dl-pd-actions.is-single { grid-template-columns: 712px; }
.dl-pd-size svg { width: 32px; height: 32px; }
.dl-pd-actions button {
  height: 96px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 32px; font-weight: 600; line-height: 38.4px;
}
.dl-add { border: 2px solid #fff; color: #fff; transition: background-color .2s ease, color .2s ease; }
.dl-add img { width: 32px; height: 32px; transition: filter .2s ease; }
.dl-add.is-added { background: #fff; color: #000; }
.dl-add.is-added img { filter: brightness(0); }
.dl-buy { background: #fff; color: #000; }
.dl-buy svg { width: 56px; height: 56px; }
.dl-pd-top { width: 712px; height: 400px; object-fit: cover; display: block; border-radius: 16px; }
.dl-pd-pair { margin-top: 24px; display: grid; grid-template-columns: 343px 343px; gap: 26px; }
.dl-pd-pair img { width: 343px; height: 343px; object-fit: cover; display: block; border-radius: 16px; }
.dl-pd-sec { margin-top: 56px; }
.dl-pd-sec h2 { font-size: 40px; font-weight: 700; line-height: 44px; letter-spacing: -.8px; }
.dl-pd-sec p { margin-top: 24px; color: #BABABA; font-size: 32px; font-weight: 400; line-height: 41.6px; letter-spacing: -.6px; white-space: pre-line; }
.dl-pd-frame { display: block; width: 100%; height: 0; margin-top: 24px; border: 0; background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .dl-layer, .dl-sheet { transition: none; }
}
