/* Shop pages: the header's search and basket, the listing, product page and basket.
   Tokens, buttons, cards, prices and the footer come from main.css. */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header additions */
.top__search { display: flex; align-items: center; margin-left: auto; }
.top__search label { display: block; }
.top__search input {
  width: clamp(160px, 16vw, 250px);
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  text-overflow: ellipsis; /* a hint too long for the box ends in an ellipsis instead of half a letter */
}
.top__search input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.top__search button { display: grid; place-items: center; width: 42px; height: 42px; margin-left: -2px; background: var(--navy); color: var(--white); border: 0; cursor: pointer; }
.top__search button:hover { background: var(--blue); }
.top__search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.top__basket { display: inline-flex; align-items: center; gap: 8px; margin-left: 0; }
.top__basket b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--navy); color: var(--white); font: 700 13px/1 var(--body); }
.menu__search { display: flex; gap: 8px; margin-bottom: 22px; }
.menu__search label { flex: 1; }
.menu__search input { width: 100%; min-height: 46px; padding: 8px 14px; border: 0; background: var(--white); font: inherit; font-size: 16px; color: var(--text); }
@media (max-width: 1099px) {
  .top__search { display: none; }
  .top__basket { margin-left: auto; }
  .burger { margin-left: 0; }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .top__search input { width: clamp(132px, 13vw, 190px); }
}
@media (max-width: 699px) {
  .top__cta.top__basket { display: inline-flex; min-height: 40px; padding: 8px 16px; font-size: 14px; }
}
@media (max-width: 369px) {
  /* The narrowest phones: logo, basket and a full-size menu button still fit on one row */
  .top__main { gap: 8px; }
  .logo img { width: 122px; }
  .top__cta.top__basket { padding-inline: 11px; gap: 6px; }
}

/* Page shell */
.shop__main { padding-block: clamp(26px, 3.5vw, 48px) clamp(56px, 7vw, 100px); }
.shop__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.shop__head h1 { font-size: clamp(36px, 5.2vw, 68px); }
.shop__count { color: var(--muted); font-size: 15px; padding-bottom: 8px; }
.cats, .shapes { display: flex; flex-wrap: wrap; gap: 8px; }
.scroller { display: contents; } /* a frame for the rows' fades; it only takes shape on phones */
.cats { margin-bottom: 18px; }
.cats .chip, .shapes .chip { text-decoration: none; }
.cats .chip small { font-size: 12px; opacity: 0.7; margin-left: 6px; }
.chip[aria-current="page"] { --bg: var(--navy); color: var(--white); }
.chip--small { min-height: 38px; padding-block: 6px; font-size: 14px; }
.shop__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.shop__filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.shop__filters select, .buy__qty select, .line__actions select {
  min-height: 44px;
  padding: 8px 38px 8px 14px;
  border: 2px solid var(--line);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23062a5c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 15px; color: var(--text);
  cursor: pointer;
}
.shop__filters select:focus-visible, .buy__qty select:focus-visible, .line__actions select:focus-visible { outline: 3px solid var(--sky); border-color: var(--blue); }
@media (min-width: 1240px) { .shop:not(.product) .grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop .empty { margin-top: 10px; }
.shop .empty p + p { margin-top: 10px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; color: var(--muted); font-size: 15px; }

/* Messages */
.notice { margin: 0 0 22px; padding: 14px 18px; --bg: var(--sun); background: var(--bg); color: var(--ink); font-weight: 600; text-wrap: balance; }
.notice--error { --bg: #ffd7d1; color: #7a1d14; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 16px;
  /* Sized by its content, not by the half of the screen that starts at left: 50%. */
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  background: var(--ink); color: var(--white);
  box-shadow: 0 18px 44px -20px rgba(6, 24, 58, 0.7);
  font-size: 15.5px;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--sun); font-weight: 700; }

/* Product page */
/* Breadcrumbs, with room on the right for an admin tool. */
.product__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 22px; }
.product__top .crumbs { flex: 1 1 240px; min-width: 0; margin-bottom: 0; }
/* Admin tools on public pages: rendered only for a signed-in admin, and always in this fuchsia, which the shop uses for
   nothing else, so an admin can tell at a glance that customers do not see them. Plain rounded shape, not the brand's
   slanted button, for the same reason. */
