/* Chefle Customizations — moved from WPCode snippet #1002: Shop cards & filter card design */
/* === Shop cards + filter card (Chefle style) === */
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag){--sh-ink:#111;--sh-muted:#6B6B6B;--sh-line:#ECECEC;--sh-yel:#FEC625;--sh-yel-d:#F2B705;--sh-ysoft:#FFF6D6}
/* toolbar inside product column */
.cp-shop-bar.cp-in-col{border-bottom:0!important;padding:0!important;margin:0 0 20px!important;min-height:44px}
/* filter card */
.cp-filter-card{border:1px solid var(--sh-line);border-radius:16px;padding:24px!important;background:#fff;align-self:flex-start;position:sticky;top:24px}
.cp-filter-title{font-size:24px;font-weight:700;color:var(--sh-ink);margin:0 0 20px;letter-spacing:-.01em}
.cp-filter-title:after{content:"";display:block;width:32px;height:3px;border-radius:3px;background:var(--sh-yel);margin-top:8px}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card .wc-block-product-filters h3{font-size:16px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;margin:0 0 12px!important}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card .wc-block-product-filters hr{margin:20px 0!important}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card input[type=checkbox]{accent-color:var(--sh-ink);width:18px;height:18px}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card .wc-block-product-filter-checkbox-list__input-wrapper:before,:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card .wc-block-product-filter-checkbox-list__input{border-radius:4px!important;border-color:#BDBDBD!important}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card .wc-block-product-filter-checkbox-list__input:checked{background:var(--sh-ink)!important;border-color:var(--sh-ink)!important}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card .wc-block-product-filter-price-slider input[type=text],:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card .wc-block-product-filter-price-slider input:not([type=range]){border:1px solid #DCDCDC!important;border-radius:10px!important;height:40px!important;font-size:14px!important}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .cp-filter-card input[type=range]{accent-color:var(--sh-ink)}
.cp-filter-clear{display:block;margin-top:20px;text-align:center;font-size:14px;font-weight:500;color:var(--sh-ink)!important;text-decoration:underline;text-underline-offset:3px}
/* product cards */
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .wc-block-product-template>li.cp-pcard{display:flex!important;flex-direction:column;border:1px solid var(--sh-line);border-radius:16px;padding:12px!important;background:#fff;margin:0!important;transition:box-shadow .2s,transform .2s;height:100%;box-sizing:border-box}
:is(body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag) .wc-block-product-template>li.cp-pcard:hover{box-shadow:0 14px 36px rgba(17,17,17,.08);transform:translateY(-3px)}
.cp-pcard .wc-block-components-product-image{border-radius:12px!important;overflow:hidden;margin:0!important;aspect-ratio:1/1;position:relative}
.cp-pcard .wc-block-components-product-image img{aspect-ratio:1/1!important;height:100%!important;width:100%!important;object-fit:cover!important;border-radius:12px!important}
/* hide category pill + bag icon on image, keep Sale badge */
.cp-pcard .wc-block-components-product-image .taxonomy-product_cat,.cp-pcard .wc-block-components-product-image .wp-block-outermost-icon-block{display:none!important}
.cp-pcard .wc-block-components-product-sale-badge{background:var(--sh-yel)!important;color:var(--sh-ink)!important;border:0!important;border-radius:999px!important;font-weight:600!important;padding:3px 10px!important}
/* wishlist heart */
.cp-pcard .woosw-btn.cp-heart{position:absolute!important;top:12px;right:12px;z-index:5;width:40px!important;height:40px!important;border-radius:50%!important;background:#fff!important;border:0!important;box-shadow:0 2px 8px rgba(0,0,0,.12);padding:0!important;margin:0!important;font-size:0!important;color:var(--sh-ink)!important;display:flex!important;align-items:center;justify-content:center;cursor:pointer}
.cp-pcard .woosw-btn.cp-heart *{display:none!important}
.cp-pcard .woosw-btn.cp-heart:before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center/contain no-repeat}
.cp-pcard .woosw-btn.cp-heart.woosw-added{color:#D33!important}
.cp-pcard .woosw-btn.cp-heart.woosw-added:before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center/contain no-repeat}
.cp-pcard .woosc-btn{display:none!important}
/* text block */
.cp-pcard>.wp-block-group{padding:16px 4px 0!important;margin:0!important;display:flex!important;flex-direction:column;align-items:center!important;gap:6px!important;text-align:center;flex:1 1 auto}
.cp-pcard .wp-block-post-title{text-align:center!important;font-size:18px!important;font-weight:600!important;line-height:1.3!important;margin:0!important;padding:0!important;width:100%}
.cp-pcard .wp-block-post-title a{color:var(--sh-ink)!important;text-decoration:none!important}
.cp-pcat{font-size:13px;color:var(--sh-muted);text-transform:capitalize;margin:0}
.cp-pcard>.wp-block-group>.wp-block-group{justify-content:center!important;margin:4px 0 0!important;padding:0!important;width:100%}
.cp-pcard .wp-block-group.has-border-color{border:0!important;padding:0!important;background:none!important;border-radius:0!important}
.cp-pcard .wc-block-components-product-price{text-align:center!important;font-size:17px!important;font-weight:700!important;color:var(--sh-ink)!important}
.cp-pcard .wc-block-components-product-price *{color:inherit!important;font-weight:inherit}
.cp-pcard .wc-block-components-product-price del{color:#8A8A8A!important;font-weight:400!important;font-size:14px}
.cp-pcard .wc-block-components-product-price ins{text-decoration:none!important}
.cp-pcard p.has-text-color{display:none!important}
/* button */
.cp-pbtn{display:flex!important;align-items:center;justify-content:center;margin-top:16px;padding-top:0;height:48px;border-radius:12px;background:var(--sh-yel);color:var(--sh-ink)!important;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-decoration:none!important;position:relative;transition:background .15s}
.cp-pbtn:before{content:"";position:absolute;left:4px;right:4px;top:-12px;border-top:1px solid var(--sh-line)}
.cp-pbtn:hover{background:var(--sh-yel-d)}
.cp-pcard>.wp-block-group+.cp-pbtn{margin-top:24px}
@media (max-width:781px){
.cp-filter-card{position:static;padding:0!important;border:0}
.cp-filter-title,.cp-filter-clear{display:none}
.cp-shop-bar.cp-in-col{margin-bottom:16px!important}
}
@media (max-width:781px){.cp-shop-bar.cp-in-col{gap:10px!important}.cp-shop-bar.cp-in-col>.wp-block-group{flex:0 1 auto!important;min-width:0}.cp-shop-bar.cp-in-col select{width:150px!important;max-width:100%!important}}
