﻿
@media (max-width: 768px) {
    .btn-cart {
        font-size: 12px !important;
        padding: 6px 12px !important;
        width: 90% !important;
        max-width: 140px !important;
        box-sizing: border-box !important;
        display: block !important;
        margin: 12px auto 0 auto !important;
        text-align: center !important; /* ✅ YAZIYI ORTALAR */
    }

    .btn-product-icon.btn-cart.w-icon-cart::before {
        line-height: -50px !important
    }
}

@media (max-width: 768px) {
    div.product-wrap {
        max-height: 264px !important;
        height: 241px !important;
    }
}


.banner-img {
    width: auto !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.swiper-wrapper {
    width: 100%;
}

.product-name {
    display: block;
    white-space: normal !important;
    word-break: break-word;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100%;
}


.swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .custom-left-banner {
        height: 160px;
    }

    .banner-img {
        height: 100%;
        width: auto;
    }
}

.swiper-container {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    border-rad ius: 0 !important;
    overflow: hidden;
}

.scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .scroll-row::-webkit-scrollbar {
        display: none;
    }

.product-box {
    flex: 0 0 auto;
    width: 180px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    background: white;
    text-align: center;
}

.product-image-wrapper {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .product-image-wrapper:hover img {
        transform: scale(1.05);
    }

.ad-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1425px;
    padding: 0 20px;
}

.ad-banner-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

    .ad-banner-item img:hover {
        transform: scale(1.02);
    }

.product-wrap {
    width: 185px !important; /* ⬅ daha dar */
    height: 370px !important;
    padding: 10px !important;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-container {
    height: 190px !important;
    padding: 6px !important;
    margin-bottom: 8px !important;
}

.product-image {
    max-height: 120px !important;
    object-fit: contain !important;
}

.product-name a {
    font-size: 12px !important;
    line-height: 1.3 !important;
    height: 32px !important;
}

.price-value {
    font-size: 14px !important;
}


.product-image {
    margin-top: -30px;
    max-height: 160px !important;
    max-width: 100% !important;
    object-fit: contain !important;
}


.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 130px !important;
    margin-bottom: 6px !important;
    padding: 6px !important;
}




.product-wrap {
    width: 181px !important;
    min-height: 201px !important;
    max-height: 241px !important;
}

.product-image {
    max-height: 400px !important;
    object-fit: contain !important;
}

.product-name {
    height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.installment-label {
    display: inline-block;
    background-color: #f4e9ff !important;
    color: #711db0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    margin-bottom: 6px !important;
}

.product-name a {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
}


.product-media {
    flex-shrink: 0;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    margin-top: -35px;
    padding-top: 8px;
}

.product-price {
    margin-bottom: auto;
}



.product-name a {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px !important;
    word-break: break-word;
}

.product-name a,
.product-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 36px;
    max-height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}





.product-wrap:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    margin-bottom: 10px;
    padding: 10px;
}



.product-image {
    max-height: 130px;
    object-fit: contain;
}

.product-details {
    text-align: left;
    font-size: 13px;
}





.ratings-container {
    font-size: 11px;
    margin-top: 4px;
}

.rating-reviews {
    font-size: 11px;
    color: #888;
}

.btn-product-icon {
    font-size: 14px;
    margin-left: 6px;
}


.product-badge {
    position: absolute !important;
    top: 103px !important;
    left: 6px !important;
    z-index: 2 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}



.badge-discount {
    background-color: #E74C3C;
}

.badge-installment {
    background-color: #2E86C1;
}

.badge-freeshipping {
    background-color: #8E44AD;
}

.badge-newproduct {
    background-color: #2ECC71;
}

.badge-brown {
    background-color: #B8860B;
}

.badge-turquoise {
    background-color: #30d5c8;
}

.badge-grayblue {
    background-color: #90A4AE;
}

.badge-wrapper {
    height: 13px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 11px;
}


.price-value {
    display: inline-block;
    min-height: 22px;
    line-height: 22px;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-top: -10px;
}

@media (max-width: 768px) {
    .swiper-slide {
        margin-right: 12px !important;
        width: 180px !important;
    }
}
