:root {
    --spch-color-green: #28a745;
    --spch-color-dark: #212529;
    --spch-color-orange: #fd7e14;
    --spch-bg-body: #f0f2f5;
    --spch-bg-card: #ffffff;
    --spcb-star-color: #ffc107;
    --spcb-rating-c-bg: #ffc107;
    --spcb-rating-a-bg: #0d6efd;
    --spcb-rating-noise-bg: #e9ecef;
    --spcb-text-muted: #6c757d;
    --spcb-border-color: #dee2e6;
    --spcb-btn-bg: #f8f9fa;
}

.product-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background-color: var(--spch-bg-card);
    padding: 1rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.05);
}
.product-name {
    min-height: 4.5rem;
    font-size: 0.9rem;
    align-content: center;
}

.search-product-card-body {
    min-height: 15rem;
}

.brand-image {
    width: 100px;
}

.product-price {
    color: var(--spch-color-dark);
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--spcb-border-color);
    background-color: var(--spcb-btn-bg);
    color: var(--spch-color-dark);
    font-size: 0.8rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.favorite-btn img {
    width: 16px;
    height: 16px;
}

.favorite-btn:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: var(--spch-color-dark);
}


.search-product-card-header-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-product-card-header-image {
    max-height: 170px;
}

.search-product-card-header-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, var(--spch-bg-card) 25%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.search-product-card-header-icon-stack {
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    display: flex;
    flex-direction: column;
    /*gap: 0.8rem;*/
    z-index: 20;
}

.search-product-card-header-icon-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.2);*/
}

.search-product-card-header-icon-circle--green { background-color: #28a745; }
.search-product-card-header-icon-circle--dark { background-color: #212529; }
.search-product-card-header-icon-circle--orange { background-color: #fd7e14; }

.popover-warning {
    background-color: #fd7e14;
    border-color: #fd7e14;
}
.popover-warning .popover-body {
    color: white;
    font-weight: 500;
}
.popover-warning.bs-popover-start > .popover-arrow::after {
    border-left-color: #fd7e14;
}

.search-product-card-body-rating {
    gap: 0.5rem;
}

.search-product-card-body-rating-score {
    font-weight: bold;
}

.search-product-card-body-stars {
    color: var(--spcb-star-color);
}

/* Yıldızların arasındaki boşluğu azaltmak için */
.search-product-card-body-stars .bi-star-half,
.search-product-card-body-stars .bi-star-fill {
    margin-left: -4px;
}

.search-product-card-body-review-count {
    color: var(--spcb-text-muted);
}

/* --- Etiketler Alanı --- */
.search-product-card-body-labels {
    gap: 0.5rem;
    min-height: 2.5rem;
}

.search-product-card-body-label-group {
    gap: 0.2rem;
    min-height:2rem;
}

.search-product-card-body-label-group i {
    font-size: 1.4rem;
}

.search-product-card-body-badge {
    font-size: 1rem;
    padding-left: 0.2rem;
    padding-right: 0.6rem;
    text-shadow: 1px 1px 4px gray;
    color: white;
    clip-path: polygon(0% 0%, 70% 0, 100% 50%, 70% 100%, 0% 100%);
}

.search-product-card-body-badge--a {
    background-color: #009933;
    color: white;
}

.search-product-card-body-badge--b {
    background-color: #99cc00;
}

.search-product-card-body-badge--c {
    background-color: #ffcc00;
}

.search-product-card-body-badge--d {
    background-color: #ff9900;
}

.search-product-card-body-badge--e {
    background-color: #ff3300;
    color: white;
}

.search-product-card-body-badge--f {
    background-color: #cc0000;
    color: white;
}

.search-product-card-body-badge--g {
    background-color: #af0202;
    color: white;
}

.search-product-card-body-badge--noise {
    background-color: var(--bs-medium-gray);
    color: black;
    font-size:0.9rem;
    text-shadow: none !important;
}

.search-product-card-body-label-group-img {
    width: 25px;
}

.search-product-detail-btn{
    background-color: var(--bs-dark);
    color: white;
}

.search-product-detail-btn:hover{
    background-color: white !important;
    color: var(--bs-dark) !important;
    border: 1px solid var(--bs-dark);
}


@media (max-width: 767.98px) {
    /* .search-product-card-header-icon-stack {
        bottom: 1rem;
        right: 0rem;
        gap: 0.5rem;
    } */
    /* .search-product-card-header-icon-circle {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    } */
}

/* --- Mobil cihazlar --- */
@media (max-width: 576px) {
    .product-card {
        padding: 0.7rem;
    }

    .search-product-card-body {
        min-height: 13rem;
    }

    .search-product-card-header-image {
        max-height: 140px;
    }

    .brand-image {
        width: 60px;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .favorite-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.8rem;
    }

    .favorite-btn img {
        width: 14px;
        height: 14px;
    }

    .search-product-card-body-rating {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .search-product-card-body-labels {
        gap: 0.5rem;
    }

    .search-product-card-body-label-group i {
        font-size: 1rem;
    }
    
    .search-product-card-body-badge {
        font-size: 0.7rem;
        padding-left: 0.2rem;
        padding-right: 0.45rem;
    }

    .search-product-card-body-label-group-img {
        width: 20px;
    }

    .search-product-card-header-icon-circle {
        width: 30px;
        height: 30px;
    }
    .search-product-card-header-icon-stack {
        right: 0rem;
    }
}