/*
Theme Name: Black Forest Category Content v5
Description: WooCommerce category layout for Bluehost Blueprint, retaining theme/Elementor header and footer.
Author: Custom
Version: 1.5.0
Template: bluehost-blueprint
Text Domain: bff-category-v5
*/

:root{--bff-black:#1b1b1b;--bff-text:#202020;--bff-muted:#81796c;--bff-border:#dedede;--bff-green:#68763f;--bff-container:1480px}
body.tax-product_cat{background:#fff}
body.tax-product_cat .wp-site-blocks{padding:0}
.bff-container{width:min(calc(100% - 40px),var(--bff-container));margin-inline:auto}

.bff-category-hero{position:relative;display:grid;min-height:430px;place-items:center;isolation:isolate;background:#303229 center/cover no-repeat}
.bff-category-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(0,0,0,.52)}
.bff-category-hero__inner{padding:48px 20px;text-align:center}
.bff-category-hero h1{margin:0;color:#fff;font-family:"Bebas Neue","Arial Narrow",Arial,sans-serif;font-size:clamp(52px,6.2vw,88px);font-weight:400;line-height:.95;letter-spacing:.015em;text-transform:uppercase}

.bff-category-toolbar{border-bottom:1px solid var(--bff-border);background:#fff}
.bff-category-toolbar__inner{display:flex;min-height:76px;align-items:center;justify-content:space-between;gap:24px}
.bff-category-toolbar .woocommerce-breadcrumb{margin:0;color:var(--bff-text);font:700 11px/1.4 "Roboto Condensed",Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.bff-category-toolbar .woocommerce-breadcrumb a{color:inherit;text-decoration:none}
.bff-toolbar-actions{display:flex;align-items:center;gap:10px}
.bff-product-search input[type=search]{box-sizing:border-box;width:175px;min-height:39px;margin:0;padding:8px 12px;border:1px solid #d8d8d8;border-radius:0;background:#fff;font:400 12px/1.2 "Roboto Condensed",Arial,sans-serif}
.bff-ordering .woocommerce-ordering{margin:0}
.bff-ordering select{box-sizing:border-box;min-width:190px;min-height:39px;margin:0;padding:8px 30px 8px 14px;border:1px solid #d8d8d8;border-radius:0;background-color:#fff;color:var(--bff-text);font:700 11px/1 "Roboto Condensed",Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase}

.bff-products-shell{box-sizing:border-box;width:min(calc(100% - 40px),var(--bff-container));margin-inline:auto;padding:48px 0 145px}
.bff-products-heading{display:flex;align-items:baseline;gap:10px;margin:0 0 12px}
.bff-products-heading h1,.bff-products-heading h2{margin:0;font-family:"Bebas Neue","Arial Narrow",Arial,sans-serif;font-size:clamp(34px,3.2vw,48px);font-weight:400;line-height:1;text-transform:uppercase}
.bff-products-heading .wc-block-product-results-count{margin:0;color:var(--bff-muted);font:400 11px/1.4 "Roboto Condensed",Arial,sans-serif}
.bff-term-description{max-width:760px;margin:0 0 32px;color:var(--bff-muted);font:400 15px/1.48 "Roboto Condensed",Arial,sans-serif}
.bff-term-description p{margin-top:0}

.bff-product-collection .wc-block-product-template{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:22px 16px!important;margin:0!important;padding:0!important}
.bff-product-collection .wc-block-product{display:flex;min-width:0;margin:0!important;padding:0!important;flex-direction:column;border:1px solid var(--bff-border);background:#fff;box-shadow:none;overflow:hidden}
.bff-product-collection .wc-block-components-product-image{margin:0!important}
.bff-product-collection .wc-block-components-product-image img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:0}
.bff-product-card-body{display:flex!important;flex:1;flex-direction:column;padding:22px 24px 24px!important}
.bff-product-collection .wp-block-post-title{margin:0 0 5px!important;padding:0!important;font:700 19px/1.22 "Roboto Condensed",Arial,sans-serif!important;text-align:left!important}
.bff-product-collection .wp-block-post-title a{color:var(--bff-text);text-decoration:none}
.bff-product-collection .bff-product-summary{min-height:44px;margin:0 0 22px!important;color:var(--bff-muted);font:400 15px/1.35 "Roboto Condensed",Arial,sans-serif!important}
.bff-product-collection .bff-product-summary p{margin:0}
.bff-product-bottom{display:flex!important;margin-top:auto!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}
.bff-product-collection .wc-block-components-product-price{margin:0!important;color:var(--bff-text);font:700 29px/1 "Roboto Condensed",Arial,sans-serif;text-align:left!important;white-space:nowrap}
.bff-product-collection .wp-block-woocommerce-product-button{margin:0!important;text-align:right!important}
.bff-product-collection .wp-block-button__link,.bff-product-collection .wc-block-components-product-button__button{min-height:52px;padding:14px 24px!important;border:0!important;border-radius:0!important;background:var(--bff-green)!important;color:#fff!important;font:700 14px/1 "Roboto Condensed",Arial,sans-serif!important;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;box-shadow:none!important}
.bff-product-collection .wp-block-button__link:hover,.bff-product-collection .wc-block-components-product-button__button:hover{background:var(--bff-black)!important}
.bff-product-collection .wp-block-query-pagination{margin-top:45px}

@media(max-width:1200px){.bff-product-collection .wc-block-product-template{grid-template-columns:repeat(4,minmax(0,1fr))!important}.bff-product-card-body{padding:18px!important}.bff-product-bottom{align-items:flex-start!important;flex-direction:column!important}.bff-product-collection .wp-block-woocommerce-product-button{width:100%;text-align:left!important}}
@media(max-width:782px){.bff-container,.bff-products-shell{width:min(calc(100% - 28px),var(--bff-container))}.bff-category-hero{min-height:300px}.bff-category-toolbar__inner{padding-block:16px;align-items:stretch;flex-direction:column}.bff-toolbar-actions{width:100%}.bff-product-search{flex:1}.bff-product-search input[type=search]{width:100%}.bff-ordering select{min-width:145px}.bff-products-shell{padding:32px 0 80px}.bff-product-collection .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 10px!important}.bff-product-card-body{padding:12px!important}.bff-product-collection .wp-block-post-title{font-size:14px!important}.bff-product-collection .bff-product-summary{min-height:34px;margin-bottom:12px!important;font-size:12px!important}.bff-product-collection .wc-block-components-product-price{font-size:19px}.bff-product-collection .wp-block-button__link,.bff-product-collection .wc-block-components-product-button__button{min-height:40px;padding:10px 12px!important;font-size:10px!important}}

/* Full-width category page */
.bff-category-page,
.bff-products-section,
.bff-category-toolbar {
    width: 100%;
    max-width: none;
}

/* Remove theme constrained width */
.bff-category-page .bff-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 40px;
    padding-right: 40px;
}

/* Toolbar */
.bff-category-toolbar__inner {
    display: flex;
    width: 100%;
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Search and sorting on left */
.bff-toolbar-actions {
    display: flex;
    align-items: center;
    order: 1;
    gap: 12px;
}

/* Breadcrumb on right */
.bff-breadcrumbs {
    order: 2;
    margin-left: auto;
    text-align: right;
}

/* Search */
.bff-product-search input,
.bff-category-toolbar input[type="search"] {
    width: 220px;
    height: 46px;
    padding: 10px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
}

/* Sorting dropdown */
.bff-category-toolbar select,
.woocommerce-ordering select {
    width: 265px;
    height: 46px;
    padding: 10px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* WooCommerce ordering spacing */
.bff-category-toolbar .woocommerce-ordering {
    margin: 0;
}

/* Product content full width */
.bff-products-section .bff-container {
    width: 100%;
    max-width: none;
    padding-left: 40px;
    padding-right: 40px;
}

/* Hero full width */
.bff-category-hero {
    width: 100%;
    max-width: none;
}

/* Remove possible parent-theme limits */
body.tax-product_cat main,
body.tax-product_cat .wp-site-blocks,
body.tax-product_cat .site-main {
    max-width: none !important;
    width: 100% !important;
}

/* Mobile */
@media (max-width: 782px) {
    .bff-category-page .bff-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bff-category-toolbar__inner {
        padding-top: 18px;
        padding-bottom: 18px;
        align-items: stretch;
        flex-direction: column;
    }

    .bff-toolbar-actions {
        width: 100%;
        flex-direction: column;
        order: 1;
    }

    .bff-breadcrumbs {
        width: 100%;
        order: 2;
        margin-left: 0;
        text-align: left;
    }

    .bff-product-search,
    .bff-product-search input,
    .bff-category-toolbar select,
    .woocommerce-ordering {
        width: 100%;
    }
}


/* =================================
   5-COLUMN PRODUCT GRID
================================= */

body.tax-product_cat .bff-products-section ul.products,
body.tax-product_cat .wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 24px 20px !important;
}

body.tax-product_cat .bff-products-section ul.products li.product,
body.tax-product_cat .wc-block-product-template .wc-block-product {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* =================================
   FULL PAGE WITH 30PX SIDE PADDING
================================= */

body.tax-product_cat .bff-category-page,
body.tax-product_cat .bff-category-toolbar,
body.tax-product_cat .bff-products-section,
body.tax-product_cat .bff-category-hero {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

body.tax-product_cat .bff-category-page .bff-container,
body.tax-product_cat .bff-category-toolbar .bff-container,
body.tax-product_cat .bff-products-section .bff-container {
    width: 100% !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 30px !important;
    padding-left: 30px !important;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1200px) {
    body.tax-product_cat .bff-products-section ul.products,
    body.tax-product_cat .wc-block-product-template {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.tax-product_cat .bff-category-page .bff-container,
    body.tax-product_cat .bff-category-toolbar .bff-container,
    body.tax-product_cat .bff-products-section .bff-container {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    body.tax-product_cat .bff-products-section ul.products,
    body.tax-product_cat .wc-block-product-template {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px 10px !important;
    }
}
main#wp--skip-link--target {
    padding: 30px;
}

/* =====================================
   PRODUCT GRID / CARD SIZE
===================================== */

body.tax-product_cat .bff-products-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 290px)) !important;
    justify-content: space-between !important;
    gap: 24px 18px !important;
}

body.tax-product_cat .bff-products-section ul.products li.product {
    width: 100% !important;
    max-width: 290px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 18px !important;
    box-sizing: border-box;
}

/* =====================================
   PRODUCT IMAGE
===================================== */

body.tax-product_cat .bff-products-section ul.products li.product a img {
    display: block;
    width: 240px !important;
    height: 160px !important;
    max-width: calc(100% - 30px) !important;
    margin: 15px auto 14px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* =====================================
   PRODUCT TITLE
===================================== */

body.tax-product_cat .bff-products-section .woocommerce-loop-product__title {
    min-height: 42px;
    margin: 0 16px 8px !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Product short description */
body.tax-product_cat .bff-products-section .bff-product-summary,
body.tax-product_cat .bff-products-section .product-short-description {
    margin: 0 16px 14px !important;
    font-size: 14px;
    line-height: 1.4;
}

/* =====================================
   PRICE LEFT / BUTTON RIGHT
===================================== */

body.tax-product_cat .bff-products-section ul.products li.product {
    position: relative;
}

body.tax-product_cat .bff-products-section ul.products li.product .price {
    display: inline-flex !important;
    float: none !important;
    width: auto !important;
    margin: auto 0 0 16px !important;
    align-items: center;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.tax-product_cat .bff-products-section ul.products li.product .button {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    white-space: nowrap;
}

/* Price/button ke liye bottom space */
body.tax-product_cat .bff-products-section ul.products li.product {
    padding-bottom: 78px !important;
}

/* =====================================
   SEARCH + SORT ALIGNMENT
===================================== */

body.tax-product_cat .bff-category-toolbar__inner {
    display: flex !important;
    width: 100% !important;
    min-height: 90px;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px;
}

body.tax-product_cat .bff-toolbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

body.tax-product_cat .bff-product-search {
    display: block;
    margin: 0 !important;
}

body.tax-product_cat .bff-product-search input[type="search"] {
    display: block;
    width: 220px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box;
}

body.tax-product_cat .woocommerce-ordering {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

body.tax-product_cat .woocommerce-ordering select {
    display: block;
    width: 265px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 42px 0 16px !important;
    box-sizing: border-box;
}

/* Breadcrumb right side */
body.tax-product_cat .bff-breadcrumbs {
    margin-left: auto !important;
    text-align: right !important;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1550px) {
    body.tax-product_cat .bff-products-section ul.products {
        grid-template-columns: repeat(4, minmax(0, 290px)) !important;
    }
}

@media (max-width: 1200px) {
    body.tax-product_cat .bff-products-section ul.products {
        grid-template-columns: repeat(3, minmax(0, 290px)) !important;
    }
}

@media (max-width: 800px) {
    body.tax-product_cat .bff-category-toolbar__inner,
    body.tax-product_cat .bff-toolbar-actions {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.tax-product_cat .bff-breadcrumbs {
        width: 100%;
        margin-left: 0 !important;
        text-align: left !important;
    }

    body.tax-product_cat .bff-product-search,
    body.tax-product_cat .bff-product-search input[type="search"],
    body.tax-product_cat .woocommerce-ordering,
    body.tax-product_cat .woocommerce-ordering select {
        width: 100% !important;
    }

    body.tax-product_cat .bff-products-section ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
    }

    body.tax-product_cat .bff-products-section ul.products li.product {
        max-width: none !important;
    }

    body.tax-product_cat .bff-products-section ul.products li.product a img {
        width: calc(100% - 20px) !important;
        height: auto !important;
        aspect-ratio: 3 / 2;
    }

    body.tax-product_cat .bff-products-section ul.products li.product .price {
        margin-left: 10px !important;
        font-size: 18px !important;
    }

    body.tax-product_cat .bff-products-section ul.products li.product .button {
        right: 10px !important;
        padding: 11px 12px !important;
        font-size: 10px !important;
    }
}
.wp-container-core-group-is-layout-5050568f {
    flex-direction: column;
    align-items: normal;
}
bdi {
margin: 0;
    font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
a.wp-block-button__link.wp-element-button.wc-block-components-product-button__button.add_to_cart_button.product_type_simple.has-text-align-right.wc-interactive {
    min-height: 30px;
    font-size: 12px !important;
}
a.wp-block-button__link.wp-element-button.wc-block-components-product-button__button.add_to_cart_button.product_type_variable.has-text-align-right.wc-interactive {
    min-height: 30px;
    font-size: 12px !important;
    color: #68763f !important;
    background: white !important;
    border: 1px solid #68763f !important;
}

.bff-products-heading h1, .bff-products-heading h2 {
    margin: 0;
    font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.bff-category-toolbar .woocommerce-breadcrumb {
    margin: 0;
    color: var(--bff-text);
    font: 700 16px / 1.4 "Roboto Condensed", Arial, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.tax-product_cat .bff-toolbar-actions {
    display: ruby !important;
}