/* Kaduno default theme — catalog pages (ADR-0139 Wave 0).
   Collection, product, search, brand and content-page sections. Same token
   vocabulary as theme.css (--ks-*), same kd-* scoping. */

/* ── Breadcrumbs ──────────────────────────────────────── */
.kd-crumbs {
  font-size: 13px;
  color: var(--ks-text-muted);
}
.kd-crumbs .kd-wrap {
  padding-top: 14px;
  padding-bottom: 6px;
}
.kd-crumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kd-crumb + .kd-crumb::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}
.kd-crumb a:hover {
  text-decoration: underline;
}
.kd-crumb [aria-current] {
  color: var(--ks-text);
}

/* ── Listing head (collection / brand / search) ───────── */
.kd-listing-head .kd-wrap {
  padding-top: 24px;
  padding-bottom: 8px;
}
.kd-listing-head-row {
  display: grid;
  gap: 24px;
  align-items: center;
}
.kd-listing-head-has-image .kd-listing-head-row {
  grid-template-columns: 1fr 320px;
}
.kd-listing-head h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kd-listing-desc {
  margin-top: 10px;
  color: var(--ks-text-muted);
  max-width: 68ch;
}
.kd-listing-count {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ks-text-muted);
}
.kd-listing-media img {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.kd-brand-logo {
  max-height: 56px;
  width: auto;
  margin-bottom: 12px;
}
.kd-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.kd-subcat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ks-border);
  border-radius: 999px;
  background: var(--ks-surface);
  font-size: 14px;
  font-weight: 500;
}
.kd-subcat img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.kd-subcat small {
  color: var(--ks-text-muted);
}
.kd-subcat:hover {
  border-color: var(--ks-primary);
}

/* ── Filters and sort ─────────────────────────────────── */
.kd-facet-bar {
  border-top: 1px solid var(--ks-border);
  border-bottom: 1px solid var(--ks-border);
  background: var(--ks-surface);
  margin-top: 16px;
}
.kd-facet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.kd-facets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-start;
}
.kd-facet {
  position: relative;
}
.kd-facet > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--ks-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kd-facet > summary::-webkit-details-marker {
  display: none;
}
.kd-facet > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.kd-facet[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.kd-facet-active-count {
  background: var(--ks-primary);
  color: var(--ks-primary-text);
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 6px;
}
.kd-facet-values {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  min-width: 220px;
  max-height: 320px;
  overflow: auto;
  background: var(--ks-surface);
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  position: absolute;
  z-index: 20;
}
.kd-facet-value {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
}
.kd-facet-value:hover {
  background: var(--ks-bg);
}
.kd-facet-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ks-border);
  border-radius: 4px;
  flex: none;
}
.kd-facet-value.kd-active .kd-facet-check {
  background: var(--ks-primary);
  border-color: var(--ks-primary);
  box-shadow: inset 0 0 0 3px var(--ks-surface);
}
.kd-facet-label {
  flex: 1;
}
.kd-facet-count {
  color: var(--ks-text-muted);
  font-size: 12px;
}
.kd-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.kd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ks-bg);
  border: 1px solid var(--ks-border);
  font-size: 13px;
}
.kd-chip-clear {
  border-style: dashed;
  color: var(--ks-text-muted);
}
.kd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.kd-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.kd-sort-label {
  color: var(--ks-text-muted);
  margin-right: 6px;
}
.kd-sort-option {
  padding: 6px 10px;
  border-radius: 8px;
}
.kd-sort-option:hover {
  background: var(--ks-bg);
}
.kd-sort-option.kd-active {
  background: var(--ks-text);
  color: var(--ks-bg);
}

