:root {
    --beige: #fbf4eb;
    --bs-body-color: #404245;
    --bs-orange: #ff6444;
    --bs-link-color: #792e1e;
    --card-linear-gradient: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 100%);
}

.text-orange {
    color: var(--bs-orange);
}

.bg-orange {
    background-color: var(--bs-orange);
}

.bg-primary-emphasis {
    background-color: var(--bs-primary-text-emphasis);    
}

.btn.bg-primary-emphasis:hover {
    background-color: var(--bs-dark);    
}

.bg-gray-subtle-hover:hover {
    background-color: var(--bs-gray-200);
}

.offcanvas-large {
    width: 40vw !important;
}

@media (max-width: 768px) {
    .offcanvas-large {
        width: 100vw !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}

a {
    color: var(--bs-link-color);
}

.btn-outline-dark:hover a {
    color: var(--bs-white);
}

body,
.btn {
    font-size: .9375rem;
}


.bg-beige {
    background-color: var(--beige) !important;
}

img.picto-certif {
    width: auto;
}

h2 {
    font-size: 1.1rem;
    ;
}

.reassurance-item {
    min-width: 200px;
    max-width: 25%;
    flex: 1 1 auto;
}

#product .full-width-reset {
    position: relative;
    width: 99.4vw;
    left: 50%;
    margin-left: -50vw;
}

.reassurance-item .block-icon img {
    width: 50px;
    height: 50px;
}

.product-nav {
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), .2);
}

.product-nav .nav-link:not(.active) {
    color: rgba(var(--bs-primary-rgb), .2);
}

@media (max-width: 768px) {
    .reassurance-item {
        max-width: 50%;
    }

    .reassurance-item .block-icon img {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
}

.dd-qty-product:hover {
    background-color: #aebcc9 !important;
}



.accordion-header {
    padding: 1rem 0;
}

.accordion-header:hover {
    transition: ease-in .3s;
    transform: translate(0px, -3px);
}

.accordion-item {
    border-bottom: 1px solid #808080db !important;
    border-radius: 0 !important;
}



.accordion-button {
    padding: 0 !important;
    color: rgba(var(--bs-black-rgb));
    background-color: transparent;
    font-size: 17px;
}

.sticky-top {
    top: 95px;
}


.custom-checkbox input[type=checkbox]+span.color,
.variant-links .color,
label .color {
    width: 45px;
    height: 45px;
    border-radius: 55px;
}

.custom-checkbox input[type=checkbox]+span.color.active,
.custom-checkbox input[type=checkbox]+span.color:hover,
.variant-links .color.active,
.variant-links .color:hover,
label .color.active,
label .color:hover {
    transform: scale(1.1);
    margin: 6px;
}


#ap5-active-product {
    position: sticky;
    top: 70px;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
}


/* Corrige l'affichage des dropdowns dans les cartes du pack */
.ap5-pack-card {
    overflow: visible !important;
    position: relative;
    transition: border-color 0.3s ease;
}

.ap5-pack-card.active {
    border: 1px solid #8B4513 !important;
}

/* S'assure que le menu se superpose à tout */
.ap5-pack-card .dropdown-menu {
    z-index: 1056 !important;
    /* > modals Bootstrap (1055) */
    transform: translate3d(0, 0, 0);
    /* empêche les bugs de position dans cards */
}


.dimensions-select {
    max-height: 300px;
    overflow-y: auto;
}

.product-pack-card .ap5-pack-card {
    border-radius: var(--bs-border-radius) !important;
}


#pack-products-tabs {
    flex-wrap: nowrap;
}

#pack-products-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

#pack-products-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

@media (max-width: 768px) {
    #pack-products-tabs .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    #pack-products-tabs .nav-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
}



.carousel .carousel-item,
.carousel .carousel-inner {
    height: auto;
}

#product-images {
    overflow: hidden;
}

