/* Product Details Page Styles */

/* Product Gallery */
.product-gallery .main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-gallery .main-image-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cursor-pointer {
    cursor: pointer;
}

.thumbnail-img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-img:hover {
    border-color: var(--bs-primary);
    transform: scale(1.05);
}

.thumbnail-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Feature Items */
.feature-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Action Buttons */
.action-buttons .btn {
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    background: transparent;
    border-bottom: 3px solid var(--bs-primary);
}

/* Gallery Items */
.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Badges */
.badge {
    font-weight: 500;
}

.bg-blue-lt {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.bg-green-lt {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Info Card Styles - DPX Power Industrial Style */
.info-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

.info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #dee2e6;
}

.info-card .card-header {
    background: #000000 !important;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card .card-header h6 {
    font-size: 0.9rem;
    margin: 0;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.info-card .card-header h6 i,
.info-card .card-header h6 span {
    color: #ffffff !important;
}

/* Ürün açıklaması metni için özel stil */
.product-description-container .card-body p {
    color: #212529 !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    font-size: 16px !important;
}

/* Info Table Styles */
.info-table {
    width: 100%;
}

.info-table-row {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    min-height: 50px;
}

.info-table-row:last-child {
    border-bottom: none;
}

.info-table-row:hover {
    background-color: rgba(220, 53, 69, 0.03) !important;
}

.info-table-row.bg-light {
    background-color: #f8f9fa !important;
}

.info-table-row.bg-white {
    background-color: #ffffff !important;
}

.info-table-cell {
    flex: 1;
    display: flex;
    align-items: center;
}

.info-table-cell:first-child {
    flex: 0 0 40%;
    font-weight: 600;
}

.info-table-cell:last-child {
    flex: 0 0 60%;
    justify-content: flex-end;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Inter', sans-serif;
}

.info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;
    font-family: 'Inter', sans-serif;
}

/* Utility Classes */
.fs-7 {
    font-size: 0.75rem !important;
}

/* Custom Column for thumbnails */
.col-1-5 {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 120px;
    padding: 0 2px;
}

/* Responsive thumbnail sizing */
@media (max-width: 1200px) {
    .col-1-5 {
        min-width: 70px;
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .col-1-5 {
        min-width: 60px;
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .col-1-5 {
        min-width: 50px;
        max-width: 70px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-gallery .main-image-container img {
        height: 300px !important;
    }
}

/* Contact Modal Styles */
#contactModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#contactModal .modal-header {
    background: #000000 !important;
    background-color: #000000 !important;
    color: white;
    border-radius: 16px 16px 0 0;
    border: none;
}

#contactModal .modal-title {
    color: white;
    font-weight: 600;
}

#contactModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#contactModal .btn-close:hover {
    opacity: 1;
}

#contactModal .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

#contactModal .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#contactModal .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    transform: translateY(-1px);
}

#contactModal .btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#contactModal .btn-primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #198754 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

#contactModal .btn-primary:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

#contactModal .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#contactModal .btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #198754 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Contact Message Styles */
.contact-message {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.contact-message.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem 1.5rem;
}

.contact-message.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Modal Animation */
#contactModal .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#contactModal.show .modal-dialog {
    transform: scale(1);
}

/* Form Validation Styles */
#contactModal .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background-color: #fff5f5;
}

#contactModal .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background-color: #f8fff9;
}

#contactModal .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#contactModal .form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Lightbox Styles - Dark Theme - Full Screen */
#imageLightboxModal .modal-dialog {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Fix blur issue - ensure body is not affected by modal backdrop */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Ensure modal backdrop doesn't cause blur issues */
.modal-backdrop {
    z-index: 1040 !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

#imageLightboxModal {
    z-index: 1050 !important;
}

