/* Store-style product hero (products with `config: true`). Loaded after products.css. */

.cf-hero { padding-block: clamp(20px, 3vw, 36px) clamp(48px, 6vw, 88px); background: #fff; }
.cf-hero .pd-crumbs { justify-content: flex-start; }
.cf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }

/* ---------- photo mosaic ---------- */
.cf-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; overflow: visible; }
.cf-tile { display: block; width: 100%; height: auto; padding: 0; border: 0; border-radius: 24px; background: #F5F5F7; cursor: zoom-in; overflow: hidden; }
.cf-tile img { display: block; width: 100%; height: 100%; aspect-ratio: 1; max-width: none; max-height: none; object-fit: contain; padding: 6%; transition: opacity .25s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.cf-tile:hover img { transform: scale(1.025); }
.cf-tile img.is-swapping { opacity: .25; }
.cf-tile:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.cf-wide { grid-column: 1 / -1; }
.cf-wide img { aspect-ratio: 4 / 3; padding: 4%; }
.cf-tile.is-long img { padding: 8% 5%; }
/* photographs fill their tile */
.cf-tile.is-photo img { object-fit: cover; padding: 0; }
.cf-tile:not(.is-photo) img { mix-blend-mode: multiply; }
.cf-statement { grid-column: 1 / -1; display: grid; place-items: center; min-height: clamp(150px, 16vw, 210px); border-radius: 24px; background: #111318; text-align: center; }
.cf-statement p { margin: 0; padding: 24px; font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; color: #fff; }
/* the thumbnail outline from product pages does not apply here */
.cf-gallery .pd-thumb, .cf-gallery .pd-thumb.is-on { width: 100%; height: auto; border: 0; box-shadow: none; }

/* ---------- panel ---------- */
.cf-panel { position: sticky; top: 104px; }
.cf-panel h1 { margin-top: 4px; font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.cf-tagline { margin: 12px 0 0; max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 500; line-height: 1.4; color: var(--ink); }
.cf-price { margin: 20px 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.cf-price-sub { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

/* what comes with it */
.cf-included { margin-top: clamp(20px, 2.6vw, 28px); padding: 18px 20px; border-radius: 16px; background: var(--bg-soft); }
.cf-included h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
/* two columns that flow on their own, so a long item never leaves a gap beside it */
.cf-included ul { columns: 2; column-gap: 22px; margin: 0; padding: 0; list-style: none; }
.cf-included li { position: relative; break-inside: avoid; margin-bottom: 9px; padding-left: 28px; font-size: .94rem; line-height: 1.45; color: var(--ink); }
.cf-included li:last-child { margin-bottom: 0; }
.cf-included li::before { content: ""; position: absolute; left: 0; top: calc(.725em - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.cf-form { margin-top: clamp(20px, 2.6vw, 30px); }
.cf-form > .cf-actions:first-child { margin-top: 0; }
.cf-set { margin: 0 0 clamp(20px, 2.4vw, 28px); padding: 0; border: 0; min-width: 0; }
.cf-set legend { margin-bottom: 12px; padding: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.cf-dash { color: var(--muted); font-weight: 500; }
.cf-colour-name { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* colour swatches */
.cf-swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.cf-swatch { position: relative; cursor: pointer; }
.cf-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-swatch > span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: box-shadow .2s; }
.cf-swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.cf-swatch input:focus-visible + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--orange); }
.cf-swatch:hover > span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.cf-swatch input:checked + span:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--navy); }

/* actions */
.cf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; }
.cf-quote { padding: 15px 34px; font-size: 1.02rem; }
.cf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.cf-facts div { display: flex; flex-direction: column-reverse; gap: 2px; }
.cf-facts dt { font-size: .8rem; color: var(--muted); }
.cf-facts dd { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .cf-tile img { transition: none; }
  .cf-tile:hover img { transform: none; }
}
@media (max-width: 960px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-panel { position: static; }
  .cf-statement { display: none; }
}
@media (max-width: 560px) {
  .cf-gallery { gap: 8px; }
  .cf-tile, .cf-statement { border-radius: 16px; }
  .cf-statement p { padding: 14px; font-size: .95rem; }
  .cf-included ul { columns: 1; }
}

/* colour dots beside the name, used on phones and tablets in place of the swatch block */
.cf-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.cf-title-row h1 { margin: 4px 0 0; }
.cf-quick { display: none; align-items: center; gap: 10px; }
.cf-quick-name { margin-right: 2px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.cf-quick-dot { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; transition: box-shadow .2s; }
.cf-quick-dot[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.cf-quick-dot:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (max-width: 960px) {
  .cf-quick { display: flex; }
  .cf-set-colour { display: none; }
}
