.btn-primary {
    padding: 12px 20px;
    border-radius: 8px;
    background: #55f5ff;
    border: none;
    outline: none;
    cursor: pointer;
    color: #161822;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.btn-primary:disabled {
    pointer-events: none;
    opacity: 0.8;
}

.bento--loading {
    margin: 20px auto;
    font-weight: bold;
}

.bento--loading::after {
    content: "";
    animation: revealDots 2s infinite;
}

@keyframes revealDots {
    0% {
        content: ""; /* No dots */
    }
    33% {
        content: "."; /* First dot */
    }
    66% {
        content: ".."; /* Second dot */
    }
    100% {
        content: "..."; /* All three dots */
    }
}

.bento {
    margin: 30px auto;
    width: 95%;
    text-align: center;
    opacity: 0;
    animation: zoomInOut 2s ease-in-out 2.5s forwards;
}

@keyframes zoomInOut {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bento > .bento_container > .bento__items {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 16px;
    padding: 8px;
    grid-template-areas:
        'item_1 item_1 item_2 item_2 item_2 item_2 item_3 item_3 item_3 apla_1 apla_1'
        'item_4 item_4 item_4 item_4 item_5 item_5 item_5 item_5 item_6 item_6 item_6'
        'item_4 item_4 item_4 item_4 item_5 item_5 item_5 item_5 blog_1 blog_1 blog_1'
        'apla_2 apla_2 item_7 item_7 item_7 item_7 blog_2 blog_2 item_8 item_8 item_8';
}

.bento > .bento_container > .bento__items.bento-mini {
    grid-template-areas:
            'item_1 item_1 item_2 item_2 item_2 item_2 item_3 item_3 item_3 apla_1 apla_1';
}
.bento > .bento_container > .bento__items.bento-medium {
    grid-template-areas:
            'item_1 item_1 item_2 item_2 item_2 item_2 item_3 item_3 item_3 apla_1 apla_1'
            'item_4 item_4 item_4 item_4 item_5 item_5 item_5 item_5 item_6 item_6 item_6'
            'item_4 item_4 item_4 item_4 item_5 item_5 item_5 item_5 blog_1 blog_1 blog_1';
}

.bento > .bento_container > .bento__items.switch-bento {
    grid-template-areas:
        'item_1 item_1 item_2 item_2 item_2 item_2 item_3 item_3 item_3 item_4 item_4'
        'apla_1 apla_1 apla_1 item_5 item_5 item_5 item_5 item_6 item_6 item_6 item_6 '
        'blog_1 blog_1 blog_1 item_5 item_5 item_5 item_5 item_6 item_6 item_6 item_6 '
        'blog_2 blog_2 item_7 item_7 item_7 item_7 apla_2 apla_2 item_8 item_8 item_8 ';
}

.bento > .bento_container > .bento__items.bento-undo {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: unset;
}

.bento > .bento_container > .bento__items.bento-undo > .bento-item {
    grid-area: unset !important;
}

.bento > .bento__pagination {
    margin-top: 20px;
    text-align: center;
}

.bento-item {
    position: relative;
    transition: all 0.3s ease-out;
}

.bento-item:hover {
    transform: scale(1.03) translateY(-5px);
}

.bento-hover-popup {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    padding: 10px;
    bottom: 100px;
    background-color: transparent;
    width: 100%;
    visibility: hidden;
}

.bento-item:hover .bento-hover-popup {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}


.popup-description {
    color: #000;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* Hide unnecessary elements */
.popup-image,
.popup-button {
    display: none;
}

.first__column {
    width: 100%;
    background-color: #f77366;
    border-radius: 50px;
}

.first__column--header {
    width: 100%;
    margin: 0 auto 14.58px auto;
    padding-top: 22px;
}

.first__column--header h2 {
    color: #fff;
    text-align: center;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 80% */
}

.first__column--content {
    width: 100%;
    margin: 0 auto;
}

.first__column--content h3 {
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 120% */
}

.first__column--content p {
    margin: 35px auto 45px auto;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 120% */
}

.first__column--footer {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.first__column--footer--text p {
    color: #1a1a1a;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 100% */
}

.first__column--footer--button {
    width: 50px;
    height: 50px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bento-item {
    display: flex;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    /*border-radius: 50px;*/
    border-radius: 18.39px;
    /*min-height: 392px;*/
    position: relative;
    background-color: var(--color-white);

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.bento-item--header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.favorite {
    display: flex;
    width: 25px;
    height: 25px;
    padding-right: 7px;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    border-radius: 81.25px;
    /*background: #F4F1DE;*/
    backdrop-filter: blur(3.25px);
    cursor: pointer;
    background-size: contain;
}

.favorite.unfavorited {
    background-image: url('../images/unfavorited.svg');
}

.favorite.favorited {
    background-image: url('../images/favorited.svg');
}

.bento-item--content {
    position: relative;
    width:100%;
    height: 100%;
    cursor: pointer;
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
}

.priceAndKm {
    display: flex;
    align-items: center;
    height: 80px;
    width: 100%;
    justify-content: space-between;
}

.km {
    display: flex;
    width: 60px;
    flex-direction: column;
    /*gap:12px;*/
    align-items: center;
    justify-content: center;
    margin-left: -10px;
}

.distanceKM {
    color: #333e49;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21.33px; /* 106.644% */
	width: 50px;
}

.heart {
    position: relative;
}

.heart .heart-img {
    position: absolute;
    top: 18%;
    left: 20%;
}

.priceAndCart {
    width: 125px;
    height: 50px;
    border-radius: 20px;
    border: 1.78px solid var(--color-black);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.price {
    color: var(--color-black);
    font-size: var(--font-size-lg);
    line-height: 21.33px;
    font-style: normal;
    font-weight: 500;
}

.addToCart {
    width: 25px;
    height: 25px;
    background-color: #f77366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog_insert.bento-item {
    padding: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog_insert .blog_insert__container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.blog_insert__container-partenaires {
    border-radius: 10px;
    border: 2px solid white;
    padding: 5px;
}

.blog_insert .blog_insert-title,
.blog_insert .blog_insert-content,
.apla_insert .apla_insert-title,
.apla_insert .apla_insert-content {
    font-size: 22.99px;
    text-align: center;
    line-height: 34.48px;
    letter-spacing: normal;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog_insert .blog_insert-title, 
.apla_insert .apla_insert-title{
    font-weight: 700;
}

.blog_insert__container-partenaires .blog_insert-title{
    text-transform: uppercase;
}

.blog_insert__container-particuliers .blog_insert-title::first-letter{
    text-transform: uppercase;
}

.bento-blog-header{
    font-weight: 800;
}

.blog_insert__container-partenaires .blog_insert-content {
    background-color: #f6c3c1;
    width: 95%;
    border: 1px solid #f6c3c1;
    border-radius: 10px;
    text-align: left;
    padding: 10px;
    min-height: 65px;
}

.blog_insert__container.blog_insert__container-particuliers {
    justify-content: center;
}

.bento-blog-content{
    font-weight: 400;
}

.bento-blog-content::first-letter {
    text-transform: uppercase;
}

.blog_insert .bento-text-white, .apla_insert .bento-text-white {
    color: var(--color-white);
}
.blog_insert .bento-text-blue, .apla_insert .bento-text-blue {
    color: #4c7bee;
}
.blog_insert .bento-text-black span, .apla_insert .bento-text-black {
    color: var(--color-black);
}


.blog_insert.bento-blog-blue, .apla_insert.bento-blog-blue {
    background-color: #1f2937;
}
.blog_insert.bento-blog-light-blue, .apla_insert.bento-blog-light-blue {
    background-color: #61fafd;
}
.blog_insert.bento-blog-light-red, .apla_insert.bento-blog-light-red {
    background-color: #f77366;
}
.blog_insert.bento-blog-pink, .apla_insert.bento-blog-pink {
    background-color: #f6c3c1;
}
.blog_insert.bento-blog-black, .apla_insert.bento-blog-black {
    background-color: #151515;
    border: 2px solid white;
}

.apla_insert {
    display: unset;
}

.apla_insert .apla_insert__container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.marketing_insert {
    display: flex;
    /*height: 249px;*/
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    border-radius: 50px;
    background: #fec8c6;
}

.marketing_insert__container {
    display: flex;
    width: 274px;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.marketing_insert__container .head {
    width: 100%;
    height: 33.204px;
    flex-shrink: 0;
    color: #39f;
    text-align: center;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 22.596px; /* 75.319% */
    margin-bottom: 19.8px;
}

.marketing_insert__container .content {
    width: 100%;
    height: 94px;
    color: #1a1a1a;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 22.596px; /* 94.149% */
}

@media only screen and (max-width: 600px) {
    .first__column--header h2 {
        font-size: 28px;
    }

    .first__column--content p {
        width: auto;
        font-size: 16px;
    }

    .first__column--content h3 {
        font-size: 17px;
    }

    .first__column--footer--text p {
        font-size: 18px;
    }
}

@media only screen and (max-width: 414px) {
    .first__column--content p {
        margin: 25px auto 25px auto;
    }
}

.addToCart {
    position: relative;
}

/* Hover effects */
.addToCart:hover {
    background-color: #ff8577; /* Lighter shade of your F77366 */
    box-shadow: 0 4px 8px rgba(247, 115, 102, 0.3);
}

.addToCart:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(247, 115, 102, 0.2);
}

.add_to_cart_button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.add_to_cart_button:hover {
    opacity: 0.8;
}

/* Hide the default text content */
.add_to_cart_button > .add_to_cart_text {
    display: none;
}

.bento-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--light-blue-color);
    color: #161822;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Show badge only when item is in cart */
.add_to_cart_button.added .bento-cart-badge {
    display: flex;
}

/* Hide WooCommerce's view cart button */
.added_to_cart {
    display: none !important;
}

.add_to_cart_button {
    pointer-events: auto;
    transition: opacity 0.1s ease;
}

.add_to_cart_button[disabled],
.add_to_cart_button.processing {
    pointer-events: none;
    opacity: 0.7;
}

/* Prevent text selection on double tap */
.add_to_cart_button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/*.bento-hover-popup {*/
/*    display: none;*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 100%;*/
/*    width: 300px;*/
/*    background: white;*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);*/
/*    transform: translateY(-50%);*/
/*    margin-left: 10px;*/
/*    z-index: 1000;*/
/*    overflow: hidden;*/
/*}*/

/*.bento-item:hover .bento-hover-popup {*/
/*    display: block;*/
/*}*/

.popup-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

/*.popup-content {
    padding: 15px;
}*/

.popup-description {
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
    margin: 0 0 15px 0;
}

.popup-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4b5563;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.popup-button:hover {
    background-color: #374151;
}

/* Adjust popup position if near right edge of screen */
@media (max-width: 768px) {
    .bento-hover-popup {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 10px;
    }
    .bento {
        animation: zoomInOut 1.5s ease-in-out 1s forwards;
    }

    .bento > .bento_container > .bento__items {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        grid-template-areas:
            'item_1 item_2 '
            'item_3 apla_1'
            'item_4 item_5'
            'blog_1 blog_1'
            'item_6 item_6 '
            'item_7 blog_2'
            'apla_2 item_8';
    }

    .blog_insert{
        min-height: 200px;
    }

    .bento > .bento_container > .bento__items.bento-mini {
        grid-template-areas:
                'item_1 item_2'
                'item_3 apla_1';
    }

    .bento > .bento_container > .bento__items.bento-medium {
        grid-template-areas:
                    'item_1 item_2'
                    'item_3 apla_1'
                    'item_4 item_5'
                    'blog_1 blog_1 '
                    'item_6 item_6';
    }

    .bento > .bento_container > .bento__items.switch-bento {
        grid-template-areas:
            'item_1 item_2 '
            'apla_1 item_3'
            'blog_1 blog_1'
            'item_4 item_5'
            'blog_2 item_6 '
            'item_7 item_7'
            'apla_2 item_8';
    }

    .bento > .bento_container > .bento__items.bento-undo {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item:not(.blog_insert) {
        height: 250px;
    }
    .km {
        width: 25px;
		margin-left: 0px;
    }

    .heart svg{
        width: 25px;
        height: 25px;
    }

    .priceAndCart {
        width: 100px;
        height: 35px;
    }

    .distanceKM {
        font-size: 8px;
    }

    .price {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .bento > .bento_container > .bento__items {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(300px, auto);
        grid-template-areas:
            'item_1 item_2 apla_1'
            'item_3 item_4 item_4'
            'blog_1 item_5 item_6'
            'apla_2 item_7 item_7'
            'item_8 item_8 blog_2';
    }


    .bento > .bento_container > .bento__items.bento-mini {
        grid-template-areas:
                'item_1 apla_1 apla_1'
                'item_2 item_2 item_3';

    }

    .bento > .bento_container > .bento__items.bento-medium {
        grid-template-areas:
                'item_1 item_2 apla_1'
                'item_3 item_4 item_4'
                'item_5 item_6 item_6'
                'blog_1 blog_1 blog_1';
    }

    .bento > .bento_container > .bento__items.switch-bento {
        grid-template-areas:
            'apla_1 item_1 item_2'
            'item_3 item_4 item_4'
            'item_5 blog_1 item_6 '
            'item_7 item_7 apla_2'
            'blog_2 item_8 item_8';
    }

    .bento > .bento_container > .bento__items.bento-undo {
        grid-template-columns: repeat(3, 1fr);
    }
}

.d-none {
    display: none;
}
