/* Shop pages use WooCommerce's real catalog, product and stock data. */
body.sadie-shop-catalog .woocommerce-products-header{margin-bottom:22px}
.sadie-shop-intro{max-width:650px;margin:0 0 30px;color:var(--muted);font-size:15px;line-height:1.8}
body.sadie-shop-catalog .woocommerce-result-count,
body.sadie-shop-catalog .woocommerce-ordering{margin-bottom:25px}
body.sadie-shop-catalog ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:60px 42px;max-width:1000px}
/* One native listing gets room for its title and availability beside the art.
   Larger catalogs keep the existing grid and sorting control. */
body.sadie-shop-one-item .woocommerce-ordering{display:none}
body.sadie-shop-one-item ul.products{grid-template-columns:minmax(0,1fr)}
@media(min-width:761px){
  body.sadie-shop-one-item ul.products li.product .woocommerce-loop-product__link{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);grid-template-rows:1fr auto auto 1fr;column-gap:clamp(30px,5vw,64px)}
  body.sadie-shop-one-item ul.products li.product a img{grid-column:1;grid-row:1/5;margin-bottom:0}
  body.sadie-shop-one-item ul.products li.product .woocommerce-loop-product__title{grid-column:2;grid-row:2;padding-top:0}
  body.sadie-shop-one-item ul.products li.product .price{grid-column:2;grid-row:3}
  body.sadie-shop-one-item ul.products li.product .sadie-shop-stock{grid-column:2;grid-row:4}
}
body.sadie-shop-catalog ul.products li.product{width:100%;float:none;margin:0;min-width:0;border-top:1px solid var(--line);padding-top:20px}
/* Woo's narrow-screen [class*="columns-"] rule otherwise leaves a 48% item in a one-column grid. */
body.sadie-shop-catalog.woocommerce ul.products[class*="columns-"] li.product{width:100%;float:none;clear:none;margin:0}
body.sadie-shop-catalog ul.products li.product a img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;padding:18px;background:#eeece2;margin-bottom:22px}
body.sadie-shop-catalog ul.products li.product .woocommerce-loop-product__title{max-width:32ch;margin-bottom:3px}
.sadie-shop-stock{display:block;min-height:28px;margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
.sadie-shop-stock.is-sold-out{color:#75434b}
.sadie-shop-unconfirmed{padding:12px 0;border-block:1px solid var(--line);color:var(--muted);font-size:14px}
body.sadie-shop-catalog ul.products li.product .button{margin-top:15px}
body.single-product div.product div.images .woocommerce-product-gallery__image{padding:18px}
body.single-product div.product div.images .woocommerce-product-gallery__image img,
body.single-product div.product div.images .flex-control-thumbs img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
body.single-product div.product div.summary{padding-top:8px}
body.single-product div.product .stock{font-size:15px;line-height:1.6}
@media(max-width:760px){
  .sadie-shop-intro{font-size:14px;margin-bottom:24px}
  body.sadie-shop-one-item .sadie-shop-intro{margin-bottom:18px}
  body.sadie-shop-one-item .woocommerce-products-header{margin-bottom:14px}
  body.sadie-shop-one-item .woocommerce-result-count{margin-bottom:16px}
  body.sadie-shop-catalog ul.products{grid-template-columns:minmax(0,1fr);gap:38px}
  body.sadie-shop-catalog ul.products li.product a img{padding:13px}
  body.sadie-shop-catalog ul.products li.product .button{min-height:48px;font-size:14px}
  body.sadie-shop-catalog .woocommerce-ordering select{min-height:48px}
  body.single-product div.product div.images .woocommerce-product-gallery__image{padding:12px}
}