/* ── Listing grid ─────────────────────────────────────── */
.kd-listing .kd-wrap {
  padding-top: 24px;
}
.kd-products-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kd-products-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kd-products-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.kd-listing-group + .kd-listing-group {
  margin-top: 36px;
}
.kd-listing-group-title {
  font-size: 20px;
  margin-bottom: 14px;
}
.kd-product-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ks-text-muted);
}
/* Child article numbers of a variant family, under the title. */
.kd-product-variant-skus {
  margin: 2px 0 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ks-text-muted);
  overflow-wrap: anywhere;
}
.kd-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--ks-text-muted);
}
.kd-empty .kd-btn {
  margin-top: 12px;
}

/* ── Pagination ───────────────────────────────────────── */
.kd-pagination {
  margin: 8px 0 40px;
}
.kd-pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kd-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.kd-page-num,
.kd-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--ks-border);
  background: var(--ks-surface);
  font-size: 14px;
}
.kd-page-num.kd-active {
  background: var(--ks-primary);
  border-color: var(--ks-primary);
  color: var(--ks-primary-text);
}
.kd-page-link.kd-disabled {
  opacity: 0.45;
}
.kd-page-summary {
  text-align: center;
  font-size: 13px;
  color: var(--ks-text-muted);
  margin-top: 10px;
}

/* ── Product page ─────────────────────────────────────── */
.kd-pdp .kd-wrap {
  padding-top: 20px;
  padding-bottom: 40px;
}
.kd-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}
.kd-gallery-frame {
  position: relative;
  background: var(--ks-surface);
  border: 1px solid var(--ks-border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.kd-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kd-gallery-frame .kd-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
/* catalog_enable_zoom — click-to-enlarge, no lightbox/JS framework needed. */
.kd-gallery-frame.kd-zoomable .kd-gallery-main {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.kd-gallery-frame.kd-zoomable.kd-zoomed {
  overflow: visible;
  z-index: 5;
}
.kd-gallery-frame.kd-zoomable.kd-zoomed .kd-gallery-main {
  cursor: zoom-out;
  transform: scale(1.7);
}
.kd-gallery-fallback {
  font-size: 96px;
}
.kd-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.kd-gallery-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1.5px solid var(--ks-border);
  background: var(--ks-surface);
  padding: 4px;
  overflow: hidden;
}
.kd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kd-gallery-thumb.kd-active {
  border-color: var(--ks-primary);
}
.kd-pdp-info {
  position: sticky;
  top: 90px;
}
.kd-pdp-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}
.kd-pdp-sku {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ks-text-muted);
}
.kd-pdp-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 8px;
}
.kd-pdp-now {
  font-size: 28px;
  font-weight: 700;
}
.kd-pdp-vat {
  font-size: 13px;
  color: var(--ks-text-muted);
}
.kd-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0 0 12px;
}
.kd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}
.kd-stock-out .kd-dot {
  background: #d97706;
}
.kd-stock-low .kd-dot {
  background: #d97706;
}
.kd-delivery {
  font-size: 14px;
  margin: 0 0 16px;
}
.kd-delivery small {
  display: block;
  color: var(--ks-text-muted);
}
.kd-buy-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 18px 0;
}
.kd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  background: var(--ks-surface);
}
.kd-qty button {
  width: 42px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 18px;
}
.kd-qty span {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}
.kd-add-btn {
  flex: 1;
  height: 46px;
  font-size: 15px;
}
.kd-add-btn[data-ks-unavailable] {
  opacity: 0.6;
}
/* Server-rendered configurator controls (`[data-ks-island-ssr]`), shown until
   the island has its prices and stock. Mirrors the island's own option-choice
   look so the swap does not visibly jump. */
.kd-opt-label {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ks-text-muted);
}
.kd-opt-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kd-opt-value {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--ks-border);
  background: var(--ks-surface);
  color: var(--ks-text);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
}
.kd-opt-value:hover {
  border-color: var(--ks-text);
}
.kd-opt-value.sel {
  border-color: var(--ks-primary);
  background: var(--ks-primary);
  color: var(--ks-primary-text);
}
.kd-opt-value.kd-opt-out,
.kd-opt-value[disabled] {
  opacity: 0.4;
  text-decoration: line-through;
}

