/* Consistent catalog rhythm on desktop and tablet; phones retain the two-column layout. */
@media(min-width:701px){
 .is-catalog-grid{display:grid!important;grid-auto-rows:1fr;align-items:stretch;gap:22px!important}
 .is-catalog-grid>li{display:flex!important;min-width:0!important;width:auto!important;margin:0!important}
 .is-catalog-grid>li>.wp-block-group{box-sizing:border-box;display:flex!important;flex-direction:column;width:100%;height:100%;min-width:0;padding:14px!important;gap:14px}
 .is-catalog-grid>li>.wp-block-group>*{margin:0!important;min-width:0}
 .is-catalog-grid>li>.wp-block-group>.wc-block-components-product-image,
 .is-catalog-grid>li>.wp-block-group>.is-shirt-preview{flex:0 0 auto;width:100%!important;height:auto!important;aspect-ratio:4/5!important;overflow:hidden;border-radius:12px}
 .is-catalog-grid>li>.wp-block-group>.wc-block-components-product-image>a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
 .is-catalog-grid>li>.wp-block-group>.wc-block-components-product-image img{width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important}
 .is-catalog-grid .wp-block-post-title{flex:1 0 auto;font-size:18px!important;line-height:1.35!important;font-weight:600;word-break:normal;overflow-wrap:normal}
 .is-catalog-grid .wp-block-woocommerce-product-price{flex:0 0 auto;min-height:26px;font-size:16px!important;line-height:1.5}
 .is-catalog-grid .wp-block-woocommerce-product-button{flex:0 0 auto;width:100%}
 .is-catalog-grid .wp-block-button__link{box-sizing:border-box;width:100%!important;min-height:46px;display:flex;align-items:center;justify-content:center;padding:11px 8px!important;font-size:14px!important;line-height:1.4!important}
 .is-catalog-grid .is-shirt-preview{display:flex;flex-direction:column}
 .is-catalog-grid .is-shirt-view-options{flex:0 0 auto;padding:6px;gap:6px}
 .is-catalog-grid .is-shirt-view-options button{font-size:12px;padding:7px 3px}
 .is-catalog-grid .is-shirt-preview-stage{flex:1 1 0;min-height:0;aspect-ratio:auto}
 .is-catalog-grid .is-shirt-design-panel{padding:4%}
 .is-catalog-grid .is-shirt-preview-meta{flex:0 0 44px;justify-content:center;padding:0 6px;gap:0}
 .is-catalog-grid .is-shirt-detail-button{min-height:44px;font-size:12px}
 .is-catalog-grid .is-shirt-color-label,
 .is-catalog-grid .is-shirt-print-words,
 .is-catalog-grid .is-shirt-preview-note{display:none}
}
/* Product details and buying controls. */
body.single-product main{color:#17243b}
body.single-product main>.wp-block-columns{gap:clamp(24px,4vw,64px)}
body.single-product h1.wp-block-post-title{font-size:clamp(28px,3.3vw,46px);font-weight:750;line-height:1.12;letter-spacing:-.035em}
body.single-product .wp-block-post-excerpt{line-height:1.65;font-size:16px}
body.single-product .variations_form{padding:22px;border:1px solid #dfe3ed;border-radius:18px;background:#f8f6fd}
body.single-product form.cart table.variations{width:100%;margin-bottom:16px;border-collapse:separate;border-spacing:0 12px}
body.single-product form.cart .variations th{text-align:left;font-size:14px;line-height:1.4;padding-right:14px;vertical-align:middle}
body.single-product form.cart .variations td{padding:0}
body.single-product form.cart select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:10px 32px 10px 12px;border:1px solid #a8a2b9;border-radius:8px;background-color:white;font-size:16px;color:#17243b}
body.single-product .reset_variations{display:inline-block;padding:8px 0;font-size:13px}
body.single-product .woocommerce-variation-price{font-size:22px;font-weight:700;margin:10px 0 16px}
body.single-product .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.single-product form.cart .quantity input{box-sizing:border-box;min-height:48px;width:70px;border:1px solid #a8a2b9;border-radius:8px;font-size:16px}
body.single-product form.cart .single_add_to_cart_button{flex:1;min-height:48px;padding:12px 20px;border-radius:999px;background:#40248b;color:white;font-size:16px;font-weight:700;border:0}
body.single-product form.cart .single_add_to_cart_button:hover{background:#5b35d5}
body.single-product form.cart .single_add_to_cart_button.disabled{opacity:.55}
body.single-product .is-size-guide-link{display:inline-flex;align-items:center;min-height:44px;margin-bottom:4px;color:#40248b;font-size:14px;font-weight:700;text-underline-offset:3px}
body.single-product .is-shirt-gallery-detail{background:#f8f6fd;border:1px solid #dfe3ed;border-radius:12px;padding:10px 14px;gap:6px 12px}
body.single-product .is-shirt-gallery-detail button{min-height:44px;font-size:14px}
body.single-product .woocommerce-tabs{border-top:1px solid #dfe3ed;padding-top:24px}
body.single-product .woocommerce-tabs ul.tabs{display:flex!important;flex-wrap:wrap;gap:8px;padding:0!important;list-style:none;margin-bottom:24px}
body.single-product .woocommerce-tabs ul.tabs li{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
body.single-product .woocommerce-tabs ul.tabs li:before,body.single-product .woocommerce-tabs ul.tabs li:after{display:none!important}
body.single-product .woocommerce-tabs ul.tabs li a{display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:10px 16px;border:1px solid #d7d2e8;border-radius:999px;font-size:14px;line-height:1.4;text-decoration:none;font-weight:650}
body.single-product .woocommerce-tabs ul.tabs li.active a{background:#40248b;border-color:#40248b;color:#fff}
body.single-product .woocommerce-Tabs-panel{font-size:16px;line-height:1.7}
body.single-product .woocommerce-Tabs-panel h2{font-size:26px;font-weight:700}
body.single-product .woocommerce-Tabs-panel h3{font-size:20px;font-weight:700;scroll-margin-top:calc(var(--is-browse-height) + 24px)}
body.single-product .is-product-table{max-width:100%;overflow-x:auto;border:1px solid #dfe3ed;border-radius:12px;margin:20px 0}
body.single-product .is-product-table table{width:100%;border-collapse:collapse;line-height:1.5;font-size:15px;margin:0}
body.single-product .is-product-table th,body.single-product .is-product-table td{text-align:left;padding:12px 16px;border-bottom:1px solid #e5e4ee;white-space:nowrap}
body.single-product .is-product-table th{background:#eee8fc;color:#302053;font-weight:700}
body.single-product .is-product-table tr:nth-child(even) td{background:#faf9fd}
body.single-product .is-product-table tbody tr:last-child td{border-bottom:0}
body.single-product .is-product-table p{margin:0}
/* Related items remain easy to scan and browse on phones. */
body.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:18px!important;align-items:stretch}
body.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template>li{box-sizing:border-box;display:flex!important;flex-direction:column;width:auto!important;min-width:0;margin:0!important;padding:12px;border:1px solid #dfe3ed;border-radius:16px;gap:12px}
body.single-product [data-collection="woocommerce/product-collection/related"] li>*{margin:0!important}
body.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image{width:100%;aspect-ratio:1;flex:0 0 auto}
body.single-product [data-collection="woocommerce/product-collection/related"] img{object-fit:contain!important}
body.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-post-title{flex:1;font-size:16px!important;line-height:1.4!important;text-align:left}
body.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-button__link{box-sizing:border-box;min-height:44px;width:100%;padding:10px 5px;font-size:13px;display:flex;align-items:center;justify-content:center}
body.single-product main a:focus-visible,body.single-product main button:focus-visible,body.single-product main select:focus-visible{outline:3px solid #7050d8;outline-offset:3px}
@media(max-width:700px){
 body.single-product main>.wp-block-columns{gap:24px}
 body.single-product .variations_form{padding:16px}
 body.single-product .woocommerce-product-gallery .flex-control-thumbs{display:flex!important;gap:8px;overflow-x:auto;padding:6px 0!important}
 body.single-product .woocommerce-product-gallery .flex-control-thumbs li{flex:0 0 56px;width:56px!important;float:none!important;margin:0!important}
 body.single-product .woocommerce-tabs ul.tabs{gap:6px}
 body.single-product .woocommerce-tabs ul.tabs li a{font-size:12px;padding:9px 11px}
 body.single-product .is-product-table th,body.single-product .is-product-table td{padding:10px 12px;font-size:14px}
 body.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-post-title{font-size:14px!important}
 body.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-woocommerce-product-price{font-size:13px;min-height:36px}
 body.single-product [data-collection="woocommerce/product-collection/related"] .wp-block-button__link{font-size:12px;white-space:nowrap}
}

body.single-product #is-product-size-guide:focus{outline:none}
@media(min-width:701px) and (max-width:1100px){body.single-product [data-collection="woocommerce/product-collection/related"] .wc-block-product-template{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* Coaster supplier mockups have large white margins; enlarge only their catalog preview. */
li.product_cat-coasters .wc-block-components-product-image { overflow:hidden; }
li.product_cat-coasters .wc-block-components-product-image img { transform:scale(1.38); transform-origin:center; }
