/* ==========================================================================
   One product detail page, for every product type
   core/templates/core/product_details_unified.html
   ==========================================================================

   Replaces the five near-identical per-type pages (tiles, faucets, pipes,
   adhesives, sanitaryware) that had drifted about 20,000 lines apart. Layout
   and type are the same for every product; only the buy panel changes, and it
   changes on the data - a product priced by area gets the coverage calculator,
   everything else gets a quantity stepper.

   The colours are the site's own: the blue of the header for the name and the
   main button, the navy of the footer for the second, and amber wherever a
   second accent is wanted.

   Everything is under .pdp so nothing here can reach the rest of the site, and
   nothing the theme sets globally (it forces uppercase) reaches in.
   ========================================================================== */

.pdp {
  --pdp-ink: #1e293b;
  --pdp-ink-soft: #64748b;
  --pdp-ink-faint: #94a3b8;
  --pdp-line: #e2e8f0;
  --pdp-line-soft: #f1f5f9;
  --pdp-bg-soft: #f8fafc;
  --pdp-surface: #ffffff;
  --pdp-blue: #184890;
  --pdp-blue-dark: #10356c;
  --pdp-blue-soft: #eef3fb;
  --pdp-navy: #0f172a;
  --pdp-amber: #f59e0b;
  --pdp-amber-soft: #fef3c7;
  --pdp-green: #16a34a;
  --pdp-green-soft: #dcfce7;
  --pdp-sky: #0284c7;
  --pdp-sky-soft: #e0f2fe;
  --pdp-radius: 10px;
  --pdp-radius-lg: 18px;
  padding: 0 20px 56px;
  color: var(--pdp-ink);
  font-size: 14px;
  line-height: 1.55;
}

/* base.html sets `body * { text-transform: uppercase !important }` for the
   whole site. A product description, a specification and a brand name all read
   as they were written, so the page turns that off - and has to match the
   !important to do it. The few labels that are meant to be capitals set it
   again below, the same way. */
.pdp,
.pdp * { text-transform: none !important; }

.pdp h1, .pdp h2, .pdp h3, .pdp h4 { color: var(--pdp-ink); margin: 0; }

.pdp a { text-decoration: none; color: inherit; }

/* The trail is written for a page as wide as the window; here it sits in this
   page's column and starts on the thumbnails' left edge. */
.pdp .kk-breadcrumb {
  max-width: none;
  padding: 18px 0 20px;
  font-size: 13.5px;
}

/* ---- Top: gallery beside the buy panel --------------------------------- */

.pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 1399.98px) {
  .pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}
}

/* The right-hand column: where the product goes, and the other ways to buy.
   It scrolls with the page: with Where to Use and the extra specifications
   it can be taller than the screen, and a sticky column that tall hides its
   own bottom. */
.pdp-side {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: start;
}

/* ---- Gallery ----------------------------------------------------------- */

.pdp-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  position: sticky;
  top: 90px;
}

.pdp-gallery.has-rail {
  grid-template-columns: clamp(64px, 15.5%, 96px) minmax(0, 1fr);
}

/* A white card with the photograph centred in it. The side gutters are
   wide enough for previous / next to sit beside the picture rather than on
   it, and the top and bottom ones carry wishlist / share and Similar, so no
   control covers the product. */
.pdp-stage {
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  padding: clamp(44px, 7%, 60px) clamp(56px, 13%, 110px);
  background: var(--pdp-surface, #fff);
  border: 1px solid var(--pdp-line);
  border-radius: var(--pdp-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Wishlist and share, over the photograph ---------------------------
   Top-right of the image, stacked. .pdp-stage is already position:relative,
   and the discount flash owns the opposite corner.

   Every rule here is scoped to .pdp-stage-actions on purpose. Both buttons
   also carry .pdp-wish and .pdp-share-btn, because the page script finds
   them by those names - and those rules live further down this file with the
   sizes they had in the buy panel: a 52px circle for the heart and a 32px
   one for share. One class each, same specificity, later in the file, so
   they won: the two came out twenty pixels apart. The parent in the selector
   settles it without touching what the buy panel uses.
   ----------------------------------------------------------------------- */

.pdp-stage-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.pdp-stage-actions .pdp-stage-action {
  flex: 0 0 auto;
  /* Sized against the window, which is what the photograph is sized against
     too, so the pair keep their proportion to it rather than looking large
     on a phone and lost on a desktop. */
  width: clamp(36px, 4.4vw, 44px);
  height: clamp(36px, 4.4vw, 44px);
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pdp-line);
  border-radius: 50%;
  background: var(--pdp-surface);
  color: var(--pdp-ink-soft);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .14);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

/* The glyph gets its own box rather than inheriting the button's font size,
   so the heart and the share arrow are struck at the same size instead of
   whatever each one's own rule last set. */
.pdp-stage-actions .pdp-stage-action i {
  display: block;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1;
}

.pdp-stage-actions .pdp-stage-action:hover {
  transform: scale(1.06);
  border-color: var(--pdp-blue);
  color: var(--pdp-blue);
}

.pdp-stage-actions .pdp-wish.is-on {
  background: var(--pdp-surface);
  border-color: #fecdd3;
  color: #e11d48;
}

.dark-mode .pdp-stage-actions .pdp-stage-action {
  background: #0f172a;
  border-color: #22304a;
  color: #cbd5e1;
}

@media (max-width: 767px) {
  .pdp-stage-actions { top: 8px; right: 8px; gap: 8px; }
}

/* Fills the card's padded centre, never its gutters. */
.pdp-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* The product video sits in the same padded centre as the photographs. */
.pdp-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: inherit;
}

/* Only one frame is ever shown; the rest wait their turn. */
.pdp-stage img[hidden],
.pdp-stage video[hidden] { display: none !important; }

/* ---- Previous / next over the photograph -------------------------------
   Plain white circles at the middle of either edge, out of the way of the
   discount flash (top-left), wishlist and share (top-right) and the Similar
   button (bottom-left).
   ----------------------------------------------------------------------- */
.pdp-stage-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f2937;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.pdp-stage-nav.is-prev { left: 12px; }
.pdp-stage-nav.is-next { right: 12px; }
.pdp-stage-nav i { font-size: 18px; line-height: 1; }
.pdp-stage-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }

/* ---- Similar, bottom-left of the photograph ---------------------------- */
.pdp-similar-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(17, 24, 39, .55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease;
}
.pdp-similar-btn i { font-size: 16px; color: #facc15; }
/* A site-wide link colour won over the white above, leaving the label dark
   on the dark pill. */
.pdp-stage a.pdp-similar-btn,
.pdp-stage a.pdp-similar-btn span { color: #fff !important; }
.pdp-similar-btn:hover,
.pdp-similar-btn:focus { background: rgba(17, 24, 39, .75); color: #fff; }

.dark-mode .pdp-stage-nav {
  background: rgba(15, 23, 42, .9);
  border-color: #cbd5e1;
  color: #e2e8f0;
}

@media (max-width: 767px) {
  .pdp-stage-nav { width: 34px; height: 34px; }
  .pdp-stage-nav.is-prev { left: 8px; }
  .pdp-stage-nav.is-next { right: 8px; }
  .pdp-similar-btn { left: 8px; bottom: 8px; padding: 6px 10px; font-size: 12px; }
}

.pdp-stage-empty {
  color: var(--pdp-ink-faint);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pdp-stage-empty i { font-size: 34px; }

/* ---- Thumbnail rail ----------------------------------------------------
   A column exactly as tall as the photograph. The track is taken out of the
   flow so that it is the photograph that sets the row's height and never a
   long run of thumbnails; five fit, and the rest scroll.
   ----------------------------------------------------------------------- */

.pdp-rail { position: relative; min-height: 0; }

.pdp-rail-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scroll-behavior: smooth;
  /* The rail scrolls; its scrollbar would sit over the thumbnails. */
  scrollbar-width: none;
}

.pdp-rail-track::-webkit-scrollbar { display: none; }

.pdp-thumb {
  flex: 0 0 calc((100% - 48px) / 5);
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--pdp-bg-soft);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease;
}

.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-thumb:hover { border-color: #b9c8e2; }

.pdp-thumb.is-active { border-color: var(--pdp-blue); }

.pdp-thumb:focus-visible,
.pdp-colour-dot:focus-visible,
.pdp-tab:focus-visible,
.pdp-btn:focus-visible,
.pdp-wish:focus-visible {
  outline: 2px solid var(--pdp-amber);
  outline-offset: 2px;
}

/* The arrows on the "You May Also Like" rail. */
.pdp-rail-nav {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pdp-line);
  border-radius: 50%;
  background: var(--pdp-surface);
  color: var(--pdp-ink-soft);
  cursor: pointer;
  font-size: 16px;
}

.pdp-rail-nav:hover { border-color: var(--pdp-blue); color: var(--pdp-blue); }

/* ---- Buy panel --------------------------------------------------------- */

.pdp-buy { min-width: 0; }

.pdp-share-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pdp-line);
  border-radius: 50%;
  background: var(--pdp-surface);
  color: var(--pdp-ink-soft);
  font-size: 15px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.pdp-share-btn:hover { color: var(--pdp-blue); border-color: var(--pdp-blue); }

/* ---- Name -------------------------------------------------------------- */

.pdp-title {
  margin-top: 6px !important;
  color: var(--pdp-blue) !important;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .2px;
  text-transform: uppercase !important;
  overflow-wrap: anywhere;
}

.pdp-subtitle {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--pdp-ink-soft);
}

