/* =====================================================================
   Winnerleasing — Black Friday. Category page (product/category) in the
   mockup style. Product cards reuse .bf-prod from bf/home-blocks.css,
   breadcrumbs/description reuse bf/inner.css. The promo banner
   .bf_banner_block keeps its own styles from category.twig.
   ===================================================================== */
.bf-cat-page {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 32px 0;
    color: #ffffff;
    font-family: 'Manrope', Arial, sans-serif;
}
.bf-cat-page .main { padding-top: 24px; }
.bf-cat-page *, .bf-cat-page *::before, .bf-cat-page *::after { box-sizing: border-box; }
.bf-cat-page a { text-decoration: none; }
.bf-cat-page .bf_banner_block { margin-bottom: 0 !important; }

/* ---------- head ---------- */
.bf-cat-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 40px 0 32px;
}
.bf-cat-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 900;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-transform: none;
}

/* ---------- layout ---------- */
.bf-cat-row { --bs-gutter-x: 32px; }
.bf-cat-content { min-width: 0; }

/* ---------- subcategories ---------- */
.bf-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
a.bf-subcat,
a.bf-subcat:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 18px 6px 6px;
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
a.bf-subcat:hover { border-color: #ff680a; color: #ff680a; }
.bf-subcat-img {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bf-subcat-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
a.bf-subcat:not(:has(.bf-subcat-img)) { padding-left: 18px; }

/* ---------- sort bar ---------- */
.bf-cat-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
}
.bf-cat-sort-limit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}
.bf-cat-sort-label {
    margin: 0;
    color: #8a8a8a;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
}
.bf-cat-select {
    height: 44px;
    padding: 0 40px 0 14px;
    background: #1c1c1c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff680a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid #333333;
    border-radius: 10px;
    color: #ffffff;
    font: 700 14px 'Manrope', Arial, sans-serif;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.bf-cat-select:hover,
.bf-cat-select:focus { border-color: #ff680a; outline: 0; }
.bf-cat-select option { background: #1c1c1c; color: #ffffff; }

/* ---------- product grid ---------- */
.bf-cat-grid { margin: 0; }
.bf-cat-grid > .product-layout {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 14px !important;
}
.bf-cat-content.col-xl-9 .bf-cat-grid,
.bf-cat-content.col-xl-6 .bf-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- show more + pagination ---------- */
.bf-cat-page .oct-load-more.d-none { display: none !important; }
.bf-cat-pagination { margin-top: 24px; }
.bf-cat-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.bf-cat-pagination .pagination li { list-style: none; }
.bf-cat-pagination .pagination li a,
.bf-cat-pagination .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #161616 !important;
    border: 1px solid #2c2c2c !important;
    border-radius: 10px !important;
    color: #d9d9d9 !important;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}
.bf-cat-pagination .pagination li a:hover { border-color: #ff680a !important; color: #ffffff !important; }
.bf-cat-pagination .pagination li.active span {
    background: #ff680a !important;
    border-color: #ff680a !important;
    color: #000000 !important;
}
.bf-cat-pagination .text-end,
.bf-cat-pagination .col-sm-6.text-right,
.bf-cat-pagination .results { color: #8a8a8a; font-size: 13px; }

/* ---------- description ---------- */
.bf-cat-desc-row { margin: 24px 0; }
.bf-cat-desc .sc-category-description-img img {
    max-width: 220px;
    height: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
}
.bf-cat-desc .sc-category-description-text-opacity {
    background: linear-gradient(180deg, rgba(22, 22, 22, 0) 0%, #161616 100%) !important;
}
.bf-cat-desc .category-landing-links-item-title { color: #ffffff; font-weight: 800; }
.bf-cat-desc .blue-link { color: #ff680a !important; }
button.bf-cat-desc-more { margin-top: 16px; height: 48px; font-size: 15px; }

/* ---------- empty ---------- */
.bf-cat-empty {
    padding: 32px;
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 16px;
    color: #c9c9c9;
    font-size: 16px;
}
.bf-cat-empty p { margin: 0 0 16px; }
a.bf-cat-empty-btn,
a.bf-cat-empty-btn:visited { display: inline-flex; padding: 0 24px; color: #000000; text-decoration: none; }

/* ---------- side columns (filters, category menu …) on dark ---------- */
.bf-cat-page #column-left .content-block,
.bf-cat-page #column-right .content-block,
.bf-cat-page #column-left .sc-column-categories-item,
.bf-cat-page #column-right .sc-column-categories-item {
    background: #161616 !important;
    border: 1px solid #2c2c2c !important;
    border-radius: 16px;
    color: #c9c9c9 !important;
}
.bf-cat-page #column-left .dark-text,
.bf-cat-page #column-right .dark-text,
.bf-cat-page #column-left .sc-column-title,
.bf-cat-page #column-right .sc-column-title { color: #ffffff !important; }
.bf-cat-page #column-left a,
.bf-cat-page #column-right a { color: #d9d9d9; }
.bf-cat-page #column-left a:hover,
.bf-cat-page #column-right a:hover { color: #ff680a; }
/* OCFilter */
.bf-cat-page #ocfilter,
.bf-cat-page .ocf-container,
.bf-cat-page .ocf-content {
    background: #161616 !important;
    color: #c9c9c9 !important;
    border-color: #2c2c2c !important;
    border-radius: 16px;
}
.bf-cat-page .ocf-header,
.bf-cat-page .ocf-filter-name,
.bf-cat-page .ocf-value-name { color: #ffffff !important; background: transparent !important; }
.bf-cat-page .ocf-filter { border-color: #2c2c2c !important; }
.bf-cat-page .ocf-value-count { color: #8a8a8a !important; background: #222222 !important; }
.bf-cat-page .ocf-value-input,
.bf-cat-page .ocf-checkbox,
.bf-cat-page .ocf-radio { border-color: #444444 !important; }
.bf-cat-page .ocf-selected .ocf-value-input,
.bf-cat-page .ocf-selected .ocf-checkbox,
.bf-cat-page .ocf-selected .ocf-radio { background-color: #ff680a !important; border-color: #ff680a !important; }
.bf-cat-page .ocf-btn,
.bf-cat-page .ocf-search-btn-static,
.bf-cat-page .ocf-search-btn-popover { border-radius: 10px !important; color: #000000 !important; font-weight: 800 !important; }
.bf-cat-page .ocf-form-control,
.bf-cat-page .ocf-container input[type="text"],
.bf-cat-page .ocf-container input[type="number"] {
    background: #1c1c1c !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1199.98px) {
    .bf-cat-title { font-size: 44px; }
    .bf-cat-row > #column-left,
    .bf-cat-row > #column-right { margin-bottom: 24px; }
}
@media (max-width: 991.98px) {
    .bf-cat-content.col-xl-9 .bf-cat-grid,
    .bf-cat-content.col-xl-6 .bf-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .bf-cat-page { padding: 16px 16px 0; }
    .bf-cat-row { --bs-gutter-x: 16px; }
    .bf-cat-head { padding: 24px 0 20px; gap: 14px; }
    .bf-cat-title { font-size: 32px; letter-spacing: -1px; }
    .bf-cat-sort { padding: 10px; }
    .bf-cat-sort-label { display: none; }
    .bf-cat-sort-limit { width: 100%; flex-wrap: nowrap; }
    .bf-cat-select { flex: 1 1 0; min-width: 0; }
    .bf-cat-grid > .product-layout { padding: 10px !important; }
    a.bf-subcat { min-height: 40px; font-size: 14px; }
    .bf-subcat-img { width: 30px; height: 30px; }
}

/* =====================================================================
   v2 — sidebar (#column-left / #column-right): minimal dark cards
   ===================================================================== */
#column-left,
#column-right { font-family: 'Manrope', Arial, sans-serif; }
#column-left > *,
#column-right > * { margin-bottom: 16px; }

.bf-side-card {
    padding: 20px;
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 16px;
    color: #c9c9c9;
}
.bf-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.bf-side-title {
    margin: 0 0 12px;
    color: #8a8a8a;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.bf-side-head .bf-side-title { margin: 0; }
.bf-side-title a,
.bf-side-title a:visited { color: #8a8a8a; text-decoration: none; }
.bf-side-title a:hover { color: #ff680a; }

/* category menu: plain links */
.bf-side-list,
.bf-side-sub { margin: 0; padding: 0; list-style: none; }
.bf-side-list > li > a,
.bf-side-list > li > a:visited {
    display: block;
    padding: 8px 0;
    color: #d9d9d9;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s;
}
.bf-side-list a:hover { color: #ffffff; }
.bf-side-list a.is-active,
.bf-side-list a.is-active:visited { color: #ff680a; }
.bf-side-sub {
    margin: 2px 0 8px;
    padding-left: 14px;
    border-left: 1px solid #2c2c2c;
}
.bf-side-sub a,
.bf-side-sub a:visited {
    display: block;
    padding: 6px 0;
    color: #9a9a9a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

/* sidebar product slider */
.bf-side-arrows { display: flex; gap: 6px; }
.bf-side-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #1c1c1c;
    border: 1px solid #333333;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.bf-side-arrow:hover { border-color: #ff680a; color: #ff680a; }
.bf-side-slider .sc-column-item { display: none; }
.bf-side-slider .sc-column-item.d-block { display: block; }
.bf-side-prod { display: flex; flex-direction: column; gap: 10px; }
.bf-side-prod-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}
.bf-side-prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
a.bf-side-prod-name,
a.bf-side-prod-name:visited {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}
a.bf-side-prod-name:hover { color: #ff680a; }
.bf-side-prod .bf-prod-price b { font-size: 18px; }

/* ---------- v3: search results page (template/product/search.twig) ---------- */
.bf-search-form {
    margin: 0 0 28px !important;
    padding: 20px !important;
    background: #161616 !important;
    border: 1px solid #2c2c2c !important;
    border-radius: 16px !important;
}
.bf-search-fields {
    display: flex;
    gap: 12px;
}
.bf-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    background: #1c1c1c;
    border: 1px solid #333333;
    border-radius: 10px;
    color: #ffffff;
    font: 600 15px 'Manrope', Arial, sans-serif;
    outline: 0;
}
.bf-search-input::placeholder { color: #8a8a8a; }
.bf-search-input:focus { border-color: #ff680a; box-shadow: 0 0 0 3px rgba(255, 104, 10, .25); }
.bf-search-select { flex: 0 0 260px; height: 48px; max-width: 260px; }
.bf-search-btn { flex: 0 0 auto; height: 48px; padding: 0 28px !important; justify-content: center; }
.bf-search-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 14px;
}
.bf-search-checks .form-check { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; min-height: 0; }
.bf-search-checks .form-check-input {
    float: none; margin: 0 !important;
    width: 18px; height: 18px;
    background-color: #1c1c1c; border: 1px solid #444444; border-radius: 5px;
}
.bf-search-checks .form-check-input:checked { background-color: #ff680a; border-color: #ff680a; }
.bf-search-checks .form-check-input:disabled { opacity: .35; }
.bf-search-checks .form-check-label { margin: 0; color: #c9c9c9; font: 600 13px 'Manrope', Arial, sans-serif; cursor: pointer; }
.bf-search-checks .form-check-input:disabled + .form-check-label { color: #5a5a5a; cursor: default; }
.bf-search-results-title {
    margin: 0 0 16px;
    color: #ffffff;
    font: 700 22px/1.25 'Unbounded', 'Manrope', Arial, sans-serif;
}
@media (max-width: 767.98px) {
    .bf-search-form { padding: 14px !important; margin-bottom: 20px !important; }
    .bf-search-fields { flex-direction: column; gap: 10px; }
    .bf-search-select { flex: 0 0 auto; max-width: none; width: 100%; }
    .bf-search-btn { width: 100%; }
    .bf-search-results-title { font-size: 17px; }
}
