/* Public website — published content (Phase C3): catalogue, cards, articles, detail pages and the CMS block
   renderer. Same sizes and states as the Tailwind classes of the Next.js pages. */
.lead-muted { margin: 0; max-width: 42rem; font-size: var(--text-body-lg); color: var(--text-muted); }
.pre-line { white-space: pre-line; }
.readable { max-width: 48rem; margin-left: auto; margin-right: auto; }
.icon-tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: var(--radius-2xl); background: color-mix(in srgb, var(--brand-accent) 10%, transparent); color: var(--brand-accent); }
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }
.icon-tile-lg { width: 3.5rem; height: 3.5rem; }
.icon-tile-lg .icon { width: 1.75rem; height: 1.75rem; }
.link-accent { display: inline-flex; align-items: center; gap: 0.375rem; flex-shrink: 0; font-size: var(--text-small); font-weight: 600; color: var(--state-info-text); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.pill-cta { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.75rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font-size: var(--text-small); font-weight: 600; text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.pill-cta:hover { text-decoration: none; }
.pill-cta-accent { background: var(--brand-accent); color: #fff; }
.pill-cta-accent:hover { background: color-mix(in srgb, var(--brand-accent) 90%, black); }
.pill-cta-outline { border-color: var(--border-default); color: var(--text-primary); }
.pill-cta-outline:hover { border-color: var(--brand-accent); color: var(--state-info-text); }
.service-group, .service-card, .content-card { box-shadow: 0 1px 3px rgb(16 24 40 / 0.06), 0 1px 2px rgb(16 24 40 / 0.04); }

/* ---------- services ---------- */
.service-groups { display: flex; flex-direction: column; gap: 2rem; }
.service-group { padding: 1.75rem; border: 1px solid var(--border-default); border-radius: var(--radius-3xl); background: var(--bg-surface); }
.service-group-head { display: flex; flex-direction: column; gap: 1rem; }
.service-group-title { display: flex; align-items: flex-start; gap: 1rem; }
.service-group-title h2 { font-size: var(--text-h4); line-height: 1.3; }
.service-group-title h2 a { color: inherit; text-decoration: none; }
.service-group-title h2 a:hover { color: var(--state-info-text); }
.service-group-title p { margin: 0.25rem 0 0; max-width: 42rem; font-size: var(--text-small); color: var(--text-muted); }
.service-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.service-links a { display: block; padding: 0.75rem 1rem; border: 1px solid var(--border-default); border-radius: var(--radius); background: var(--bg-muted); color: var(--text-primary); font-size: var(--text-small); font-weight: 500; text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; }
.service-links a:hover { border-color: var(--brand-accent); color: var(--state-info-text); }
.category-intro { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.service-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; border: 1px solid var(--tk-card-border, var(--border-default)); border-radius: var(--radius-2xl); background: var(--tk-card-bg, var(--bg-surface)); color: var(--text-primary); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.service-card h3, .service-card h2 { color: var(--tk-card-title, var(--tk-h3, var(--text-primary))); }
.service-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-elevated); text-decoration: none; }
.service-card:hover h2 { color: var(--state-info-text); }
.service-card h2 { font-size: 1rem; line-height: 1.4; }
.service-card p { margin: 0; font-size: var(--text-small); color: var(--text-muted); }
.service-card-more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; font-size: var(--text-small); font-weight: 600; color: var(--state-info-text); }
.service-kicker { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.service-kicker p { margin: 0; font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- FAQ (native details) ---------- */
.faq { margin-top: 3rem; }
.faq-title { font-size: var(--text-h4); }
.faq-list { margin-top: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-size: var(--text-small); font-weight: 500; text-align: left; list-style: none; cursor: pointer; border-radius: var(--radius-sm); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover span { text-decoration: underline; }
.faq-chevron { color: var(--text-muted); transition: transform 0.2s ease; margin-top: 0.125rem; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding-bottom: 1rem; font-size: var(--text-small); color: var(--text-muted); white-space: pre-line; }

/* ---------- cards and lists ---------- */
.related { margin-top: 4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.related-title { font-size: var(--text-h3); }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.content-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--tk-card-border, var(--border-default)); border-radius: var(--radius-2xl); background: var(--tk-card-bg, var(--bg-surface)); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.content-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-elevated); }
.content-card-image { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.content-card-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--bg-muted); color: var(--text-muted); }
.content-card-placeholder .icon { width: 2.5rem; height: 2.5rem; }
.content-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.25rem; }
.content-card-body > p { margin: 0; }
.content-card-eyebrow { font-size: var(--text-overline); font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--state-info-text); }
.content-card-title { font-size: 1rem; line-height: 1.4; color: var(--tk-card-title, var(--tk-h3, var(--text-primary))); }
.content-card-title a { color: inherit; text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; }
.stretched-link:focus-visible { outline: none; }
.content-card:focus-within { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.content-card-text { font-size: var(--text-small); color: var(--text-muted); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.content-card-meta { margin-top: auto !important; padding-top: 0.5rem; font-size: var(--text-caption); color: var(--text-muted); }
.content-card-more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: auto; padding-top: 0.5rem; font-size: var(--text-small); font-weight: 600; color: var(--state-info-text); }
.list-toolbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.list-chips { margin-bottom: 2rem; }
.chip-lg { min-height: 0; padding: 0.5rem 1rem; background: var(--bg-surface); transition: border-color 0.15s ease; }
.chip-lg:hover { border-color: var(--brand-accent); background: var(--bg-surface); }
.chip.is-accent { border-color: var(--brand-accent); background: var(--brand-accent); color: #fff; }
.inline-search { display: flex; gap: 0.5rem; width: 100%; }
.inline-search input { flex: 1; min-width: 0; min-height: 2.25rem; padding: 0.25rem 0.75rem; border: 1px solid var(--border-default); border-radius: var(--radius); background: var(--bg-surface); font-size: var(--text-small); }
.inline-search input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-accent) 50%, transparent); outline-offset: 0; border-color: var(--brand-accent); }
.inline-search .btn { min-height: 2.25rem; padding: 0 0.625rem; }
.result-line { margin: 0 0 1.5rem; font-size: var(--text-small); color: var(--text-muted); }
.site-pager { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 2.5rem; }

