/* Product discovery and purchase tools. Keep the existing industrial identity. */
body[data-page="store"] :is(button,input,select,textarea,a):focus-visible { outline:2px solid #ff956c; outline-offset:4px; }
body[data-page="store"] :is(button,input,select,textarea) { scroll-margin-block:110px 80px; }
.product-suggest-wrap { position:relative; min-width:0; width:100%; }
.product-suggest-wrap>input { width:100%; }
.product-quick-search .product-suggest-wrap { flex:1; }
.product-suggestions { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:80; min-width:min(340px,80vw); max-height:360px; overflow-y:auto; border:1px solid #555; border-radius:10px; background:#191919; box-shadow:0 12px 28px #0008; }
.product-suggestions a { display:block; padding:12px 14px; color:#f5f5f5; text-decoration:none; border-bottom:1px solid #333; line-height:1.6; }
.product-suggestions :is(strong,span) { display:block; }
.product-suggestions strong { color:#ff956c; font-size:13px; }
.product-suggestions span,.product-suggestions p { font-size:13px; }
.product-suggestions p { padding:14px; color:#ccc; line-height:1.8; }
.product-suggestions a:is(:hover,[aria-selected="true"]) { background:#333; }
.catalog-tools { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 20px; padding:16px 0 20px; border-bottom:1px solid #333; margin-bottom:20px; }
.catalog-tools p { margin:0; color:#ccc; font-size:13px; line-height:1.8; }
.catalog-tools>div { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.catalog-tools a { color:#ddd; text-underline-offset:4px; padding:10px 0; font-size:13px; }
body[data-page="store"] .product-actions { display:flex; flex-direction:column; gap:3px; }
body[data-page="store"] .product-inquiry { display:flex; align-items:center; justify-content:center; min-height:44px; color:#ff956c; font-size:13px; text-decoration:none; }
.commerce-dialog { width:min(900px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:0; color:#f4f4f4; background:#171717; border:1px solid #444; border-radius:16px; overflow:auto; }
.commerce-dialog::backdrop { background:#000b; }
.commerce-dialog .dialog-head { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0; padding:18px 24px; background:#1c1c1c; border-bottom:1px solid #3a3a3a; }
.commerce-dialog .dialog-head h2 { margin:0; font-size:20px; font-weight:500; line-height:1.6; }
.commerce-dialog .icon-button { flex:none; min-width:44px; min-height:44px; padding:4px; border:1px solid #555; border-radius:8px; color:#fff; background:#252525; font-size:24px; }
.commerce-dialog-body { padding:24px; }
.commerce-dialog-body>p { color:#c8c8c8; font-size:14px; line-height:1.9; }
.commerce-dialog-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:20px; }
.commerce-dialog-actions :is(button,a) { display:inline-flex; justify-content:center; align-items:center; min-height:46px; padding:12px 18px; text-decoration:none; }
.commerce-dialog-actions a { color:#fff; }
.commerce-note { color:#bfbfbf; font-size:12px; line-height:1.9; }
.commerce-note a { color:#ff956c; text-underline-offset:4px; }
.commerce-status { min-height:24px; margin:16px 0; color:#ffd0bb; font-size:14px; line-height:1.9; }
#bulkOrderForm { display:grid; gap:10px; }
#bulkOrderForm label { font-size:14px; }
#bulkOrderForm textarea { width:100%; padding:14px; border:1px solid #555; border-radius:8px; background:#222; color:#fff; font:inherit; font-size:15px; line-height:1.9; resize:vertical; }
#bulkOrderForm button { justify-self:start; min-height:44px; }
.bulk-order-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; padding:16px 0; border-bottom:1px solid #383838; }
.bulk-order-row>div:last-child { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.bulk-order-row strong { font-size:15px; }
.bulk-order-row p { margin:6px 0; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.bulk-order-row :is(small,span) { font-size:12px; color:#bbb; }
.bulk-order-row.has-error small { color:#ffbca2; }
.bulk-order-row.has-error { border-left:2px solid #ff642d; padding-left:12px; }
.commerce-dialog [aria-disabled="true"] { opacity:.5; cursor:wait; }
.checkout-review-items>div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:start; gap:12px; padding:14px 0; border-bottom:1px solid #383838; font-size:14px; line-height:1.8; }
.checkout-review-items small { display:block; color:#aaa; }
.checkout-review-items b { min-width:100px; text-align:right; }
.checkout-review-total { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; align-items:center; padding:20px 0; }
.checkout-review-total strong { color:#ff956c; font-size:28px; }
.checkout-review-dialog h3 { margin:12px 0; font-weight:500; font-size:18px; }
.checkout-review-dialog p { line-height:1.9; overflow-wrap:anywhere; }
.checkout-message strong { display:block; font-size:20px; }
.checkout-message p { margin:10px 0; }
.order-reorder { margin-top:20px; border-top:1px solid #444; padding-top:18px; }
body[data-page="store"] .product-spec-table { display:block; margin:0 0 20px; border-top:1px solid #444; }
body[data-page="store"] .product-spec-table>div { display:grid; grid-template-columns:minmax(100px,35%) minmax(0,1fr); gap:14px; padding:12px 0; border:0; border-bottom:1px solid #333; border-radius:0; background:transparent; }
.product-spec-table dt { color:#bbb; font-size:13px; }
.product-spec-table dd { margin:0; color:#fff; font-size:14px; overflow-wrap:anywhere; line-height:1.7; }
.product-spec-heading { margin:22px 0 12px; font-size:17px; font-weight:500; }
.product-image-zoom { position:absolute; bottom:12px; left:12px; min-height:44px; padding:10px 14px; color:#fff; border:1px solid #555; border-radius:8px; background:#191919eb; font:inherit; font-size:12px; }
.product-image-dialog { width:min(1200px,calc(100vw - 24px)); background:#fff; }
.product-image-dialog>img { display:block; width:100%; height:auto; max-height:calc(100dvh - 120px); object-fit:contain; }
body[data-page="store"][data-header="shared"] .product-detail-gallery { min-width:0; align-self:start; }
body[data-page="store"][data-header="shared"] .product-detail-thumbs { align-items:start; }
body[data-page="store"][data-header="shared"] .product-detail-thumbs button { display:block; aspect-ratio:1; height:auto; min-height:44px; padding:3px; }
body[data-page="store"][data-header="shared"] .product-detail-thumbs img { display:block; width:100%; height:100%; max-height:none; aspect-ratio:1; object-fit:contain; }
.seo-gallery-item { margin:0; border:1px solid #444; border-radius:12px; overflow:hidden; background:#fff; }
.seo-gallery-item>button { margin:12px; min-height:44px; background:#1c1c1c; color:#fff; border-color:#444; }
.home-parts-guides { padding-block:76px; border-top:1px solid #262626; }
.home-parts-guides .guide-preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.guide-preview-grid article { padding:28px 0; border-top:1px solid #555; }
.guide-preview-grid small { color:#ff956c; letter-spacing:.08em; }
.guide-preview-grid h3 { margin:16px 0 12px; font-size:23px; font-weight:400; line-height:1.6; }
.guide-preview-grid p { margin:0 0 18px; color:#bfbfbf; font-size:14px; line-height:1.9; }
.guide-preview-grid a { display:inline-flex; align-items:center; min-height:44px; color:#fff; text-underline-offset:5px; }
@media(max-width:800px) {
  .commerce-dialog .dialog-head { padding:14px 18px; }
  .commerce-dialog-body { padding:18px; }
  .home-parts-guides .guide-preview-grid { grid-template-columns:1fr; gap:0; }
  .home-parts-guides { padding-block:46px; }
  body[data-page="store"] .qty-actions :is(button,input) { min-width:44px; min-height:44px; }
  body[data-page="store"] :is(.pagination-controls button,.pagination-controls a,.product-detail-thumbs button) { min-height:44px; min-width:44px; }
  body[data-page="store"] .product-detail-buy { position:sticky; bottom:0; z-index:3; margin-top:18px; padding:14px 0 max(14px,env(safe-area-inset-bottom)); border-top:1px solid #444; background:#171717; }
  body[data-page="store"] .product-detail-buy button { min-height:48px; }
  .commerce-dialog-actions>* { flex:1 1 200px; }
}
@media(max-width:520px) {
  .product-suggestions { min-width:0; width:max(100%,240px); max-width:calc(100vw - 64px); }
  .commerce-dialog .dialog-head h2 { font-size:17px; }
  .checkout-review-items>div { grid-template-columns:minmax(0,1fr) auto; }
  .checkout-review-items b { grid-column:1 / -1; min-width:0; }
  .bulk-order-row { gap:8px; }
  .bulk-order-row>div:last-child { min-width:90px; }
  .catalog-tools>div { align-items:stretch; width:100%; }
  .catalog-tools button { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  .commerce-dialog * { scroll-behavior:auto; }
}
