/* BF BEDS v7 look for category and product pages (draft theme bfbeds-next). Restyles Flatsome's WooCommerce markup; no template changes. */
body.woocommerce{--y:#ffd500;--k:#141414;--g:#5f5f5a;--line:#e6e3dc;--l:#f6f4ef}
body.woocommerce #main,body.woocommerce #content{font-family:Lato,Arial,sans-serif;color:var(--k)}

/* ---- page title bar: calm sand strip instead of the dark yellow block ---- */
body.woocommerce .shop-page-title.featured-title{background:var(--l)!important;border-bottom:1px solid var(--line)}
body.woocommerce .featured-title .page-title-bg,body.woocommerce .featured-title .title-overlay{display:none!important}
body.woocommerce .featured-title .page-title-inner{min-height:0;padding-top:14px;padding-bottom:14px}
body.woocommerce .featured-title .page-title-inner,body.woocommerce .featured-title .page-title-inner a,body.woocommerce .featured-title .breadcrumbs,body.woocommerce .featured-title .breadcrumbs a,body.woocommerce .featured-title .woocommerce-breadcrumb{color:var(--k)!important;text-transform:none!important;font-weight:700;font-size:14px;letter-spacing:0}
body.woocommerce .featured-title .breadcrumbs a:hover{text-decoration:underline;text-decoration-color:var(--y);text-decoration-thickness:3px;text-underline-offset:4px}
body.woocommerce .woocommerce-ordering select{background:#fff!important;color:var(--k)!important;border:1px solid #d6d3cb;border-radius:8px;box-shadow:none;font-weight:700;min-height:40px}
body.woocommerce .featured-title .product-page-nav,body.woocommerce .featured-title .next-prev-thumbs{color:var(--k)}

/* ---- fluid width to match the homepage ---- */
body.woocommerce .page-title-inner,body.woocommerce .row.category-page-row,body.woocommerce .row.content-row,body.woocommerce .woocommerce-tabs.container,body.woocommerce .product-footer .container,body.woocommerce .product-section .row,body.woocommerce .product-section-title.container-width{max-width:1760px!important;padding-left:clamp(16px,3vw,56px);padding-right:clamp(16px,3vw,56px)}
body.woocommerce .shop-container{padding-bottom:clamp(24px,3vw,52px)}

/* ---- sidebar ---- */
body.woocommerce #shop-sidebar .widget_shopping_cart,body.woocommerce #shop-sidebar .widget_shopping_cart+.is-divider{display:none}
body.woocommerce #shop-sidebar .widget-title,body.woocommerce .sidebar-inner .widget-title{font-size:13px;font-weight:900;letter-spacing:1px;text-transform:uppercase;color:var(--k)}
body.woocommerce .product-categories li:has(> a[href*="uncategori"]){display:none}
body.woocommerce .product-categories a{font-size:15px;font-weight:700;color:var(--k)}
body.woocommerce .product-categories a:hover,body.woocommerce .product-categories .current-cat>a{color:var(--k);text-decoration:underline;text-decoration-color:var(--y);text-decoration-thickness:3px;text-underline-offset:4px}
body.woocommerce .product-categories .count{color:#8a8a84;font-weight:400}
body.woocommerce .row-divided>.col+.col:not(.large-12){border-left:0}

/* ---- headings ---- */
body.tax-product_cat .category-page-row h1,body.tax-product_cat .woocommerce-products-header h1,body.tax-product_cat .category-page-row .page-title{font-weight:900;letter-spacing:-.02em;line-height:1.1;font-size:clamp(26px,2.4vw,40px);color:var(--k);text-transform:none}
body.tax-product_cat .term-description,body.tax-product_cat .category-page-row p{color:#4a4a47;line-height:1.7}

/* ---- product cards (category grids, related products) ---- */
body.woocommerce .products.row{margin-left:-8px;margin-right:-8px}
body.woocommerce .products .product-small.col{padding:0 8px 16px}
body.woocommerce .products .product-small.col>.col-inner{height:100%}
body.woocommerce .product-small.box{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 10px 16px;transition:box-shadow .2s;overflow:hidden}
body.woocommerce .product-small.box:hover{box-shadow:0 18px 36px -24px rgba(0,0,0,.5)}
body.woocommerce .product-small.box .box-image{aspect-ratio:1/1;border-radius:6px;overflow:hidden;background:#fff;width:100%;flex:none}
body.woocommerce .product-small.box .box-image .image-none,body.woocommerce .product-small.box .box-image .image-none>a,body.woocommerce .product-small.box .box-image a{display:block;height:100%}
body.woocommerce .product-small.box .box-image img{width:100%;height:100%;object-fit:contain;display:block}
body.woocommerce .product-small.box .box-text{display:flex;flex-direction:column;flex:1;padding:12px 4px 0;text-align:left}
body.woocommerce .product-small.box .title-wrapper{display:flex;flex-direction:column;gap:4px}
body.woocommerce .product-small.box .category{font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#6b6b66;opacity:1;margin:0}
body.woocommerce .product-small.box .name a,body.woocommerce .product-small.box .product-title a{font-weight:700;font-size:clamp(14px,1vw,16px);line-height:1.35;color:var(--k)}
body.woocommerce .product-small.box .price-wrapper{margin-top:auto;padding-top:10px}
body.woocommerce .product-small.box .price{font-size:clamp(17px,1.2vw,20px);font-weight:900;color:var(--k)}
body.woocommerce .products .price>span[aria-hidden="true"]:not(.amount){display:none}
body.woocommerce .products .price>span[aria-hidden="true"]:not(.amount)~.amount{display:none}
body.woocommerce .products .price:has(>span[aria-hidden="true"]:not(.amount))::before{content:"From ";font-size:14px;font-weight:400;color:#6b6b66}
body.woocommerce .products .price del{color:#8a8a84;font-weight:400;font-size:14px}
body.woocommerce .products .price ins{text-decoration:none}
body.woocommerce .badge-container .badge-inner,body.woocommerce .onsale{background:#d4002a!important;color:#fff!important;border-radius:4px;font-weight:900;letter-spacing:.5px;text-transform:uppercase}

/* ---- pagination ---- */
body.woocommerce .woocommerce-pagination .page-numbers a,body.woocommerce .woocommerce-pagination .page-numbers span{font-weight:800;color:var(--k);border-color:#d6d3cb}
body.woocommerce .woocommerce-pagination .page-number.current,body.woocommerce .woocommerce-pagination .current{background:var(--y);border-color:var(--y);color:var(--k)}

/* ---- sub-category tiles at the foot of a category ---- */
body.woocommerce .product-category .box-category .box-text{background:transparent;padding-top:10px}
body.woocommerce .product-category .box-category .box-text .header-title{font-weight:900;color:var(--k);text-transform:none;letter-spacing:0}

/* ---- single product ---- */
body.single-product .row.content-row>.col.large-3{display:none}
body.single-product .row.content-row>.col.large-9{flex-basis:100%;max-width:100%}
body.single-product .product-main .col.large-9,body.single-product .product-main .col.large-9>.row{flex-basis:100%!important;max-width:100%!important;width:100%!important}
body.single-product .product-main .product-gallery.col.large-6{flex-basis:46%!important;max-width:46%!important}
body.single-product .product-main .product-info.col{flex:1 1 0!important;max-width:none!important;padding-left:clamp(16px,2.5vw,48px)}
/* gallery: the slider kept a stale pixel height from before the layout settled and cropped the photo; size it from the column instead */
body.single-product .product-gallery .woocommerce-product-gallery__wrapper .flickity-viewport{height:auto!important;aspect-ratio:1/1;background:#fff;border-radius:10px}
body.single-product .product-gallery .woocommerce-product-gallery__image{background:#fff}
body.single-product .product-gallery .woocommerce-product-gallery__image img{width:100%;height:100%;object-fit:contain;display:block}
body.single-product .product-gallery .woocommerce-product-gallery__image a{display:block;height:100%}
body.single-product .product-main{padding:clamp(16px,2vw,32px) 0}
body.single-product .product-info h1.product-title,body.single-product .product-info .product-title{font-weight:900;letter-spacing:-.02em;line-height:1.1;font-size:clamp(26px,2.4vw,40px);color:var(--k);text-transform:none}
body.single-product .product-info .product-page-price,body.single-product .product-info .price{font-weight:900;color:var(--k);font-size:clamp(24px,2vw,34px)}
body.single-product .product-info .is-divider{display:none}
body.single-product .product-short-description{color:#4a4a47;line-height:1.7;font-size:16px}
body.single-product .product-gallery .product-images,body.single-product .product-gallery .woocommerce-product-gallery__image img{border-radius:10px}
body.single-product .product-thumbnails img{border-radius:6px}
body.single-product .product-thumbnails .is-nav-selected img,body.single-product .product-thumbnails .is-selected img{outline:2px solid var(--y)}
body.single-product table.variations select,body.single-product .variations_form select{border:1px solid #d6d3cb;border-radius:8px;min-height:44px;box-shadow:none;font-weight:700}
body.single-product .single_add_to_cart_button,body.single-product button.single_add_to_cart_button.button.alt{background:var(--y)!important;color:var(--k)!important;border:2px solid var(--y)!important;border-radius:8px!important;font-weight:800;text-transform:none;letter-spacing:0;font-size:16px;min-height:48px;padding:0 34px;box-shadow:none;opacity:1}
body.single-product .single_add_to_cart_button:hover{filter:brightness(.95)}
body.single-product .ux-quantity,body.single-product .quantity .ux-quantity__button,body.single-product .quantity input.qty{border-radius:8px;border-color:#d6d3cb;box-shadow:none}
body.single-product .product-info .social-icons,body.single-product .product-info .product_meta{margin-top:18px}
body.single-product .woocommerce-tabs .nav>li>a{font-weight:900;color:var(--k);text-transform:none;font-size:16px;letter-spacing:0}
body.single-product .woocommerce-tabs .nav>li.active>a{border-bottom:3px solid var(--y)}
body.single-product .woocommerce-Tabs-panel,body.single-product .woocommerce-tabs .panel{color:#4a4a47;line-height:1.7}
body.single-product .woocommerce-tabs .panel h2,body.single-product .woocommerce-tabs .panel h3{color:var(--k);font-weight:900;letter-spacing:-.01em}
body.single-product .product-section-title,body.single-product .related .product-section-title{font-size:clamp(22px,1.9vw,32px);font-weight:900;text-transform:none;letter-spacing:-.02em;color:var(--k)}
body.single-product .related-products-wrapper{background:var(--l);padding-top:clamp(20px,2vw,36px);padding-bottom:clamp(20px,2vw,36px);border-top:0}

@media(max-width:900px){
body.woocommerce .products .product-small.col{padding:0 6px 12px}
body.woocommerce .product-small.box{padding:8px 8px 12px}
body.single-product .product-main .product-gallery.col.large-6{flex-basis:100%!important;max-width:100%!important}
body.single-product .product-main .product-info.col{flex-basis:100%!important;padding-left:15px}
}
