h1 {
    font-size: 36px;
    font-weight: 800;
    color: #222;
    margin-bottom: 32px;
    letter-spacing: 1px;
}


.cart--product {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px 16px 24px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
.cart--product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
/* ── Favourite heart button ── */
.btn-favourite {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.btn-favourite:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231,76,60,0.18);
    transform: scale(1.08);
}
.btn-favourite svg { width: 20px; height: 20px; transition: transform 0.2s cubic-bezier(.36,.07,.19,.97); }
.btn-favourite .heart-icon { stroke: #aaa; fill: none; stroke-width: 2; transition: stroke 0.2s ease, fill 0.2s ease; }
.btn-favourite.is-favourite .heart-icon { stroke: #e74c3c; fill: #e74c3c; }
.btn-favourite.is-favourite { border-color: #e74c3c; }
@keyframes heart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.btn-favourite.pop svg { animation: heart-pop 0.35s ease forwards; }

.cart__image { position: relative; margin-bottom: 16px; }
.ratio-wrap { position: relative; padding-bottom: 100%; width: 100%; overflow: hidden; }
.ratio-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100% !important; object-fit: contain; }

.price-badge-wrapper {
    position: absolute;
    top: 12px;
    left: 6px;
    width: 180px;
    height: 95px;
    z-index: 3;
    transform: scale(0.83);
    transform-origin: top left;
}

 @media (max-width: 768px) {
    .price-badge-wrapper {
        transform: scale(0.75);
    }
     .archive .price-badge-wrapper {
        transform: scale(0.65);
    }
} 
.adviesprijs-box {
    position: absolute;
    top: 0;
    left: 0;
    background: #C5DDE8;
    border-radius: 6px;
    padding: 8px 10px 9px 10px;
    min-width: 82px;
    z-index: 1;
}
.current-price-box {
    background: #E46A3A;
    border-radius: 8px;
    position: absolute;
    top: 34px;
    left: 52px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-start;
    padding: 7px 12px;
    white-space: nowrap;
}
.current-price-box .sale-euros { font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.current-price-box .sale-cents { font-size: 18px; font-weight: 800; color: #fff; margin-top: 4px; line-height: 1; }

/* No adviesprijs variant — price box sits top-left */
.price-badge-wrapper .current-price-box.no-adv { top: 0; left: 0; }

.woocommerce-loop-product__title {
    font-size: 20px;
    margin: 22px 0 10px;
    font-weight: 800;
    line-height: 1.25;
    color: #000;
    overflow: hidden;
    min-height: calc(3 * 1.25em);
    max-height: calc(3 * 1.25em);
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.review-stars { display: flex; align-items: center; gap: 4px; margin: 0 0 16px; margin-top:auto;}
.review-stars .stars { display: flex; gap: 2px; }
.review-stars svg { width: 18px; height: 18px; display: block; }
.review-stars .star-filled { fill: #f5b301; }
.review-stars .star-empty  { fill: #d9d9d9; }
.review-stars .review-count {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    margin-left: 2px;
    transition: color 0.15s ease;
}
.review-stars .review-count:hover { color: #333; text-decoration: underline; }

.cart__info-box { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cart__info-box .badge { line-height:15px;display: inline-block; padding: 5px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.cart__info-box .badge.badge--compact { font-size: 10px; padding: 4px 6px; }
.badge-mobile,
.badge-desktop {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge--grey { background: transparent; border: 1px solid #ddd; color: #555; }
.badge--instock { border: 1px solid #4CAF50; color: #4CAF50; }
.badge--outofstock { border: 1px solid red; color: red; }
.badge--onbackorder { border: 1px solid #6596ac; color: #6596ac; }

.cart__info-box .badge { background: transparent;  }

.cart--product .button--primary {
    display: block;
    text-align: center;
    background: #4CAF50;
    color: white;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: 0.2s ease;
    /* margin-top: auto; */
}
.cart--product .button--primary svg { vertical-align: middle; margin-right: 6px; }

.svgeye path,.svgeye circle {
    stroke: white;
    fill: transparent;
    stroke-width: 2px;
}
.cart__info-box--mobile{
    display: none;
}

@media(max-width: 768px) {

    .cart__info-box--mobile{
        display: flex;
        
    }
    .cart__info-box--desktop{
        display: none;
    }
    .archive .cart--product .button--primary svg{
        margin-top:-3px;
    }
    .archive .cart--product .button--primary{
        padding:8px
    }
    .archive .cart{gap:8px}
    .archive .review-stars a span{display:none}
    .archive .review-placeholder{max-height:18px}
    .archive .cart--product{padding:8px}
    .archive .cart--product .button--primary{font-size:14px}
    .archive .cart__image,.archive .review-stars,.archive .cart__info-box,.archive .woocommerce-loop-product__title{margin:0 !important}

    .cart .badge:not(.woocommerce-cart .badge) {
        font-size: 9px !important;
    }
}


.cart__info-box .badge {padding: 3px 7px;}

.cart .badge {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media(min-width: 769px) {
    .archive .cart__info-box--mobile {
        display: none;
    }

    .archive .cart__info-box--desktop {
        display: flex;
    }
}

@media(max-width:420px){
    .quantity-card{padding:6px 4px}
    .woocommerce-cart .badge{white-space:initial;}

    .cart .badge:not(.woocommerce-cart .badge) {
        font-size: 8.2px !important;
    }

}
@media(max-width:380px){
    .quantity-card{
        transform: scale(0.9);
        margin-left: -5%;
    }
    .archive .cart--product .button--primary{font-size:13px}
    .popup__product {
        padding: 48px 8px 40px;
        font-size:14px;
    }
    .basket__item-image{min-width:80px}
    
    .popup__product-group{gap:6px}
    .popup__product-image img{width:50px !important}
    .popup__product-image{width:55px !important;min-width:55px !important}
    .mini_cart_item strong{flex-grow:1;overflow-wrap: anywhere;word-break: break-word;min-width: 100px;}
}
