﻿/* ==============================
   SUPERMARKET PRODUCT DETAIL STYLE
   ============================== */

/* Genel Alan */
.tf-main-product {
    background: #f8f9fa;
    padding: 2rem 0;
}

.tf-product-media-wrap,
.tf-product-info-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ==============================
   ÜRÜN GÖRSELLERİ
   ============================== */
.tf-product-media-main .item img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.tf-product-media-thumbs .item {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tf-product-media-thumbs .swiper-slide-thumb-active .item {
    border-color: #28a745;
}

.tf-product-media-thumbs .item:hover {
    border-color: #6c757d;
}

/* ==============================
   ÜRÜN BAŞLIK + FİYAT BÖLÜMÜ
   ============================== */
.tf-product-info-title h5 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tf-product-info-price {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 1.5rem 0 2rem 0;
}

.price-wrapper {
    display: flex !important;
    align-items: baseline !important;
    gap: 50px !important;
    flex-wrap: wrap !important;
}

.price-on-sale {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #27ae60 !important;
}

.compare-at-price {
    font-size: 1.25rem !important;
    color: #95a5a6 !important;
    text-decoration: line-through !important;
}

.badges-on-sale span {
    background: #e74c3c !important;
    color: #fff !important;
    padding: 0.4rem 1.1rem !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(231,76,60,0.3) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ==============================
   BUTONLAR
   ============================== */
.tf-product-info-buy-button {
    margin: 2rem 0;
}

.action-buttons-wrapper {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tf-btn {
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    min-height: 52px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .tf-btn i {
        font-size: 1.1rem;
    }

/* Sepete Ekle */
.btn-add-cart {
    background: #27ae60;
    color: #fff;
}

    .btn-add-cart:hover {
        background: #219150;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39,174,96,0.3);
    }

/* Hemen Al */
.btn-buy-now {
    background: #fff;
    color: #27ae60;
    border: 2px solid #27ae60;
}

    .btn-buy-now:hover {
        background: #27ae60;
        color: #fff;
    }

/* Favori Butonu */
.btn-wishlist {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.875rem 1.25rem;
    color: #2d3436;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

    .btn-wishlist i {
        color: #e74c3c;
    }

    .btn-wishlist:hover {
        background: #e74c3c;
        border-color: #e74c3c;
        color: #fff;
        transform: translateY(-2px);
    }

        .btn-wishlist:hover i {
            color: #fff;
        }

/* ==============================
   TESLİMAT KUTULARI (4'LÜ)
   ============================== */
.tf-product-info-delivery-return {
    background: #e7f5e9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tf-product-delivery .icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tf-product-delivery p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
    line-height: 1.3;
    min-height: 2.6em;
}

/* ==============================
   GÜVENLİ ÖDEME ALANI
   ============================== */
.tf-product-info-trust-seal {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.tf-product-trust-mess {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .tf-product-trust-mess i {
        font-size: 1.5rem;
        color: #28a745;
    }

.tf-payment {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

    .tf-payment img {
        height: 32px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        padding: 0.25rem;
        background: #fff;
    }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 992px) {
    .tf-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .action-buttons-wrapper {
        flex-wrap: wrap;
    }

    .btn-add-cart {
        flex: 1 1 100%;
    }

    .btn-buy-now {
        flex: 1 1 calc(60% - 0.375rem);
    }

    .btn-wishlist {
        flex: 1 1 calc(40% - 0.375rem);
    }

    .tf-product-info-title h5 {
        font-size: 1.5rem;
    }

    .price-on-sale {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .action-buttons-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tf-btn, .btn-wishlist {
        width: 100%;
    }

    .price-wrapper {
        display: flex !important;
        align-items: baseline !important;
        gap: 20px !important;
        flex-wrap: wrap !important;
    }

    .tf-product-info-wrap .tf-product-info-title h5 {
        font-size: 20px !important;
        line-height: 31.2px !important;
    }

    .tf-product-delivery p {
        margin: 0 !important;
        font-size: 14px !important;
        color: #495057 !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        min-height: 2.6em !important;
    }

    .tf-product-info-delivery-return {
        background: #e7f5e9 !important;
        border-radius: 10px !important;
        padding: .5rem !important;
        margin-top: 1.5rem !important;
    }
}