.kd-configurator:empty {
  min-height: 120px;
  border: 1px dashed var(--ks-border);
  border-radius: 12px;
  margin: 18px 0;
}
.kd-pdp-desc {
  margin-top: 8px;
  line-height: 1.65;
}
.kd-pdp-desc p {
  margin: 0 0 12px;
}
.kd-pdp-block h2 {
  font-size: 22px;
  margin-bottom: 14px;
}
.kd-attr-group + .kd-attr-group {
  margin-top: 18px;
}
.kd-attr-group h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ks-text-muted);
  margin-bottom: 6px;
}
.kd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kd-table th,
.kd-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ks-border);
  vertical-align: top;
}
.kd-table th {
  width: 34%;
  color: var(--ks-text-muted);
  font-weight: 500;
}
.kd-swatches {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
  vertical-align: middle;
}
.kd-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--ks-border);
  display: inline-block;
}
.kd-documents {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.kd-document {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  background: var(--ks-surface);
}
.kd-document .kd-icon {
  grid-row: span 2;
  width: 24px;
  height: 24px;
}
.kd-document small {
  color: var(--ks-text-muted);
}
.kd-related {
  border-top: 1px solid var(--ks-border);
}

/* ── Search ───────────────────────────────────────────── */
.kd-search-form {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin-top: 16px;
}
.kd-search-form input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  font: inherit;
  background: var(--ks-surface);
}
.kd-search-empty {
  margin-top: 16px;
  color: var(--ks-text-muted);
}
[data-ks-search-feedback] {
  margin-top: 16px;
}
[data-ks-search-feedback]:empty {
  display: none;
}

/* ── Content pages ────────────────────────────────────── */
.kd-page-head .kd-wrap {
  padding-top: 32px;
}
.kd-page-head h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kd-page-meta {
  font-size: 13px;
  color: var(--ks-text-muted);
}
.kd-page-media img {
  border-radius: 16px;
  margin-top: 20px;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.kd-page-body .kd-wrap {
  padding-top: 24px;
  padding-bottom: 56px;
}
.kd-page-body-prose .kd-page-content {
  max-width: 760px;
}

/* ── Brands and category index ────────────────────────── */
.kd-letter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 24px;
}
.kd-letter-bar a {
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--ks-border);
  font-size: 13px;
  font-weight: 600;
}
.kd-letter-group + .kd-letter-group {
  margin-top: 24px;
}
.kd-letter {
  font-size: 18px;
  color: var(--ks-text-muted);
  margin-bottom: 8px;
}
.kd-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.kd-brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  background: var(--ks-surface);
}
.kd-brand-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.kd-brand-item small {
  margin-left: auto;
  color: var(--ks-text-muted);
}
.kd-tile-static {
  display: block;
}
.kd-tile-children {
  list-style: none;
  margin: 0;
  padding: 8px 14px 14px;
  font-size: 13px;
  color: var(--ks-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

/* ── 404 ──────────────────────────────────────────────── */
.kd-not-found-body {
  text-align: center;
  padding: 72px 24px;
  max-width: 640px;
}
.kd-not-found .kd-search-form {
  margin: 20px auto;
}
.kd-not-found .kd-cta-row {
  justify-content: center;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .kd-pdp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kd-pdp-info {
    position: static;
  }
  .kd-products-4,
  .kd-products-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kd-listing-head-has-image .kd-listing-head-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .kd-products-3,
  .kd-products-4,
  .kd-products-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kd-facet-values {
    position: static;
    box-shadow: none;
  }
  .kd-table th {
    width: 42%;
  }
}

/* Server-rendered purchase fallback hides once the React island has painted —
   `mounted`, not the `loading` it reports while it is still fetching price,
   variants and stock (ADR-0139 Wave 0). */
[data-ks-island-status='mounted'] [data-ks-island-ssr] {
  display: none;
}

/* Product card is an <article> so listings read as a list of items; the link fills it. */
.kd-product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Brand line sits beside the product link (a link inside a link is invalid HTML). */
.kd-product > .kd-product-brand {
  display: block;
  padding: 10px 14px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ks-text-muted, #6b7280);
  text-decoration: none;
}
.kd-product > a.kd-product-brand:hover {
  text-decoration: underline;
}

/* ── Reviews ──────────────────────────────────────────── */
.kd-reviews .kd-wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--ks-border);
}
.kd-reviews-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}
.kd-reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 28px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ks-surface) 92%, var(--ks-text) 8%);
}
.kd-reviews-avg {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.kd-stars {
  display: flex;
  gap: 2px;
  color: var(--ks-border);
  font-size: 16px;
}
.kd-stars-sm {
  font-size: 13px;
}
.kd-star-full {
  color: #f59e0b;
}
.kd-reviews-count {
  font-size: 12px;
  color: var(--ks-text-muted);
}
.kd-reviews-bars {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kd-reviews-bar-row {
  display: grid;
  grid-template-columns: 12px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ks-text-muted);
}
.kd-reviews-bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--ks-border);
  overflow: hidden;
}
.kd-reviews-bar-fill {
  height: 100%;
  background: #f59e0b;
}
.kd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kd-review {
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  padding: 16px;
}
.kd-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.kd-review-author {
  font-weight: 600;
  font-size: 13px;
}
.kd-review-verified {
  font-size: 11px;
  color: #16a34a;
  background: color-mix(in srgb, #16a34a 12%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
}
.kd-review-title {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0;
}
.kd-review-body {
  font-size: 13px;
  color: var(--ks-text-muted);
  line-height: 1.6;
}
.kd-review-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ks-primary) 8%, transparent);
  font-size: 12px;
}
.kd-review-reply-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ks-primary);
  margin: 0 0 2px;
}
.kd-reviews-empty {
  font-size: 13px;
  color: var(--ks-text-muted);
  margin-bottom: 16px;
}
.kd-review-form {
  margin-top: 24px;
}

