/* ÜRÜN DETAY SAYFASI CSS - Stil Kapsüllemesi Güçlendirilmiş */
/* Bu sınıflar, sadece ürün sayfasında kullanılan elementlere etki edecek şekilde kapsüllenmiştir */

/* ANA ÜRÜN ALANI */
.fp-products-page .fp-product-card {
    margin-bottom: 30px;
}
.fp-products-page .main-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    height: 400px;
}
.fp-products-page .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fp-products-page .product-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-primary);
}
.fp-products-page .text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.fp-products-page .link-more {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 20px;
    text-decoration: none;
}
.fp-products-page .link-more:hover {
    text-decoration: underline;
}
.fp-products-page .action-area {
    margin-top: 10px;
}
.fp-products-page .price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.fp-products-page .price-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.fp-products-page .price-old {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 10px;
}
.fp-products-page .fp-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    margin-right: 10px;
}
.fp-products-page .fp-quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hover-bg);
    color: var(--text-primary);
    text-decoration: none;
}
.fp-products-page .fp-quantity-btn:hover {
    background-color: var(--primary);
    color: white;
}
.fp-products-page .fp-quantity .form-control {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
    border-radius: 0;
    height: 40px;
}
.fp-products-page .grid {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

/* SATICI KART */
.fp-products-page .fp-seller-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%;
}
.fp-products-page .fp-seller-card .img-profile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 2px;
    background-color: white;
}
.fp-products-page .fp-seller-card .name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.fp-products-page .fp-seller-card .info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}
.fp-products-page .fp-seller-card .info .icon {
    margin-right: 5px;
    color: var(--primary);
}
.fp-products-page .fp-seller-card .btn {
    margin-bottom: 10px;
    width: 100%;
}