/* ---------- articles and detail pages ---------- */
.article-stack { display: flex; flex-direction: column; gap: 2rem; }
.article-stack > p { margin: 0; }
.feature-image { display: block; width: 100%; height: auto; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); object-fit: cover; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.tag-list a { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--bg-muted); color: var(--text-primary); font-size: var(--text-caption); text-decoration: none; }
.tag-list a:hover { text-decoration: underline; }
.callout { padding: 1.5rem; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); background: var(--tk-section-alt, var(--bg-muted)); }
.callout > p { margin: 0.25rem 0 0; }
.callout-title { margin: 0 !important; font-family: var(--font-heading); font-size: 1rem; font-weight: 500; }
.btn-compact { min-height: 2rem; margin-top: 1rem; padding: 0 0.625rem; }
.btn-block { width: 100%; }
.caption { font-size: var(--text-caption); }
.detail-layout { display: grid; gap: 2.5rem; }
.detail-main { display: flex; min-width: 0; flex-direction: column; gap: 2.5rem; }
.detail-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.story { display: flex; flex-direction: column; gap: 0.75rem; }
.story h2 { font-size: var(--text-h4); }
.facts { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 1.25rem; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); background: var(--bg-surface); font-size: var(--text-small); }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 500; }
.tech-list { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; margin: 0.25rem 0 0; padding: 0; }
.tech-list li { padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--bg-muted); font-size: var(--text-caption); font-weight: 400; }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.gallery-figure { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.gallery-figure figcaption { font-size: var(--text-small); color: var(--text-muted); }
.gallery-image { display: block; width: 100%; height: auto; border: 1px solid var(--border-default); border-radius: var(--radius-xl); object-fit: cover; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tk-card-border, var(--border-default)); border-radius: var(--radius-xl); background: var(--tk-card-bg, var(--bg-surface)); }
.product-card-image { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.product-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.25rem; }
.product-card-body > p { margin: 0; }
.product-card-type { font-size: var(--text-caption); color: var(--text-muted); }
.product-card-title { font-size: 1rem; line-height: 1.4; color: var(--tk-card-title, var(--tk-h3, var(--text-primary))); }
.product-card-title a { color: inherit; text-decoration: none; }
.product-card-title a:hover { text-decoration: underline; }
.product-card-price { margin-top: auto !important; padding-top: 0.5rem; font-weight: 500; }
.product-aside { height: fit-content; padding: 1.25rem; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--bg-surface); gap: 1rem; }
.product-aside > p { margin: 0; }
.price-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; font-weight: 500; }
.inline-facts { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--text-small); }
.inline-facts dt, .inline-facts dd { display: inline; margin: 0; }
.inline-facts dt { color: var(--text-muted); }