.pdp-subtitle a:hover { color: var(--pdp-blue); text-decoration: underline; }
.pdp-dot { margin: 0 7px; color: var(--pdp-ink-faint); }

/* ---- Price ------------------------------------------------------------- */

.pdp-price-wrap { margin-top: 5px; }

.pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
}

.pdp-price {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.3px;
  white-space: nowrap;
}

.pdp-price-unit {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--pdp-ink-soft);
  letter-spacing: 0;
}

.pdp-price-alt {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.pdp-price-alt .pdp-price-unit { font-size: 12.5px; }

.pdp-price-note { font-size: 12px; color: var(--pdp-ink-soft); margin-top: 3px; }

/* Struck-through original price. */
.pdp .kk-price-mrp {
  margin-left: 8px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--pdp-ink-faint);
}

.pdp-price-alt .kk-price-mrp { font-size: 12.5px; margin-left: 6px; }

/* ---- What it is, in a few lines ---------------------------------------- */

.pdp-lead {
  position: relative;
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
}

/* Descriptions arrive typed in capitals; shown in sentence case, which is
   easier to read. Beats the ".pdp *" rule that keeps text as written. */
.pdp .pdp-lead-text {
  margin: 0;
  text-transform: lowercase !important;
  overflow-wrap: anywhere;
}
.pdp .pdp-lead-text::first-letter { text-transform: uppercase; }

/* Two lines until "more" is pressed. The button sits over the end of the
   second line, on a fade so the cut-off word does not run into it. */
.pdp-lead.is-clamped .pdp-lead-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdp-lead-more {
  padding: 0 0 0 4px;
  border: 0;
  background: var(--pdp-surface, #fff);
  color: var(--pdp-blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pdp-lead-more:hover { text-decoration: underline; }

.pdp-lead.is-clamped .pdp-lead-more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 28px;
  background: linear-gradient(to right, transparent, var(--pdp-surface, #fff) 26px);
}

/* The specifications, one box each, three to a row beside the price. */
.pdp .pdp-specs { margin: 10px 0 0; }

.pdp .pdp-specs-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--pdp-ink);
  margin: 0 0 12px !important;
}

.pdp .pdp-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.pdp .pdp-spec-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--pdp-line);
  border-radius: 10px;
  background: var(--pdp-bg-soft);
  padding: 10px 12px;
}

.pdp .pdp-spec-cell dt {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--pdp-ink-soft);
  margin: 0;
}

.pdp .pdp-spec-cell dd {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pdp-ink);
  margin: 0;
  overflow-wrap: anywhere;
}

/* The ones past the first six, at the top of the right-hand column: a
   two-column table in a card like Where to Use's - the label in grey on the
   left, the value in bold on the right, a thin line between rows - so the
   eye can run down either column. */
.pdp .pdp-specs-more {
  margin: 0;
  padding: 12px 14px 4px;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  background: var(--pdp-surface);
}
.pdp .pdp-specs-more .pdp-specs-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}
.pdp .pdp-specs-more .pdp-spec-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.pdp .pdp-specs-more .pdp-spec-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--pdp-line-soft);
  border-radius: 0;
  background: none;
}
.pdp .pdp-specs-more .pdp-spec-cell:last-child { border-bottom: 0; }
.pdp .pdp-specs-more .pdp-spec-cell dt {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--pdp-ink-soft);
}
.pdp .pdp-specs-more .pdp-spec-cell dd {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pdp-ink);
  text-align: right;
}

.pdp-rule {
  height: 1px;
  margin: 12px 0 0;
  background: var(--pdp-line);
}

/* ---- Colour and quantity ----------------------------------------------- */

.pdp-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
}

.pdp-field-name {
  min-width: 78px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .8px;
  color: var(--pdp-ink);
  text-transform: uppercase !important;
}

/* ---- Quick filters, beside the colour ----------------------------------
   A pill at the end of the colour row opens a small card under it: tabs for
   brand, colour and the facets this type is compared on, chips to pick, and
   Apply Filter to go to the listing. Coloured with the page's own tokens, so
   it follows light and dark mode with the rest of the buy panel.
   ----------------------------------------------------------------------- */
.pdp-qf-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--pdp-line);
  border-radius: 999px;
  background: var(--pdp-surface);
  color: var(--pdp-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.pdp-field-name + .pdp-qf-toggle { margin-left: 0; }
.pdp-qf-toggle:hover,
.pdp-qf-toggle[aria-expanded="true"] { border-color: var(--pdp-blue); color: var(--pdp-blue); }
.pdp-qf-toggle i { font-size: 15px; }
.pdp-qf-toggle-count,
.pdp-qf-tab-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pdp-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.pdp-qf-tab-count { display: inline-block; margin-left: 5px; }
.pdp-qf-toggle-count[hidden],
.pdp-qf-tab-count[hidden] { display: none; }

.pdp-qf {
  margin-top: 14px;
  padding: 16px 18px 18px;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  background: var(--pdp-bg-soft);
}
.pdp-qf[hidden] { display: none; }

.pdp-qf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--pdp-ink);
}
.pdp-qf-head i { font-size: 18px; }

.pdp-qf-tabs {
  display: flex;
  gap: 16px;
  margin: 12px 0 14px;
  border-bottom: 1px solid var(--pdp-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-qf-tabs::-webkit-scrollbar { display: none; }

.pdp-qf-tab {
  flex: 0 0 auto;
  margin: 0 0 -1px;
  padding: 4px 0 7px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--pdp-ink-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.pdp-qf-tab:hover { color: var(--pdp-ink); }
.pdp-qf-tab.is-active { color: var(--pdp-ink); border-bottom-color: var(--pdp-ink); font-weight: 600; }

.pdp-qf-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
}
.pdp-qf-panel[hidden] { display: none; }

.pdp-qf-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--pdp-line);
  border-radius: 10px;
  background: var(--pdp-surface);
  color: var(--pdp-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pdp-qf-chip:hover { border-color: var(--pdp-ink-faint); }
.pdp-qf-chip[aria-pressed="true"] {
  border-color: var(--pdp-blue);
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
}

.pdp-qf-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--qf-dot);
  border: 1px solid rgba(100, 116, 139, .45);
  flex: 0 0 auto;
}