#product-images .carousel-inner {
    position: relative;
}

#product-images .carousel-item {
    width: 100%;
}

#product-images .carousel-item img,
#product-images .carousel-item picture {
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    max-width: 100%;
}

#product-images .carousel-item-next,
#product-images .carousel-item-prev {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#product .thumbnails__container {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

#product .thumbnails__container::-webkit-scrollbar {
    width: 6px;
}

#product .thumbnails__container::-webkit-scrollbar-track {
    background: transparent;
}

#product .thumbnails__container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: background-color 0.2s;
}

#product .thumbnails__container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.product__images.d-flex {
    align-items: flex-start;
}

#product .thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    overflow: hidden;
}

#product .thumbnail:hover {
    transform: scale(1.02);
}

#product .thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/* Pack Cards Grid */
.ap5-packs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: space-between;
}

.ap5-footer-pack-card {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 400px;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.3s ease;
}

.ap5-footer-pack-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .ap5-footer-pack-card {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

@media (max-width: 576px) {
    .ap5-footer-pack-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Pack Card Header */
.ap5-footer-pack-card-header {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.ap5-pack-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ap5-pack-title a {
    color: #212529;
    text-decoration: none;
}

.ap5-pack-title a:hover {
    color: var(--bs-primary);
}


/* Product Carousel */
.ap5-pack-product-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 280px;
}

.ap5-pack-product-display {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.ap5-pack-product-item {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    animation: leftFadeIn 0.3s ease;
}

.ap5-pack-product-item.active {
    display: flex;
}

@keyframes leftFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ap5-product-quantity-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--bs-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.ap5-product-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.ap5-product-image img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

.ap5-product-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    min-height: 2.8rem;
}

.ap5-product-name a {
    color: #495057;
    text-decoration: none;
}

.ap5-product-name a:hover {
    color: var(--bs-primary);
}

.ap5-product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ap5-product-price-original {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: line-through;
}

.ap5-product-price-current {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

/* Carousel Buttons */
.ap5-carousel-btn {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.ap5-carousel-btn:hover:not(:disabled) {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.ap5-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ap5-carousel-btn .material-icons {
    font-size: 24px;
}

/* Indicators */
.ap5-pack-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.ap5-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ap5-indicator:hover {
    background: #adb5bd;
}

.ap5-indicator.active {
    background: var(--bs-primary);
    width: 24px;
    border-radius: 4px;
}

/* Pack Price */
.ap5-pack-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e9ecef;
}

.ap5-pack-price-original {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
}

.ap5-pack-price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-orange);
}

.ap5-pack-discount {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Pack Actions */
.ap5-pack-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.ap5-pack-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ap5-pack-actions .material-icons {
    font-size: 20px;
}


#ap5-product-footer-pack-list-body .carousel .carousel-indicators button {
    background-color: var(--bs-primary) !important;
    height: 5px;
    width: 5px;
}

#ap5-product-footer-pack-list-body .carousel .carousel-indicators button.active {
    width: 12px !important;
}


#ap5-product-footer-pack-list-body .carousel-control-next,
#ap5-product-footer-pack-list-body .carousel-control-prev {
    top: 35%;
}


#ap5-product-footer-pack-list-body .carousel-control-prev {
    left: -1rem;
}

#ap5-product-footer-pack-list-body .carousel-control-next {
    right: -1rem;
}






/* Sticky mobile - état initial caché en bas */
#product .sticky-mobile {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#product .sticky-mobile.sticky {
    background-color: white;
    position: fixed;
    padding: 15px 20px;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    margin-bottom: 0;
    box-shadow: 0px -16px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    animation: slideInUp 0.4s ease-out forwards;
}

/* Animation slide-in */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}




/* Gestion du slot variant */
.product-actions__variant-summary-slot:empty {
    display: none !important;
}

.sticky-mobile:not(.sticky) .product-actions__variant-summary-slot {
    display: none !important;
}

