/* Product Gallery Styles */
.product-gallery {
    width: 100%;
}

/* Ana Galeri Görüntüleyici */
.gallery-main {
    position: relative;
    width: 100%;
}

.gallery-main-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: transparent; /* Siyah yerine transparan */
}

.gallery-main-image img {
    width: 100%;
    height: 637px; /* Sabit yükseklik */
    object-fit: contain; /* Görseli dikey olarak sığdır, kırpma */
    display: block;
    transition: transform 0.3s ease;
}

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

/* Zoom Butonu */
.gallery-zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #000;
}

.gallery-zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Thumbnail Navigasyonu */
.gallery-thumbnails {
    width: 100%;
}

.thumbnail-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

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

.thumbnail-item:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-item.active {
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #ccc;
}

/* Modal Navigation */
.modal-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1001;
}

.modal-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.modal-nav-btn.prev {
    margin-left: -80px;
}

.modal-nav-btn.next {
    margin-right: -80px;
}

/* Enhanced Dimension Cards */
.dimensions-table tbody tr {
    transition: all 0.3s ease;
}

.dimensions-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(4px);
}

.dimensions-table tbody td:first-child svg {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dimensions-table tbody tr:hover td:first-child svg {
    opacity: 1;
    color: var(--color-primary, #007bff);
}

.dimensions-table tbody td:last-child {
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* Empty State Styling */
.empty-state svg {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.empty-state:hover svg {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-main-image img {
        height: 400px; /* Mobilde daha küçük yükseklik */
    }
    
    .thumbnail-item {
        width: 80px;
        height: 60px;
    }
    
    .thumbnail-container {
        gap: 10px;
    }
    
    .gallery-zoom-btn {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .modal-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .modal-nav-btn.prev {
        margin-left: -25px;
    }
    
    .modal-nav-btn.next {
        margin-right: -25px;
    }
    
    .image-modal-close {
        top: -40px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-main-image img {
        height: 300px; /* Çok küçük ekranlarda daha da küçük yükseklik */
    }
    
    .thumbnail-item {
        width: 70px;
        height: 50px;
    }
    
    .thumbnail-container {
        gap: 8px;
    }
    
    .gallery-zoom-btn {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
}

/* Loading Animation */
.gallery-main-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth Transitions */
.thumbnail-item,
.gallery-main-image img,
.gallery-zoom-btn,
.modal-nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product Information Section */
.product-info-section {
    background: var(--color-background);
}

.product-header {
    margin-bottom: 60px;
}

.product-header h1 {
    color: var(--color-foreground-heading);
    margin-bottom: 16px;
}

.product-header p {
    color: var(--color-foreground-subheading);
}

/* Product Tabs */
.product-tabs {
    width: 100%;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    border: none;
    color: var(--color-foreground-subheading);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn svg {
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-foreground);
    background: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    color: var(--color-foreground-heading);
    background: var(--color-background);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
}

/* Tab Content */
.tab-content-container {
    background: var(--color-background);
    border-radius: 0 0 12px 12px;
    padding: 40px 0;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description Content */
.description-content h3,
.dimensions-content h3,
.quote-content h3 {
    color: var(--color-foreground-heading);
    margin-bottom: 16px;
}

.description-content p {
    color: var(--color-foreground);
    line-height: 1.6;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--color-foreground);
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* Dimensions Table */
.dimensions-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dimensions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-background);
    font-size: 14px;
}

.dimensions-table thead th {
    background: var(--color-primary);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.dimensions-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.dimensions-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.dimensions-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-foreground);
}

.dimensions-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.dimensions-table tbody tr:last-child td {
    border-bottom: none;
}

.dimensions-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.dimensions-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.dimension-notes {
    text-align: center;
}

/* Quote Form */
.quote-form .form-label {
    color: var(--color-foreground-heading);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.quote-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    color: var(--color-foreground);
    background: var(--color-background);
    transition: all 0.3s ease;
}

.quote-form .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(28, 37, 57, 0.1);
}

.quote-form .form-control::placeholder {
    color: var(--color-foreground-subheading);
}

.quote-form select.form-control {
    cursor: pointer;
}

.quote-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    
    .tab-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .product-header h1 {
        font-size: 40px;
    }
    
    .tab-content-container {
        padding: 24px 0;
    }
    
    .dimensions-table {
        font-size: 12px;
    }
    
    .dimensions-table thead th,
    .dimensions-table tbody td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .tab-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .product-header h1 {
        font-size: 32px;
    }
    
    .dimensions-table {
        font-size: 11px;
    }
    
    .dimensions-table thead th,
    .dimensions-table tbody td {
        padding: 8px 6px;
    }
    
    .quote-form .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Form Styles for Add Product/Blog Pages */
.section-padding {
    padding: 80px 0;
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    color: var(--primary-color, #1c2539);
    font-weight: 700;
}

.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.section-title {
    color: var(--primary-color, #1c2539);
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-title i {
    color: #6c757d;
    margin-right: 10px;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.required {
    color: #dc3545;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color, #1c2539);
    box-shadow: 0 0 0 0.2rem rgba(28, 37, 57, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-feedback {
    font-size: 12px;
    margin-top: 5px;
}

.form-feedback.invalid-feedback {
    color: #dc3545;
}

.form-feedback.valid-feedback {
    color: #28a745;
}

/* Image Upload Styles */
.image-upload-area,
.featured-image-upload {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.image-upload-area:hover,
.featured-image-upload:hover {
    border-color: var(--primary-color, #1c2539);
    background: rgba(28, 37, 57, 0.02);
}

.image-upload-area input[type="file"],
.featured-image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    color: #6c757d;
}

.upload-placeholder h5,
.upload-placeholder h6 {
    color: var(--primary-color, #1c2539);
    margin-bottom: 10px;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-preview img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

/* Form Check Styles */
.form-check-wrapper .form-check {
    margin-bottom: 15px;
}

.form-check-input {
    margin-top: 0.2em;
}

.form-check-label {
    font-weight: 500;
    color: #333;
}

/* Rich Text Editor */
.editor-toolbar {
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toolbar-btn {
    background: none;
    border: 1px solid transparent;
    padding: 6px 8px;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.toolbar-btn.active {
    background: var(--primary-color, #1c2539);
    color: white;
    border-color: var(--primary-color, #1c2539);
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 5px;
}

.editor-container {
    position: relative;
}

.editor-content {
    min-height: 300px;
    border-radius: 0 0 8px 8px;
    border-top: none;
    padding: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.editor-content:empty:before {
    content: attr(data-placeholder);
    color: #6c757d;
    font-style: italic;
}

.editor-content:focus {
    outline: none;
}

/* Input Group */
.input-group-text {
    background: #f8f9fa;
    border-color: #ddd;
    color: #666;
    font-size: 14px;
}

/* Form Actions */
.form-actions {
    border-top: 1px solid #eee;
    padding-top: 30px;
    text-align: center;
}

/* Page Header */
.page-header-area {
    background: linear-gradient(135deg, var(--primary-color, #1c2539) 0%, #2c3e50 100%);
    padding: 100px 0 50px;
    color: white;
}

.page-header-content .page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .page-header-content .page-title {
        font-size: 36px;
    }
    
    .form-actions .button {
        width: 100%;
        margin: 5px 0;
    }
    
    .editor-toolbar {
        flex-wrap: wrap;
    }
    
    .image-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* Catalog Download Section */
.catalog-download-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.catalog-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.catalog-background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.catalog-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.catalog-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    min-height: 100%;
    min-width: 100%;
}

.catalog-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 100px 0;
}

.catalog-inner {
    max-width: 800px;
    margin: 0 auto;
}

.catalog-headings .subheading {
    color: rgba(255, 255, 255, 0.8);
}

.catalog-features {
    margin: 60px 0;
}

.catalog-feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    margin-bottom: 20px;
}

.catalog-download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .catalog-download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .catalog-download-buttons .button {
        width: 100%;
        max-width: 300px;
    }
}
