/*==========================================================
    ÜRÜNLERİMİZ SAYFASI
    Ana sayfa ile aynı renk / yazı tipi dili:
    zeytin yeşili #737f39, sarı vurgu #e0c31e, Vidaloka başlıklar
==========================================================*/

body {
    background-color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #333333;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
}

/*--================ ROZETLER ================--*/

.sezon-yeni,
.sezon-eski {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 8px 12px 6px 8px;
    border-radius: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    color: #ffffff;
    font-family: "Noto Serif Ahom", serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 1px;
}

.sezon-yeni {
    background-color: #036500;
}

.sezon-eski {
    background-color: #b90000;
}

.image .discount {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    padding: 6px 4px 4px 8px;
    border-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #ef5600;
    color: #ffffff;
    font-family: "Noto Serif Ahom", serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1px;
}

/*--================ ÜRÜN ALANI ================--*/

.products {
    position: relative;
    padding: 50px 40px 70px;
}

.products .container-fluid {
    max-width: 1400px;
    padding: 0;
}

.products .header {
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
    border: none;
    text-align: center;
}

.products .header .header-text {
    width: 100%;
    padding: 6px 0 0;
    color: #737f39;
    font-family: "Vidaloka", serif;
    font-weight: 400;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.25;
}

.products .header .header-text::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin: 18px auto 0;
    background-color: #e0c31e;
}

.products .row {
    justify-content: center;
}

.products .row > [class*="col-lg-3"] {
    display: flex;
    margin-bottom: 26px;
    padding-left: 10px;
    padding-right: 10px;
}

/*--================ ÜRÜN KARTI ================--*/

.products .item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 50px; /* incele / sepete ekle butonlarına yer */
    border-radius: 6px;
    background: #ffffff;
    box-shadow: rgba(50, 50, 93, 0.25) 0 2px 5px -1px, rgba(0, 0, 0, 0.3) 0 1px 3px -1px;
    transition: all 0.2s ease 0s;
}

.products .item:hover {
    z-index: 2;
}

.products .item .image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 6px 6px 0 0;
    background: #f3f3f3;
}

.products .item .image .img-fluid {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products .item .content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 14px;
    text-align: center;
}

.products .item .content .item-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 6px;
    color: #151823;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
}

.products .item .content .item-amount {
    margin-bottom: 8px;
    color: #666666;
    font-size: 14px;
}

.products .item .content .price {
    margin-top: auto;
}

/* Hover'da açılan buton alanı (kartın dışına taşmaz) */
.products .item .alt-bosluk {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 15px 6px 15px;
    border-radius: 6px;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.products .item:hover .alt-bosluk {
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.15) 0 5px 15px 0;
}

.products .item .alt-bosluk .product-button {
    display: inline-block;
    margin: 0 4px;
    padding: 12px;
    border-radius: 50%;
    background-color: #be9200;
    line-height: 16px;
}

.products .item .alt-bosluk .product-button i {
    font-size: 16px;
    line-height: 16px;
}

.products .item .alt-bosluk .sol,
.products .item .alt-bosluk .sag {
    color: #ffffff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease-in-out;
}

.products .item .alt-bosluk .sag {
    background-color: #6c8d36;
    transition-delay: 0.1s;
}

.products .item:hover .alt-bosluk .sol,
.products .item:hover .alt-bosluk .sag {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/*--================ TABLET ================--*/

@media screen and (max-width: 991px) {
    .products {
        padding: 40px 24px 60px;
    }
}

/*--================ MOBİL ================--*/

@media screen and (max-width: 600px) {
    .products {
        padding: 24px 5px 50px;
        background-color: #fbfbfb;
    }

    .products .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }

    .products .header .header-text {
        padding: 6px 10px 0;
    }


    .products .row > [class*="col-lg-3"] {
        margin-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .sezon-yeni,
    .sezon-eski {
        padding: 7px 10px 5px 6px;
        font-size: 15px;
        line-height: 18px;
        letter-spacing: 0.5px;
    }

    .image .discount {
        padding: 6px 4px 3px 4px;
        font-size: 14px;
        line-height: 16px;
        letter-spacing: 0.5px;
    }

    .products .item {
        padding-bottom: 14px;
        border-radius: 0;
        box-shadow: rgba(0, 0, 0, 0.18) 0 1px 4px;
    }

    .products .item .image {
        margin-bottom: 10px;
        border-radius: 0;
    }

    .products .item .content {
        padding: 0 8px;
    }

    .products .item .content .item-header {
        min-height: 36px;
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
    }

    .products .item .content .item-amount {
        font-size: 11px;
        line-height: 20px;
    }

    /* Mobilde butonlar her zaman görünür ve kartın altında */
    .products .item .alt-bosluk {
        position: static;
        z-index: auto;
        margin-top: auto;
        padding: 6px 0 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        transition: none;
    }

    .products .item:hover .alt-bosluk {
        background: none;
        box-shadow: none;
    }

    .products .item .alt-bosluk .product-button {
        padding: 5px 14px;
        border-radius: 4px;
        line-height: 12px;
    }

    .products .item .alt-bosluk .product-button i {
        font-size: 12px;
        line-height: 12px;
    }

    .products .item .alt-bosluk .sol,
    .products .item .alt-bosluk .sag {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
