/* Shared clean product discovery and configuration. */
.product-shopping { padding-block: 16px 40px; }
.product-shopping-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 12px; }
.product-shopping-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3px 0; }
.product-shopping-header p { margin: 3px 0; font-size: .85rem; }
.product-shopping-header .eyebrow { font-size: .7rem; }
.product-shopping-header > a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; font-size: .8rem; }
.product-search { position: sticky; top: var(--product-nav-height, 90px); z-index: 15; padding: 8px; background: var(--card, #fff); border: 1px solid var(--line, #d5e1e2); border-radius: 12px; box-shadow: 0 3px 10px #16333a0a; }
.product-query { display: block; }
.product-query input { width: 100%; min-height: 44px; padding: 9px 12px; margin: 0; }
.product-filters summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: flex-end; font-weight: 600; padding-inline: 4px; }
.product-filters summary::after { content: ' ▾'; margin-left: 8px; }
.product-filters[open] summary::after { content: ' ▴'; }
.product-filter-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 4px; }
.product-filter-fields label { min-width: 0; font-size: .8rem; }
.product-filter-fields select { width: 100%; min-height: 44px; margin-top: 4px; }
.product-filter-fields button { min-height: 44px; }
.product-result-count { font-size: .8rem; color: var(--muted); margin: 12px 0; }
.product-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
[data-shop] .shop-group-grid.product-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.product-result { display: grid; grid-template-columns: minmax(110px,.8fr) minmax(0,1.2fr); gap: 16px; padding: 14px; border: 1px solid var(--line, #d5e1e2); border-radius: 12px; background: var(--card, #fff); align-items: start; }
.product-result > * { min-width: 0; }
.product-result img { display: block; width: 100%; height: 170px; object-fit: contain; background: #f4f7f7; border-radius: 8px; }
.product-result :is(h2,h3) { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.product-result p { margin: 6px 0; font-size: .8rem; line-height: 1.35; }
.product-result .product-result-price { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.product-result .product-result-action { position: relative; min-height: 28px; padding: 2px 3px; border: 0; margin-top: 6px; font-size: .85rem; line-height: 1.4; }
/* Compact visible button; preserve a 44px vertical pointer/touch target. */
.product-result .product-result-action::after { content: ''; position: absolute; inset: -8px 0; }
.product-shopping [data-more-results] { display: block; min-height: 44px; margin: 20px auto 0; }
.product-shopping [hidden] { display: none !important; }
/* The detail view may scroll; reuse commerce and media without card-size limits. */
.product-detail { max-width: 1050px; margin-inline: auto; }
.product-back { min-height: 44px; }
.product-detail h1 { font-size: clamp(1.4rem,3vw,2rem); margin: 12px 0; }
.product-fit-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.product-fit-fields label { min-width: 0; font-weight: 600; }
.product-fit-fields small { color: var(--muted); font-weight: 400; font-size: .7rem; }
.product-fit-fields select { display: block; width: 100%; min-height: 44px; margin-top: 5px; }
.product-unconfigured { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: center; }
.product-unconfigured img { width: 100%; height: 300px; object-fit: contain; }
.product-detail .shop-buy-card { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); grid-template-rows: auto auto; grid-row: auto; gap: 0; align-items: start; }
.product-detail .shop-buy-card > .product-card { display: contents; grid-row: auto; }
.product-detail .shop-buy-card .product-card .body { display: block; grid-column: 2; grid-row: 1; padding: 18px; }
.product-detail .shop-buy-card .product-card :is(h3,.short,.card-action) { display: none; }
.product-detail .shop-card-pricing { margin: 0; gap: 10px; }
.product-detail .shop-card-pricing .price { min-height: 0; }
.product-detail .shop-card-buy { grid-column: 2; grid-row: 2; padding: 0 18px 18px; min-width: 0; }
.product-detail .shop-model-media, .product-detail .product-card > .thumb { grid-column: 1; grid-row: 1 / span 2; width: 100%; margin: 0; }
.product-detail .product-card > .thumb { max-height: 380px; object-fit: contain; }
.product-detail .shop-model-media { --shop-media-bottom: 56px; aspect-ratio: auto; height: 320px; }
.product-detail :is(.shop-media-tabs,.shop-media-tools) button { min-width: 44px; height: 44px; }
.product-detail .shop-media-note { width: calc(100% - 160px); }


.product-detail .shop-quantity-stepper [data-lid-step="1"] { width: 128px; min-height: 44px; font-size: .9rem; }
.product-detail .shop-lid-control { width: 100%; }
.product-detail .shop-card-feedback a { min-height: 44px; padding-block: 12px; }
.product-detail .shop-cart-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-detail .shop-cart-action-row a { display: inline-flex; align-items: center; min-height: 44px; }
/* The same restrained configuration treatment on all dedicated product pages. */
.product-return { max-width: 1050px; margin: 12px auto 0; font-size: .85rem; }
.product-return .product-back { display: inline-flex; align-items: center; }
.clean-product { max-width: 1050px; margin-inline: auto; }
.clean-product .product-heading h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin-top: 0; }
.clean-product .product-detail-layout { column-gap: 24px; }
.clean-product .buy { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); }
.clean-product .product-description { margin-top: 0; font-size: .9rem; }
.clean-product .product-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clean-product .product-options > *, .clean-product select { min-width: 0; }
.clean-product .product-options select { width: 100%; min-height: 44px; }

.clean-product .shop-quantity-stepper .product-add-action { width: auto; min-width: 118px; min-height: 44px; padding: 8px 12px; font-size: .85rem; }
.clean-product .product-add-action, .clean-product #add { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.clean-product .product-add-action:hover:not(:disabled), .clean-product #add:hover:not(:disabled) { background: #00bde2; color: var(--accent-ink); }
.clean-product .shop-counter-control { flex-wrap: wrap; }
.clean-product .shop-model-media { border-radius: 12px; }
.clean-product .shop-card-feedback a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .product-results { grid-template-columns: minmax(0,1fr); }
  [data-shop] .shop-group-grid.product-results { grid-template-columns: minmax(0,1fr); }
  .product-result { grid-template-columns: minmax(100px,.65fr) minmax(0,1.35fr); }
}
@media (max-width: 600px) {
  .product-shopping { padding-top: 8px; }
  .product-shopping-header { gap: 10px; margin-bottom: 8px; }
  .product-shopping-header p { font-size: .75rem; }
  .clean-product .buy { padding: 12px; }
  .clean-product .product-options { grid-template-columns: minmax(0, 1fr); }
  .product-filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-result { grid-template-columns: 100px minmax(0,1fr); padding: 10px; gap: 12px; }
  .product-result img { height: 130px; }
  .product-result :is(h2,h3) { font-size: .9rem; }
  .product-result p { font-size: .75rem; }
  .product-result .product-result-price { font-size: 1.05rem; }
  .product-detail .shop-buy-card { display: flex; grid-template-rows: none; }
  .product-detail .shop-buy-card > .product-card { display: contents; }
  .product-detail .shop-buy-card .product-card .body { padding: 12px; width: 100%; box-sizing: border-box; }
  .product-detail .shop-card-buy { padding: 0 12px 12px; }
  .product-detail .shop-model-media { height: clamp(200px,32vh,300px); }
  .product-unconfigured { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .product-unconfigured img { height: 220px; }
}