.pdp-qf-apply {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: var(--pdp-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.pdp-qf-apply:hover:not(:disabled) { background: var(--pdp-blue-dark); }
.pdp-qf-apply:disabled { opacity: .45; cursor: default; }
/* The dark theme's blue token is a light one, too pale under white text. */
.dark-mode .pdp-qf-apply { background: #1d4ed8; }
.dark-mode .pdp-qf-apply:hover:not(:disabled) { background: #2563eb; }

/* Close, Clear and the sheet's handle. The card keeps its place under the
   colour row on a wide screen; these matter most on a phone, below. */
.pdp-qf-head { position: relative; }
.pdp-qf-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--pdp-surface);
  color: var(--pdp-ink-soft);
  font-size: 18px;
  cursor: pointer;
}
.pdp-qf-close:hover { color: var(--pdp-ink); }
.pdp-qf-grip, .pdp-qf-toggle-chev { display: none; }
.pdp-qf-backdrop[hidden] { display: none; }
.pdp-qf-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.pdp-qf-foot .pdp-qf-apply { margin-top: 0; flex: 1 1 auto; }
.pdp-qf-clear {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--pdp-line);
  border-radius: 10px;
  background: var(--pdp-surface);
  color: var(--pdp-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pdp-qf-clear[hidden] { display: none; }

/* ---- Phone: a full-width bar, and a bottom sheet ------------------------
   The pill used to drop onto a line of its own under the colour, hanging off
   the right edge, and the card it opened pushed the quantity and the buy
   buttons a screen further down. Here the button is a bar the width of the
   panel, and the card slides up over the page like an app's filter sheet,
   with Apply always in reach at the bottom. */
@media (max-width: 767px) {
  .pdp-qf-toggle,
  .pdp-field-name + .pdp-qf-toggle {
    flex: 1 0 100%;
    order: 10;
    margin: 4px 0 0;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--pdp-bg-soft);
    font-size: 14px;
  }
  .pdp-qf-toggle i { font-size: 18px; color: var(--pdp-blue); }
  .pdp-qf-toggle .pdp-qf-toggle-chev {
    display: inline-block;
    margin-left: auto;
    font-size: 20px;
    color: var(--pdp-ink-faint);
  }

  .pdp-qf-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100060;
    background: rgba(10, 15, 30, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .pdp-qf {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100061;
    margin: 0;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    padding: 8px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 22px 22px 0 0;
    background: var(--pdp-surface);
    box-shadow: 0 -12px 40px rgba(10, 15, 30, .25);
    animation: pdp-qf-up .26s cubic-bezier(.25, .46, .45, .94);
  }
  .pdp-qf-grip {
    display: block;
    width: 40px;
    height: 4px;
    margin: 2px auto 10px;
    border-radius: 999px;
    background: var(--pdp-line);
  }
  .pdp-qf-head { font-size: 17px; }
  .pdp-qf-close { background: var(--pdp-bg-soft); }
  .pdp-qf-tabs { margin: 10px -18px 0; padding: 0 18px; gap: 18px; flex-shrink: 0; }
  .pdp-qf-tab { padding: 8px 0 10px; font-size: 14px; }
  .pdp-qf-body {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 0 6px;
  }
  .pdp-qf-panel { max-height: none; overflow: visible; gap: 10px; }
  .pdp-qf-chip { padding: 10px 14px; font-size: 14px; }
  .pdp-qf-foot {
    flex-shrink: 0;
    margin: 0 -18px;
    padding: 12px 18px 0;
    border-top: 1px solid var(--pdp-line);
  }
  .pdp-qf-foot .pdp-qf-apply,
  .pdp-qf-clear { padding: 13px 16px; font-size: 15px; border-radius: 12px; }
}

@keyframes pdp-qf-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-qf { animation: none; }
}

/* ---- The quantity stepper ---------------------------------------------- */

.pdp .qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--pdp-radius);
  overflow: hidden;
  background: var(--pdp-surface);
}

.pdp .qty-stepper .qty-step {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--pdp-surface);
  color: var(--pdp-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.pdp .qty-stepper .qty-step:hover { background: var(--pdp-blue-soft); color: var(--pdp-blue); }
.pdp .qty-stepper .qty-step:disabled { color: #cbd5e1; cursor: not-allowed; background: var(--pdp-surface); }

.pdp .qty-stepper .units-input-clean {
  width: 58px;
  height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pdp-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.pdp .qty-stepper .units-input-clean:focus { outline: none; box-shadow: none; }

.pdp input[type="number"]::-webkit-outer-spin-button,
.pdp input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-qty-note { font-size: 12.5px; color: var(--pdp-ink-soft); }

/* ---- Coverage calculator ----------------------------------------------- */

.pdp-calc {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d8e3f3;
  border-radius: 14px;
  background: var(--pdp-blue-soft);
}

.pdp-calc-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .8px;
  color: var(--pdp-blue);
  text-transform: uppercase !important;
}

.pdp-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.pdp-field-label {
  display: block;
  font-size: 12px;
  color: var(--pdp-ink-soft);
  margin-bottom: 5px;
}

.pdp-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--pdp-radius);
  background: var(--pdp-surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--pdp-ink);
}

.pdp-input:focus {
  outline: none;
  border-color: var(--pdp-blue);
  box-shadow: 0 0 0 3px rgba(24, 72, 144, .12);
}

.pdp-input[readonly] { background: transparent; color: var(--pdp-ink-soft); }

.pdp-calc-out {
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--pdp-ink-soft);
}

.pdp-calc-out strong { color: var(--pdp-ink); font-weight: 600; }

/* ---- Stock ------------------------------------------------------------- */

.pdp-summary {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--pdp-line);
  border-radius: var(--pdp-radius);
  background: var(--pdp-bg-soft);
  font-size: 13px;
}
.pdp-summary[hidden] { display: none; }
.pdp-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: var(--pdp-ink-soft);
}
.pdp-summary-row > :last-child { color: var(--pdp-ink); font-weight: 600; text-align: right; }
.pdp-summary-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--pdp-line);
  color: var(--pdp-ink);
  font-weight: 700;
}
.pdp-summary-total strong { font-size: 16px; color: var(--pdp-blue); }

.pdp-stock { margin-top: 16px; font-size: 13px; font-weight: 600; }
.pdp-stock.is-in { color: var(--pdp-green); }
.pdp-stock.is-low { color: #d97706; }
.pdp-stock.is-out { color: #dc2626; }

/* ---- Actions ----------------------------------------------------------- */

.pdp-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pdp-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdp-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--pdp-radius);
  border: 1px solid transparent;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}

.pdp-btn:active { transform: translateY(1px); }

.pdp-btn-cart { background: var(--pdp-blue); box-shadow: 0 6px 16px rgba(24, 72, 144, .22); }
.pdp-btn-cart:hover { background: var(--pdp-blue-dark); color: #fff; }

.pdp-btn-buy { background: var(--pdp-navy); }
.pdp-btn-buy:hover { background: #1e293b; color: #fff; }

.pdp-btn:disabled,
.pdp-btn[aria-disabled="true"] {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.pdp-btn.is-busy { opacity: .65; pointer-events: none; }

.pdp-wish {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
  font-size: 22px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.pdp-wish:hover { background: #dde7f6; }
.pdp-wish.is-on { background: #ffe4e6; color: #e11d48; }

/* ---- Where to Use ------------------------------------------------------ */

/* The rooms and places the product suits, at the top of the right-hand
   column: an icon on a soft tile, the name on a tinted chip under it, three
   a row. Same border, radius and padding as the Against Order card under it,
   so the two line up. */
.pdp .pdp-where {
  padding: 12px 14px 14px;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  background: var(--pdp-surface);
}

.pdp .pdp-where-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--pdp-ink);
  margin: 0 0 10px !important;
}

.pdp .pdp-where-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 6px;
}

.pdp .pdp-where-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.pdp .pdp-where-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--pdp-bg-soft);
  border: 1px solid var(--pdp-line-soft);
  color: var(--pdp-ink);
  font-size: 19px;
}

.pdp .pdp-where-icon i { color: inherit; }

.pdp .pdp-where-name {
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
}

/* A different tint a place, like the chips in the design. */
.pdp .pdp-where-item:nth-child(4n + 2) .pdp-where-name { background: var(--pdp-amber-soft); color: #b45309; }
.pdp .pdp-where-item:nth-child(4n + 3) .pdp-where-name { background: var(--pdp-green-soft); color: #15803d; }
.pdp .pdp-where-item:nth-child(4n + 4) .pdp-where-name { background: #fde8ec; color: #be123c; }

.dark-mode .pdp .pdp-where-item:nth-child(4n + 2) .pdp-where-name { color: #fbbf24; }
.dark-mode .pdp .pdp-where-item:nth-child(4n + 3) .pdp-where-name { color: #4ade80; }
.dark-mode .pdp .pdp-where-item:nth-child(4n + 4) .pdp-where-name { background: #3b1220; color: #fb7185; }

/* ---- Bulk / quote links ------------------------------------------------ */

/* The last card in the right-hand column holds Against Order and, under a
   rule, these two links - one box for every way to buy that is not the two
   buttons. */
.pdp-order-card {
  min-width: 0;
  padding: 12px 14px 2px;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  background: var(--pdp-surface);
}

/* A link a row, each the width of the card so the whole row is the thing to
   press. */
.pdp-bulk {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid var(--pdp-line);
  font-size: 13px;
}

.pdp-bulk a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--pdp-line-soft);
  color: var(--pdp-ink);
  font-weight: 500;
}

.pdp-bulk a:last-child { border-bottom: none; }

.pdp-bulk a span { flex: 1 1 auto; min-width: 0; }

.pdp-bulk i { flex: 0 0 auto; font-size: 18px; color: var(--pdp-blue); }
.pdp-bulk .pdp-bulk-go { color: var(--pdp-ink-faint); transition: transform .15s ease, color .15s ease; }

.pdp-bulk a:hover { color: var(--pdp-blue); }
.pdp-bulk a:hover .pdp-bulk-go { color: var(--pdp-blue); transform: translateX(3px); }

/* ---- Tabs -------------------------------------------------------------- */

.pdp-tabs { margin-top: 44px; scroll-margin-top: 100px; }

.pdp-tabbar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--pdp-line);
  scrollbar-width: none;
}

.pdp-tabbar::-webkit-scrollbar { display: none; }

.pdp-tab {
  flex: 0 0 auto;
  padding: 13px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--pdp-ink-soft);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase !important;
  cursor: pointer;
  white-space: nowrap;
}

.pdp-tab:hover { color: var(--pdp-ink); }

.pdp-tab.is-active {
  color: var(--pdp-blue);
  border-bottom-color: var(--pdp-blue);
}

.pdp-panel { padding-top: 26px; }
.pdp-panel[hidden] { display: none !important; }

/* ---- Description / features -------------------------------------------- */

/* A line of text the full width of the page is too long to read. */
.pdp-details { max-width: 860px; }

.pdp-h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px !important;
}

.pdp-body-text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.pdp-features { margin-top: 24px; }

.pdp-features ul { list-style: none; margin: 0; padding: 0; }

.pdp-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  color: #475569;
}