.sticky-mobile.sticky .product-actions__variant-summary-slot {
    display: flex !important;
    flex: 1 1 50%;
    min-width: 0;
    align-items: stretch;
}

.sticky-mobile.sticky .product-actions__variant-summary-slot .dropdown {
    width: 100%;
    height: 100%;
}

.sticky-mobile.sticky .product-actions__variant-summary-slot .dropdown-toggle {
    height: 100%;
}

.sticky-mobile.sticky .sticky-mobile-content {
    flex: 1 1 50%;
    min-width: 0;
    display: flex !important;
}

.sticky-mobile.sticky .sticky-mobile-content > div {
    flex: 1;
    justify-content: flex-end;
}

.sticky-mobile.sticky .sticky-mobile-content .product-actions__quantity {
    display: none !important;
}

.sticky-mobile.sticky .sticky-mobile-content .product-actions__button.add {
    flex: 1;
    width: 100%;
}

.sticky-mobile.sticky .sticky-mobile-content .add-to-cart {
    width: 100%;
}

.sticky-mobile.sticky .sticky-mobile-content .add-to-cart i {
    display: none;
}

.sticky-mobile.sticky .sticky-mobile-content [class*="displayProductActions"] {
    display: none !important;
}

@media (min-width: 768px) {
    .sticky-mobile.sticky .product-actions__variant-summary-slot {
        flex: 0 1 auto;
    }
    
    .sticky-mobile.sticky .sticky-mobile-content {
        flex: 0 1 auto;
    }
    
    .sticky-mobile.sticky .sticky-mobile-content .add-to-cart i {
        display: inline-block;
    }
}


/* Stripe Express Checkout - éviter duplication et casse du layout */
#stripe-express-checkout-element,
#stripe-error-message {
    /* width: 100%; */
    margin: 0.5rem 0;
}

/* Masquer les éléments Stripe dans le sticky mobile */
.sticky-mobile.sticky #stripe-express-checkout-element,
.sticky-mobile.sticky #stripe-error-message {
    display: none !important;
}


.product__minimal-quantity:empty {
    display: none !important;
}




.product-contact-card {
    transition: transform .2s ease, box-shadow .2s ease;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

.product-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
    border: 1px solid rgba(var(--bs-primary-rgb), .8);
}



@media (max-width: 400px) {
    .sticky .product-actions__quantity.quantity-button {
        display: none;
    }
}


/* === Blog === */

/* Hero Card Overlay */
.hero-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-card p,
.blog_description p,
.ybc-blog-wrapper-content .ybc_title_block {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


.hero-card-content-overlay {
    z-index: 2;
}

.hero-card-content-overlay h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-card-content-overlay p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-card-meta {
    font-size: 0.875rem;
}

.hero-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-card-meta .material-icons {
    font-size: 16px !important;
}

.blog-card-meta {
    font-size: 0.875rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-meta .material-icons {
    font-size: 14px !important;
}

.reading-time-display {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ybc-blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ybc-blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ybc-blog-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .ybc-blog-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ybc-blog-card {
    transition: all 0.3s ease;
}

.ybc-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.ybc-blog-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.ybc-blog-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    transform: scale(1.1);
}

.ybc-blog-card:hover .ybc-blog-card-image {
    transform: scale(1.15);
}

.ybc-blog-card-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ybc-blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.ybc-blog-card:hover .ybc-blog-card-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.9) 100%);
}

.ybc-blog-card-content {
    z-index: 2;
}

.ybc-blog-card-category {
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-size: 10px;
}

.ybc-blog-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ybc-blog-card-content .material-icons {
    font-size: 16px;
}