/* TABS */
.fp-products-page .fp-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 20px;
}
.fp-products-page .fp-tabs-nav .link {
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.fp-products-page .fp-tabs-nav .link:hover {
    color: var(--primary);
}
.fp-products-page .fp-tabs-nav .link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.fp-products-page .fp-tabs-content {
    display: none;
    padding: 15px 0;
}
.fp-products-page .fp-tabs-content.active {
    display: block;
}

/* YORUMLAR */
.fp-products-page .fp-comments-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
}
.fp-products-page .fp-stars {
    color: #ffc107;
}
.fp-products-page .fp-stars i {
    margin-left: 2px;
}
.fp-products-page .fp-comment-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}
.fp-products-page .fp-comment-item .user {
    flex: 0 0 200px;
    padding-right: 20px;
}
.fp-products-page .fp-comment-item .name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}
.fp-products-page .fp-comment-item .content {
    flex: 1;
}
.fp-products-page .fp-comment-item .text {
    margin-bottom: 10px;
    color: var(--text-secondary);
}
.fp-products-page .fp-comment-item .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* İLGİNİ ÇEKEBİLİR BÖLÜMÜ - YENİ TASARIM */
.related-products-section {
    padding: 40px 0;
    background-color: var(--hover-bg);
}
.related-products-section .product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid var(--card-border);
}
.related-products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.related-products-section .product-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.related-products-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.related-products-section .product-card:hover .product-image img {
    transform: scale(1.05);
}
.related-products-section .product-content {
    padding: 12px;
}
.related-products-section .product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.related-products-section .product-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.related-products-section .product-title a:hover {
    color: var(--primary);
}
.related-products-section .product-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.related-products-section .price-new {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}
.related-products-section .price-old {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 8px;
}
.related-products-section .product-actions {
    display: flex;
    flex-direction: column;
}
.related-products-section .button-wrapper {
    display: flex;
    gap: 6px;
}
.related-products-section .btn-add-cart,
.related-products-section .btn-view-product,
.related-products-section .btn-login {
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 0.85rem;
}
.related-products-section .btn-add-cart {
    background-color: var(--primary);
    color: white;
    flex: 0 0 40px;
}
.related-products-section .btn-add-cart:hover {
    background-color: var(--primary-hover);
}
.related-products-section .btn-view-product {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
}
.related-products-section .btn-view-product:hover {
    background-color: var(--card-border);
}
.related-products-section .btn-login {
    background: linear-gradient(135deg, #ffa500 0%, #ff6347 100%);
    color: white;
    text-decoration: none;
}
.related-products-section .btn-login:hover {
    opacity: 0.9;
    color: white;
}

/* VİTRİN ve TESLİMAT ROZETLERI */
.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.product-badge i {
    margin-right: 5px;
}

.boosted-badge {
    background: linear-gradient(135deg, #f6c23e 0%, #f4b619 100%);
    color: #212529;
}

.delivery-badge {
    padding: 4px 8px;
}

.fast-delivery {
    background: linear-gradient(135deg, #4e73df 0%, #3a64d8 100%);
    color: white;
}

.auto-delivery {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    color: white;
}

/* İLGİNİ ÇEKEBİLİR BÖLÜMÜNÜN ÜRÜN KARTLARI İÇİN */
.related-products-section .product-image {
    position: relative;
}

.related-products-section .badge-container {
    top: 8px;
    left: 8px;
    gap: 5px;
}

.related-products-section .product-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

.related-products-section .product-badge i {
    margin-right: 3px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .fp-products-page .fp-comment-item {
        flex-direction: column;
    }
    .fp-products-page .fp-comment-item .user {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }
    .fp-products-page .grid {
        flex-wrap: wrap;
    }
    .fp-products-page .fp-quantity {
        margin-bottom: 10px;
        margin-right: 0;
        width: 100%;
    }
    .fp-products-page .grid .btn {
        width: 100%;
    }
    .fp-products-page .main-image {
        height: 300px;
    }
}
@media (max-width: 767px) {
    .related-products-section .fp-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .related-products-section .fp-section-head .btn {
        margin-top: 10px;
    }
    .related-products-section .product-card {
        margin-bottom: 0;
    }
    .badge-container {
        top: 5px;
        left: 5px;
        gap: 5px;
    }
    
    .product-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .product-badge i {
        margin-right: 3px;
    }
    
    .related-products-section .product-image {
        height: 140px;
    }
    
    .related-products-section .product-content {
        padding: 8px;
    }
    
    .related-products-section .product-title {
        font-size: 0.8rem;
        height: 36px;
        margin-bottom: 5px;
    }
    
    .related-products-section .price-new {
        font-size: 0.9rem;
    }
    
    .related-products-section .price-old {
        font-size: 0.75rem;
    }
    
    .related-products-section .product-price {
        margin-bottom: 6px;
    }
    
    .related-products-section .btn-add-cart,
    .related-products-section .btn-view-product,
    .related-products-section .btn-login {
        font-size: 0.75rem;
        height: 32px;
        padding: 4px 8px;
    }
}
@media (max-width: 576px) {
    .badge-container {
        top: 3px;
        left: 3px;
        gap: 3px;
    }
    
    .product-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .product-badge i {
        margin-right: 2px;
    }
    
    .related-products-section .product-image {
        height: 120px;
    }
    
    .fp-products-page .main-image {
        height: 220px;
    }
    
    .related-products-section .product-title {
        font-size: 0.8rem;
        height: 36px;
    }
    
    .related-products-section .price-new {
        font-size: 1rem;
    }
    
    .related-products-section .price-old {
        font-size: 0.7rem;
    }
    
    .related-products-section .button-wrapper {
        gap: 4px;
    }
    
    .related-products-section .btn-add-cart {
        flex: 0 0 32px;
        padding: 0;
    }
}

/* ÖZEL FİX: NAV ve FOOTER ÇAKIŞMALARINI ENGELLEME */
/* Temel site stil bileşenlerinin etkilenmesini önlemek için eklenen resetler */
.fp-products-page .navbar,
.fp-products-page .navbar *,
.fp-products-page footer, 
.fp-products-page footer * {
    /* Site nav ve footer'ını etkilemesini önlemek için eklenen resetler */
    all: revert; /* Tüm özellikleri sıfırlar */
}

/* FANCYBOX UYUMLULUK DÜZELTMESİ */
.fancybox__container {
    z-index: 1080 !important; /* Bootstrap modallar üzerinde görünmesi için */
}
.fancybox__content {
    padding: 0 !important;
}
.fancybox__slide {
    padding: 15px !important;
}