.pdp-features li i { color: var(--pdp-green); font-size: 15px; margin-top: 2px; flex: 0 0 auto; }

.pdp-empty {
  padding: 28px 0;
  color: var(--pdp-ink-soft);
  font-size: 13.5px;
}

.pdp-note {
  margin-top: 8px;
  padding: 12px 16px;
  border-left: 3px solid var(--pdp-blue);
  background: var(--pdp-blue-soft);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #475569;
  max-width: 760px;
}

.pdp-note a { color: var(--pdp-blue); text-decoration: underline; }

.pdp-btn-sm {
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: var(--pdp-radius);
  background: var(--pdp-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase !important;
  cursor: pointer;
}

.pdp-btn-sm:hover { background: var(--pdp-blue-dark); }
.pdp-btn-sm:disabled { opacity: .5; cursor: not-allowed; }

/* ---- "You May Also Like" ----------------------------------------------- */

.pdp-more { margin-top: 48px; }

/* Reached from the Similar button over the photograph: stop below the fixed
   site header, not under it. */
#pdp-similar, #pdp-collection, #pdp-you-may-like { scroll-margin-top: calc(var(--koko-header-h, 100px) + 16px); }

.pdp-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pdp-more-head h2 {
  color: var(--pdp-blue) !important;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase !important;
  margin: 0;
}

.pdp-more-subhead {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pdp-ink-soft);
  margin-top: 4px;
}

.pdp-more-nav-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdp-more-nav { display: flex; gap: 8px; }

.pdp-more-rail {
display: grid;
grid-auto-flow: column;
grid-auto-columns: calc((100% - 100px) / 10);
gap: 10px;
overflow-x: auto;
scroll-behavior: smooth;
scrollbar-width: none;
padding-bottom: 4px;
}

.pdp-more-rail::-webkit-scrollbar { display: none; }

.pdp-card {
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--pdp-surface);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pdp-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
}

.pdp-card-img {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--pdp-bg-soft);
  overflow: hidden;
}

.pdp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-card-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--pdp-ink-soft);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.pdp-card-wish:hover,
.pdp-card-wish.is-on { color: #e11d48; }

.pdp-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }

.pdp-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pdp-ink);
  /* Two lines, so every card in the rail ends at the same height. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdp-card-sub { font-size: 11.5px; color: var(--pdp-ink-faint); }

.pdp-card-price { font-size: 14px; font-weight: 700; margin-top: 4px; }
.pdp-card-price span { font-size: 11.5px; font-weight: 400; color: var(--pdp-ink-soft); }
.pdp-card-price-alt { font-size: 11.5px; color: var(--pdp-ink-soft); text-align: right; }

/* ---- Toast ------------------------------------------------------------- */

