/* Image cards share the same CSRF/version checked add-to-cart endpoint. */
.has-shop-page .portal.portal-wide{max-width:1176px}
.has-shop-page .product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px}
.has-shop-page .product-card{display:block;min-width:0;padding:0;border:1px solid #e2d7c1;border-radius:5px;overflow:hidden;background:#fffefa;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.has-shop-page .product-card:hover{transform:none;border-color:#bba16d;box-shadow:0 3px 12px #6b522b0c}
.has-shop-page .product-card [hidden]{display:none!important}
.has-shop-page .card-art{display:flex;align-items:center;justify-content:center;width:100%;height:116px;border:0;border-radius:0;border-bottom:1px solid #eee5d5;background:radial-gradient(ellipse at center,#f2e7cc,#fbf8ef 75%)}
.has-shop-page .card-art img{width:76px;height:76px;max-width:76px;max-height:76px;min-height:0;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 3px #80632920)}
.has-shop-page .card-copy{padding:13px 14px;min-width:0}
.has-shop-page .card-title{display:block;color:#56452d}
.has-shop-page .card-title h3{font-size:14px;font-weight:600;line-height:1.55;min-height:44px;margin:0 0 7px;overflow-wrap:anywhere}
.has-shop-page .card-copy>.card-price{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:11px}
.has-shop-page .card-price strong{font:24px Georgia,serif;color:#967134;white-space:nowrap}
.has-shop-page .card-price strong small{font:12px "Microsoft JhengHei",sans-serif}
.has-shop-page .card-price>span{font-size:11px;color:#857354;overflow-wrap:anywhere;white-space:normal;text-align:right}
.has-shop-page .card-purchase{max-width:none;margin:0}
.has-shop-page .card-quantity{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin:0 0 10px;font-size:12px;color:#776447}
.has-shop-page .card-quantity input{width:68px;min-width:0;max-width:100%;padding:6px 4px;margin:0;text-align:center;font-size:14px;line-height:1.5}
.has-shop-page .card-purchase .button,.has-shop-page .card-login{display:block;width:100%;padding:9px 6px;font-size:13px;text-align:center;line-height:1.6;letter-spacing:0;white-space:normal}
.has-shop-page .card-variants label{display:block;margin:0 0 9px;font-size:12px;line-height:1.6;color:#776447}
.has-shop-page .card-variants select{display:block;width:100%;max-width:100%;min-width:0;padding:8px 5px;margin-top:4px;font-size:13px;text-overflow:ellipsis}
.has-shop-page .card-title:focus-visible,.has-shop-page .card-art:focus-visible{outline:2px solid #9b7838;outline-offset:-3px}
.product-recommendations{margin-top:28px;padding-top:21px;border-top:1px solid #e2d7c1}
.product-recommendations h2{font-size:20px;color:#5e4c2e;margin:0 0 14px}
.recommendation-note{font-size:12px;color:#817154;line-height:1.8;margin:0 0 14px}
@media(max-width:1000px) and (min-width:761px){
 .has-shop-page .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
}
@media(max-width:760px){
 .has-shop-page .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .has-shop-page .card-art{height:100px}.has-shop-page .card-art img{width:64px;height:64px;max-width:64px;max-height:64px}
 .has-shop-page .card-copy{padding:11px 10px}
 .has-shop-page .card-title h3{font-size:13px;min-height:41px;line-height:1.55;margin-bottom:6px}
 .has-shop-page .card-copy>.card-price{gap:4px;margin-bottom:9px;flex-wrap:wrap}
 .has-shop-page .card-price strong{font-size:22px}.has-shop-page .card-price>span{font-size:10px}
 .has-shop-page .card-quantity{gap:6px;font-size:12px}.has-shop-page .card-quantity input{width:57px;font-size:16px;min-height:44px;padding:7px 2px}
 .has-shop-page .card-purchase .button,.has-shop-page .card-login{padding:11px 4px;min-height:44px;font-size:12px}
 .has-shop-page .card-variants select{font-size:16px;min-height:44px}
 .product-recommendations{margin-top:22px;padding-top:18px}.product-recommendations h2{font-size:18px;line-height:1.6;margin-bottom:12px}
}