/* ── FAQ (product / collection) ──────────────────────────── */
.kd-faq .kd-wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--ks-border);
}
.kd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kd-faq-item {
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  padding: 4px 16px;
}
.kd-faq-item summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}
.kd-faq-item summary::-webkit-details-marker {
  display: none;
}
.kd-faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--ks-text-muted);
}
.kd-faq-item[open] summary::after {
  content: '−';
}
.kd-faq-answer {
  padding: 0 0 14px;
  font-size: 13px;
  color: var(--ks-text-muted);
  line-height: 1.6;
}

/* ── Safety data sheets ───────────────────────────────────── */
.kd-sds .kd-wrap {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--ks-border);
}
.kd-sds-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kd-sds-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--ks-border);
  border-radius: 8px;
  font-size: 13px;
}
.kd-sds-title {
  font-weight: 600;
}
.kd-sds-signal {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, #dc2626 12%, transparent);
  color: #dc2626;
}
.kd-sds-supplier {
  color: var(--ks-text-muted);
  font-size: 12px;
}
.kd-sds-download {
  margin-left: auto;
  color: var(--ks-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
}
.kd-sds-download:hover {
  text-decoration: underline;
}

/* ── Recommendations / product Q&A island hosts ──────────── */
.kd-recommendations,
.kd-product-qa {
  margin-top: 8px;
}
.kd-recommendations:empty,
.kd-product-qa:empty {
  display: none;
}

/* ── Course template (templates/product.course.json, K-SHOP-2285) ── */
.kd-course-hero {
  background: var(--ks-surface);
  border-bottom: 1px solid var(--ks-border);
}
.kd-course-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 32px;
}
.kd-course-hero-has-image .kd-course-hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
.kd-course-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.kd-course-lead p {
  margin: 0;
}
.kd-course-hero-media img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.kd-course-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--ks-border);
}
.kd-course-facts dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ks-text-muted);
  margin-bottom: 4px;
}
.kd-course-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.kd-course-facts dd small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ks-text-muted);
}
.kd-course-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 48px;
  align-items: start;
}
.kd-course-article {
  font-size: 17px;
}
.kd-course-article h2,
.kd-course-block h2 {
  font-size: 24px;
  margin: 32px 0 14px;
}
.kd-course-article ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
}
.kd-course-article ul li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--ks-border);
  position: relative;
}
.kd-course-article ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ks-text-muted);
}
.kd-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--ks-border);
}
.kd-timeline-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px 0 10px 18px;
  position: relative;
}
.kd-timeline-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ks-primary);
  border: 2px solid var(--ks-surface);
}
.kd-timeline-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.kd-course-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 24px;
}
.kd-course-dl dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ks-text-muted);
  margin-bottom: 2px;
}
.kd-course-dl dd {
  margin: 0;
}
.kd-course-aside {
  position: sticky;
  top: 90px;
  scroll-margin-top: 90px;
}
.kd-course-card {
  background: var(--ks-surface);
  border: 1px solid var(--ks-border);
  border-radius: 16px;
  padding: 22px;
}
.kd-course-card .kd-pdp-price {
  margin-top: 0;
}
.kd-course-note {
  font-size: 13px;
  color: var(--ks-text-muted);
  margin: 4px 0 0;
}
.kd-course-dates {
  display: grid;
  gap: 8px;
}
.kd-course-dates .kd-opt-value {
  text-align: left;
  width: 100%;
}
.kd-course-links {
  list-style: none;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--ks-border);
  font-size: 14px;
  display: grid;
  gap: 8px;
}
.kd-course-links a {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .kd-course-hero-has-image .kd-course-hero-grid,
  .kd-course-grid {
    grid-template-columns: 1fr;
  }
  .kd-course-aside {
    position: static;
  }
}

