/* ==========================================
   PICORAD - ÜRÜN DETAY SAYFASI STİLLERİ
   ========================================== */

/* === Product Detail Hero === */
.product-detail-hero {
    position: relative;
    padding: 80px 0 40px;
    overflow: hidden;
}

.product-detail-hero .page-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.product-detail-hero .page-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 70% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
}

.product-detail-content {
    position: relative;
    z-index: 2;
}

.product-detail-content .breadcrumb {
    margin-bottom: 16px;
    color: whitesmoke;
}

.product-detail-content h1 {
    font-family: var(--font-primary);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-detail-content .product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.5px;
}

/* === Product Body === */
.product-detail-body {
    padding: 60px 0 80px;
    background: var(--gray-50);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* === Image Gallery === */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery-main {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-100);
    margin-bottom: 12px;
}

.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-gallery-main img:hover {
    transform: scale(1.02);
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition-base);
    background: #fff;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === Product Info === */
.product-detail-info {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.product-detail-info h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.product-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 32px;
    text-align: left;
}

.product-description p {
    margin-bottom: 16px;
}

.product-description strong,
.product-description b {
    color: var(--primary);
    font-weight: 700;
}

/* Section headers in description */
.product-section-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-section-title i {
    color: var(--accent);
    font-size: 0.95rem;
}

/* Sub-product cards within a product page */
.sub-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.sub-product-card {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
}

.sub-product-card:hover {
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: var(--shadow-md);
}

.sub-product-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: #fff;
}

.sub-product-card h4 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.sub-product-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
    line-height: 1.5;
}

/* === CTA Box === */
.product-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3050 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-top: 32px;
}

.product-cta-box h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.product-cta-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.product-cta-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* === Lightbox === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

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

/* === Responsive === */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-hero {
        padding: 60px 0 30px;
    }

    .product-detail-content h1 {
        font-size: 1.8rem;
    }

    .product-detail-info {
        padding: 24px;
    }

    .product-detail-info h2 {
        font-size: 1.25rem;
    }

    .sub-products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-gallery-main img {
        max-height: 350px;
    }

    .product-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .sub-products-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-content h1 {
        font-size: 1.5rem;
    }
}