.ybc-blog-like-span {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ybc-blog-like-span:hover {
    opacity: 0.8;
}

.ybc-blog-like-span.active {
    color: #ff6b6b;
}

.ybc-blog-like-span.active .material-icons {
    animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

@media (max-width: 767px) {
    .ybc-blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}



/* === Blog === */





/* === Search === */
.search__offcanvas {
    max-width: 960px;
    background: transparent;
}

/* Offcanvas sizing/appearance handled by Bootstrap container utilities */

.search-widgets__results {
    max-height: 30rem;
    scrollbar-width: none;
}

#search_widget span.title_group {
    font-size: 11px;
    border-bottom: 0;
}

.autocomplete-suggestion:not(:first-child) .title_group {
    border-top: 2px solid #cbcbcb8c;
}



#search_widget ul li {
    padding-left: 20px;
    border-bottom: 0;
}

#search_widget .search_block_results li.search_result_header {
    background-color: transparent;
    margin-top: 0 !important;
    padding-left: 0 !important;
}

.search_block_results {
    margin-top: 0 !important;
    border-radius: 0 0 0.375rem 0.375rem !important;

}

.category-filters {
    background: white;
    border-radius: 0.375rem 0.375rem 0 0;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* category-filters fully styled via Bootstrap utilities in template */

.category-filter-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 13px;
    border-radius: 13px;
    padding: 2px 7px !important;

}

.category-filter-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-filter-badge:active {
    transform: scale(0.92);
}

.category-filter-badge.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: white;
    font-weight: 500;
}

.category-filter-badge.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--bs-secondary);
    color: var(--bs-secondary);
    opacity: 0.7;
}

.category-filter-badge.btn-outline-secondary:hover {
    opacity: 1;
}

.header__bottom #search_widget input:focus,
.search__offcanvas #search_widget input:focus {
    box-shadow: none !important;
    outline: 1px solid var(--bs-primary) !important;
}

ul.ul-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.ybc-total {
    font-size: 11px;
    border: 1px solid #cbcbcb;
    border-radius: 4px;
    padding: 2px 5px;
    box-shadow: 0 1px 2px 0px #d3d3d3;
}

.search_block_results img.search-image {
    border-radius: 2px;
}

/* Offcanvas global suggestions: decoration handled by Bootstrap utilities */
.autocomplete-suggestions {
    max-height: 30rem !important;
    scrollbar-width: none;
    top: 0 !important;
    position: relative !important;
}

.autocomplete-suggestions::-webkit-scrollbar {
    display: none;
}

.autocomplete-suggestions span.title_group {
    font-size: 11px;
    border-bottom: 0;
}

.autocomplete-suggestions ul li {
    padding-left: 20px;
    border-bottom: 0;
}

.autocomplete-suggestions li.search_result_header {
    background-color: transparent;
    margin-top: 0 !important;
    padding-left: 0 !important;
}

.autocomplete-suggestions img.search-image {
    border-radius: 2px;
}

.autocomplete-suggestions .autocomplete-suggestion ul li:last-child {
    border-bottom: none;
}

/* Parité complète avec .search_block_results */
.autocomplete-suggestions .autocomplete-suggestion ul {
    width: 100%;
}

.autocomplete-suggestions .autocomplete-suggestion {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    width: 100%;
}

.autocomplete-suggestions li {
    border-bottom: 1px solid #eeeeee;
    clear: both;
    width: 100%;
    font-size: 14px;
    position: relative;
}

.autocomplete-suggestions li a {
    position: relative;
}

.autocomplete-suggestions li:not(:first-child):hover:before {
    opacity: 1;
}

.autocomplete-suggestions li:not(:first-child):before {
    content: "";
    background: #f5f7fa;
    position: absolute;
    top: 0;
    left: -15px;
    right: -15px;
    bottom: 0;
    opacity: 0;
}

.autocomplete-suggestions img.search-image {
    width: 65px;
    margin-right: 15px;
}

.autocomplete-suggestions .box_button_see {
    display: block;
    padding: 5px 10px;
    color: #999;
    font-size: 14px;
    background: #f7f7f7;
    cursor: auto;
    line-height: 28px;
    margin-bottom: -1px;
    text-align: center;
    border-top: 1px solid #eee;
}