.pdp-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  z-index: 100060;
  max-width: 88vw;
  padding: 12px 20px;
  border-radius: var(--pdp-radius);
  background: var(--pdp-navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.pdp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pdp-toast.is-bad { background: #b91c1c; }


/* ==========================================================================
   The shared blocks this page folds in
   ==========================================================================
   Against Order, the share sheet and the discount badge are the site's own
   markup, reused rather than rewritten. What follows only makes them sit in
   this page's rhythm; none of it changes what they do.
   ========================================================================== */

/* ---- Against Order ----------------------------------------------------- */

/* The block ships its own button styling for the pages it was written for;
   here it is the top of the last card in the right-hand column, above the
   bulk and quotation links, and its button runs the width of it. The block
   carries Bootstrap's mt-3, which the card's own padding already stands in
   for. */
.pdp .against-order-block {
  margin-top: 0 !important;
  max-width: 100%;
}

.pdp .against-order-block .btn {
  display: block;
  width: 100%;
  border-radius: var(--pdp-radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.pdp .pdp-order-card .against-order-delivery { margin-top: 6px !important; font-size: 12px; }

.pdp .against-order-hint {
  margin-top: 8px;
  font-size: 12.5px;
  color: #b45309;
}

/* ---- Discount badge ---------------------------------------------------- */

/* base.html pins .kk-off-badge to the top-left corner of whatever it sits in,
   which is where it belongs and where it sits on the listing cards. This page
   used to add a right edge as well; with both a left and a right the badge
   stopped being a badge and became a red bar across the whole photograph.
   Nothing to set here - only the corner it lands in has to be a corner. */

/* ---- "View Complete Bundle" -------------------------------------------- */

/* base.html turns every .btn white on hover, which made this button's text
   vanish into its own background. It is not a .btn, so it keeps its colour. */
.pdp-bundle-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid var(--pdp-blue);
  border-radius: var(--pdp-radius);
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pdp-bundle-btn:hover { background: var(--pdp-blue); color: #fff; }

/* ---- Staff note -------------------------------------------------------- */

/* Only ever rendered for staff: a product with no colour variants is a setup
   problem, and this is the person who can fix it. */
.pdp-staff-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #ffc107;
  border-radius: var(--pdp-radius);
  background: #fff8e1;
  color: #856404;
  font-size: 12.5px;
}

.pdp-staff-note b { font-size: 13px; }


/* ==========================================================================
   Narrower screens
   ========================================================================== */

/* A laptop has room for two columns, not three: the right-hand column goes
   under the buy panel, in its column. */
@media (max-width: 1279px) {
  .pdp-top { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .pdp-side { grid-column: 2; }
}

@media (max-width: 1100px) {
  .pdp-top { gap: 36px; }
  .pdp-title { font-size: 28px; }
  .pdp-more-rail { grid-auto-columns: minmax(0, calc(33.333% - 14px)); }
}

@media (max-width: 991px) {
  .pdp-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pdp-side { grid-column: auto; }
  .pdp-gallery { position: static; top: auto; max-width: 680px; }
}

@media (max-width: 767px) {
  .pdp { padding: 0 15px 40px; }
  .pdp .kk-breadcrumb { padding: 14px 0 16px; font-size: 13px; }

  /* The thumbnails go under the photograph and run sideways: a column beside
     it would take a fifth of a phone's width from the picture. */
  .pdp-gallery.has-rail { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pdp .pdp-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-rail { order: 2; }
  .pdp-rail-track { position: static; flex-direction: row; gap: 10px; overflow-x: auto; overflow-y: hidden; }
  .pdp-thumb { flex: 0 0 66px; width: 66px; height: 66px; }

  /* A square photograph at full width is taller than the usable half of a
     phone screen, which pushes the price and the buy buttons off it. */
  .pdp-stage { aspect-ratio: 4 / 3; padding: 48px 46px; }

  .pdp-title { font-size: 24px; }
  .pdp-price { font-size: 23px; }
  .pdp-tabs { margin-top: 32px; }
  .pdp-more-rail { grid-auto-columns: minmax(0, calc(50% - 10px)); }
  .pdp-toast { bottom: 128px; }
}

@media (max-width: 479px) {
  .pdp-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-more-rail { grid-auto-columns: minmax(0, 78%); }
}

@media (prefers-reduced-motion: reduce) {
  .pdp *, .pdp *::before, .pdp *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Dark mode - the site toggles .dark-mode on <body>
   ========================================================================== */

.dark-mode .pdp {
  --pdp-ink: #e2e8f0;
  --pdp-ink-soft: #94a3b8;
  --pdp-ink-faint: #64748b;
  --pdp-line: #1e293b;
  --pdp-line-soft: #172033;
  --pdp-bg-soft: #0f172a;
  --pdp-surface: #0b0f19;
  --pdp-blue: #60a5fa;
  --pdp-blue-dark: #3b82f6;
  --pdp-blue-soft: #16233c;
  --pdp-navy: #1e293b;
  --pdp-amber-soft: #3a2a0b;
  --pdp-green-soft: #0f2e1c;
  --pdp-sky: #38bdf8;
  --pdp-sky-soft: #0c2a3d;
}

.dark-mode .pdp-lead,
.dark-mode .pdp-body-text,
.dark-mode .pdp-features li,
.dark-mode .pdp-note { color: #cbd5e1; }
.dark-mode .pdp-calc { border-color: #22304a; }
.dark-mode .pdp .qty-stepper,
.dark-mode .pdp-input { border-color: #334155; }
.dark-mode .pdp-btn-cart { color: #0b0f19; box-shadow: none; }
.dark-mode .pdp-btn-cart:hover { color: #0b0f19; }
.dark-mode .pdp-btn-buy { border-color: #334155; }
.dark-mode .pdp-btn:disabled,
.dark-mode .pdp-btn[aria-disabled="true"] { background: #1e293b; border-color: #1e293b; color: #64748b; }
.dark-mode .pdp-btn-sm { color: #0b0f19; }
.dark-mode .pdp-wish.is-on { background: #3b0d18; }
.dark-mode .pdp-card-wish { background: rgba(11, 15, 25, .92); }

/* ==========================================================================
   Colour rows - every colour with its name, its stock and its own stepper
   ========================================================================== */

.pdp-colours { margin-top: 18px; }

.pdp-colours-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pdp-colours-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--pdp-ink-soft);
}

.pdp-colour-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pdp-colour-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--pdp-line);
  border-radius: var(--pdp-radius);
  background: var(--pdp-surface);
  transition: border-color .15s ease, background .15s ease;
}

.pdp-colour-row.is-picked { border-color: var(--pdp-blue); background: var(--pdp-blue-soft); }
.pdp-colour-row.is-over { border-color: var(--pdp-amber); background: var(--pdp-amber-soft); }
.pdp-colour-row.is-out { opacity: .55; }

.pdp-colour-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, .2);
  border-radius: 50%;
  background: var(--pdp-swatch, #d1d5db);
  cursor: pointer;
}

.pdp-colour-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pdp-colour-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pdp-ink);
  overflow-wrap: anywhere;
}

.pdp-colour-meta { font-size: 12px; color: var(--pdp-ink-soft); }
.pdp-colour-stock { color: var(--pdp-green); font-weight: 600; }
.pdp-colour-stock.is-out { color: #dc2626; }
.pdp-colour-row.is-over .pdp-colour-stock { color: #d97706; }

.pdp .pdp-colour-stepper { flex: 0 0 auto; }
.pdp .pdp-colour-stepper .qty-step { width: 34px; height: 34px; font-size: 16px; }
.pdp .pdp-colour-stepper .color-quantity-input {
  width: 52px;
  height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pdp-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.pdp .pdp-colour-stepper .color-quantity-input:focus { outline: none; box-shadow: none; }
.pdp .pdp-colour-stepper .color-quantity-input:disabled { background: transparent; color: var(--pdp-ink-faint); }

.pdp-colour-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--pdp-radius);
  background: var(--pdp-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.pdp-colour-sum strong { font-size: 15px; color: #fff; }

.pdp .pdp-boxes-stepper { display: flex; width: 100%; }
.pdp .pdp-boxes-stepper .units-input-clean { flex: 1 1 auto; width: auto; }

.pdp-title-size { font-weight: 500; color: var(--pdp-ink-soft); }
.pdp-price-na { color: var(--pdp-ink-soft); font-size: 18px; }

.pdp-transport-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--pdp-ink-soft);
}

.pdp-card-stock { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 600; }
.pdp-card-stock.is-in { color: var(--pdp-green); }
.pdp-card-stock.is-out { color: #dc2626; }

/* ---- Related categories and other products ----------------------------- */

.pdp-browse { display: grid; gap: 28px; }
.pdp-browse-group h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

.pdp-browse-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pdp-browse-tile {
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pdp-browse-img {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pdp-line);
  border-radius: var(--pdp-radius);
  background: var(--pdp-bg-soft);
  overflow: hidden;
  color: var(--pdp-ink-faint);
  font-size: 22px;
}

.pdp-browse-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-browse-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--pdp-ink);
}

.pdp-browse-tile:hover .pdp-browse-img { border-color: var(--pdp-blue); }

@media (max-width: 575px) {
  .pdp-colour-row { flex-wrap: wrap; }
  .pdp-colour-text { flex-basis: calc(100% - 40px); }
  .pdp .pdp-colour-stepper { margin-left: 38px; }
}

.dark-mode .pdp-colour-dot { border-color: rgba(255, 255, 255, .28); }
.dark-mode .pdp-colour-stock.is-out,
.dark-mode .pdp-card-stock.is-out { color: #f87171; }

/* ---- More Specifications: four rows, then "More" ---------------------- */

.pdp .pdp-specs-more .pdp-spec-cell[hidden] { display: none; }
.pdp .pdp-specs-more:not(.is-open) .pdp-spec-cell:nth-child(4) { border-bottom: 0; }

.pdp-specs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pdp-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pdp-specs-toggle i { font-size: 17px; transition: transform .15s ease; }
.pdp-specs-more.is-open .pdp-specs-toggle i { transform: rotate(180deg); }

/* The calculator under Against Order: area and boxes side by side when the
   column is wide enough for both, one above the other when it is not. */
.pdp-side { container-type: inline-size; }
.pdp-side .pdp-calc { margin-top: 0; padding: 12px 14px; }
.pdp-side .pdp-calc-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.pdp-side .pdp-calc-out { margin-top: 8px; font-size: 12.5px; }
@container (min-width: 320px) {
  .pdp-side .pdp-calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Where to Use, under the photographs: one row of places across the
   gallery's width, lined up with the photograph like the tools above it. */
.pdp-gallery .pdp-where { grid-column: 1 / -1; }
.pdp-gallery.has-rail .pdp-where { grid-column: 2; }
.pdp .pdp-gallery .pdp-where-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
@media (max-width: 767px) {
  .pdp-gallery.has-rail .pdp-where { grid-column: 1 / -1; order: 4; }
}

/* ==========================================================================
   The colour box in the buy panel, and the pop-up it opens
   ========================================================================== */

.pdp-colours-head { align-items: center; }

.pdp-colour-open {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--pdp-line);
  border-radius: var(--pdp-radius);
  background: var(--pdp-surface);
  color: var(--pdp-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.pdp-colour-open:hover { border-color: var(--pdp-blue); box-shadow: 0 4px 14px rgba(24, 72, 144, .08); }
.pdp-colour-open.is-picked { border-color: var(--pdp-blue); background: var(--pdp-blue-soft); }
.pdp-colour-open:focus-visible { outline: 2px solid var(--pdp-amber); outline-offset: 2px; }

.pdp-colour-open-dots { display: flex; flex: 0 0 auto; }

.pdp-colour-open-dots span {
  width: 24px;
  height: 24px;
  margin-left: -8px;
  border: 2px solid var(--pdp-surface);
  border-radius: 50%;
  background: var(--pdp-swatch, #d1d5db);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .18);
}

.pdp-colour-open-dots span:first-child { margin-left: 0; }

.pdp-colour-open-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pdp-colour-open-text strong { font-size: 14px; font-weight: 700; }
.pdp-colour-open-text span { font-size: 12.5px; color: var(--pdp-ink-soft); }
/* The colours picked, e.g. "Grey × 3 · Brown × 2" - one line, cut short with
   an ellipsis (the whole list is in its tooltip). */
#pdp-colour-open-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pdp-colour-open-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--pdp-blue);
  font-size: 13px;
  font-weight: 700;
}

.pdp-colour-open-go i { font-size: 18px; }

.pdp-colour-chosen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pdp-colour-chosen:empty { display: none; }

.pdp-colour-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--pdp-line);
  border-radius: 999px;
  background: var(--pdp-surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--pdp-ink);
}

.pdp-colour-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .2);
}

/* The pop-up: over everything, the sticky header included; the site's
   toasts still show above it. */
.pdp.pdp-colour-sheet {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pdp.pdp-colour-sheet[hidden] { display: none; }

.pdp-colour-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}

.pdp-colour-sheet-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(580px, 100%);
  max-height: min(86vh, 760px);
  border-radius: var(--pdp-radius-lg);
  background: var(--pdp-surface);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  overflow: hidden;
}

.pdp-colour-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--pdp-line);
}

.pdp-colour-sheet-head h2 { font-size: 17px; font-weight: 700; }

.pdp-colour-sheet-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pdp-line);
  border-radius: 50%;
  background: var(--pdp-surface);
  color: var(--pdp-ink);
  font-size: 18px;
  cursor: pointer;
}

.pdp-colour-sheet-close:hover { border-color: var(--pdp-blue); color: var(--pdp-blue); }

.pdp-colour-sheet .pdp-colour-list {
  flex: 1 1 auto;
  margin: 0;
  padding: 14px 20px;
  overflow-y: auto;
}

.pdp-colour-sheet-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--pdp-line);
}

.pdp-colour-sheet-foot .pdp-colour-sum { flex: 1 1 auto; margin-top: 0; }

.pdp .pdp-colour-done {
  flex: 0 0 auto;
  width: auto;
  height: 44px;
  padding: 0 26px;
  background: var(--pdp-navy);
  color: #fff;
}

/* On a phone the pop-up rises from the bottom of the screen. */
@media (max-width: 767px) {
  .pdp.pdp-colour-sheet { align-items: flex-end; padding: 0; }
  .pdp-colour-sheet-panel {
    width: 100%;
    max-height: 88vh;
    border-radius: var(--pdp-radius-lg) var(--pdp-radius-lg) 0 0;
  }
  .pdp-colour-sheet .pdp-colour-list { padding: 12px 16px; }
  .pdp-colour-sheet-head, .pdp-colour-sheet-foot { padding-left: 16px; padding-right: 16px; }
}

.dark-mode .pdp-colour-open-dots span { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.dark-mode .pdp .pdp-colour-done { background: #1e293b; }

/* A 3:2 photograph on a desktop: the 4:3 one stood taller than the buy
   panel beside it and left the gallery column the last to end. */
@media (min-width: 992px) {
  .pdp-stage { aspect-ratio: 3 / 2; padding-top: 36px; padding-bottom: 36px; }
}

/* ---- What every order comes with, under Against Order -------------------- */

.pdp-assure {
  list-style: none;
  margin: 0;
  padding: 12px 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  background: var(--pdp-surface);
}

.pdp-assure li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}

.pdp-assure li + li { border-left: 1px solid var(--pdp-line); }

.pdp-assure-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
  font-size: 17px;
}

.pdp-assure strong {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  line-height: 1.3;
  color: var(--pdp-ink);
  text-transform: uppercase !important;
}

.pdp-assure li > span:last-child {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--pdp-ink-soft);
}

/* ==========================================================================
   The colour strip - which colour the page is showing
   ========================================================================== */

.pdp-variants { margin-top: 16px; }

.pdp-variants-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp-variants-head .pdp-qf-toggle { margin-left: auto; }
.pdp-variant-current { font-size: 13px; font-weight: 600; color: var(--pdp-ink); }

.pdp-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pdp .pdp-variant {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  color: var(--pdp-ink);
}

.pdp-variant-img {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--pdp-line);
  background: var(--pdp-bg-soft);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pdp-variant-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-variant-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .2);
  background: var(--pdp-swatch, #d1d5db);
}

