/* Homepage shop (index-tidy.js): the three headline products in one row, swipeable on
   phones. Cards, tags and buttons keep the original homepage styles from index.php. */
#merch-section.home-shop-simple #merch-title{margin-bottom:24px}
#merch-section .home-shop-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:820px;margin:0 auto;padding-top:12px}
#merch-section .home-shop-row .ms-card{width:auto;max-width:none}
#merch-section .home-shop-row .ms-pic{height:230px}
#merch-section .home-shopify-fallback{display:block;margin-top:12px;color:#aaa;font:700 .8rem Arial,sans-serif;text-align:center}
#merch-section .home-shopify-buy{margin-top:12px}
#merch-section .home-shop-links{justify-content:center;margin:10px 0 0}
#merch-section .home-shop-links a{display:inline-block;padding:10px 12px}
@media(max-width:768px){
 #merch-section .home-shop-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:12px 2px 6px;margin:0 -12px;padding-left:12px;padding-right:12px}
 #merch-section .home-shop-row::-webkit-scrollbar{display:none}
 #merch-section .home-shop-row .ms-card{flex:0 0 72%!important;width:auto!important;max-width:280px!important;scroll-snap-align:center}
 #merch-section .home-shop-row .ms-pic{height:62vw;max-height:240px}
}
/* index-v2.css restyles .merch-storefront .ms-buy as an outline button; match the yellow Shopify one. */
#merch-section .home-shop-row .ms-buy,#merch-section .home-shop-row .ms-buy:hover{display:block;width:100%;margin-top:12px!important;padding:10px!important;border:none!important;border-radius:8px!important;background:#ffcc00!important;color:#000!important;font-family:'Anton',sans-serif!important;font-size:14px!important;letter-spacing:1px;line-height:1.2;text-align:center}
/* Allow the display font's ascenders and descenders to fit on both lines. */
#merch-section.home-shop-simple #merch-title{max-width:100%;padding:.12em .02em .18em!important;margin:0 0 16px!important;font-size:clamp(2.4rem,6vw,4.8rem)!important;line-height:1.16!important;overflow:visible;white-space:normal;overflow-wrap:normal}
#merch-section.home-shop-simple .home-shop-row .ms-card{display:flex!important;flex-direction:column;min-width:0}
#merch-section.home-shop-simple .home-shop-row .ms-card .ms-buy,
#merch-section.home-shop-simple .home-shop-row .ms-card .home-shopify-buy{margin-top:auto!important;min-height:44px}
#merch-section.home-shop-simple .home-shop-row .ms-card .home-shopify-fallback{min-height:1.35em;margin-top:10px;line-height:1.35}
@media(max-width:600px){#merch-section.home-shop-simple #merch-title{font-size:clamp(2.15rem,10.5vw,3rem)!important;line-height:1.18!important}}
/* Shelf photos fill a square tile in their real colours (index-v2.css adds a saturation
   filter and a frame), and the 01–05 numbers from index-ux.js are hidden: the shelf
   reorders the cards, so they read as "04, 02, 04". */
#merch-section.home-shop-simple .home-shop-row .ms-card:before{content:none}
#merch-section.home-shop-simple .home-shop-row .ms-pic{height:auto!important;max-height:none!important;aspect-ratio:1;padding:0!important;background:#fff!important}
#merch-section.home-shop-simple .home-shop-row .ms-pic img,
#merch-section.home-shop-simple .home-shop-row .ms-card:hover .ms-pic img{padding:0!important;object-fit:cover!important;filter:none!important}
/* "See all merch" (index-tidy.js): a full-width pink bar under the row, and on phones also the
   last card of the swipe row. Thumbnails are the New arrivals from /api/merch_new_list.php. */
#merch-section .home-shop-all{display:flex;align-items:center;gap:18px;max-width:820px;min-height:78px;margin:28px auto 0;padding:12px 14px 12px 20px;border-radius:14px;background:#ff42ac;color:#140a11;font-family:'Anton',sans-serif;letter-spacing:1px;text-decoration:none;transition:background .15s,transform .15s}
#merch-section .home-shop-all:hover{background:#ff62bb;transform:translateY(-2px)}
#merch-section .home-shop-all:focus-visible,#merch-section .home-shop-more:focus-visible{outline:3px solid #fff;outline-offset:3px}
#merch-section .home-shop-all-pics{position:relative;display:flex;flex:none}
#merch-section .home-shop-all-pics:empty{display:none}
#merch-section .home-shop-all-pics img{width:50px;height:50px;border:3px solid #ff42ac;border-radius:50%;background:#fff;object-fit:cover}
#merch-section .home-shop-all-pics img+img{margin-left:-14px}
#merch-section .home-shop-all-pics b{position:absolute;top:-9px;left:-8px;padding:2px 6px;border-radius:6px;background:#140a11;color:#fff;font:700 .62rem/1.3 Arial,sans-serif;letter-spacing:1px}
#merch-section .home-shop-all-label{flex:1;font-size:clamp(1.25rem,2.8vw,1.7rem);line-height:1.15;text-transform:uppercase}
#merch-section .home-shop-all-arrow{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:#140a11;color:#ff42ac;font:700 1.35rem/1 Arial,sans-serif;transition:transform .15s}
#merch-section .home-shop-all:hover .home-shop-all-arrow{transform:translateX(4px)}
#merch-section .home-shop-more{display:none}
@media(max-width:768px){
 #merch-section .home-shop-more{display:flex;flex:0 0 52%;max-width:200px;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:18px 12px;border-radius:14px;background:#ff42ac;color:#140a11;font-family:'Anton',sans-serif;letter-spacing:1px;text-align:center;text-decoration:none;scroll-snap-align:center}
 #merch-section .home-shop-more .home-shop-all-pics{display:grid;grid-template-columns:repeat(2,58px);gap:6px}
 #merch-section .home-shop-more .home-shop-all-pics:empty{display:none}
 #merch-section .home-shop-more .home-shop-all-pics img{width:58px;height:58px;margin:0;border-color:#140a11;border-width:2px}
 #merch-section .home-shop-more .home-shop-all-label{flex:none;font-size:1.25rem;text-transform:uppercase}
 #merch-section .home-shop-more .home-shop-all-arrow{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#140a11;color:#ff42ac;font:700 1.25rem/1 Arial,sans-serif}
}
@media(max-width:600px){
 #merch-section .home-shop-all{gap:12px;min-height:70px;padding:10px 10px 10px 16px}
 #merch-section .home-shop-all-pics img{width:42px;height:42px}
 #merch-section .home-shop-all .home-shop-all-pics img:nth-child(n+4){display:none}
}
@media(prefers-reduced-motion:reduce){#merch-section .home-shop-all,#merch-section .home-shop-all-arrow{transition:none}#merch-section .home-shop-all:hover,#merch-section .home-shop-all:hover .home-shop-all-arrow{transform:none}}
/* Shelf cards for the Printful new arrivals link to merch.php instead of opening the buy modal. */
#merch-section.home-shop-simple .home-shop-row a.ms-buy{display:flex!important;align-items:center;justify-content:center;text-decoration:none}
