/* Ürün Detay Sayfası Stilleri */
.product-detail-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.product-detail-container {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Sol Taraf - Ürün Görselleri */
.product-images {
    flex: 1;
    max-width: 600px;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #1e3a8a;
}

.thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sağ Taraf - Ürün Bilgileri */
.product-info {
    flex: 1;
    max-width: 500px;
}

.product-info h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    color: #FFD700;
    font-size: 1.2rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a8a;
}

.old-price {
    font-size: 1.2rem;
    color: #6b7280;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.feature-item::before {
    content: "✓";
    min-width: 24px;
    height: 24px;
    background-color: #dcfce7;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-top: 2px;
}

.secure-payment {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.secure-payment::before {
    content: "🔒";
    font-size: 1.1rem;
}

.buy-now-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #1e3a8a;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.buy-now-button:hover {
    background: #1e40af;
}

/* Sıkça Sorulan Sorular */
.faq-section {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background: #f1f3f5;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    padding-right: 2rem;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: #666;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.faq-toggle::before {
    width: 2px;
    height: 16px;
    top: 4px;
    left: 11px;
}

.faq-toggle::after {
    width: 16px;
    height: 2px;
    top: 11px;
    left: 4px;
}

.faq-item.active .faq-toggle::before {
    transform: rotate(90deg);
}

.faq-answer {
    background: white;
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    padding: 1.2rem;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
        align-items: center;
    }
    
    .product-images, .product-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        align-items: center;
    }

    .product-images {
        width: 100%;
        max-width: 500px;
    }

    .main-image {
        aspect-ratio: 4/3;
        margin-bottom: 1rem;
    }

    .thumbnail-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem 0;
        margin: 0 auto;
        max-width: 90%;
        scrollbar-width: none; /* Firefox için scrollbar'ı gizle */
        -ms-overflow-style: none; /* IE ve Edge için scrollbar'ı gizle */
    }

    .thumbnail-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari ve Opera için scrollbar'ı gizle */
    }

    .thumbnail {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
        margin: 0;
    }

    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .product-price {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .feature-item {
        font-size: 0.95rem;
    }

    .discount-badge {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .product-images {
        max-width: 100%;
    }

    .thumbnail {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .thumbnail-container {
        max-width: 95%;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .discount-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Lightbox (Fotoğraf Görüntüleyici) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