/* Dark Lightbox Modal Content - Full Screen */
.lightbox-modal-content {
    background: #000000 !important;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none !important;
    border: none;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.lightbox-header {
    background: #000000;
    padding: 1rem 2rem;
    border-bottom: 1px solid #333333;
    flex-shrink: 0;
}

.generatorz-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.generatorz-logo-banner {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.2rem;
}

.generatorz-logo-text {
    color: #dc3545;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 3px;
    line-height: 1;
}

.generatorz-logo-text-small {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.lightbox-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.lightbox-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Image Area - Full Screen */
.lightbox-main-area {
    background: #000000;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    padding: 1rem;
    min-height: 0;
}

.lightbox-main-image {
    transition: all 0.4s ease;
    border-radius: 8px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Navigation Buttons */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Circular Thumbnails Section - Fixed Height */
.lightbox-thumbnails-section {
    background: #000000;
    padding: 1rem 0;
    border-top: 1px solid #333333;
    flex-shrink: 0;
    height: 100px;
    display: flex;
    align-items: center;
}

.circular-thumbnails-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
}

.circular-thumbnails-container::-webkit-scrollbar {
    height: 4px;
}

.circular-thumbnails-container::-webkit-scrollbar-track {
    background: #333333;
    border-radius: 2px;
}

.circular-thumbnails-container::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 2px;
}

.circular-thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Circular Thumbnails */
.lightbox-thumbnail-wrapper {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.lightbox-thumbnail-wrapper:hover {
    transform: translateY(-3px);
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.lightbox-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.lightbox-thumbnail-wrapper.active .lightbox-thumbnail {
    border-color: #dc3545;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: scale(1.1);
}

.lightbox-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.lightbox-thumbnail-wrapper:hover .lightbox-thumbnail-img {
    transform: scale(1.1);
}

#lightboxLoading {
    z-index: 5;
}

/* Loading Spinner */
#lightboxLoading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Lightbox Responsive - Full Screen */
@media (max-width: 768px) {
    .lightbox-header {
        padding: 0.75rem 1.5rem;
    }
    
    .generatorz-logo-text {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    
    .generatorz-logo-text-small {
        font-size: 1rem;
    }
    
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .circular-thumbnails-container {
        gap: 8px;
        padding: 0 1rem;
    }
    
    .lightbox-image-container {
        padding: 0.5rem;
    }
    
    .lightbox-thumbnails-section {
        height: 80px;
    }
}

@media (max-width: 576px) {
    .lightbox-header {
        padding: 0.5rem 1rem;
    }
    
    .generatorz-logo-text {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .generatorz-logo-text-small {
        font-size: 0.9rem;
    }
    
    .lightbox-image-container {
        padding: 0.25rem;
    }
    
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .circular-thumbnails-container {
        gap: 6px;
        padding: 0 0.5rem;
    }
    
    .lightbox-thumbnails-section {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .action-buttons .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-gallery .main-image-container img {
        height: 250px !important;
    }
    
    .feature-item {
        padding: 0.75rem !important;
    }
    
    .thumbnail-img {
        height: 60px !important;
    }
}

/* ✅ Responsive Product Details Layout */
.product-details-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}

.product-left-column {
    flex: 1;
    min-width: 0;  /* Flex shrink için */
}

.product-right-column {
    flex: 1;
    min-width: 0;  /* Flex shrink için */
}

/* ✅ Mobil Responsive - Alt Alta Yerleşim */
@media (max-width: 991px) {
    .product-details-layout {
        flex-direction: column;  /* Mobilde dikey */
        gap: 30px;
    }
    
    .product-left-column,
    .product-right-column {
        width: 100%;
        max-width: 100%;
    }
    
    /* Breadcrumb mobilde responsive */
    .breadcrumb-container ul {
        flex-wrap: wrap;
        font-size: 0.75rem !important;
    }
    
    /* Main image mobilde daha küçük yükseklik */
    .main-image-container img {
        height: 300px !important;
    }
}

@media (max-width: 767px) {
    .product-details-main {
        margin-top: 20px !important;
    }
    
    .breadcrumb-container {
        padding: 5px 0 !important;
    }
    
    .breadcrumb-container ul {
        font-size: 0.7rem !important;
        gap: 0.5rem !important;
    }
    
    /* Info card mobilde tam genişlik */
    .info-card {
        margin-bottom: 15px !important;
    }
    
    .info-card .card-header {
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .info-card .card-header h6 {
        font-size: 15px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .info-card .card-header i {
        font-size: 18px !important;
        margin-right: 8px !important;
    }
    
    /* Product Description mobilde daha okunabilir */
    .product-description-container {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .product-description-container .info-card {
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }
    
    .product-description-container .card-header {
        background: #000000 !important;
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .product-description-container .card-header h6 {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .product-description-container .card-header h6 i,
    .product-description-container .card-header h6 span {
        color: #ffffff !important;
    }
    
    .product-description-container .card-header i {
        font-size: 18px !important;
        color: #ffffff !important;
        margin-right: 8px !important;
        color: #ffffff !important;
    }
    
    .product-description-container .card-body {
        padding: 16px !important;
        background: #ffffff !important;
    }
    
    .product-description-container .card-body p,
    .product-description-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: #212529 !important;
        font-weight: 400 !important;
        margin-bottom: 0 !important;
    }
    
    /* Main image mobilde daha küçük */
    .main-image-container img {
        height: 250px !important;
    }
    
    /* Thumbnail images mobilde daha küçük */
    .thumbnail-img {
        height: 50px !important;
    }
    
    /* Action buttons mobilde tam genişlik */
    .action-buttons-container {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .action-buttons-container button,
    .action-buttons-container a {
        width: 100% !important;
        flex: none !important;
    }
}

@media (max-width: 576px) {
    .breadcrumb-container ul {
        font-size: 0.65rem !important;
    }
    
    .main-image-container img {
        height: 220px !important;
    }
}