.pdp .pdp-variant:hover .pdp-variant-img { box-shadow: 0 0 0 1px var(--pdp-blue); }
.pdp .pdp-variant.is-active .pdp-variant-img { border-color: var(--pdp-blue); box-shadow: 0 0 0 2px var(--pdp-blue-soft); }
.pdp .pdp-variant:focus-visible { outline: 2px solid var(--pdp-amber); outline-offset: 2px; border-radius: 10px; }

.pdp-variant-name {
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdp-variant-colour { font-size: 10.5px; line-height: 1.2; color: var(--pdp-ink-soft); }
.pdp .pdp-variant.is-out .pdp-variant-img { opacity: .5; }
.pdp .pdp-variant.is-out .pdp-variant-colour { color: #dc2626; }

/* The colour box under the strip sits closer to it. */
.pdp-variants ~ .pdp-colours { margin-top: 4px; }

.dark-mode .pdp-variant-dot { border-color: rgba(255, 255, 255, .28); }

/* ==========================================================================
   The tile in a room - over the photograph, shown instead of it while open
   ========================================================================== */

.pdp-room {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #efebe4;
  overflow: hidden;
}

.pdp-room[hidden] { display: none; }

.pdp-room-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.pdp-room-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}

/* The floor or the wall: the tiles, kept to the surface by its mask, with
   the photograph's own light multiplied back over them. */
.pdp-room-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.pdp-room-layer[hidden] { display: none; }

.pdp-room-plane {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background-repeat: repeat;
  backface-visibility: hidden;
}

.pdp-room-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  user-select: none;
}

/* A glossy tile catches the window light. */
.pdp-room-layer.is-glossy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .22) 46%, rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: screen;
}

/* Rooms to pick, and Floor / Wall for a tile that goes on both. */
.pdp-room-bar {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.pdp-room-tabs,
.pdp-room-photos,
.pdp-room-surface {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .62);
  overflow-x: auto;
  scrollbar-width: none;
}

.pdp-room-tabs::-webkit-scrollbar { display: none; }

.pdp-room-tab,
.pdp-room-photos button,
.pdp-room-surface button {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.pdp-room-tab[aria-selected="true"],
.pdp-room-photos button[aria-pressed="true"],
.pdp-room-surface button[aria-pressed="true"] { background: #fff; color: #184890; }

.pdp-room-photos[hidden] { display: none; }
.pdp-room-photos button { min-width: 26px; padding-left: 8px; padding-right: 8px; }
.pdp-room-surface button:disabled { opacity: .4; cursor: not-allowed; }

/* Similar sits in the corner the room's tabs would crowd. */
.pdp-stage.is-room .pdp-similar-btn { display: none; }

/* The room's button in the rail. */
.pdp-thumb.pdp-thumb-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
}

.pdp-thumb-room i { font-size: 22px; line-height: 1; }
.pdp-thumb-room span { font-size: 11px; font-weight: 700; }

/* The product video's button in the rail: a still from the video with a
   play button over it. */
.pdp-thumb.pdp-thumb-video {
  position: relative;
  aspect-ratio: 1;
  background: #000;
}

.pdp-thumb-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.pdp-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  border: 2px solid #fff;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

/* ---- Technical features, a frame of the gallery -------------------------
   The features ticked on the product form, laid out as a picture in the
   style of the client's printed catalogue: black and white, each icon in a
   fine square frame standing on a heavier bar, its name beside it in spaced
   capitals. Centred, and kept narrower than the stage so the previous /
   next arrows never sit on them.

   Every size is a multiple of --pdp-k, so the whole frame grows and shrinks
   as one. --pdp-base is the size for the screen (smaller on a phone) and
   --pdp-fit is set by the page script: it steps down until every feature
   is in view, so however many are ticked they share the one slide and
   nothing scrolls. Smaller also means more to a row.
   ----------------------------------------------------------------------- */

.pdp {
  --pdp-mono: #1c1c1c;
  --pdp-mono-soft: #5b5b5b;
}

.dark-mode .pdp {
  --pdp-mono: #e5e7eb;
  --pdp-mono-soft: #a3a3a3;
}

/* ---- Technical features poster frame -------------------------------- */
.pdp-features-frame {
  --pdp-k: calc(var(--pdp-base, 1) * var(--pdp-fit, 1));
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: calc(14px * var(--pdp-k)) clamp(44px, 12%, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  background: radial-gradient(circle at 85% 50%, rgba(24, 72, 144, 0.06), transparent 65%), linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #f1f5f9 100%);
}

.pdp-features-frame * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.pdp-stage > img.pdp-features-slide-img,
.pdp-stage > img.pdp-specs-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--pdp-radius-lg);
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: zoom-in;
}

.dark-mode .pdp-features-frame {
  background: radial-gradient(circle at 85% 50%, rgba(56, 189, 248, 0.08), transparent 65%), linear-gradient(135deg, #090e17 0%, #0f172a 50%, #1e293b 100%);
}

.pdp-stage .pdp-features-frame[hidden] { display: none !important; }

/* The poster wrapper containing the features on the left and product image on the right */
.pdp-features-poster {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: calc(14px * var(--pdp-k));
  box-sizing: border-box;
}

/* Left Column: Head and Feature List */
.pdp-features-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdp-features-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: calc(8px * var(--pdp-k));
}

.pdp-features-title {
  color: var(--pdp-mono);
  font-size: calc(16px * var(--pdp-k));
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 calc(2px * var(--pdp-k));
}

.pdp-features-sub {
  color: var(--pdp-mono-soft);
  font-size: calc(10px * var(--pdp-k));
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: calc(4px * var(--pdp-k));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pdp-features-accent-bar {
  width: calc(36px * var(--pdp-k));
  height: calc(2.5px * var(--pdp-k));
  background: #184890;
  border-radius: 2px;
}

.dark-mode .pdp-features-accent-bar {
  background: #38bdf8;
}

/* Feature List (single column for maximum width & clear readability) */
.pdp-features-list,
.pdp-features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: calc(5px * var(--pdp-k));
}

.pdp-features-item {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--pdp-k));
  padding: calc(4px * var(--pdp-k)) calc(8px * var(--pdp-k));
  border-radius: calc(8px * var(--pdp-k));
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  min-width: 0;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.pdp-features-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(2px);
}

