/* Shared product cards; catalog and detail layouts stay scoped to their pages. */
.visual-product-card { display:flex; flex-direction:column; }
.visual-product-card .product-image { height:210px; padding:20px; background:#f3f3f0; }
.visual-product-card .product-image img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; transition:none; }
.visual-product-card .product-image:hover img { transform:none; }
.visual-product-card .product-info { display:flex; flex-direction:column; flex:1; padding:18px 16px 10px; }
.visual-product-card .eyebrow { font-size:10px; font-weight:400; letter-spacing:0; text-transform:none; line-height:1.6; margin-bottom:7px; }
.visual-product-card h3 { font-size:16px; line-height:1.4; letter-spacing:-.02em; margin-bottom:8px; overflow-wrap:anywhere; }
.visual-product-card h3 a:hover { text-decoration:underline; text-underline-offset:3px; }
.visual-product-card .product-presentation { font-size:12px; line-height:1.6; margin:0 0 14px; }
.product-status { align-self:flex-start; padding:5px 9px; border-radius:3px; background:var(--paper); font-size:11px; margin-bottom:14px; }
.product-status.availability-on_request { background:#fff3df; --availability-color:#805518; }
.visual-product-card .product-bottom { display:block; margin-top:auto; }
.visual-product-card .product-bottom strong { white-space:normal; font-size:18px; line-height:1.5; }
.visual-product-card .price-consult { color:var(--text); font-size:15px; font-weight:700; }
.visual-product-card .product-bottom small { font-size:9px; }
.visual-product-card .product-card-action { margin:14px 0 0; }
.visual-product-card .product-card-action.button,.visual-product-card .product-card-action .button { font-size:12px; min-height:44px; padding:11px 8px; line-height:1.5; }
.visual-product-card .product-view-link { display:flex; min-height:44px; padding:9px 0 2px; align-items:center; justify-content:center; font-size:12px; font-weight:600; }
.visual-product-card .product-view-link:hover { color:var(--red); }
.visual-product-card .product-card-unavailable { padding:14px 0 0; min-height:58px; font-size:12px; }
.catalog-page,.product-page { padding-top:30px; padding-bottom:55px; }
.catalog-page .breadcrumb,.product-page .breadcrumb { margin-bottom:22px; overflow-wrap:anywhere; }
.catalog-page > .eyebrow { margin-bottom:8px; }
.catalog-page > h1 { font-size:clamp(30px,3vw,40px); max-width:780px; line-height:1.15; margin-bottom:14px; }
.catalog-intro { font-size:14px; line-height:1.8; margin-bottom:24px; }
.catalog-search { display:flex; align-items:center; gap:12px; padding:5px 5px 5px 15px; border:1px solid var(--input-line); border-radius:4px; background:var(--paper); margin-bottom:28px; }
.catalog-search svg { flex:0 0 20px; color:var(--muted); }
.catalog-search input[type=search] { width:auto; min-width:0; flex:1; min-height:44px; border:0; background:transparent; padding:9px 0; font-size:16px; }
.catalog-search .button { min-height:44px; padding:11px 22px; }
.catalog-visual-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:30px; align-items:start; }
.catalog-filters,.catalog-results { min-width:0; }
.catalog-filter-toggle[hidden],#catalog-filter-body[hidden] { display:none; }
.catalog-filters h2 { font-size:17px; line-height:1.4; letter-spacing:-.02em; margin-bottom:20px; }
.catalog-field { margin-bottom:18px; }
.catalog-field label { display:block; font-size:12px; font-weight:700; margin-bottom:7px; }
.catalog-field select { display:block; width:100%; min-width:0; min-height:44px; padding:10px 8px; font-size:13px; }
.catalog-filters .button { font-size:12px; min-height:44px; }
.catalog-filters .clear-filters { display:flex; min-height:44px; align-items:center; font-size:12px; text-decoration:underline; text-underline-offset:3px; margin:6px 0 0; }
.catalog-filter-help { border-top:1px solid var(--line); padding-top:22px; margin-top:14px; }
.catalog-filter-help h3 { font-size:14px; line-height:1.5; margin-bottom:8px; letter-spacing:0; }
.catalog-filter-help p { font-size:12px; line-height:1.8; margin-bottom:0; }
.catalog-filter-help a { display:flex; min-height:44px; align-items:center; font-size:12px; font-weight:700; }
.catalog-results .results-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 14px; line-height:1.6; margin-bottom:16px; font-size:12px; }
.catalog-visual-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.catalog-results .empty { grid-column:1/-1; padding:35px 20px; }
.catalog-results .empty h2 { font-size:24px; }
.catalog-results .pagination { flex-wrap:wrap; gap:12px; }
.catalog-results .pagination a { display:inline-flex; min-height:44px; align-items:center; }
.catalog-pro-link { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px 24px; border-top:1px solid var(--line); padding-top:22px; margin-top:32px; font-size:13px; }
.catalog-pro-link p { margin:0; }
.catalog-pro-link a { display:inline-flex; align-items:center; min-height:44px; font-weight:700; }
.catalog-pro-link a:hover { color:var(--red); }
.product-back { display:inline-flex; min-height:44px; align-items:center; font-size:13px; margin-bottom:18px; }
.product-back:hover { color:var(--red); }
.visual-product-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:50px; align-items:start; margin-bottom:0; }
.visual-product-detail .detail-image { min-height:390px; height:auto; padding:32px; border:1px solid var(--line); border-radius:4px; background:#f3f3f0; display:flex; align-items:center; justify-content:center; }
.visual-product-detail .detail-image img { width:auto; height:auto; max-width:100%; max-height:350px; object-fit:contain; }
.detail-summary { min-width:0; }
.detail-summary > .eyebrow { font-size:11px; letter-spacing:.06em; }
.visual-product-detail h1 { font-size:clamp(30px,3vw,40px); line-height:1.15; margin:12px 0; overflow-wrap:anywhere; }
.detail-reference { display:block; color:var(--muted); font-size:12px; margin-bottom:18px; }
.detail-summary > .product-status { margin:0 0 13px; }
.visual-product-detail .detail-price { color:var(--text); font-size:30px; line-height:1.5; margin:0 0 9px; }
.visual-product-detail .detail-price .price-consult { color:var(--text); font-size:26px; }
.detail-price-help { font-size:13px; line-height:1.8; margin:0 0 18px; }
.product-facts { border-top:1px solid var(--line); margin:18px 0 24px; }
.product-facts > div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; padding:12px 0; border-bottom:1px solid var(--line); font-size:13px; line-height:1.7; }
.product-facts dt { color:var(--muted); }
.product-facts dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.detail-summary .button { min-height:48px; padding:13px 16px; font-size:13px; white-space:normal; text-align:center; }
.detail-purchase > label { display:block; font-size:12px; font-weight:700; margin-bottom:8px; }
.detail-purchase-row { display:flex; gap:12px; }
.detail-purchase-row .quantity { flex:0 0 74px; width:74px; min-width:0; min-height:48px; }
.detail-purchase-row .button { flex:1; }
.detail-summary .consult-link { display:inline-flex; min-height:44px; align-items:center; font-size:12px; line-height:1.6; margin-top:8px; }
.detail-request-note { font-size:12px; line-height:1.8; margin:14px 0 0; }
.detail-summary .product-note { border:0; padding:0; margin-top:14px; font-size:12px; line-height:1.8; }
.product-description,.product-page .specs { border-top:1px solid var(--line); padding:28px 0 0; margin:32px 0 0; max-width:850px; }
.product-description h2,.product-page .specs h2 { font-size:23px; line-height:1.3; margin-bottom:16px; }
.product-description p,.product-page .specs p { font-size:14px; line-height:1.9; }
.product-related { margin-top:48px; }
.product-related .section-head h2 { font-size:28px; line-height:1.3; }
:root[data-theme=dark] .product-status.availability-on_request { background:#3b3020; --availability-color:#f0c985; }
@media(max-width:1100px) {
  .catalog-visual-layout { grid-template-columns:170px minmax(0,1fr); gap:24px; }
  .catalog-visual-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .visual-product-detail { gap:30px; }
}
@media(max-width:720px) {
  .catalog-visual-layout { grid-template-columns:1fr; gap:22px; }
  .catalog-filter-toggle:not([hidden]) { display:flex; width:100%; justify-content:space-between; }
  .catalog-filters h2,.catalog-filter-help { display:none; }
  #catalog-filter-body { padding-top:18px; }
  #catalog-filter-body form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
  .catalog-field { margin:0; }
  .catalog-field select { font-size:16px; }
  .catalog-filters .clear-filters { margin:0; justify-content:center; }
  .visual-product-detail { grid-template-columns:1fr; gap:28px; }
  .visual-product-detail .detail-image { min-height:310px; padding:26px; }
  .visual-product-detail .detail-image img { max-height:300px; }
}
@media(max-width:560px) {
  .catalog-page,.product-page { padding-top:25px; padding-bottom:40px; }
  .catalog-page > h1 { font-size:30px; }
  .catalog-intro { font-size:13px; }
  .catalog-search { gap:8px; padding-left:10px; margin-bottom:20px; }
  .catalog-search svg { display:none; }
  .catalog-search .button { padding:11px 14px; font-size:12px; }
  .catalog-visual-grid { gap:12px; }
  .visual-product-card .product-image { height:165px; padding:16px; }
  .visual-product-card .product-info { padding:14px 12px 8px; }
  .visual-product-card h3 { font-size:15px; }
  .visual-product-card .eyebrow { font-size:10px; }
  .visual-product-card .product-presentation { font-size:11px; }
  .visual-product-card .product-status { padding:4px 6px; font-size:10px; }
  .visual-product-card .product-card-action.button,.visual-product-card .product-card-action .button { font-size:11px; padding:10px 6px; }
  .visual-product-card .price-consult { font-size:14px; }
  .product-related .section-head h2 { font-size:26px; line-height:1.3; }
  .visual-product-detail h1 { font-size:32px; }
}
@media(max-width:380px) {
  .catalog-visual-grid,.product-related .product-grid { grid-template-columns:1fr; }
  #catalog-filter-body form { grid-template-columns:1fr; }
  .catalog-visual-grid .product-image { height:190px; }
  .catalog-visual-grid .product-info { padding:16px 16px 8px; }
  .catalog-visual-grid .product-card-action.button,.catalog-visual-grid .product-card-action .button { font-size:12px; }
  .product-facts > div { grid-template-columns:85px minmax(0,1fr); gap:10px; }
  .detail-purchase-row { flex-wrap:wrap; }
  .detail-purchase-row .button { flex-basis:100%; }
}

/* Catalog photos and kits: real component photos, with pending photos explicit. */
.grain-detail-unit { color:var(--muted); font-size:14px; margin:0 0 16px; }
.grain-selector { margin:18px 0; scroll-margin-top:24px; }
.grain-selector > p { font-size:14px; margin:0 0 10px; }
.grain-options { display:flex; flex-wrap:wrap; gap:8px; }
.grain-options a { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:62px; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:4px; font-size:13px; line-height:1.4; color:inherit; text-decoration:none; }
.grain-options a[aria-current=page] { background:#202229; border-color:#202229; color:#fff; }
.grain-options a small { font-size:10px; }
.grain-options a:focus-visible { outline:2px solid #e82836; outline-offset:3px; }
.grain-card-options { font-size:12px; font-weight:600; margin:6px 0 12px; }
.grain-card-help { color:var(--muted); font-size:11px; line-height:1.6; margin:10px 0; }
.grain-price-from { font-size:12px; font-weight:400; }
:root[data-theme=dark] .grain-options a[aria-current=page] { background:#e5e5eb; border-color:#e5e5eb; color:#202229; }
.visual-product-card .product-image.photo-with-note { padding-bottom:40px; }
.catalog-photo-note { position:absolute; left:8px; right:8px; bottom:6px; padding:3px 5px; background:#ffffffed; color:#4b4d52; font-size:9px; line-height:1.35; text-align:center; border-radius:3px; }
.kit-photo-badge { position:absolute; top:10px; left:10px; background:#fff; border:1px solid #dedee2; color:#25262a; padding:4px 7px; border-radius:3px; font-size:10px; line-height:1.4; font-weight:700; }
.kit-photo-parts { display:grid; grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr); align-items:stretch; gap:5px; width:100%; height:100%; min-width:0; }
.kit-photo-part { display:grid; grid-template-rows:minmax(0,1fr) auto; min-width:0; min-height:0; gap:6px; align-items:end; }
.kit-part-picture { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; height:100%; overflow:hidden; }
.visual-product-card .kit-part-picture img,.visual-product-detail .kit-part-picture img { max-height:100%; max-width:100%; object-fit:contain; }
.kit-part-size { display:block; color:#3a3d43; text-align:center; font-size:11px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
.kit-photo-plus { align-self:center; color:#69707a; font-size:20px; text-align:center; }
.kit-photo-pending { display:flex; flex-direction:column; align-items:center; justify-content:center; color:#6a6d74; border:1px dashed #c4c6cc; border-radius:4px; width:100%; height:80%; padding:8px 4px; font-size:10px; line-height:1.5; text-align:center; }
.kit-photo-pending > span { font-size:26px; }
.detail-media { min-width:0; }
.visual-product-detail .detail-image { position:relative; }
.visual-product-detail .detail-image .kit-photo-parts { height:300px; }
.detail-photo-note { font-size:11px; line-height:1.6; margin:10px 0 0; }
.kit-contents { border:1px solid var(--line); border-radius:4px; padding:16px; margin:0 0 22px; }
.kit-contents h2 { font-size:16px; letter-spacing:0; line-height:1.4; margin:0 0 10px; }
.kit-contents ul { padding-left:18px; margin:0; }
.kit-contents li { font-size:12px; line-height:1.7; margin:0 0 10px; }
.kit-contents li:last-child { margin-bottom:0; }
.kit-contents a { text-decoration:underline; text-underline-offset:3px; }
.kit-contents li > span { display:block; color:var(--muted); font-size:10px; }
.kit-subtitle { color:var(--muted); font-size:14px; margin:0 0 12px; }
.individual-sale-label { color:var(--text); font-size:14px; margin:0 0 14px; }
.visual-product-card .product-sale-type { color:var(--muted); font-size:11px; line-height:1.6; margin:0 0 8px; }
.kit-alternative { padding:16px; border:1px solid var(--line); border-radius:4px; background:var(--paper); margin:0 0 24px; }
.kit-alternative h2 { font-size:16px; letter-spacing:0; line-height:1.5; margin:0 0 10px; }
.kit-alternative-option { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 16px; font-size:13px; line-height:1.6; }
.kit-alternative-option + .kit-alternative-option { border-top:1px solid var(--line); padding-top:12px; margin-top:12px; }
.kit-alternative-option > span { flex:1 1 180px; min-width:0; }
.kit-alternative-option > span small { display:block; color:var(--muted); font-size:11px; }
.kit-alternative-option > strong { font-size:16px; }
.kit-alternative-option > strong small { font-size:10px; font-weight:400; }
.kit-alternative-option > a { display:flex; align-items:center; min-height:44px; flex-basis:100%; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.kit-contents li > .hardener-speed { color:var(--ink); font-size:12px; font-weight:600; }
.kit-details-link { display:inline-flex; align-items:center; min-height:44px; margin-top:8px; font-size:12px; }
.kit-hardener-details { scroll-margin-top:100px; }
.kit-hardener-details h3 { font-size:17px; line-height:1.5; }
:root[data-theme=dark] .kit-part-size { color:#e4e4e8; }
:root[data-theme=dark] .visual-product-card .product-image,
:root[data-theme=dark] .visual-product-detail .detail-image { background:#25272e; }
:root[data-theme=dark] .kit-photo-plus,:root[data-theme=dark] .kit-photo-pending { color:#bdc1c9; }
@media(max-width:560px) {
  .visual-product-card .product-image.photo-with-note { padding:24px 8px 40px; }
  .kit-photo-badge { top:5px; left:5px; font-size:8px; }
  .kit-photo-parts { gap:2px; grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr); }
  .kit-part-size { font-size:9px; }
  .catalog-photo-note { font-size:8px; left:4px; right:4px; }
  .kit-photo-pending { font-size:9px; padding:6px 2px; }
  .visual-product-detail .detail-image .kit-photo-parts { height:250px; }
}

/* Keep the picture element inside its allocated card/kit frame. */
.visual-product-card .product-image { flex-shrink:0; }
.visual-product-card .product-image > .responsive-picture,
.visual-product-detail .detail-image > .responsive-picture,
.kit-part-picture > .responsive-picture {
  display:flex; align-items:center; justify-content:center;
  width:100%; min-width:0; min-height:0;
}
.visual-product-card .product-image > .responsive-picture,
.kit-part-picture > .responsive-picture { height:100%; }
.visual-product-detail .detail-image > .responsive-picture { height:350px; }
.visual-product-card .product-image .responsive-picture img,
.visual-product-detail .detail-image .responsive-picture img {
  display:block; width:100%; height:100%; max-width:100%; max-height:100%;
  object-fit:contain; object-position:center;
}
@media(max-width:720px) {
  .visual-product-detail .detail-image > .responsive-picture { height:300px; }
}

/* Grain + packaging choices share the existing product detail. */
.grain-packaging { margin:20px 0 24px; scroll-margin-top:24px; }
.grain-packaging > p { font-size:14px; font-weight:600; margin:0 0 10px; color:var(--text); }
.grain-pack-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.grain-pack-options > a { position:relative; min-width:0; min-height:78px; padding:12px 30px 12px 12px; border:1px solid var(--line); border-radius:4px; color:var(--text); background:var(--surface); }
.grain-pack-options > a[aria-current] { border:2px solid var(--red); padding:11px 29px 11px 11px; background:var(--paper); }
.grain-pack-options > a[aria-current]::after { content:'✓'; position:absolute; top:10px; right:10px; color:var(--red); }
.grain-pack-options strong { display:block; font-size:13px; }
.grain-pack-options span { display:block; font-size:12px; line-height:1.6; color:var(--muted); margin-top:4px; overflow-wrap:anywhere; }
.box-consultation > label { display:block; font-size:12px; font-weight:600; margin:0 0 8px; }
.box-consultation-row { display:flex; gap:12px; }
.box-consultation-row > input { flex:0 0 74px; width:74px; min-width:0; min-height:48px; }
.box-consultation-row .button { flex:1; min-width:0; }
.box-consultation-help { color:var(--muted); font-size:12px; line-height:1.8; margin:12px 0 0; }
@media(max-width:380px) {
 .grain-pack-options { grid-template-columns:1fr; }
 .grain-pack-options > a { min-height:68px; }
 .box-consultation-row { flex-wrap:wrap; }
 .box-consultation-row .button { flex-basis:100%; }
}
