/*
Theme Name: Coso Shoptimizer
Template: shoptimizer
Version: 1.1.0
Text Domain: coso-shoptimizer
*/
body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,.main-navigation a{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
.home .coso-home{width:100%;float:none;margin:0}
.coso-home-heading{text-align:center;padding:28px 0 22px}
.coso-eyebrow{margin:0 0 6px;color:#666;font-size:14px;letter-spacing:.12em}
.coso-home h1{font-size:clamp(1.3rem,3vw,2rem);line-height:1.5;margin:0}
.coso-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 24px}
.coso-category-card{display:flex;flex-direction:column;background:#f7f7f7;color:#222;overflow:hidden;border-radius:4px;text-decoration:none}
.coso-category-card img{width:100%;height:auto;aspect-ratio:1.8;object-fit:contain;background:#fff;margin:0}
.coso-category-card>span{padding:13px 18px;font-weight:600;display:flex;justify-content:space-between}
.coso-category-card:hover,.coso-category-card:focus-visible{box-shadow:0 3px 16px #0002;outline-offset:4px}
.coso-service-links{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;padding:16px;margin-bottom:28px;border-block:1px solid #e8e8e8}
.coso-service-links a{color:#333;text-decoration:underline;text-underline-offset:4px}
.coso-promotions img{display:block;width:100%;height:auto;margin:0 auto}
.coso-promotion-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.coso-product-section{margin-top:46px}
.coso-product-section h2{text-align:center;font-size:1.45rem;margin-bottom:28px}
.coso-all-products{text-align:center;margin:24px 0 48px}
.coso-footer-nav{padding-block:20px}
.coso-footer-nav ul{list-style:none;display:flex;justify-content:center;gap:14px 24px;flex-wrap:wrap;margin:0}
.coso-footer-nav a{color:inherit}
.single-product div.product .summary h1.product_title{font-size:clamp(20px,1.65vw,26px);line-height:1.55;font-weight:600;letter-spacing:.015em;overflow-wrap:anywhere;margin-bottom:18px}
.coso-mobile-sidebar-link{display:none}
/* Product CSS resets this shared parent to margin:0;padding:0;max-width:inherit.
   Keep the catalog aligned with the header's existing centered content gutter. */
body.coso-catalog-view #content .shoptimizer-archive>.col-full{box-sizing:content-box;max-width:1170px;margin-left:auto;margin-right:auto;padding-left:2.617924em;padding-right:2.617924em}
.coso-catalog-layout{display:grid;grid-template-columns:232px minmax(0,1fr);gap:32px;align-items:start}
.coso-catalog-layout::after{display:none}
body.coso-catalog-view .coso-catalog-layout #primary{width:100%;max-width:100%;min-width:0;float:none;margin:0}
.coso-catalog-sidebar{min-width:0;max-width:100%;position:static}
body.coso-catalog-view .coso-catalog-layout #secondary{display:block;position:static;left:auto;right:auto;top:auto;float:none;width:100%!important;max-width:100%;height:auto;max-height:none;margin:0;padding:0;transform:none;visibility:visible;opacity:1;overflow:visible;z-index:auto}
.coso-catalog-sidebar,.coso-catalog-sidebar *{box-sizing:border-box}
.coso-catalog-sidebar .widget-title{font-size:16px;line-height:1.5}
.coso-catalog-sidebar .widget{font-size:14px;max-width:100%;overflow-wrap:anywhere}
.coso-catalog-sidebar .widget_product_categories{padding-right:0}
.coso-catalog-sidebar input,.coso-catalog-sidebar select{max-width:100%}
.coso-catalog-view .mobile-filter{display:none}
@media(min-width:993px){.coso-catalog-layout #primary{grid-column:2;grid-row:1}.coso-catalog-sidebar{grid-column:1;grid-row:1}}
@media(max-width:992px){
body.coso-catalog-view #content .shoptimizer-archive>.col-full{padding-left:1em;padding-right:1em}
.coso-catalog-layout{grid-template-columns:minmax(0,1fr);gap:20px}
.coso-catalog-sidebar{padding-top:24px;border-top:1px solid #ddd}
.coso-mobile-sidebar-link{display:inline-block;margin:0;text-decoration:underline;text-underline-offset:4px}
.single-product div.product .summary h1.product_title{font-size:20px;line-height:1.6}
}
@media(max-width:767px){.coso-category-grid{grid-template-columns:1fr;gap:14px}.coso-category-card{display:grid;grid-template-columns:1.4fr 1fr;align-items:center}.coso-category-card img{aspect-ratio:1.9}.coso-service-links{gap:10px 20px;font-size:14px}.coso-promotion-pair{gap:12px}.coso-product-section{margin-top:30px}}
/* Retained COSO artwork and the original six-second banner rotation. */
.coso-hero{position:relative;max-width:100%;margin:12px 0 28px}
.coso-hero-viewport{aspect-ratio:10/3;overflow:hidden;background:#fff}
.coso-hero-slide{display:block;width:100%;height:100%}
.coso-hero-slide[hidden]{display:none!important}
.coso-hero-slide img{display:block;width:100%;height:100%;object-fit:contain;margin:0}
.coso-hero-controls{display:flex;justify-content:center;align-items:center;gap:14px;padding-top:10px}
.coso-hero-controls button{display:inline-flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;padding:0;border:1px solid #777;border-radius:50%;background:#fff;color:#333;line-height:1;box-shadow:none}
.coso-hero-controls button:focus-visible{outline:2px solid #446084;outline-offset:3px}
.coso-hero-dots{display:flex;gap:9px}
.coso-hero-dots button{width:12px;height:12px;min-width:12px;min-height:12px;border-color:#666;background:#fff}
.coso-hero-dots button[aria-pressed=true]{background:#333}
.coso-hero-controls [data-coso-pause]{min-width:72px;border-radius:3px;font-size:12px}
.coso-member-panel,.coso-sidebar-promotion{display:block;margin:0 0 18px}
.coso-member-panel img,.coso-sidebar-promotion img{display:block;width:100%;max-width:100%;height:auto;margin:0}
.coso-member-panel a{display:block;margin-top:5px}
.coso-catalog-sidebar .widget_product_categories{border:1px solid #ddd;background:#fff;padding:0 12px 12px}
.coso-catalog-sidebar .widget_product_categories .widget-title{margin:0 -12px 10px;padding:9px 12px;border-bottom:2px solid #333;background:#f2f2f2;color:#222;font-size:15px}
.coso-catalog-sidebar .product-categories{font-size:13px;line-height:1.6}
.coso-catalog-sidebar .product-categories .children{padding-left:12px;border-left:1px solid #ddd;margin-left:0}
.coso-catalog-sidebar .product-categories .count{font-size:12px;color:#777}
.coso-product-section h2 img{display:block;width:100%;height:auto;margin:0}
.coso-legacy-footer{clear:both;margin-top:48px;color:#333}
.coso-legacy-footer-title img{display:block;width:100%;height:auto;margin:0}
.coso-legacy-footer-body{background:#f2f2f2;padding:30px 0 20px}
.coso-legacy-footer-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.coso-legacy-footer-column{min-width:0;font:12px/1.7 Meiryo,sans-serif;overflow-wrap:anywhere}
.coso-legacy-footer-column p{font:inherit}
.coso-legacy-footer-column img{max-width:100%;height:auto}
.coso-footer-bottom{background:#000;color:#ddd;text-align:center;padding:5px 0 20px}
.coso-footer-bottom>.col-full{display:flex;flex-direction:column;align-items:center}
.coso-footer-bottom .coso-footer-nav,.coso-footer-bottom .coso-copyright{width:100%;float:none}
.coso-footer-bottom .coso-footer-nav ul{display:flex;width:100%;justify-content:center}
.coso-footer-bottom .coso-footer-nav a{font-size:12px;color:#ddd}
.coso-copyright{font-size:12px}
@media(max-width:992px){
.coso-legacy-footer-columns{grid-template-columns:minmax(0,1fr);gap:22px}
.coso-legacy-footer-column{font-size:14px}
.coso-member-panel,.coso-sidebar-promotion{max-width:316px;margin-left:auto;margin-right:auto}
.coso-hero{margin:4px 0 20px}
}
