/* Breadcrumb au-dessus du titre + bouton devis */
html body.tax-product_categories .sub_page_header .col.col-sm-12,
html body.page .sub_page_header .col.col-sm-12 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 80px;
    padding: 10px 20px;
}

html body.tax-product_categories .sub_page_header .col.col-sm-12 .breadcrumb,
html body.page .sub_page_header .col.col-sm-12 .breadcrumb {
    position: static;
    transform: none;
    order: 1;
    margin-bottom: 20px;
}

html body.tax-product_categories .sub_page_header .col.col-sm-12 .page-title,
html body.page .sub_page_header .col.col-sm-12 .page-title {
    position: static;
    transform: none;
    order: 2;
    margin-bottom: 24px;
}

html body.tax-product_categories .sub_page_header .col.col-sm-12 .btn-devis-header,
html body.page .sub_page_header .col.col-sm-12 .btn-devis-header {
    order: 3;
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD60A;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    color: #222 !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: Roboto, sans-serif;
    transition: background 0.3s ease;
}

html body.tax-product_categories .sub_page_header .col.col-sm-12 .btn-devis-header:hover,
html body.page .sub_page_header .col.col-sm-12 .btn-devis-header:hover {
    background-color: #e6bf01;
}

html body a.product_item_holder {
    text-decoration: none;
    outline: none;
}

html body .product_item_holder h3,
html body .product_item_holder p {
    margin-bottom: 40px;
}

html body .product_item_holder .details,
html body .product_item_holder p {
    color: #666;
}

html body a.product_item_holder:hover h3,
html body a.product_item_holder:hover .action_buttons span,
html body a.product_item_holder:hover .action_buttons span::before {
    color: #e6aa21;
}

.widget_rt_categories .menu .cat-item .children  {
    display: none;
}

/* Stacked layout : widget catégories en boutons au-dessus de la grille */
body.tax-product_categories .row.fixed_heights {
    display: flex;
    flex-direction: column;
}

body.tax-product_categories .row.fixed_heights > .col {
    float: none;
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
}

body.tax-product_categories .row.fixed_heights > .col.sidebar {
    order: -1;
    min-height: 0;
    border: none;
}

/* Boutons de sous-catégories */
body.tax-product_categories .widget_rt_categories h5 {
    display: none;
}

body.tax-product_categories .widget_rt_categories .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

body.tax-product_categories .widget_rt_categories .menu > li {
    float: none;
    border-width: 0 !important;
}

body.tax-product_categories .widget_rt_categories .menu > li > h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
}

body.tax-product_categories .widget_rt_categories .menu > li a {
    display: block;
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid #FFD60A;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    font-size: 1.4rem;
    text-decoration: none;
    white-space: nowrap;
    transition: .3s all ease-in-out;
}

body.tax-product_categories .widget_rt_categories .menu > li a:hover,
body.tax-product_categories .widget_rt_categories .menu > li.current-cat a {
    background: #FFD60A;
    border-color: #FFD60A;
    color: #222;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    body.tax-product_categories .row.fixed_heights {
        flex-direction: column;
    }
}


.sibling-categories-block {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #E8E8E8;
}

.sibling-categories-title {
    font-size: 18rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.sibling-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sibling-categories-item a {
    display: inline-block;
    padding: 7px 16px;
    background: #f8f8f8;
    border: 1px solid #E8E8E8;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sibling-categories-item a:hover {
    background: #e6aa21;
    border-color: #e6aa21;
    color: #fff;
}
