/* Kush Buddy v3.1: selected homepage 1, catalogue 3, Quick View 5. */
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product{grid-template-columns:88px minmax(0,1fr) 44px;gap:14px}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-media,
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-image{width:88px;height:88px;max-width:none;padding:0;border-radius:10px}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-image img{width:100%;height:100%;padding:0;object-fit:contain}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-copy{display:block;min-width:0}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-price{font-size:15px;font-weight:700;line-height:1.3;margin-top:5px;color:var(--kb-site-ink)}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-list{align-items:stretch;gap:16px}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;align-items:stretch;padding:0;gap:0;overflow:hidden;border:1px solid var(--kb-site-line);border-radius:16px;background:var(--kb-site-paper)}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-media{width:100%;max-width:none;position:relative}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-media>.kbcs-product-image{position:relative;width:100%;height:auto;max-width:none;aspect-ratio:1!important;padding:0;margin:0;border-radius:0;background:var(--kb-site-tonal)}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-image img{position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:contain}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:14px;min-width:0}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy h3{font-size:17px;line-height:1.3;margin:0;font-weight:700}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy>.kbcs-price{font-size:16px;font-weight:700;margin-top:auto;padding-top:8px}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy>.kbcs-product-button{align-self:flex-start;min-height:40px;padding:8px 18px;margin-top:2px;border-radius:24px;background:var(--kb-site-accent);color:var(--kb-site-paper)!important;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;text-decoration:none}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-button>span{display:none}
/* Shared cart artwork: a static glass surface, no filters or animation per card. */
html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon){position:relative;isolation:isolate;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none!important;opacity:1;line-height:1;transform:none;transition:none;color:var(--kb-site-ink)}
html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon)::before{content:"";position:absolute;inset:5px;border:1px solid rgba(43,77,56,.2);border-radius:50%;background:rgba(252,254,249,.85);box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(18,43,28,.07);pointer-events:none;z-index:-1}
html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon) img{width:19px;height:19px;object-fit:contain;filter:none;opacity:.86;pointer-events:none}
html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon):is(:hover,:focus-visible)::before{background:var(--kb-site-tint);border-color:var(--kb-site-accent)}
html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon):focus-visible{outline:2px solid var(--kb-site-accent);outline-offset:2px}
html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-product-media>.kbcs-quickview-icon{position:absolute;top:6px;right:6px;left:auto;bottom:auto}
html[data-kb-theme=night] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon)::before{background:rgba(30,57,67,.92);border-color:var(--kb-site-control-border);box-shadow:inset 0 1px 0 rgba(230,248,245,.2),0 2px 6px rgba(0,0,0,.14)}
html[data-kb-theme=night] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon) img{filter:brightness(0) invert(1);opacity:.95}
html[data-kb-theme=night] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy>.kbcs-product-button{background:var(--kb-site-accent);color:var(--kb-site-ink)!important}
/* Full-width archive and square, larger photos; preserve WooCommerce links/forms. */
html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .category-page-row>#shop-sidebar,
html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .category-page-row>.large-3:has(#shop-sidebar){display:none}
html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .category-page-row>.large-9{flex-basis:100%;max-width:100%}
html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .shop-container>.products.row{width:calc(100% + 20px);max-width:none}
html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .products.row>.product-small.col{flex-basis:25%;max-width:25%;padding:0 8px 16px}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col>.col-inner{height:100%;padding:0;overflow:hidden;border:1px solid var(--kb-site-line);border-radius:16px;background:var(--kb-site-paper);box-shadow:none}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .product-small.box{height:100%;display:flex;flex-direction:column}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .box-image{width:100%;aspect-ratio:1;border-radius:0;flex:none;background:var(--kb-site-tonal)}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .box-image>div:first-child img{width:100%;height:100%!important;object-fit:contain!important;padding:0;aspect-ratio:auto!important}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .box-text{padding:14px;display:flex;flex-direction:column;flex:1;gap:6px;text-align:left}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .box-text :is(.product-title,.title-wrapper){margin:0;font-size:17px;line-height:1.3}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .price-wrapper{margin-top:auto}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .price{font-size:16px;line-height:1.4}
html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .add-to-cart-button a{border-radius:24px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:8px 18px;margin:3px 0 0;font-size:13px}
/* Large-image Quick View. The native pricing and variation hooks remain intact. */
html[data-kb-theme] body.kb-storefront .kb-qv-modal .mfp-content{max-width:960px}
html[data-kb-theme] body.kb-storefront .kb-qv-modal .kb-quickview{--kb-qv-content-max:calc(100svh - 106px);max-height:calc(100svh - 48px);min-height:0;padding:28px;border-radius:24px;overflow:hidden}
html[data-kb-theme] body.kb-storefront .kb-qv-content{max-height:var(--kb-qv-content-max);overflow:auto;overscroll-behavior:contain}
html[data-kb-theme] body.kb-storefront .kb-qv-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:26px;align-items:start}
html[data-kb-theme] body.kb-storefront .kb-quickview-image{position:relative;grid-column:auto;grid-row:auto;width:100%;border-radius:16px;aspect-ratio:1}
html[data-kb-theme] body.kb-storefront .kb-quickview-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;aspect-ratio:auto}
html[data-kb-theme] body.kb-storefront .kb-qv-summary{display:block;min-width:0;padding:14px 0 0}
html[data-kb-theme] body.kb-storefront .kb-qv-form{display:block}
html[data-kb-theme] body.kb-storefront .kb-quickview form.variations_form{display:block}
html[data-kb-theme] body.kb-storefront .kb-qv-title{font-size:26px;line-height:1.2;letter-spacing:-.025em;margin:0 44px 16px 0;width:auto!important;grid-column:auto;grid-row:auto}
html[data-kb-theme] body.kb-storefront .kb-qv-form>.price-wrapper{grid-column:auto;grid-row:auto;margin-bottom:20px}
html[data-kb-theme] body.kb-storefront .kb-qv-form :is(.price-wrapper,.woocommerce-variation-price) .price{font-size:24px;font-weight:700;line-height:1.3}
html[data-kb-theme] body.kb-storefront .kb-qv-form :is(.price-wrapper,.woocommerce-variation-price) .price del{display:block;font-size:14px;font-weight:400;margin-bottom:4px}
html[data-kb-theme] body.kb-storefront .kb-qv-form :is(.price-wrapper,.woocommerce-variation-price) .price ins{display:block;text-decoration:none}
html[data-kb-theme] body.kb-storefront .kb-quickview .variations{grid-column:auto;grid-row:auto;width:100%;margin:0 0 14px}
html[data-kb-theme] body.kb-storefront .kb-quickview :is(select,input,button){max-width:100%}
html[data-kb-theme] body.kb-storefront .kb-quickview select{min-height:46px;border-radius:18px;font-size:15px}
html[data-kb-theme] body.kb-storefront .kb-quickview .kb-qv-details{margin:20px 0 4px;border-top:1px solid var(--kb-site-line);padding-top:8px}
html[data-kb-theme] body.kb-storefront .kb-qv-details summary{display:flex;justify-content:space-between;gap:12px}
html[data-kb-theme] body.kb-storefront .kb-qv-excerpt{display:none}
html[data-kb-theme] body.kb-storefront .kb-qv-modal .kb-quickview>.mfp-close{right:14px;top:14px!important;z-index:5;display:grid;place-items:center;padding:0;border:1px solid var(--kb-site-control-border,var(--kb-site-line));background:var(--kb-site-paper);border-radius:50%;mix-blend-mode:normal}
@media(max-width:1100px) and (min-width:701px){
 html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .products.row>.product-small.col{flex-basis:33.3333%;max-width:33.3333%}
}
@media(max-width:700px){
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product{grid-template-columns:80px minmax(0,1fr) 44px;gap:10px;padding:12px 0}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-media,
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-image{width:80px;height:80px}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product h3{font-size:15px;line-height:1.3}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-list{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy{padding:10px;gap:5px}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy h3{font-size:15px}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy>.kbcs-price{font-size:14px}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-grid .kbcs-product-copy>.kbcs-product-button{width:100%;min-height:42px;padding:8px 12px}
 html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon)::before{inset:0;background:rgba(252,254,249,.94)}
 html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon) img{width:23px;height:23px;opacity:1}
 html[data-kb-theme=night] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon)::before{background:rgba(30,57,67,.96)}
 html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .products.row>.product-small.col{flex-basis:50%;max-width:50%;padding:0 6px 12px}
 html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .shop-container{display:flex;flex-direction:column}
 html[data-kb-theme] body.kb-storefront:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) #main .shop-container>.term-description{order:1;margin-top:20px}
 html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .box-text{padding:10px;gap:5px}
 html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .box-text :is(.product-title,.title-wrapper){font-size:15px}
 html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .price{font-size:14px}
 html[data-kb-theme] body.kb-storefront #main .products.row>.product-small.col .add-to-cart-button a{min-height:42px;padding:8px 16px}
 html[data-kb-theme] body.kb-storefront .kb-qv-modal .mfp-container{padding:0;display:flex;align-items:flex-end}
 html[data-kb-theme] body.kb-storefront .kb-qv-modal .mfp-content{width:100%;max-width:100%;margin:0}
 html[data-kb-theme] body.kb-storefront .kb-qv-modal .kb-quickview{--kb-qv-content-max:calc(100svh - 30px - max(18px,env(safe-area-inset-bottom)));--kb-qv-content-max:calc(100dvh - 30px - max(18px,env(safe-area-inset-bottom)));width:100%;margin:0!important;padding:16px 16px max(18px,env(safe-area-inset-bottom));max-height:calc(100svh - 12px);max-height:calc(100dvh - 12px);border-radius:24px 24px 0 0}
 html[data-kb-theme] body.kb-storefront .kb-qv-heading{display:block}
 html[data-kb-theme] body.kb-storefront .kb-quickview-image{aspect-ratio:5/4;max-height:340px}
 html[data-kb-theme] body.kb-storefront .kb-qv-summary{display:block;padding:14px 0 0}
 html[data-kb-theme] body.kb-storefront .kb-qv-title{font-size:24px;margin:0 0 14px;width:100%!important}
 html[data-kb-theme] body.kb-storefront .kb-qv-modal .kb-quickview>.mfp-close{top:24px!important;right:24px}
 html[data-kb-theme] body.kb-storefront .kb-qv-form>.price-wrapper{margin-bottom:16px}
}
@media(max-width:360px){
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product{grid-template-columns:72px minmax(0,1fr) 44px;gap:8px}
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-media,
 html[data-kb-theme] body.kb-storefront #main .kbcs .kbcs-layout-list .kbcs-product-image{width:72px;height:72px}
}
@media(prefers-contrast:more),(forced-colors:active){
 html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon)::before{background:Canvas;border:1px solid CanvasText;box-shadow:none}
 html[data-kb-theme] body.kb-storefront #main :is(.kb-catalog-quickview,.kbcs-quickview-icon) img{opacity:1}
}