.dark-mode .pdp-features-item {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dark-mode .pdp-features-item:hover {
  background: rgba(30, 41, 59, 0.8);
}

/* Circular feature badge */
.pdp-features-icon {
  flex: 0 0 calc(22px * var(--pdp-k));
  width: calc(22px * var(--pdp-k));
  height: calc(22px * var(--pdp-k));
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: #184890;
  border: 1px solid #bfdbfe;
}

.dark-mode .pdp-features-icon {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.pdp-features-icon i {
  font-size: calc(12px * var(--pdp-k));
  line-height: 1;
}

.pdp-features-icon img {
  width: calc(14px * var(--pdp-k));
  height: calc(14px * var(--pdp-k));
  object-fit: contain;
}

.pdp-features-name {
  color: var(--pdp-mono);
  font-size: calc(11px * var(--pdp-k));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Column: Product Image Showcase */
.pdp-features-media {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-features-img-card {
  position: relative;
  height: 86%;
  width: auto;
  aspect-ratio: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: calc(10px * var(--pdp-k));
  padding: calc(4px * var(--pdp-k));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  overflow: hidden;
}

.dark-mode .pdp-features-img-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pdp-features-img,
.pdp-specs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(6px * var(--pdp-k));
}


.pdp-features-frame:not(.is-tile) .pdp-features-img-card {
  aspect-ratio: auto;
  max-width: 130px;
}

.pdp-features-frame:not(.is-tile) .pdp-features-img,
.pdp-specs-frame:not(.is-tile) .pdp-specs-img {
  object-fit: contain;
}

.pdp-features-img.is-rotated-vertical,
.pdp-specs-img.is-rotated-vertical {
  transform: rotate(90deg);
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Orientation-specific styling for the product showcase card */
.is-vertical .pdp-features-img-card {
  aspect-ratio: 1 / 2;
  max-width: 210px;
  max-height: 420px;
}

.is-square .pdp-features-img-card {
  aspect-ratio: 1 / 1;
  max-width: 270px;
  max-height: 270px;
}

.is-horizontal .pdp-features-img-card {
  aspect-ratio: 16 / 9;
  max-width: 310px;
  max-height: 190px;
}

.is-product .pdp-features-img-card {
  aspect-ratio: 4 / 5;
  max-width: 240px;
  max-height: 300px;
}

/* The features' button in the rail: the features frame itself, drawn
   small. The page script lays a copy out at whichever width suits the
   thumbnail's shape (.pdp-thumb-features-mini), sized to its content, and
   scales it to fill the thumbnail - the way a photograph's thumbnail is
   that photograph. */
.pdp-thumb.pdp-thumb-features,
.pdp-thumb.pdp-thumb-specs,
.pdp-thumb.pdp-thumb-showcase {
  position: relative;
  aspect-ratio: 1;
  background: var(--pdp-surface, #fff);
}

.pdp-thumb-showcase:empty::before {
  content: 'Card';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #64748b;
  text-transform: uppercase;
  background: #f5f4f1;
  border-radius: inherit;
}

/* The product card before the script has drawn it (or if it cannot): just
   the photograph, so the frame is never a heap of loose text. */
.pdp-stage > .pdp-showcase-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f4f1;
  border-radius: var(--pdp-radius-lg);
}
.pdp-stage > .pdp-showcase-frame[hidden] { display: none; }
.pdp-showcase-frame .pdp-showcase-name,
.pdp-showcase-frame .pdp-showcase-facts { display: none; }
.pdp-showcase-frame .pdp-showcase-img { max-width: 80%; max-height: 80%; object-fit: contain; }

.pdp-thumb-features:empty::before {
  content: 'Features';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #64748b;
  text-transform: uppercase;
  background: #f1f5f9;
  border-radius: inherit;
}

.pdp-thumb-specs:empty::before {
  content: 'Specs';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #64748b;
  text-transform: uppercase;
  background: #f1f5f9;
  border-radius: inherit;
}

.pdp-thumb.pdp-thumb-features:not(.is-active):not(:hover),
.pdp-thumb.pdp-thumb-specs:not(.is-active):not(:hover),
.pdp-thumb.pdp-thumb-showcase:not(.is-active):not(:hover) { border-color: var(--pdp-line); }

.pdp-thumb-features-mini {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.pdp-thumb-features-mini .pdp-features-frame {
  --pdp-fit: 1;
  position: relative !important;
  inset: auto !important;
  width: 420px;
  height: 315px;
  padding: 16px;
}

@media (max-width: 767px) {
  .pdp-thumb.pdp-thumb-features,
  .pdp-thumb.pdp-thumb-specs,
  .pdp-thumb.pdp-thumb-showcase { flex: 0 0 66px; width: 66px; height: 66px; }
  .pdp-features-frame { --pdp-base: .75; padding: 12px 14px; }
  .pdp-features-poster { flex-direction: column-reverse; gap: 8px; }
  .pdp-features-content { flex: 1 1 auto; width: 100%; }
  .pdp-features-media { flex: 0 0 auto; width: 100%; height: 110px; }
  .pdp-features-img-card { height: 100%; max-width: 180px; padding: 6px; }
  .pdp-features-title { font-size: 13px; margin: 2px 0 4px; }
  .pdp-features-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
  .pdp-features-item { padding: 4px 6px; gap: 6px; }
  .pdp-features-icon { width: 24px; height: 24px; }
  .pdp-features-icon i { font-size: 13px; }
  .pdp-features-name { font-size: 10px; }
}

/* A place a room stands in for opens it. */
.pdp .pdp-where-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.pdp .pdp-where-btn:hover .pdp-where-icon { border-color: var(--pdp-blue); color: var(--pdp-blue); }
.pdp .pdp-where-btn:focus-visible { outline: 2px solid var(--pdp-amber); outline-offset: 2px; border-radius: 8px; }

@media (max-width: 767px) {
  .pdp-room-bar { bottom: 8px; }
  .pdp-room-tab, .pdp-room-surface button { padding: 4px 10px; font-size: 11px; }
  .pdp-thumb.pdp-thumb-room,
  .pdp-thumb.pdp-thumb-video { flex: 0 0 66px; width: 66px; height: 66px; }
}

/* ---- Laptop screens: buy buttons in the first view ----------------------
   On a laptop (desktop layout, but a short window) the gallery, the larger
   title and roomy specification cards pushed Add to Cart and Buy Now below
   the fold. Here everything tightens a step so the whole buy panel - price,
   specifications, colours, stock and both buttons - fits one screen. Tall
   desktop monitors keep the roomier layout above. */
@media (min-width: 992px) and (max-height: 900px) {
  .pdp .kk-breadcrumb { padding: 6px 0 8px; font-size: 13px; }
  .pdp-top { gap: 28px; }
  .pdp-gallery { gap: 8px; }
  .pdp-stage { aspect-ratio: 16 / 11; padding: clamp(20px, 3.5%, 30px) clamp(36px, 8%, 64px); }

  .pdp-title { font-size: 24px; line-height: 1.1; margin-top: 0 !important; }
  .pdp-price-wrap { margin-top: 0; }
  .pdp-price-note { margin-top: 0; }
  .pdp-lead { margin-top: 2px; font-size: 13px; line-height: 1.45; }

  .pdp .pdp-specs { margin-top: 6px; }
  .pdp .pdp-specs-title { font-size: 14px !important; margin-bottom: 6px !important; }
  .pdp .pdp-spec-grid { gap: 6px; }
  .pdp .pdp-spec-cell { padding: 5px 10px; gap: 1px; border-radius: 8px; }
  .pdp .pdp-spec-cell dt { font-size: 11px; }
  .pdp .pdp-spec-cell dd { font-size: 13px; }
  .pdp-rule { margin-top: 8px; }

  .pdp-variants { margin-top: 8px; }
  .pdp-qf-toggle { padding: 4px 12px; font-size: 12.5px; }
  .pdp-variant-list { gap: 8px; margin-top: 4px; }
  .pdp .pdp-variant { width: 60px; gap: 1px; }
  .pdp-variant-img { width: 42px; height: 42px; border-radius: 8px; }
  .pdp-colours { margin-top: 8px; }
  .pdp-colour-open { margin-top: 6px; padding: 7px 14px; }

  .pdp-colour-chosen { margin-top: 6px; }
  .pdp-stock { margin-top: 6px; }
  .pdp-actions { margin-top: 8px; }
  .pdp-btn { height: 44px; }
  .pdp-transport-note { margin-top: 6px; }
}

/* ---- Phone: "You May Also Like" and the other card rails ----------------
   The rails are sideways scrollers. On a phone the cards must be sized from
   the rail's own width, never from their contents, or the price line and the
   stock label push a card wider than its column and it runs into the next. */
@media (max-width: 767px) {
  .pdp-more, .pdp-more-rail { min-width: 0; max-width: 100%; }
  .pdp-more { margin-top: 36px; }
  .pdp-more-head { margin-bottom: 12px; gap: 10px; }
  .pdp-more-head h2 { font-size: 16px; }

  .pdp-more-rail {
    gap: 12px;
    grid-auto-columns: calc((100% - 12px) / 2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .pdp-more-rail > .pdp-card { scroll-snap-align: start; min-width: 0; width: auto; }

  .pdp-card { border-radius: 12px; }
  .pdp-card-wish { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 14px; }
  .pdp-card-body { padding: 10px 10px 12px; min-width: 0; }
  .pdp-card-name, .pdp-card-sub, .pdp-card-price, .pdp-card-price-alt, .pdp-card-stock {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .pdp-card-name { font-size: 12.5px; }
  .pdp-card-price { font-size: 13px; }
  .pdp-card-price span, .pdp-card-price-alt, .pdp-card-sub, .pdp-card-stock { font-size: 11px; }
  .pdp-card-price-alt { text-align: left; }
}

@media (max-width: 479px) {
  .pdp-more-rail { grid-auto-columns: calc((100% - 12px) / 2); }
}

/* ---- Where to Use? on phones --------------------------------------------
   Under the photographs on a laptop; once the page is one column it comes
   after Add to cart / Buy now instead. The same card is in the page twice
   (see includes/_pdp_where.html) and one of the two is hidden. */
.pdp .pdp-buy .pdp-where-mobile { display: none; }
@media (max-width: 991px) {
  .pdp .pdp-gallery .pdp-where { display: none; }
  .pdp .pdp-buy .pdp-where-mobile { display: block; margin-top: 14px; }
  .pdp .pdp-buy .pdp-where-mobile .pdp-where-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* ---- Zoom ----------------------------------------------------------------
   Resting the mouse on the photograph magnifies it under the pointer (the
   page script sets the scale and where it is centred); the stage's
   overflow:hidden keeps the enlargement inside the card. A click, or the
   magnifier in the bottom-right corner, opens the full-screen viewer.
   ----------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .pdp-stage > img[data-frame] {
    cursor: zoom-in;
    transition: transform .12s ease-out;
  }
}

.pdp-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, .55);
  color: #fff;
  cursor: pointer;
}
.pdp-zoom-btn i { font-size: 18px; line-height: 1; }
.pdp-zoom-btn:hover { background: rgba(17, 24, 39, .75); }
.pdp-zoom-btn[hidden] { display: none; }
.pdp-stage.is-room .pdp-zoom-btn,
.pdp-stage.is-zooming .pdp-zoom-btn { display: none; }

@media (max-width: 767px) {
  .pdp-zoom-btn { right: 8px; bottom: 8px; width: 34px; height: 34px; }
}

/* The full-screen viewer. */
html.pdp-viewer-open { overflow: hidden; }

.pdp-viewer {
  position: fixed;
  inset: 0;
  /* Over the site header, the phone's bottom bar and the help button. */
  z-index: 100000;
  background: rgba(6, 10, 20, .94);
  color: #fff;
}
.pdp-viewer[hidden] { display: none; }

.pdp-viewer-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  padding: 64px 72px 84px;
}

.pdp-viewer-img {
  /* Fitted to the screen less the canvas padding: a percentage would be
     taken from the photograph's own (large) size inside the flex box. */
  max-width: calc(100vw - 144px);
  max-height: calc(100vh - 148px);
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  cursor: zoom-in;
  background: #fff;
}
.pdp-viewer.is-zoomed .pdp-viewer-img { cursor: grab; }
.pdp-viewer.is-zoomed .pdp-viewer-img:active { cursor: grabbing; }

.pdp-viewer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}
.pdp-viewer button:hover { background: rgba(255, 255, 255, .2); }
.pdp-viewer button i { font-size: 20px; line-height: 1; }

.pdp-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  z-index: 2;
}

.pdp-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  z-index: 2;
}
.pdp-viewer-nav.is-prev { left: 16px; }
.pdp-viewer-nav.is-next { right: 16px; }
.pdp-viewer.is-single .pdp-viewer-nav { display: none; }

.pdp-viewer-tools {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .85);
}
.pdp-viewer-tools button { width: 38px; height: 38px; }
.pdp-viewer-level {
  min-width: 48px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pdp-viewer-count {
  position: absolute;
  top: 26px;
  left: 20px;
  font-size: 14px;
  opacity: .8;
}

@media (max-width: 767px) {
  .pdp-viewer-canvas { padding: 60px 8px 80px; }
  .pdp-viewer-img { max-width: calc(100vw - 16px); max-height: calc(100vh - 140px); }
  .pdp-viewer-nav { width: 40px; height: 40px; top: auto; bottom: 22px; transform: none; }
  .pdp-viewer-nav.is-prev { left: 12px; }
  .pdp-viewer-nav.is-next { right: 12px; }
}

/* ---- Compact rail card: same look as the New Arrivals card on the home page ---- */
.pdp-card { padding: 8px; border-radius: 14px; border-color: #e8ecf3; box-shadow: 0 1px 6px rgba(15, 23, 42, .05); }
.pdp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(24, 72, 144, .12); border-color: #b9cdef; }
.pdp-card-img { aspect-ratio: auto; height: 140px; border-radius: 10px; background: #f3f5f9; }
.pdp-card-wish { top: 14px; right: 14px; width: 26px; height: 26px; font-size: 13px; }
.pdp-card-body { padding: 9px 2px 2px; gap: 2px; }
.pdp-card-name { font-size: 13px; font-weight: 700; }
.pdp-card-sub { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #64748b; }
.pdp-card-price { font-size: 15px; font-weight: 800; margin-top: 3px; }
.pdp-card-price span { font-size: 10.5px; }
.pdp-card-price-alt, .pdp-card-stock { font-size: 10.5px; }
@media (max-width: 575px) {
  .pdp-card-img { height: 118px; }
  .pdp-card-name { font-size: 12.5px; }
  .pdp-card-price { font-size: 14px; }
}

/* ---- Product specifications poster & card button ---------------- */
.pdp-specs-frame {
  --pdp-k: calc(var(--pdp-base, 1) * var(--pdp-fit, 1));
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: calc(24px * var(--pdp-k)) calc(28px * var(--pdp-k));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  border-radius: var(--pdp-radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 85% 50%, rgba(24, 72, 144, 0.06), transparent 65%), linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #f1f5f9 100%);
}

.pdp-specs-frame * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.dark-mode .pdp-specs-frame {
  background: radial-gradient(circle at 85% 50%, rgba(56, 189, 248, 0.08), transparent 65%), linear-gradient(135deg, #090e17 0%, #0f172a 50%, #1e293b 100%);
}

.pdp-stage .pdp-specs-frame[hidden] { display: none !important; }

.pdp-specs-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(16px * var(--pdp-k, 1));
  margin-top: calc(18px * var(--pdp-k, 1));
}

.pdp-specs-poster-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(12px * var(--pdp-k, 1)) calc(16px * var(--pdp-k, 1));
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: calc(12px * var(--pdp-k, 1));
  border-left: 4px solid #184890;
}

.dark-mode .pdp-specs-poster-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: #38bdf8;
}

.pdp-specs-poster-label {
  font-size: calc(13px * var(--pdp-k, 1));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.dark-mode .pdp-specs-poster-label {
  color: #94a3b8;
}

.pdp-specs-poster-value {
  font-size: calc(18px * var(--pdp-k, 1));
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark-mode .pdp-specs-poster-value {
  color: #f8fafc;
}

.pdp-specs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(6px * var(--pdp-k));
}

.pdp-specs-frame:not(.is-tile) .pdp-specs-img {
  object-fit: contain;
}

/* Right-hand column View Card button */
.pdp-specs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pdp-specs-header-row .pdp-specs-title {
  margin: 0;
}

.pdp-specs-view-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #184890;
  background: #f0f4fa;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.pdp-specs-view-card-btn:hover {
  background: #184890;
  color: #fff;
  border-color: #184890;
}

.dark-mode .pdp-specs-view-card-btn {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.dark-mode .pdp-specs-view-card-btn:hover {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}


/* ---- Tank capacity: the other lines of the same size table ------------ */
.pdp-capacity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdp .pdp-capacity {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1.5px solid var(--pdp-line);
  border-radius: 999px;
  background: var(--pdp-surface);
  color: var(--pdp-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.pdp .pdp-capacity:hover { border-color: var(--pdp-blue); color: var(--pdp-blue); }
.pdp .pdp-capacity.is-active {
  border-color: var(--pdp-blue);
  background: var(--pdp-blue);
  color: var(--pdp-surface);
}
.pdp .pdp-capacity.is-out:not(.is-active) {
  opacity: .55;
  text-decoration: line-through;
}

/* Minimum order quantity, under the price. */
.pdp-moq {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pdp-blue-soft);
  color: var(--pdp-blue);
  font-size: 12.5px;
  line-height: 1.4;
}
.pdp-moq strong { font-weight: 700; }
