﻿/* Product Detail Section */
.product-detail-section {
    padding: 50px 0 100px;
    background-color: var(--bg-color);
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

.image-zoom-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .image-zoom-overlay {
    opacity: 1;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    padding-left: 30px;
}

.product-badge {
    margin-bottom: 15px;
}

.badge-text {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
    word-break: break-word;
}

.product-code {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-unit {
    font-size: 1.1rem;
    color: var(--text-light);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Product Features */
.product-features {
    margin-bottom: 30px;
}

.product-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.product-features .feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.product-features .feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.product-features .feature-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.product-features .feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.product-features .feature-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Product Options */
.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.white {
    border: 1px solid #ddd;
}

.color-option.active {
    border: 3px solid var(--primary-color);
    transform: scale(1.1);
}

.color-option:hover {
    transform: scale(1.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quantity-note {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-quote {
    /*flex: 1;*/
    min-width: 180px;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
}

.action-icons {
    display: flex;
    gap: 10px;
}

.action-icon-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-icon-btn:hover,
.action-icon-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Quick Contact */
.quick-contact {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Product Tabs */
.product-tabs-section {
    padding: 50px 0;
}

.product-tabs-wrapper {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-nav-tabs {
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-light);
    padding: 0 30px;
}

.product-nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 20px 25px;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.product-nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.product-nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-color);
}

.product-tab-content {
    padding: 40px;
}

.tab-content-wrapper h3 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.tab-content-wrapper h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tab-content-wrapper p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Description Tab */
.description-features {
    margin-top: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Specifications Tab */
.specifications-table {
    margin-top: 20px;
}

.specifications-table .table {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.specifications-table .table td {
    padding: 15px 20px;
    border-color: var(--border-color);
    color: var(--text-light);
    background-color: var(--bg-light);
}

.specifications-table .table td:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Applications Tab */
.applications-grid {
    margin-top: 30px;
}

.application-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.application-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.application-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.application-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.application-card h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.application-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.application-card ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.application-card ul li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Certificates Tab */
.certificates-grid {
    margin-top: 30px;
}

.certificate-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certificate-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.certificate-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.certificate-card h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.certificate-card p {
    color: var(--text-light);
    margin: 0;
}

/* Related Products */
.related-products-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.product-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price-info .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Image Zoom Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    /* JavaScript ile gösterilecek */
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Zoom sırasında sayfa kaydırmasını engelle */
    overflow: hidden;
}

.zoom-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    /* Ekran yüksekliğinin %80'i */
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    /* Ekran yüksekliğinin %80'i */
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.zoom-close {
    position: absolute;
    top: -40px;
    /* Veya modalın içine almak isterseniz, örn: top: 10px; right: 10px; */
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.zoom-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .product-info {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-gallery {
        position: relative;
        top: auto;
    }

    .main-product-image {
        height: 400px;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .product-nav-tabs {
        padding: 0 15px;
    }

    .product-nav-tabs .nav-link {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .product-tab-content {
        padding: 30px 20px;
    }
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.8rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
        padding-left: 20px;
    }

    .btn-quote {
        /* Eskiden .btn-add-cart ve .btn-quote vardı */
        min-width: auto;
        width: 100%;
    }

    .action-icons {
        justify-content: center;
        margin-top: 15px;
    }

    .thumbnail-gallery {
        justify-content: center;
    }

    .product-nav-tabs .nav-link {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .product-nav-tabs .nav-link i {
        display: none;
        /* Küçük ekranlarda tab ikonlarını gizle */
    }

    .main-product-image {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .product-features .feature-item {
        padding: 10px;
    }

    .product-features .feature-icon {
        width: 40px;
        height: 40px;
    }

    .product-features .feature-icon i {
        font-size: 1rem;
    }

    .quantity-selector {
        padding-left: 20px;
    }

    .color-options {
        justify-content: center;
    }

    .product-nav-tabs {
        /*overflow-x: auto;*/
        white-space: nowrap;
    }

    .product-nav-tabs .nav-link {
        display: inline-flex;
        /* Kaydırılabilir tablar için */
        min-width: auto;
    }

    .application-card,
    .certificate-card {
        margin-bottom: 20px;
        /* Mobil için kartlar arası boşluk */
    }

    .tab-content-wrapper h3 {
        font-size: 1.5rem;
    }

    .contact-info {
        text-align: center;
        /* Quick contact mobil görünümü */
    }

    .contact-item {
        justify-content: center;
    }
}

.fs-45 {
    font-size: 45px;
}

.productTableContent {}

/* Smooth Transitions (Genel) */
/**/
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}