.autocomplete-suggestions .item_shor_des {
    font-size: 13px;
    color: #777;
}

.autocomplete-suggestions .box_price {
    margin-top: 5px;
    font-size: 14px;
    margin-bottom: 5px;
}

.autocomplete-suggestions .box_price .regular-price {
    text-decoration: line-through !important;
    margin-right: 7px;
    color: #666;
}

.autocomplete-suggestions .box_price .regular-price~span {
    color: var(--bs-orange);
}

a.product_name.ybc_blocksearch {
    display: flex;
    align-items: center;
}

/* Skeleton Loader */
.search-skeleton-loader {
    background: white;
}

.skeleton-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 1rem;
}

.skeleton-image {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-title {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    width: 70%;
}

.skeleton-price {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 2px;
    width: 40%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Animation des suggestions */
.autocomplete-suggestion {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.btn.button-search {
    border: none !important;
}

.ybc-category-items li:last-child {
    padding-bottom: 1.5rem !important;
}

.ybc_search_item_content .search-name strong {
    background-color: var(--bs-warning);
    font-weight: normal;
}




/* page search */
#module-ybc_blocksearch-blocksearch input.form-control:focus {
    box-shadow: none !important;
}

#module-ybc_blocksearch-blocksearch .input-group-ct {
    border: 1px solid #ffffff00 !important;
    border-bottom: 1px solid #ededed !important;
}

#module-ybc_blocksearch-blocksearch .input-group-ct:has(.form-control:focus) {
    border: 1px solid #ededed !important;
    border-bottom: 1px solid var(--bs-primary) !important;
    transition: .8s ease;
}


.content_tab_category .content_element,
.content_tab_blockBlog .content_element {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 767px) {
    .content_tab_category .content_element {
        flex-direction: column;
    }
}

.content_tab_catBlog .item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
}

.content_tab_catBlog .item .right_item a {
    font-weight: 600;
}

.content_tab_catBlog .item .item_short_des {
    margin-top: 10px;
}

/* Bloc blog en cartes */
.content_tab_blockBlog .content_element,
.content_tab_category .content_element {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Exclure le compteur de la grille */
.content_tab_blockBlog .view_number_show,
.content_tab_category .view_number_show {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 20px;
}

/* Cartes */
.content_tab_blockBlog .item {
    position: relative;
    border: none;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.content_tab_blockBlog .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.content_tab_blockBlog .left_item {
    width: 100%;
    height: 100%;
}

.content_tab_blockBlog .left_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.content_tab_blockBlog .item:hover .left_item img {
    transform: scale(1.05);
}

/* Overlay semi-transparent */
.content_tab_blockBlog .item-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 38%), rgb(0 0 0 / 74%));
    opacity: 0.85;
    transition: opacity .3s ease;
}

.content_tab_blockBlog .item:hover .item-content::after,
.content_tab_blockBlog .item:hover .title,
.content_tab_blockBlog .item:hover .item_short_des {
    opacity: 0;
    transition: ease-in .3s;
}

/* Texte et titre au dessus de l’image */
.content_tab_blockBlog .right_item {
    position: absolute;
    bottom: 0;
    left: 0;
    top: 0px;
    padding: 15px;
    z-index: 2;
    color: #fff;
}

.content_tab_blockBlog .right_item a {
    color: #fff;
    text-decoration: none;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 15px;
}

.content_tab_blockBlog .title {
    display: block;
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 1.3;
}

.content_tab_blockBlog .item_short_des {
    font-size: .9rem;
    line-height: 1.1 !important;
    opacity: .9;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 95px;
}


#searchBtn .icon-wrapper {
    display: inline-block;
    transition: transform .25s ease, opacity .25s ease;
}