/* ---------- content renderer (CMS blocks) ---------- */
.content-renderer { display: flex; flex-direction: column; gap: 1.5rem; font-size: var(--text-body-lg); line-height: 1.625; }
.content-renderer > *, .cr-section > * { margin: 0; }
.cr-h2 { font-size: var(--text-h3); text-wrap: balance; }
.cr-h3 { font-size: var(--text-h4); text-wrap: balance; }
.cr-h4 { font-size: var(--text-h5); text-wrap: balance; }
.cr-paragraph { white-space: pre-line; }
.cr-list { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.5rem; }
ul.cr-list { list-style: disc; }
ol.cr-list { list-style: decimal; }
.inline-link { font-weight: 500; color: var(--tk-link, var(--state-info-text)); text-decoration: underline; text-underline-offset: 4px; }
.inline-link:hover { color: var(--tk-link-hover, var(--tk-link, var(--state-info-text))); }
.cr-figure { display: flex; flex-direction: column; gap: 0.5rem; }
.cr-figure figcaption, .cr-video figcaption { font-size: var(--text-small); color: var(--text-muted); }
.cr-medium { width: 100%; max-width: 36rem; margin-left: auto !important; margin-right: auto !important; }
.cr-wide { width: 100%; }
.cr-full { margin-left: -1rem !important; margin-right: -1rem !important; }
.cr-image { display: block; width: 100%; height: auto; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); background: var(--bg-muted); object-fit: cover; }
.cr-video { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.cr-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); background: #000; }
.cr-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cr-quote { margin: 0; padding-left: 1.25rem; border-left: 4px solid var(--brand-accent); font-family: var(--font-heading); font-size: 1rem; }
.cr-quote p { margin: 0; }
.cr-quote footer { margin-top: 0.5rem; font-family: var(--font-sans); font-size: var(--text-small); color: var(--text-muted); }
.cr-button { min-height: 2.25rem; }
.cr-divider { margin: 0.5rem 0; border-color: var(--border-default); }
.cr-section { display: flex; flex-direction: column; gap: 1.5rem; }
.cr-section-title { font-size: var(--text-h3); }
.cr-tone-muted { padding: 1.5rem; border-radius: var(--radius-2xl); background: var(--tk-section-alt, var(--bg-muted)); }
.cr-tone-brand { padding: 1.5rem; border-radius: var(--radius-2xl); background: var(--brand-deep); color: #fff; }
.cr-tone-brand h2, .cr-tone-brand h3, .cr-tone-brand h4 { color: #fff; }
.cr-tone-brand a { color: var(--brand-secondary); }

@media (min-width: 640px) {
  .service-group-head { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .service-links, .service-cards, .card-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-full { margin-left: 0 !important; margin-right: 0 !important; }
  .cr-tone-muted, .cr-tone-brand { padding: 2rem; }
}
@media (min-width: 1024px) {
  .service-links, .service-cards, .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .inline-search { max-width: 24rem; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 18rem; }
  .detail-layout-wide-aside { grid-template-columns: minmax(0, 1fr) 20rem; }
  .product-aside { position: sticky; top: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card:hover, .content-card:hover { transform: none; }
}

/* ---------- search results (site/search.php) ---------- */
.search-page { display: flex; flex-direction: column; gap: 1.5rem; max-width: 56rem; }
.search-page-form { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-page-form input { flex: 1 1 16rem; min-width: 0; height: 2.75rem; padding: 0 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-surface); font-size: var(--text-body); }
.search-page-form input:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 1px; }
.search-page-form input[aria-invalid="true"] { border-color: var(--state-error); }
.search-page-hint { position: static; flex-basis: 100%; padding: 0; box-shadow: none; background: transparent; }
.search-summary { margin: 0; color: var(--text-muted); font-size: var(--text-small); }
.search-group { display: flex; flex-direction: column; gap: 0.75rem; }
.search-group h2 { font-size: var(--text-h5); font-weight: 600; color: var(--tk-h2, var(--text-primary)); }
.search-group-count { color: var(--text-muted); font-weight: 400; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.search-results li { padding: 0.875rem 1rem; border: 1px solid var(--border-default); border-radius: var(--radius); background: var(--bg-surface); }
.search-results a { font-weight: 600; color: var(--state-info-text); }
.search-results p { margin: 0.25rem 0 0; font-size: var(--text-small); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-more { margin: 0; font-size: var(--text-small); }
.search-more a { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; color: var(--state-info-text); }
/* Search results with thumbnail, category and description; category filter; pages; nothing-relevant actions */
.search-results li.search-result { display: flex; align-items: flex-start; gap: 1rem; }
.search-result-thumb { flex-shrink: 0; width: 4rem; height: 4rem; border-radius: var(--radius); object-fit: cover; background: var(--bg-muted); }
.search-result-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--state-info-text); }
.search-result-icon .icon { width: 1.5rem; height: 1.5rem; }
.search-result-text { display: flex; flex-direction: column; min-width: 0; gap: 0.125rem; }
.search-result-category { color: var(--text-muted); font-size: var(--text-caption); font-weight: 500; }
.search-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-filter a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.25rem; padding: 0 0.875rem; border: 1px solid var(--border-default); border-radius: 999px; background: var(--bg-surface); color: var(--text-secondary); font-size: var(--text-small); font-weight: 500; text-decoration: none; }
.search-filter a span { color: var(--text-muted); font-size: var(--text-caption); }
.search-filter a:hover { border-color: var(--border-strong); text-decoration: none; }
.search-filter a[aria-current="page"] { border-color: var(--brand-primary); background: var(--brand-primary); color: var(--text-inverse); }
.search-filter a[aria-current="page"] span { color: inherit; }
.search-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.search-pages a { display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.75rem; border: 1px solid var(--border-default); border-radius: var(--radius); color: var(--text-primary); font-size: var(--text-small); text-decoration: none; }
.search-pages a[aria-current="page"] { border-color: var(--brand-primary); background: var(--brand-primary); color: var(--text-inverse); font-weight: 600; }
.search-pages-gap { color: var(--text-muted); }
.search-none-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.search-none-browse { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; margin: 1rem 0 0; color: var(--text-muted); font-size: var(--text-small); }
.search-none-browse a { font-weight: 500; }

/* ---------- Wishlist (2026-11-09): hearts on product cards and pages, and /wishlist ----------
   Colours from Admin → Settings → Branding (/theme.css) with the site defaults as fallbacks: a saved heart is the
   accent, focus rings the secondary text colour. The buttons appear only once wishlist.js is running. */
.product-card { position: relative; }
.wishlist-toggle {
  --wish-on: var(--theme-accent, var(--brand-secondary));
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border-default); border-radius: 999px; background: var(--bg-surface); color: var(--text-secondary); box-shadow: var(--shadow-sm); cursor: pointer;
}
.wishlist-toggle[hidden], .wishlist-save[hidden] { display: none; }
.wishlist-toggle .icon { width: 1.375rem; height: 1.375rem; transition: transform 0.2s ease; }
.wishlist-toggle:hover .icon { transform: scale(1.12); }
.wishlist-toggle[aria-pressed="true"] { color: var(--wish-on); }
.wishlist-toggle[aria-pressed="true"] .icon, .wishlist-save.is-saved .icon { fill: currentColor; }
.wishlist-toggle:focus-visible, .wishlist-save:focus-visible, .wishlist-remove:focus-visible { outline: 2px solid var(--theme-secondary-text, var(--brand-accent)); outline-offset: 2px; }
.wishlist-save { --wish-on: var(--theme-accent, var(--brand-secondary)); gap: 0.5rem; margin-top: 0.75rem; }
.wishlist-save.is-saved .icon { color: var(--wish-on); }

.wishlist-status { min-height: 1.5rem; margin: 0 0 1rem; color: var(--text-secondary); font-size: var(--text-small); }
.wishlist-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.wishlist-item {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem;
  border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--bg-surface);
}
.wishlist-thumb { display: flex; align-items: center; justify-content: center; width: 6rem; height: 6rem; overflow: hidden; border-radius: var(--radius); background: var(--bg-muted); color: var(--text-muted); }
.wishlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-thumb .icon { width: 1.75rem; height: 1.75rem; }
.wishlist-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.wishlist-body > p { margin: 0; }
.wishlist-category { color: var(--text-muted); font-size: var(--text-caption); }
.wishlist-name { margin: 0; font-size: 1.0625rem; line-height: 1.4; overflow-wrap: anywhere; }
.wishlist-name a { color: inherit; text-decoration: none; }
.wishlist-name a:hover { text-decoration: underline; }
.wishlist-price { font-weight: 600; }
.wishlist-availability { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--text-secondary); font-size: var(--text-small); }
.wishlist-availability::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.wishlist-availability.is-available { color: var(--state-success-text); }
.wishlist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.wishlist-actions .btn { min-height: 2.75rem; }
.wishlist-remove {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.75rem; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--text-secondary); font: inherit; font-size: var(--text-small); cursor: pointer;
}
.wishlist-remove:hover { background: var(--bg-muted); color: var(--text-primary); }
.wishlist-remove .icon { width: 1rem; height: 1rem; }
@media (min-width: 640px) {
  .wishlist-item { grid-template-columns: 7.5rem minmax(0, 1fr); padding: 1.25rem; }
  .wishlist-thumb { width: 7.5rem; height: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wishlist-toggle .icon { transition: none; }
}
.product-card:not(:has(.product-card-image)) .product-card-body { padding-right: 4rem; }   /* room for the heart */

/* ---------- Basket (2026-11-09): "Add to Basket" on product pages and the /basket page ---------- */
.basket-add { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.basket-add[hidden] { display: none; }
.basket-options { display: grid; gap: 0.375rem; margin: 0; padding: 0; border: 0; }
.basket-options legend { margin-bottom: 0.25rem; font-size: var(--text-small); font-weight: 600; }
.basket-option { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--border-default); border-radius: var(--radius); font-size: var(--text-small); cursor: pointer; }
.basket-option:has(input:checked) { border-color: var(--theme-secondary, var(--brand-accent)); }
.basket-qty { display: grid; grid-template-columns: auto 6rem; align-items: center; gap: 0.25rem 0.75rem; font-size: var(--text-small); }
.basket-qty input { min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; }
.basket-qty input[aria-invalid="true"] { border-color: var(--state-error, var(--text-primary)); }
.basket-qty .caption { grid-column: 1 / -1; }
.basket-add-status:empty { display: none; }

.basket-page-status { min-height: 1.5rem; margin: 0 0 1rem; color: var(--text-secondary); font-size: var(--text-small); }
.basket-layout { display: grid; gap: 1.5rem; align-items: start; }
.basket-lines { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.basket-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main total" "qty remove"; gap: 0.75rem 1rem; align-items: center;
  padding: 1rem; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--bg-surface);
}
.basket-line-main { grid-area: main; min-width: 0; }
.basket-line-main p { margin: 0; }
.basket-line-name { font-weight: 600; overflow-wrap: anywhere; }
.basket-line-total { grid-area: total; margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.basket-line-qty { grid-area: qty; display: inline-flex; align-items: center; gap: 0.25rem; }
.basket-qty-value { min-width: 2rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.basket-step, .basket-remove {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.5rem;
  border: 1px solid var(--border-default); border-radius: var(--radius); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: var(--text-small); cursor: pointer;
}
.basket-remove { grid-area: remove; justify-self: end; border-color: transparent; color: var(--text-secondary); }
.basket-step:hover:not(:disabled), .basket-remove:hover { background: var(--bg-muted); }
.basket-step:disabled { color: var(--text-disabled); cursor: not-allowed; }
.basket-step:focus-visible, .basket-remove:focus-visible { outline: 2px solid var(--theme-secondary-text, var(--brand-accent)); outline-offset: 2px; }
.basket-summary { display: grid; gap: 0.75rem; padding: 1.25rem; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--bg-surface); }
.basket-summary-title { margin: 0; font-size: 1.125rem; }
.basket-summary p { margin: 0; }
.basket-totals { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; margin: 0; }
.basket-totals dt { color: var(--text-secondary); }
.basket-totals dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.basket-totals .basket-subtotal { font-size: 1.125rem; }
@media (min-width: 768px) {
  .basket-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
  .basket-line { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "main qty total remove"; }
}

/* Promotions on the wishlist and basket pages (product-card-pricing.md): the regular price crossed out, as on the card. */
.wishlist-price-was, .basket-line-was { color: var(--st-price-was, var(--text-muted)); font-weight: 500; }
.wishlist-price .store-badge { margin-left: 0.25rem; vertical-align: 0.1em; }
.basket-line-name .store-badge { margin-left: 0.25rem; vertical-align: 0.1em; }
.basket-line-demo { margin: 0.125rem 0 0; color: var(--text-secondary); }
.basket-demo-note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; padding: 0.625rem 0.75rem; border-radius: var(--radius-md); background: var(--bg-muted); color: var(--text-primary); }