/* ── Product block content (sections/product-content.liquid, K-SHOP-2286) ── */
.kd-product-content .kd-wrap {
  padding-top: 0;
}
.kd-product-content-body {
  line-height: 1.65;
}
.kd-product-content-body > * + * {
  margin-top: 16px;
}

/* ── Course enrolment island (course-enrol, K-SHOP-2287) ── */
.kd-course-enrol [data-ks-island-status='mounted'] [data-ks-island-ssr] {
  display: none;
}
.kd-course-dates-ssr {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.kd-course-session {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  background: var(--ks-surface);
  cursor: pointer;
}
.kd-course-session input[type='radio'] {
  grid-row: 1 / span 2;
}
.kd-course-session.kd-active {
  border-color: var(--ks-primary);
  box-shadow: inset 0 0 0 1px var(--ks-primary);
}
.kd-course-session.kd-sold-out {
  opacity: 0.6;
  cursor: default;
}
.kd-course-session-date {
  font-weight: 650;
}
.kd-course-session-meta {
  font-size: 13px;
  color: var(--ks-text-muted);
}
.kd-course-session-body {
  display: flex;
  flex-direction: column;
}
.kd-course-seats {
  font-size: 12px;
  color: var(--ks-text-muted);
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
}
.kd-course-seats .kd-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ks-primary);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.kd-course-sessions {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.kd-course-sessions legend {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.kd-course-participants {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 14px;
}
.kd-course-attendees {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
}
.kd-course-guest {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
}
.kd-course-guest label {
  display: grid;
  gap: 4px;
}
.kd-course-total {
  margin: 8px 0;
  font-size: 15px;
}
.kd-course-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.kd-course-actions .kd-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ks-primary);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.kd-course-done-title,
.kd-course-waitlist-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
}
.kd-course-price {
  margin: 0 0 12px;
}
.kd-course-price strong {
  font-size: 24px;
}
