/* Shop presentation: compact cards, visible sizes and a persistent purchase bar. */
.shop-product-header{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid var(--ink);background:#fff}
.shop-product-header .brand{font-size:30px;margin-right:auto}
.shop-product-header button{min-width:44px;min-height:44px;border:0;background:#fff;color:var(--ink);font:800 13px var(--font-body)}
.shop-page .shop-product-header .work-close{position:static;display:grid;place-items:center;padding:10px;flex-shrink:0}
.shop-product-header svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
.shop-page .work-panel{grid-template-columns:minmax(0,1.05fr) minmax(330px,.8fr);grid-template-rows:auto minmax(0,1fr);padding-top:0}
.shop-page .work-preview{height:auto;min-height:0}
.shop-page .work-details{display:block;min-height:0;overflow:auto}
.shop-page .work-details-content{display:flex;flex-direction:column;gap:18px;padding:20px}
.shop-product-heading{display:flex;align-items:end;justify-content:space-between;gap:12px}
.shop-product-heading span{font-size:11px;font-weight:800;text-transform:uppercase}
.shop-product-heading h2{margin:5px 0 0;font:42px/.95 var(--font-display);text-transform:uppercase}
.shop-format-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.shop-format-heading h3,.shop-format-heading>span{margin:0;font-size:13px;font-weight:850;text-transform:uppercase}
.shop-format-heading>span:last-child,.shop-format-heading small{font-size:12px;font-weight:500;text-transform:none;color:var(--muted)}
.shop-page .product-format-picker button>strong{grid-column:2;grid-row:1}
.shop-page .work-format-options button{min-height:72px;padding:10px 12px}
.shop-page .work-format-options button>span{font-size:18px}
.shop-page .work-format-options button>strong{font-size:14px}
.shop-page .work-format-options button>small{font-size:12px}
.shop-product-reassurance{display:grid;gap:9px;font-size:12px;line-height:1.5}
.shop-product-reassurance p{margin:0}
.shop-product-reassurance a{justify-self:start;text-decoration:underline;text-underline-offset:3px}
.shop-page .work-details-copy{display:block;padding:16px 0;border-top:1px solid var(--line)}
.shop-page .work-details-copy h3{margin:0;font:800 14px var(--font-body);text-transform:none}
.shop-page .work-details-copy summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font-size:14px;font-weight:800;list-style:none}
.shop-page .work-details-copy summary::-webkit-details-marker{display:none}
.shop-page .work-details-copy summary::after{content:"";width:9px;height:9px;margin-right:4px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg);flex-shrink:0}
.shop-page .work-details-copy[open] summary::after{transform:rotate(225deg)}
.shop-page .work-detail{font-size:14px;line-height:1.6;padding:10px 0}
.shop-page .work-actions{position:static;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:center;max-height:none;overflow:visible;padding:12px 0 0;border:0;background:#fff}
.shop-purchase-context{display:none;gap:3px;min-width:84px}
.shop-purchase-context span{font-size:13px;font-weight:750;color:var(--ink)}
.shop-purchase-context strong{font-size:23px;line-height:1;white-space:nowrap}
.shop-page .work-actions .product-add{min-height:48px;grid-template-columns:1fr auto;gap:8px;padding:10px 12px;font-size:14px;text-transform:none}
.shop-page [data-work-price][hidden]{display:none}
.shop-page .product-purchase .product-add{grid-template-columns:minmax(0,1fr) auto}
.shop-page .product-details-link{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:58px;width:100%;padding:3px 0;border:0;font:inherit;line-height:1;text-align:left;text-transform:none}
.shop-page .product-details-link small{display:inline-flex;align-items:center;gap:6px;font:800 11px var(--font-body);text-decoration:underline;text-underline-offset:3px}
.shop-page .product-details-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.product-media{position:relative;min-width:0}
.product-media>.product-image{display:block}
.product-gallery{position:absolute;left:8px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:5px;max-height:calc(100% - 24px);padding:4px;overflow-y:auto;overscroll-behavior:contain;background:#ffffffb8;border-radius:4px}
.product-gallery button{flex-shrink:0;width:44px;height:50px;padding:3px;border:1px solid transparent;background:#fff;opacity:.62;cursor:pointer}
.product-gallery button[aria-pressed="true"]{opacity:1;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.product-gallery button:hover,.product-gallery button:focus-visible{opacity:1}
.product-gallery button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.product-gallery img{object-fit:contain;pointer-events:none}

@media(max-width:900px){
  .shop-page .work-modal{padding:0;place-items:stretch}
  .shop-page .work-panel{width:100%;height:100svh;height:100dvh;max-height:none;border:0;padding-top:0;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .shop-product-header{padding-top:max(6px,env(safe-area-inset-top));padding-inline:10px}
  .shop-page .work-details{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;overflow:hidden}
  .shop-page .work-details-content{gap:12px;padding:16px;overflow:auto;scroll-padding:12px;overscroll-behavior:contain}
  .shop-page .work-preview{flex:none;height:clamp(280px,46svh,410px);min-height:0;max-height:none;grid-template-rows:minmax(0,1fr) 54px;padding:6px 0 0;background:#f6f6f3}
  .shop-page .work-preview>img{width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;padding:8px 24px 16px;cursor:zoom-in}
  .shop-page .work-preview .work-gallery{min-height:0;padding:7px 88px 0 0;gap:8px;border-top:0;background:white}
  .shop-page .work-gallery button{flex-basis:46px;width:46px;height:44px;padding:3px}
  .shop-page .work-slide{top:calc(50% - 24px);width:34px;height:44px;border:0;background:#fffc}
  .shop-page .work-slide-prev{left:0}.shop-page .work-slide-next{right:0}
  .shop-page .shop-work-enlarge{top:auto;left:auto;right:7px;bottom:8px;min-height:36px;padding:6px 9px;font-size:12px}
  .shop-page .work-actions{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
  .shop-purchase-context{display:grid}
  .shop-page .work-format-options button{min-height:68px}
}
@media(max-width:720px){
  .shop-page .shop-reassurance{display:none}
  .shop-page .product-card{gap:12px}
  .shop-page .product-meta{display:grid;grid-template-columns:1fr auto;gap:5px 12px}
  .shop-page .product-meta h3{font-size:24px}
  .shop-page .product-meta .product-summary{display:none}
  .shop-page .product-meta .product-tags{align-self:center}
  .shop-page .product-purchase{gap:8px;padding-top:10px}
  .shop-page .product-purchase-heading>span{font-size:11px}
  .shop-page .product-purchase-heading>strong{font-size:18px}
  .shop-page .product-purchase .product-format-picker button{min-height:56px;padding:8px 10px}
  .shop-page .product-purchase .product-format-picker button>span,.shop-page .product-purchase .product-format-picker button>strong{font-size:15px}
  .shop-page .product-purchase .product-format-picker button>small{font-size:11px}
  .shop-page .product-purchase .product-add{min-height:44px;padding:8px 12px;font-size:12px;text-transform:none}
  .shop-page .product-purchase .product-add strong{font-size:14px}
}
@media(max-height:600px) and (max-width:900px){
  .shop-page .work-preview{height:280px}
  .shop-product-header .brand{font-size:26px}
}
