/* Deal cards and the front page's Deal sections (#193), as in the signed-off prototype
   (#135, prototype/deals-area), on top of styles.css and shop.css. Cream marks a Deal;
   the curated picks keep their white tiles. */
:root { --deal-tile: #f1efea; }

.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- The card: square cream tile, the whole image, brand, two-line name, plain price --- */
.dl-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.dl-card { position: relative; height: 100%; display: flex; flex-direction: column; }
.dl-link { display: block; color: var(--ink); text-decoration: none; }
.dl-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.dl-img { position: relative; aspect-ratio: 1 / 1; background: var(--deal-tile); overflow: hidden; }
.dl-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%;
  mix-blend-mode: multiply; transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
.dl-link:hover .dl-img img { transform: scale(1.035); }
/* eBay's images are shown as eBay supplied them, never blended (#218); so is a photo
   standing on the flat colour its Merchant shoots on (its record's photoBackground). */
.dl-unblended img, img.dl-unblended, .still-slide.dl-unblended { mix-blend-mode: normal; }
/* That photo is also shown whole, as The Shop shows JD Sports': never inset or zoomed, so its own
   frame (a cut through a model) meets the tile's edge instead of floating on the colour. A slide
   on it drops the studio light and floor shadow, which would show the photo's edges. */
.dl-whole img, .dl-photo.dl-whole img { padding: 0; }
.dl-link:hover .dl-whole img { transform: none; }
.still-slide.dl-whole::after, .dl-hero.still-rotate:has(.still-slide.dl-whole.on)::before { content: none; }
/* A photo blended on the cream, fitted by its product's trim box: its size (the product's longer side at
   88% of the square, never wider than the image) and its centring are inline; white margins clip away. */
.dl-fit img, .dl-photo.dl-fit img { inset: auto; left: 50%; top: 50%; height: auto; padding: 0; max-width: none; }
.dl-photo.dl-fit { overflow: hidden; }
/* A Deal page's photo of a person on its Merchant's colour fills the photo side, held at its top so the
   Merchant's framing stays at the top edge and the sides crop; on a phone the side is square, so a square
   photo (JD Sports' are) shows whole. */
.dl-pdp .pdp-panel:has(.dl-cover) { padding: 0; align-items: stretch; }
.dl-photo.dl-cover { max-width: none; aspect-ratio: auto; }
.dl-photo.dl-cover img { object-fit: cover; object-position: center top; padding: 0; }
@media (max-width: 860px) { .dl-photo.dl-cover { aspect-ratio: 1 / 1; } }
.dl-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14%; text-align: center; }
.dl-tile span { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-style: italic; font-size: 26px; color: rgba(22, 22, 22, 0.5); }
.dl-tile small { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 18px; line-height: 1.2; color: rgba(22, 22, 22, 0.7); }
.dl-brand {
  margin-top: 14px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #77756f;
}
.dl-name {
  margin-top: 4px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 500;
  font-size: 20px; line-height: 1.15; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dl-price { margin-top: 8px; font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dl-price b { font-weight: 500; }
.dl-price s { color: #a19f99; margin-left: 4px; }
.dl-off { margin-left: 4px; font-style: normal; color: #5e5c57; }
.dl-store, .dl-ends { margin-top: 3px; font-size: 12px; line-height: 1.35; color: #77756f; }
.dl-store + .dl-ends { margin-top: 1px; }
.dl-more { margin-left: 4px; color: var(--ink); }
.dl-code { margin-top: 8px; font-size: 12px; color: #77756f; }
.dl-code code {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--ink);
  padding: 3px 8px; border: 1px dashed rgba(22, 22, 22, 0.35);
}

/* --- The carousel reuses the still-life hero --- */
.dl-hero .still-lines { font-size: clamp(40px, 4.3vw, 66px); line-height: 1.02; hyphens: manual; }
.dl-hero .still-lines em { display: block; font-size: 0.46em; letter-spacing: 0; margin-bottom: 8px; color: rgba(22, 22, 22, 0.7); }
.dl-hero .dl-hp {
  display: block; margin-top: 22px; font-family: 'Geist', 'Geist Fallback', sans-serif; font-weight: 400;
  font-size: 20px; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.dl-hero .dl-hp b { font-weight: 500; }
.dl-hero .dl-hp s { margin-left: 6px; color: rgba(22, 22, 22, 0.45); }
.dl-hero .dl-hp .dl-off { margin-left: 6px; color: rgba(22, 22, 22, 0.7); }
.dl-hero .dl-hm { display: block; margin-top: 6px; font-family: 'Geist', 'Geist Fallback', sans-serif; font-size: 14px; letter-spacing: 0; color: rgba(22, 22, 22, 0.62); }
.dl-hero .still-actions { margin-top: 28px; }

/* --- The grid: variant A, four across, two on phones --- */
.dl-section .dl-grid { padding: 0 12px; }
.dl-foot { display: flex; justify-content: center; padding-top: 56px; }
@media (max-width: 760px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .dl-name { font-size: 18px; }
}

/* --- The gifts band's links, on its black band (#197) --- */
.dl-gift-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.dl-gift-links a { padding: 9px 18px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; font-size: 14px; color: #fff; text-decoration: none; transition: background 0.2s, color 0.2s; }
.dl-gift-links a:hover { background: #fff; color: var(--ink); }
.dl-gift-links a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* --- The founder preview only --- */
.dl-pv-bar {
  padding: 10px 24px; background: #161616; color: #f1efea;
  font-family: 'Geist', 'Geist Fallback', sans-serif; font-size: 13px; line-height: 1.5;
}
.dl-pv-bar p + p { margin-top: 2px; }
.dl-pv-title { font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.dl-tag { display: block; margin-top: 6px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #2f6b3a; }
.dl-tag-preview { color: #b0402a; }
.dl-hero .dl-tag { margin-top: 10px; font-size: 12px; letter-spacing: 0.1em; }
.dl-pv-left { max-width: 1440px; margin: 96px auto; padding: 32px 112px 0; border-top: 1px dashed #b0402a; font-size: 13px; }
.dl-pv-left h2 { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 500; font-size: 32px; margin-bottom: 20px; }
.dl-pv-left table { width: 100%; border-collapse: collapse; }
.dl-pv-left th, .dl-pv-left td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(22, 22, 22, 0.12); }
.dl-pv-left th { font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-weight: 400; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #77756f; }
.dl-pv-brand { font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #77756f; }
@media (max-width: 760px) { .dl-pv-left { padding: 24px 16px 0; } }

/* --- "All deals" (#199): tabs, sorts and pages are links, so each filter is its own address --- */
.dl-all .dir-head { padding-bottom: 0; }
.dl-sub { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.dl-tabs { margin-top: 28px; }
.dl-tabs a, .dl-subtabs a {
  flex: none; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 18px;
  padding: 6px 16px; border-radius: 999px; border: 1px solid transparent; color: var(--ink-soft); text-decoration: none;
}
.dl-tabs a:hover, .dl-subtabs a:hover { color: var(--ink); }
/* The department you're in: a soft filled pill; the category you're in keeps an outline. */
.dl-tabs a[aria-current="page"] { background: rgba(22, 22, 22, 0.07); color: var(--ink); }
.dl-tabs .shop-chip { color: var(--white); }
.dl-tabs .shop-chip bdi { font-family: inherit; }
.dl-subtabs { position: static; border-top: 0; background: var(--white); }
.dl-subtabs .shop-tabs-inner { padding-top: 8px; padding-bottom: 8px; }
.dl-subtabs a { font-family: 'Geist', 'Geist Fallback', sans-serif; font-size: 13px; padding: 5px 12px; }
.dl-subtabs a[aria-current="page"] { border-color: var(--ink); color: var(--ink); }
.dl-tabs a:focus-visible, .dl-subtabs a:focus-visible, .dl-sort a:focus-visible, .dl-pager a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dl-toolbar { display: flex; align-items: center; justify-content: flex-end; padding: 28px 0 24px; }
.dl-sort { display: flex; gap: 16px; font-size: 13px; }
.dl-sort a { color: var(--ink-soft); text-decoration: none; padding-bottom: 2px; }
.dl-sort a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.dl-empty { padding: 64px 0; text-align: center; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 22px; }
.dl-empty a { color: var(--ink); }
.dl-empty-state { padding: 96px 0 140px; }
.dl-all .dl-grid { padding-bottom: 56px; }
.dl-pager { display: flex; justify-content: center; gap: 12px; padding-bottom: 96px; }
.dl-pager a {
  padding: 11px 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none;
}
.dl-pager a:hover { background: var(--ink); color: #fff; }

/* --- A Deal's page: The Shop's split page, white text side, cream photo side, edge to edge --- */
.dl-pdp .pdp-info { background: #fff; }
.dl-pdp .pdp-panel { background: var(--deal-tile); }
.dl-pdp-price { margin-top: 28px; font-size: 26px; font-variant-numeric: tabular-nums; }
.dl-pdp-price b { font-weight: 500; }
.dl-pdp-price s { font-size: 19px; margin-left: 8px; color: #a19f99; }
.dl-pdp-price .dl-off { font-size: 17px; margin-left: 8px; }
.dl-checked { margin-top: 8px; font-size: 13px; line-height: 1.45; color: #77756f; }
.dl-warn { margin-top: 16px; font-size: 13px; line-height: 1.4; font-style: italic; color: #5e5c57; }
.dl-code-lg { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13px; }
.dl-code-lg code { font-size: 13px; padding: 6px 12px; }
.dl-code-lg button {
  font: inherit; font-size: 12px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ink);
  background: none; color: var(--ink); cursor: pointer;
}
.dl-code-lg button:hover { background: var(--ink); color: #fff; }
.dl-pdp .pdp-buy { margin-top: 32px; }
.dl-photo img { mix-blend-mode: multiply; }
.dl-photo img.dl-unblended { mix-blend-mode: normal; }
.dl-photo .dl-tile { position: absolute; inset: 0; aspect-ratio: auto; background: none; }
.dl-photo .dl-tile span { font-size: 44px; }

/* Other buying options: one row per store, each with its own price, checked time and button. */
.dl-opts { margin-top: 36px; }
.dl-opts h2 {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-weight: 400; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.dl-opt-list { list-style: none; margin-top: 10px; border-top: 1px solid var(--line); }
.dl-opt { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-opt-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dl-opt-store { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 21px; color: var(--ink); text-decoration: none; }
.dl-opt-store:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-opt-price { font-size: 15px; font-variant-numeric: tabular-nums; }
.dl-opt-price b { font-weight: 500; }
.dl-opt-price s { color: #a19f99; margin-left: 4px; }
.dl-opt-meta { grid-column: 1; margin-top: 2px; font-size: 12px; color: #77756f; }
.dl-opt-btn {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; padding: 9px 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink); font-size: 13px; color: var(--ink); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.dl-opt-btn:hover { background: var(--ink); color: #fff; }
.dl-current .dl-grid { padding-top: 28px; }

/* A hidden or ended Deal (#214): one serif line where the price was, and the
   store button, when it stays, as an outline, as the page no longer makes a
   price claim. An ended Deal's image fades: the image itself, as fading its
   box would cut it off from the cream it blends into. */
.dl-state-line { margin-top: 28px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 26px; line-height: 1.2; font-style: italic; }
.dl-ended-line { font-size: 30px; }
.dl-pdp .pdp-buy.dl-outline { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dl-pdp .pdp-buy.dl-outline:hover { background: var(--ink); color: #fff; }
.dl-ended .dl-photo img, .dl-ended .dl-photo .dl-tile { opacity: 0.4; }
.dl-current-none { padding-top: 8px; }

@media (max-width: 860px) {
  .dl-pdp-price { font-size: 22px; }
  .dl-state-line { font-size: 23px; }
  .dl-opt { grid-template-columns: 1fr; }
  .dl-opt-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
  .dl-toolbar { justify-content: center; }
}

/* What an eBay price is for (G11): its shipping, its refurbished condition and a tip's one size, beside the price. */
/* A tip's reference, eBay's own list price (G13), is said in sight, never "was". */
.dl-ship, .dl-list { font-size: 0.85em; color: var(--ink); }
/* An eBay price (G13): the price and its shipping, then on a line of its own what it's measured against and
   the cut, which never breaks apart; on a phone's card the cut takes a line of its own rather than wrap alone. */
.dl-ref { display: block; }
.dl-ref s { margin-left: 0; }
.dl-ref .dl-off::before { content: "· "; }
.dl-ref .dl-off { margin-left: 0; }
.dl-pdp-price .dl-ref { font-size: 17px; margin-top: 6px; color: #5e5c57; }
.dl-pdp-price .dl-ref s, .dl-pdp-price .dl-ref .dl-off, .dl-pdp-price .dl-ref .dl-list { font-size: inherit; margin-left: 0; }
.dl-pdp-price .dl-ref .dl-list { color: inherit; }
.dl-ship, .dl-ref .dl-off, .dl-ref s, .dl-list { white-space: nowrap; }
@media (max-width: 760px) {
  .dl-card .dl-ref .dl-off { display: block; margin-left: 0; }
  .dl-card .dl-ref .dl-off::before { content: none; }
}
.dl-listing { margin: 2px 0 0; font-size: 12px; color: var(--ink); font-weight: 600; }
.dl-pdp .dl-listing { font-size: 14px; margin-top: 6px; }

/* --- The Amazon row on "All deals" and the front page (amazon-row.ts): the photo tile, as
   The Shop's large brand tiles, and beside it, as tall, the Gift picks; each takes two columns --- */
/* Pinned to their columns, so the row starts a grid row of its own after however many Deals come first. */
.dl-grid > .az-row-photo, .dl-grid > .az-row-picks { display: flex; flex-direction: column; }
.dl-grid > .az-row-photo { grid-column: 1 / span 2; }
.dl-grid > .az-row-picks { grid-column: 3 / span 2; }
.az-row-tile { flex: 1; aspect-ratio: 3 / 2; min-height: 100%; }
.az-row-tile .tile-name { max-width: 15ch; line-height: 1.25; }
.az-row-act {
  position: relative; z-index: 1; margin-top: 16px; padding-bottom: 3px; border-bottom: 1px solid currentColor;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.az-row-picks { justify-content: center; padding: 26px 34px; border-radius: 4px; background: var(--deal-tile); }
.az-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.az-row-kicker, .az-row-aside {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-weight: 400; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #77756f; white-space: nowrap;
}
.az-row-kicker { color: var(--ink); }
.az-row-list { list-style: none; border-top: 1px solid rgba(22, 22, 22, 0.14); }
.az-row-list li { border-bottom: 1px solid rgba(22, 22, 22, 0.14); }
.az-row-pick { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--ink); text-decoration: none; }
.az-row-name {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 500; font-size: 20px;
  line-height: 1.2; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.az-row-arrow { flex: none; font-size: 14px; color: #77756f; transition: transform 0.2s ease, color 0.2s ease; }
.az-row-pick:hover .az-row-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.az-row-pick:hover .az-row-arrow { color: var(--ink); transform: translateX(3px); }
.az-row-pick:focus-visible, .az-row-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dl-amazon-alone { padding-top: 28px; padding-bottom: 0; }
@media (max-width: 760px) {
  .dl-grid > .az-row-photo, .dl-grid > .az-row-picks { grid-column: 1 / -1; }
  .az-row-tile { aspect-ratio: 4 / 3; min-height: 0; }
  .az-row-picks { padding: 20px 18px; }
  .az-row-name { font-size: 19px; white-space: normal; }
}
