/* Give sale units their own row so neither the name nor the controls get squeezed. */
.theme-bento #products { scroll-margin-top:var(--catalog-header-offset,104px); }
.theme-bento .products { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; align-items:stretch; }
.theme-bento .product { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:112px 40px minmax(32px,auto) 38px; gap:8px; align-items:stretch; min-width:0; height:auto; padding:10px; border:1px solid #e5e5ea; border-radius:12px; background:#fff; overflow:visible; transition:border-color .18s; }
.theme-bento .product:hover { border-color:#bdbdc8; }
.theme-bento .product-photo { display:flex; align-items:center; justify-content:center; grid-column:1; grid-row:1; width:100%; height:112px; min-height:0; margin:0; border-radius:8px; background:#f7f7f9; overflow:hidden; }
.theme-bento .product-photo img { width:100%; max-width:160px; height:100%; object-fit:contain; padding:6px; mix-blend-mode:multiply; }
.theme-bento .product-body { display:contents; }
.theme-bento .product-identity { display:flex; grid-column:1; grid-row:2; align-items:flex-start; gap:6px; min-width:0; min-height:0; height:auto; padding:0; }
.theme-bento .product h3 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; flex:1; min-width:0; overflow:hidden; margin:0; padding:2px 0 0; font-size:14px; font-weight:500; line-height:19px; letter-spacing:-.015em; overflow-wrap:anywhere; text-wrap:pretty; }
.theme-bento .card-units { grid-column:1; grid-row:3; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-width:0; color:var(--muted); font-size:12px; }
.theme-bento .card-unit-label { font-weight:600; }
.theme-bento .card-package-note { min-width:0; overflow-wrap:anywhere; }
.theme-bento .product .unit-segments { display:flex; flex-wrap:wrap; align-items:center; gap:2px; margin:0; padding:2px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.theme-bento .product .unit-segments button { min-width:34px; min-height:30px; margin:0; padding:3px 7px; border:0; border-radius:5px; background:transparent; color:var(--ink); font-size:12px; line-height:18px; font-weight:600; overflow-wrap:anywhere; }
.theme-bento .product .unit-segments button[aria-pressed=true] { background:var(--brand); color:#fff; box-shadow:none; }
.theme-bento .product .unit-segments button:hover { color:var(--brand); }
.theme-bento .product .unit-segments button[aria-pressed=true]:hover { background:var(--brand-dark); color:#fff; }
.theme-bento .product .unit-segments button:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.theme-bento .purchase { display:contents; }
.theme-bento .purchase-controls { display:grid; grid-column:1; grid-row:4; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; gap:6px; min-width:0; margin:0; padding:0; }
.theme-bento .order-entry { display:flex; min-width:0; height:38px; border:1px solid #dcdce4; border-radius:8px; background:#fff; container-type:inline-size; }
.theme-bento .purchase-controls .quantity-stepper { display:flex; align-items:center; flex:1; width:100%; min-width:0; max-width:none; height:36px; border:0; border-radius:7px; background:transparent; }
.theme-bento .purchase-controls .quantity-stepper>button { flex:0 0 22px; width:22px; min-width:22px; height:36px; margin:0; padding:0; border-radius:7px; font-size:18px; font-weight:400; color:var(--ink); background:transparent; }
.theme-bento .purchase-controls .quantity-stepper>button:hover { background:var(--surface); }
.theme-bento .purchase-controls .quantity-stepper>button:disabled { color:#9595a1; opacity:.5; }
.theme-bento .purchase-controls .quantity-stepper .quantity { display:flex; flex:1; flex-direction:row; align-items:center; justify-content:center; width:auto; min-width:0; min-height:36px; gap:2px; border:0; padding:0; background:transparent; white-space:nowrap; }
.theme-bento .purchase-controls .quantity-stepper input { flex:0 1 auto; width:calc(var(--quantity-ch,2) * 1ch); min-width:1.5ch; max-width:6ch; min-height:36px; height:36px; padding:0; border:0; font-size:14px; font-weight:500; text-align:center; background:transparent; font-variant-numeric:tabular-nums; }
.theme-bento .purchase-controls .quantity-stepper .quantity>span:not(.sr-only) { display:inline; flex:none; color:var(--muted); font-size:11px; line-height:1.3; white-space:nowrap; }
.theme-bento .purchase-controls .btn { display:flex; align-items:center; justify-content:center; width:auto; min-width:38px; min-height:38px; height:38px; gap:5px; padding:0 8px; border-radius:8px; white-space:nowrap; }
.theme-bento .add-to-cart>.cart-unit-price { display:inline; font-size:15px; line-height:1.2; font-weight:600; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.theme-bento .compact-cart-icon { display:block; flex:none; width:18px; height:18px; }
@media(max-width:1149px) { .theme-bento .products { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:959px) { .theme-bento .products { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:719px) { .theme-bento .products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }
@media(max-width:479px) {
 .theme-bento .products { grid-template-columns:1fr; }
 .theme-bento .product { grid-template-rows:104px 40px minmax(40px,auto) 44px; }
 .theme-bento .product-photo { height:104px; }
 .theme-bento .product h3 { font-size:15px; line-height:20px; }
 .theme-bento .product .unit-segments button { min-height:38px; }
 .theme-bento .order-entry,.theme-bento .purchase-controls .btn { height:44px; min-height:44px; }
 .theme-bento .purchase-controls .quantity-stepper { height:42px; }
 .theme-bento .purchase-controls .quantity-stepper>button { flex-basis:30px; width:30px; min-width:30px; height:42px; }
 .theme-bento .purchase-controls .quantity-stepper .quantity,.theme-bento .purchase-controls .quantity-stepper input { min-height:42px; height:42px; }
 .theme-bento .purchase-controls .quantity-stepper input { font-size:15px; }
 .theme-bento .purchase-controls .btn { min-width:44px; }
}
@container (max-width:115px) {
 .theme-bento .purchase-controls .quantity-stepper>button { flex-basis:18px; width:18px; min-width:18px; }
 .theme-bento .purchase-controls .quantity-stepper input { font-size:13px; }
 .theme-bento .purchase-controls .quantity-stepper .quantity>span:not(.sr-only) { font-size:10.5px; }
}
@media(prefers-reduced-motion:reduce) { .theme-bento .product { transition:none; } }
/* Addition feedback keeps the price and button geometry stable. */
.theme-bento .cart-button-icon { display:grid; flex:none; width:18px; height:18px; }
.theme-bento .cart-button-icon>svg { grid-area:1 / 1; width:18px; height:18px; transition:opacity .14s ease,transform .2s ease; }
.theme-bento .cart-added-icon { opacity:0; transform:scale(.55); }
.theme-bento .cart-added .compact-cart-icon { opacity:0; transform:scale(.55); }
.theme-bento .cart-added .cart-added-icon { opacity:1; transform:scale(1); }
.cart-flying-product { position:fixed; z-index:12; pointer-events:none; object-fit:contain; border-radius:12px; background:#f5f5f8; box-shadow:0 4px 14px #24283218; will-change:transform,opacity; }
@media(prefers-reduced-motion:reduce) {
 .theme-bento .cart-button-icon>svg { transition:none; }
}
/* Visitors browse the catalogue without purchase controls or empty action rows. */
.theme-bento .product.product-preview { grid-template-rows:112px 40px minmax(24px,auto); }
.theme-bento .product.product-request { grid-template-rows:112px 40px; }
@media(max-width:479px) {
 .theme-bento .product.product-preview { grid-template-rows:104px 40px minmax(24px,auto); }
 .theme-bento .product.product-request { grid-template-rows:104px 40px; }
}