.admin-tool {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 6px;
  border-radius: 8px; background: var(--admin); color: var(--white);
  font: 700 14.5px/1.2 var(--body); text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.admin-tool:hover { background: var(--admin-deep); }
.admin-tool:focus-visible { outline: 3px solid var(--admin); outline-offset: 3px; }
.admin-tool__tag { padding: 5px 8px; border-radius: 5px; background: var(--white); color: var(--admin); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
/* The way back to the admin for a signed-in admin: beside the navigation on wide screens, and the last entry of the
   menu where the navigation folds away. */
.top__admin { flex: none; }
@media (max-width: 1099px) { .top__admin { display: none; } }
@media (min-width: 1100px) and (max-width: 1279px) {
  /* Small laptops: the header row is full, so the link is its tag alone. */
  .top__admin { padding-right: 6px; }
  .top__admin-word { display: none; }
}
.menu nav a.menu__admin { justify-self: start; margin-top: 14px; padding: 6px 16px 6px 6px; font: 700 16px/1.2 var(--body); letter-spacing: 0; }
/* The banner on a product page only an admin can open, because the product is not on sale yet. */
.admin-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; padding: 12px 16px; border: 2px solid var(--admin); border-radius: 8px; background: #fbeffd; color: var(--admin-deep); font-weight: 700; line-height: 1.35; }
.admin-note .admin-tool__tag { background: var(--admin); color: var(--white); font-weight: 700; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; font-size: 14.5px; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a + a::before, .crumbs a + span::before { content: "›"; margin-right: 10px; color: var(--muted); }
.product__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; background: var(--white); box-shadow: 0 16px 44px -34px rgba(6, 42, 92, 0.6); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s ease; }
/* A photo still downloading (shop.js marks its frame busy): a ring turns in the middle of the frame, so a slow
   connection does not look broken. Ring and dimming wait a moment, so a photo the browser already holds never flashes
   them. The main photo dims the one being replaced; the full-screen viewer hides it, as its caption has moved on. */
.gallery__main[aria-busy="true"]::after, .viewer__figure[aria-busy="true"]::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px; box-sizing: border-box;
  border: 4px solid rgba(6, 42, 92, 0.16); border-top-color: var(--navy); border-radius: 50%;
  opacity: 0; pointer-events: none;
  animation: photo-spin 0.8s linear infinite, photo-wait 0.2s ease 0.15s forwards;
}
.viewer__figure[aria-busy="true"]::after { border-color: rgba(255, 255, 255, 0.24); border-top-color: var(--white); }
.gallery__main[aria-busy="true"] img { opacity: 0.35; transition-delay: 0.15s; }
.viewer__figure[aria-busy="true"] img { opacity: 0; transition-delay: 0.15s; }
@keyframes photo-spin { to { rotate: 360deg; } }
@keyframes photo-wait { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  /* The ring is the only sign that a photo is on its way, so it keeps turning, slowly. */
  .gallery__main[aria-busy="true"]::after, .viewer__figure[aria-busy="true"]::after { animation-duration: 1.8s, 0.01ms !important; }
}
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.gallery__thumbs button { display: block; width: 92px; padding: 0; border: 2px solid transparent; background: var(--white); cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--navy); }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 699px) {
  /* Four photos to a row on phones, so a fourth thumbnail no longer drops onto a line of its own */
  .gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .gallery__thumbs button { width: 100%; }
}
.buy h1 { margin: 6px 0 18px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
/* Product names break into even lines, so "3 Seater" stays together instead of leaving one word behind */
.buy h1, .card__name, .line__name, .offer__name { text-wrap: balance; }
.price--big .price__sale { font-size: clamp(48px, 5vw, 72px); color: var(--blue); }
.price--big .price__rrp { font-size: 15px; }
.buy__noprice { margin-top: 18px; font: 800 24px/1.2 var(--body); color: var(--muted); }
.buy__stock { margin-top: 16px; font-weight: 700; color: #1a7a3b; }
.buy__stock.is-out { color: #a33; }
.buy__form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.buy__qty { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.buy__qty select { min-width: 84px; }
.buy__note { margin-top: 14px; padding: 12px 16px; background: var(--sky); font-size: 15px; }
.buy__points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: #33445f; }
.buy__points li { padding-left: 26px; position: relative; text-wrap: pretty; }
.buy__points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.buy__code { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.product__about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.product__about h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.prose { font-size: 16.5px; line-height: 1.6; color: #22324f; }
.prose p, .prose ul, .prose ol, .prose h2, .prose h3, .prose h4, .prose table { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose h2, .prose h3, .prose h4 { font: italic 800 20px/1.2 var(--display); color: var(--navy); margin-top: 18px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { padding: 6px 10px; border: 1px solid var(--line); text-align: left; }
.details { margin: 0; display: grid; align-content: start; background: var(--white); }
.details div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; }
.related { margin-top: clamp(44px, 6vw, 80px); }
.related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.related__head h2 { font-size: clamp(28px, 3.4vw, 44px); }
.product .grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Basket */
.basket__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; padding: 16px; background: var(--white); box-shadow: 0 16px 44px -34px rgba(6, 42, 92, 0.6); }
.line__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky); }
.line__name { font: italic 800 20px/1.15 var(--display); color: var(--navy); }
.line__name a { color: inherit; text-decoration: none; }
.line__name a:hover { text-decoration: underline; }
.line__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.line__each { margin-top: 8px; font-size: 15px; }
.line__each span { color: var(--muted); white-space: nowrap; } /* the RRP note wraps as one piece, never leaving the percentage on a line of its own */
.line__actions { display: flex; align-items: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.line__actions label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.line__actions button.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.line__total { font: italic 800 24px/1 var(--display); color: var(--navy); white-space: nowrap; }
.summary { position: sticky; top: calc(var(--head) + 16px); padding: 22px 24px; background: var(--white); box-shadow: 0 16px 44px -34px rgba(6, 42, 92, 0.6); }
.summary h2 { font-size: 26px; margin-bottom: 12px; }
.summary dl { display: grid; gap: 10px; margin: 0 0 18px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; }
.summary dd { margin: 0; font-weight: 600; }
.summary__total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 800; }
.summary__total dd { font: italic 800 28px/1 var(--display); color: var(--blue); }
.summary__checkout { width: 100%; justify-content: center; }
.summary__note { margin: 12px 0 16px; font-size: 14px; color: var(--muted); }

@media (max-width: 1099px) {
  .product .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .product__grid, .product__about, .basket__grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 699px) {
  .product .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line { grid-template-columns: 96px minmax(0, 1fr); }
  .line__total { grid-column: 2; }
  .shop__filters { margin-left: 0; width: 100%; }
  .shop__filters select { flex: 1; }
}

/* Shop cards: four columns, so the price block is a size down from the homepage finder. */
.grid--shop .price__sale { font-size: clamp(28px, 2.2vw, 34px); }
.grid--shop .price__rrp { font-size: 14.5px; }
.grid--shop .price__save { font-size: 13.5px; white-space: nowrap; }
.grid--shop .card__flag { font-size: 18px; padding: 5px 18px 5px 12px; }

/* Review pass: muted empty basket badge, keyboard focus, breadcrumb overflow */
.top__basket b.is-empty { background: rgba(6, 42, 92, 0.18); color: var(--ink); }
.chip:focus-visible, .crumbs a:focus-visible, .line__name a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.crumbs { flex-wrap: nowrap; overflow: hidden; }
.crumbs a { flex: none; }
.crumbs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Phones: categories and shapes scroll sideways on one line, so the products start sooner. */
@media (max-width: 699px) {
  .shop__head { margin-bottom: 14px; }
  .shop__head h1 { font-size: 40px; }
  /* The rows bleed to the screen edges inside their frame and scroll sideways; the frame's edges carry the fades. */
  .scroller { display: block; position: relative; margin-inline: calc(var(--gutter) * -1); }
  .shop__active > .scroller { flex: none; width: calc(100% + var(--gutter) * 2); }
  .cats, .shapes {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px var(--gutter) 10px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter); /* the first chip snaps to the gutter line, not the screen edge */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cats::-webkit-scrollbar, .shapes::-webkit-scrollbar { display: none; }
  /* A fade at an end shows there is more that way; shop.js turns each one on only while something is hidden beyond it. */
  .scroller::before, .scroller::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 44px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
  }
  .scroller::before { left: 0; background: linear-gradient(to right, var(--paper) 20%, rgba(248, 246, 241, 0)); }
  .scroller::after { right: 0; background: linear-gradient(to left, var(--paper) 20%, rgba(248, 246, 241, 0)); }
  .scroller.can-scroll-left::before, .scroller.can-scroll-right::after { opacity: 1; }
  .cats .chip, .shapes .chip { flex: none; scroll-snap-align: start; }
  .cats { margin-bottom: 6px; }
  .shop__tools { gap: 8px; margin-bottom: 18px; padding-bottom: 14px; }
  .shop__filters { gap: 8px; }
  .shop__filters label { flex: 1 1 140px; }
  .shop__filters select { width: 100%; }
  .shop__filters .link-btn { flex-basis: 100%; }
  .grid--shop .price__sale { font-size: 34px; }
}
@media (max-width: 369px) {
  /* Side by side, the narrowest phones cut "Price: low to high" short; one select to a row shows every choice in full */
  .shop__filters label { flex-basis: 100%; }
}

/* Out of stock: the card stays, its label says so (.card__tag--out in main.css) and the picture is dimmed. */
.card--out .card__media img { opacity: 0.6; }
.card--out .card__stock { color: #a33; font-weight: 700; }

/* Phone buy bar */
.gallery__main a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: 0 -10px 30px -18px rgba(6, 24, 58, 0.45);
  border-top: 1px solid var(--line);
}
.buy-bar[hidden] { display: none; }
.buy-bar__text { display: grid; line-height: 1.15; }
.buy-bar__text b { font: italic 800 24px/1 var(--display); color: var(--blue); }
.buy-bar__text span { font-size: 12.5px; color: var(--muted); }
.buy-bar .btn { min-height: 44px; padding-inline: 20px; white-space: nowrap; }
@media (max-width: 699px) {
  .product .toast { bottom: 84px; }
}

/* The saving row and free delivery in the basket summary are green. */
.summary__saved dd, .summary__free { color: #1a7a3b; }

.shop__active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 699px) { .shop__active { width: 100%; } }

/* Phones: two compact columns in the shop, so a screen shows four products instead of one. */
@media (max-width: 699px) {
  .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid--shop .card { border-radius: 10px; }
  .grid--shop .card__media { border-radius: 9px 9px 0 0; }
  .grid--shop .card__body { padding: 12px 12px 4px; gap: 2px; }
  .grid--shop .card__name { font-size: 16px; }
  .grid--shop .card__colour { font-size: 13px; }
  .grid--shop .card__price { padding: 6px 12px 12px; gap: 4px; }
  /* Narrow cards: the saving follows the RRP when it fits and drops under it when not, never pushed to the right. */
  .grid--shop .card__price .price__save { margin-left: 0; }
  .grid--shop .price__sale { font-size: 24px; }
  .grid--shop .price__rrp { font-size: 12.5px; }
  .grid--shop .price__save { font-size: 11.5px; padding: 3px 9px 3px 7px; }
  .grid--shop .card__flag { top: 10px; font-size: 14px; padding: 4px 12px 4px 9px; }
  .grid--shop .card__tag { right: 8px; bottom: 8px; font-size: 11px; padding: 2px 7px; }
  .grid--shop .card__stock { font-size: 12px; }
}

/* Full-screen photo viewer on the product page: a modal dialog over the page, not a new tab. The figure is pinned to
   the dialog's edges so its height is definite and the photo, square or not, always fits without scrolling. */
.viewer {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(4, 16, 40, 0.94);
  color: var(--white);
}
.viewer::backdrop { background: transparent; }
.viewer[open] { display: block; animation: viewer-in 0.28s ease; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.viewer__figure {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 14px;
  margin: 0; padding: 70px 84px 30px; box-sizing: border-box;
}
.viewer__figure img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  transition: opacity 0.25s ease;
  animation: viewer-pic 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes viewer-pic { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.viewer__caption { display: flex; gap: 16px; font-size: 14.5px; color: #cfddf2; }
.viewer__caption span:empty { display: none; }
.viewer__close, .viewer__arrow {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: var(--white); cursor: pointer;
  transition: background 0.2s;
}
.viewer__close:hover, .viewer__arrow:hover { background: rgba(255, 255, 255, 0.26); }
.viewer__close:focus-visible, .viewer__arrow:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.viewer__close { top: 14px; right: 14px; }
.viewer__arrow { top: 50%; translate: 0 -50%; }
.viewer__arrow--prev { left: 14px; }
.viewer__arrow--next { right: 14px; }
.viewer__arrow[hidden] { display: none; }
body:has(.viewer[open]) { overflow: hidden; }
@media (max-width: 699px) {
  .viewer__figure { padding: 64px 12px 76px; }
  .viewer__arrow { top: auto; bottom: 14px; translate: none; }
}

/* Listing pages: the trail, the line under the heading and the buying guide under the products (docs/seo.md) */
.shop__main > .crumbs { margin-bottom: 12px; }
.shop__intro { margin-top: 12px; max-width: 64ch; color: #33445f; font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }
.shop .empty h1 + p { margin-top: 10px; color: var(--muted); }
.guide { margin-top: clamp(44px, 6vw, 80px); padding-top: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--line); }
.guide h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: clamp(18px, 2vw, 26px); }
.guide__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px clamp(22px, 3vw, 44px); }
.guide__item h3 { margin-bottom: 6px; font: italic 800 20px/1.2 var(--display); color: var(--navy); }
.guide__item p { font-size: 16px; line-height: 1.55; color: #22324f; text-wrap: pretty; }

/* Product page: other colours, the heading over the measurements and the links beside "More …" */
.buy__colours { margin-top: 16px; font-size: 15px; color: #33445f; }
.buy__colours a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.buy__colours a:hover { color: var(--navy); }
.buy__points a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.related__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