/* vibration horizontale */
@keyframes shake-horizontal {

    0%,
    100% {
        transform: rotate(-45deg) translateX(0);
    }

    30% {
        transform: rotate(-45deg) translateX(4px);
    }

    60% {
        transform: rotate(-45deg) translateX(2px);
    }
}

#searchBtn.shake-active .icon-wrapper {
    animation: shake-horizontal 0.85s cubic-bezier(.36, .07, .19, .97);
}

/* === Search === */



/* === Blog === */
#ybc_blog_page #wrapper {
    background-color: #f8f9fa;
}

#ybc_blog_page .breadcrumb__wrapper {
    margin-bottom: 0;
}

#content-wrapper .ybc-blog-wrapper {
    background: transparent;
}

.blog-category {
    float: unset !important;
}

.blog-shadow {
    box-shadow: 0 0px 2px 0 rgb(0 0 0 / 0.15);
    border: 1px solid;
    border-color: rgba(243, 244, 246, 1);
}

.ybc_block_categories .tree li a:hover,
.ybc_blog_content_block_item_recent:hover {
    transition: .3s ease;
    background-color: var(--beige);
}

.ybc_blog_content_block_popular_item:hover img {
    scale: 1.05;
    transition: .3s ease;
}

.ybc_blog_content_block_popular_item .ybc_title_block:hover,
.ybc_latest_title_block:hover {
    color: var(--bs-primary) !important;
}


/* === Blog Promo Card === */
.blog-promo-loading {
    min-height: 100px;
    position: relative;
}

.blog-promo-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.blog-promo-card {
    margin: 24px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-promo-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.blog-promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
}

.blog-promo-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-promo-details {
    flex: 1;
    min-width: 0;
}

.blog-promo-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.blog-promo-tagline {
    font-size: 13px;
    color: #5a6c7d;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.blog-promo-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blog-promo-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--bs-primary);
}

.blog-promo-btn {
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .blog-promo-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .blog-promo-image {
        width: 100px;
        height: 100px;
    }

    .blog-promo-footer {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .blog-promo-btn {
        width: 100%;
    }
}


.ybc_item_img img {
    aspect-ratio: 16 / 6;
    object-fit: cover;
}

.ybc_latest_item_img {
    max-width: 60px;
}

.ybc_latest_item_img img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}


.ybc_latest_title_block {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ybc_popular_item_img img {
    height: 115px;
}

.blog-banner {
    max-height: 300px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.table_content {
    box-shadow: 0 0px 10px 2px #00000033;
}

#ybc_blog_page h2.ybc_heading {
    text-transform: uppercase;
    font-size: 1.6rem;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #bfbfbf;
    border-bottom: 1px solid #bfbfbf;
    overflow: hidden;
    margin: 60px 0 40px 0;
}


.ybc_block_categories,
.ybc_block_popular,
.ybc_block_latest {
    position: sticky;
    top: 132px;
}

.ybc_blog_sidebar,
.ybc-navigation-blog-content {
    height: 100%;
}

.off-p-4 {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.title-page-all-blog {
    font-size: 1.5rem;
}

/* === Blog === */



/* === LINK HIGHLIGHT === */
.link-highlight {
    color: var(--bs-link-color);
    font-weight: 600;
    padding: 4px 4px;
    border-radius: 3px;
    text-decoration: none;
    position: relative;
    transition: color .25s ease
}

.link-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--bs-link-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease
}

.link-highlight:hover::after {
    transform: scaleX(1);
}
/* === LINK HIGHLIGHT === */


/* === Cards in category pages === */
.displayCustomBanners5 div {
    text-align: start;
}
/* === Cards in category pages === */



/* === Footer === */
.footer_social_icons li {
    width: 2rem;
}

.footer__main li:hover {
    transition: .3s ease-in;
    transform: scale(1.01);
}
/* === Footer === */

.categ-reas-img {
    width: 50px;
    height: 50px;
}


