/* =====================================================
   MODAL CSS - Zarf Seçici Proje İçin Ayrı Modal Stilleri
   ===================================================== */

/* Modal Overlay - Ana Kapsayıcı */
.envelope-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.envelope-detail-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Ana Container */
.envelope-detail-modal {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.25),
        0 16px 32px rgba(44, 62, 80, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: scale(0.85) translateY(-40px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(184, 155, 140, 0.2);
}

.envelope-detail-modal-overlay.show .envelope-detail-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #f8f5f2 0%, #ffffff 100%);
    padding: 28px 32px 24px;
    border-bottom: 2px solid #e8ddd6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 8px rgba(184, 155, 140, 0.08);
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #b89b8c 50%, transparent 100%);
    opacity: 0.6;
}

.modal-title {
    margin: 0;
    font-size: 1.6rem;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

.envelope-detail-modal.torba-mode .main-image-wrapper img,
.envelope-detail-modal.torba-mode .thumbnail img {
    object-fit: contain !important;
    background: #fff;
}

.modal-title i {
    color: #b89b8c;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #b89b8c 0%, #a08b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Kapatma Butonu - Sağda ve Daha Düzgün */
.modal-close-outside {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e8ddd6;
    font-size: 1.2rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-close-outside:hover {
    background: #ffffff;
    color: #2c3e50;
    border-color: #b89b8c;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(184, 155, 140, 0.3);
}

.modal-close-outside:active {
    transform: scale(0.95);
}

/* Modal İçerik Wrapper - Scroll Container */
.modal-content-wrapper {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 155, 140, 0.4) transparent;
}

.modal-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.modal-content-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 16px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(184, 155, 140, 0.3) 0%, rgba(184, 155, 140, 0.6) 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

.modal-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(184, 155, 140, 0.6) 0%, rgba(184, 155, 140, 0.8) 100%);
}

/* Modal İçerik */
.modal-content {
    padding: 16px 28px;
}

/* Detay Bölümleri */
.detail-section {
    margin-bottom: 24px;
    background: rgba(248, 245, 242, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(232, 221, 214, 0.6);
    transition: all 0.3s ease;
}

.detail-section:hover {
    background: rgba(248, 245, 242, 0.7);
    border-color: rgba(184, 155, 140, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(184, 155, 140, 0.1);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 2px solid #e3d1c2;
    padding-bottom: 8px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, #b89b8c 0%, transparent 100%);
}

/* Detay Grid Sistemi - Varyantlar için kullanılacak */
.detail-grid {
    display: grid;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(232, 221, 214, 0.6);
    min-height: 32px;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
}

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

.detail-label {
    font-weight: 600;
    color: #5d4e75;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 16px;
    line-height: 1.4;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Teknik Özellikler ve Fiyat - Genel Container */
.technical-specs-text, .price-info-text {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(232, 221, 214, 0.8);
    box-shadow: 0 4px 16px rgba(184, 155, 140, 0.08);
    position: relative;
    overflow: hidden;
}

.technical-specs-text::before, .price-info-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b89b8c 0%, #a08b7a 100%);
}

/* String formatındaki teknik özellikler ve fiyat */
.technical-specs-text:not(:has(table)), .price-info-text:not(:has(table)) {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2c3e50;
    white-space: pre-line;
}

.price-info-text:not(:has(table)) {
    color: #27ae60;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

/* Teknik Özellikler ve Fiyat Tabloları - İyileştirilmiş */
.specs-table, .price-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
}

.specs-table tr, .price-table tr {
    border-bottom: 1px solid rgba(232, 221, 214, 0.6);
    transition: all 0.2s ease;
}

.specs-table tr:hover, .price-table tr:hover {
    background: rgba(248, 245, 242, 0.7);
}

.specs-table tr:last-child, .price-table tr:last-child {
    border-bottom: none;
}

.spec-key, .price-key {
    padding: 16px 20px;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f5f2 0%, #f3ede8 100%);
    width: 45%;
    border-right: 1px solid rgba(232, 221, 214, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    vertical-align: top;
}

.spec-key::before, .price-key::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #b89b8c 0%, #a08b7a 100%);
}

.spec-value, .price-value {
    padding: 16px 20px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    vertical-align: top;
    line-height: 1.4;
}

/* Fiyat Değerlerini Özel Vurgula */
.price-value {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

/* TRY, Euro, Dolar vurgusu */
.price-value:contains("TRY"):not(.processed), 
.price-value:contains("₺"):not(.processed),
.price-value:contains("€"):not(.processed),
.price-value:contains("$"):not(.processed) {
    border-left: 4px solid #27ae60;
    font-weight: 800;
}

/* Özellikler Listesi */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.features-list li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 245, 242, 0.7) 100%);
    border: 1px solid rgba(232, 221, 214, 0.8);
    border-radius: 8px;
    padding: 12px 16px 12px 44px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(184, 155, 140, 0.1);
}

.features-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 155, 140, 0.2);
    border-color: #b89b8c;
    background: linear-gradient(135deg, #ffffff 0%, rgba(248, 245, 242, 0.9) 100%);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Varyantlar Listesi Modal İçinde */
.variants-list-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.variant-item-modal {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    color: #155724;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #c3e6cb;
    transition: all 0.2s ease;
}

.variant-item-modal:hover {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    transform: scale(1.05);
}

/* Modal Aksiyon Butonları */
.modal-actions {
    padding: 20px 28px 24px;
    border-top: 2px solid #e8ddd6;
    background: linear-gradient(135deg, #fdfcfa 0%, #f8f5f2 100%);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    box-shadow: 0 -2px 8px rgba(184, 155, 140, 0.08);
}

.modal-actions .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-actions .action-btn:not(.primary) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    border-color: #e8ddd6;
}

.modal-actions .action-btn:not(.primary):hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #b89b8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 155, 140, 0.3);
}

.modal-actions .action-btn.primary {
    background: linear-gradient(135deg, #b89b8c 0%, #a08b7a 100%);
    color: white;
    border-color: #a08b7a;
}

.modal-actions .action-btn.primary:hover {
    background: linear-gradient(135deg, #a08b7a 0%, #8b7969 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(176, 155, 140, 0.4);
}

.modal-actions .action-btn:active {
    transform: translateY(0);
}

/* İletişime Geç Butonu - Özel Styling */
.modal-actions .action-btn.contact-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #20c997;
    position: relative;
    overflow: hidden;
}

.modal-actions .action-btn.contact-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.modal-actions .action-btn.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal-actions .action-btn.contact-btn:hover::before {
    left: 100%;
}

.modal-actions .action-btn.contact-btn i {
    margin-right: 8px;
    animation: phoneRing 2s infinite ease-in-out;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
}

/* Görsel Önizleme Modal */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(6px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.image-preview-overlay.show {
    opacity: 1;
    visibility: visible;
}

.image-preview-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-preview-overlay.show .image-preview-container {
    transform: scale(1);
}

.preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.preview-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.preview-image-wrapper {
    max-height: 75vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f5f2 0%, #ffffff 100%);
}

.preview-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* Modal Açıklama Kısmı - Geliştirilmiş */
.preview-caption {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    border-top: 1px solid #e3d1c2;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    padding: 24px 32px 20px 32px;
    box-shadow: 0 -2px 16px rgba(184, 155, 140, 0.1);
    border-radius: 0 0 16px 16px;
    letter-spacing: 0.02em;
    line-height: 1.6;
    position: relative;
    animation: fadeInCaption 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.preview-caption::before {
    content: "\f03e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #b89b8c;
    font-size: 1.3rem;
    display: block;
    margin: 0 auto 12px auto;
    opacity: 0.8;
    letter-spacing: 0;
    background: linear-gradient(135deg, #b89b8c 0%, #a08b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-caption::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #b89b8c 50%, transparent 100%);
    opacity: 0.4;
}

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

/* Açıklama Metni */
.description-text {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.7);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #b89b8c;
    font-style: italic;
}

/* =====================================================
   MODERN FİYAT BADGE - Header İçinde Konumlandırılmış
   ===================================================== */

/* Modern Price Badge - Header içinde konumlandırma */
.price-badge-modern {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 3px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    z-index: 100;
    min-width: 120px;
}

.price-badge-modern:hover {
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Currency Specific Backgrounds */
.price-badge-modern.try {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    border-color: rgba(220, 53, 69, 0.15);
}

.price-badge-modern.usd {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border-color: rgba(40, 167, 69, 0.15);
}

.price-badge-modern.eur {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border-color: rgba(0, 123, 255, 0.15);
}

.price-badge-modern.gbp {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border-color: rgba(255, 140, 0, 0.15);
}

/* Price Badge Header - Icon ve Info yan yana */
.price-badge-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Currency Icon Container */
.price-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Currency Specific Icon Styles */
.price-badge-modern.try .price-badge-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.25);
}

.price-badge-modern.usd .price-badge-icon {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.25);
}

.price-badge-modern.eur .price-badge-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.25);
}

.price-badge-modern.gbp .price-badge-icon {
    background: linear-gradient(135deg, #ff8c00 0%, #e5790c 100%);
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.25);
}

/* Currency Symbol */
.currency-symbol {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Montserrat', 'Arial', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Price Info Container */
.price-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

/* Price Amount */
.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Montserrat', 'Arial', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Price Label */
.price-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    opacity: 0.8;
}

/* Availability Info */
.price-availability {
    margin-top: 6px;
    font-size: 0.65rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 2px 8px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(108, 117, 125, 0.15);
}

/* Modal Header Adjustment - Badge için yer açmak */
.modal-header {
    position: relative;
    padding-right: 160px; /* Badge için yer bırak */
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-badge-modern {
        position: static;
        transform: none;
        margin-top: 12px;
        align-self: flex-end;
        min-width: 100px;
        padding: 10px 12px;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-right: 32px;
    }
    
    .price-badge-header {
        gap: 8px;
    }
    
    .price-badge-icon {
        width: 28px;
        height: 28px;
    }
    
    .currency-symbol {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.1rem;
    }
    
    .price-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .price-badge-modern {
        padding: 8px 10px;
        min-width: 90px;
    }
    
    .price-badge-icon {
        width: 24px;
        height: 24px;
    }
    
    .currency-symbol {
        font-size: 0.9rem;
    }
    
    .price-amount {
        font-size: 1rem;
    }
    
    .price-label {
        font-size: 0.6rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .envelope-detail-modal {
        margin: 15px;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 24px 16px;
    }
    
    .modal-title {
        font-size: 1.3rem;
        gap: 8px;
    }
    
    .modal-content {
        padding: 12px 20px;
    }
    
    .modal-actions {
        padding: 16px 20px 20px;
        flex-direction: column;
    }
    
    .modal-actions .action-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .detail-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    .detail-value {
        text-align: left;
        width: 100%;
    }
    
    .features-list li {
        padding: 10px 12px 10px 36px;
        font-size: 0.85rem;
    }
    
    .features-list li::before {
        left: 12px;
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    
    .image-preview-container {
        margin: 15px;
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 30px);
        border-radius: 12px;
    }
    
    .preview-image-wrapper {
        max-height: 65vh;
    }
    
    .preview-caption {
        padding: 16px 20px 12px 20px;
        font-size: 1rem;
        border-radius: 0 0 12px 12px;
    }
    
    .preview-caption::before {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .modal-close-outside {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .envelope-detail-modal {
        margin: 10px;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px 20px 12px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 8px 16px;
    }
    
    .modal-actions {
        padding: 12px 16px 16px;
    }
    
    .detail-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .detail-section h3 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }
    
    .modal-close-outside {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Fade-in Animasyonları */
.modal-content {
    animation: modalContentFadeIn 0.5s ease-out 0.1s both;
}

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

.detail-section {
    animation: detailSectionFadeIn 0.4s ease-out both;
}

.detail-section:nth-child(1) { animation-delay: 0.1s; }
.detail-section:nth-child(2) { animation-delay: 0.2s; }
.detail-section:nth-child(3) { animation-delay: 0.3s; }
.detail-section:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive Tablo Ayarları */
@media (max-width: 768px) {    .specs-table, .price-table {
        font-size: 0.85rem;
    }
    
    .spec-key, .price-key {
        padding: 12px 16px;
        font-size: 0.75rem;
        width: 45%;
    }
    
    .spec-value, .price-value {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
      .technical-specs-text:not(:has(table)), .price-info-text:not(:has(table)) {
        padding: 16px;
        font-size: 0.9rem;
    }
    
    .price-info-text:not(:has(table)) {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-close-outside {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
      .specs-table, .price-table {
        font-size: 0.8rem;
    }
    
    .spec-key, .price-key {
        padding: 10px 12px;
        font-size: 0.7rem;
        width: 50%;
        letter-spacing: 0.3px;
    }
    
    .spec-value, .price-value {
        padding: 10px 12px;
        font-size: 0.8rem;
    }      .technical-specs-text:not(:has(table)), .price-info-text:not(:has(table)) {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* =====================================================
   İLETİŞİM MODAL - Contact Modal Styles
   ===================================================== */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal-overlay[style*="opacity: 1"] .contact-modal {
    transform: scale(1) translateY(0);
}

.contact-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 24px 28px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.contact-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-content {
    padding: 28px;
}

.selected-product {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid #28a745;
}

.selected-product h3 {
    margin: 0 0 12px 0;
    color: #28a745;
    font-size: 1.1rem;
    font-weight: 600;
}

.selected-product p {
    margin: 6px 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-method:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.contact-method.whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.contact-method i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    color: #28a745;
}

.contact-method.whatsapp i {
    color: #25d366;
}

.contact-method span {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal {
        margin: 15px;
        max-width: calc(100vw - 30px);
    }
    
    .contact-header {
        padding: 20px 24px;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-content {
        padding: 20px;
    }
    
    .contact-method {
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-method i {
        font-size: 1.5rem;
    }
}
/* Ürün Galerisi Stilleri */
.envelope-gallery-section {
    margin-bottom: 30px;
}

.envelope-gallery-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e3d1c2;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.envelope-gallery-section h3::before {
    content: '📷';
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid #e3d1c2;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(184, 155, 140, 0.08);
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: #b89b8c;
    box-shadow: 0 12px 32px rgba(184, 155, 140, 0.25);
}

.gallery-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f5f2 0%, #f3ede8 100%);
}

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

.gallery-card:hover .gallery-image-container img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(52, 73, 94, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-overlay span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-caption {
    padding: 20px;
    background: white;
}

.gallery-caption h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-caption p {    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .modern-product-gallery {
        flex-direction: column;
        gap: 8px; /* Gap'i azalttık */
    }
    
    .thumbnail-gallery {
        width: 100%;
        flex-direction: column;
        order: 1; /* Thumbnail'ları alta al */
    }
    
    .thumbnails-container {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-right: 0;
        padding-bottom: 6px;
        gap: 4px; /* Gap'i 2px daha düşürdük */
        display: flex;
        align-items: center;
        justify-content: center; /* Thumbnail'ları ortala */
    }
    
    .thumbnail {
        width: 15vw !important;
        max-width: 15vw;
        min-width: 15vw;
        height: 10vh !important; /* Yüksekliği 60px yaptık */
        flex-shrink: 0;
        box-sizing: border-box;
        border-radius: 6px;
    }
    
    .main-image-wrapper {
        height: 30vh !important; /* Ana görsel yüksekliği 230px */
    }
}

@media (max-width: 480px) {
    .product-gallery-container {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .modern-product-gallery {
        gap: 6px; /* Daha az gap */
    }
    
    .main-image-wrapper {
        height: 30vh !important; /* Ana görsel yüksekliği 230px */
    }
    
    .thumbnails-container {
        gap: 4px; /* Gap'i 2px daha düşürdük */
        padding-bottom: 4px;
        justify-content: center; /* Thumbnail'ları ortala */
    }
    
    /* 480px'de image info ayarları */
    .image-info {
        padding: 12px;
    }
    
    .image-info h4 {
        font-size: 0.9rem;
    }
    
    .image-info p {
        font-size: 0.75rem;
    }
}

/* No Images Durumu */
.no-images {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Modern Product Gallery Stilleri */
.product-gallery-container {
    padding: 16px;
    margin-bottom: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e3d1c2;
}

.modern-product-gallery {
    display: flex;
    gap: 16px;
}

.main-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobil için main image container düzenlemesi */
@media (max-width: 768px) {
    .main-image-container {
        flex-direction: column;
        gap: 0; /* Gap'i kaldırdık çünkü image-info artık overlay */
        order: 0; /* Ana görseli üstte tut */
    }
    
    /* Image info'yu ana görselin üzerine overlay olarak yerleştir */
    .image-info {
        display: none;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        color: white;
        padding: 15px;
        z-index: 2;
    }
    
    .image-info h4 {
        color: white;
        margin: 0 0 2px 0;
        font-size: 0.95rem;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .image-info p {
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        font-size: 0.8rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
}

.main-image-wrapper {
    position: relative;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    pointer-events: none;
}
.image-overlay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain; /* Görselin taşmasını engeller ve alanı doldurur */
}

.main-image-wrapper:hover .image-overlay {
    opacity: 1;
    pointer-events: auto;
}

.zoom-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease;
}

.zoom-icon:hover {
    transform: scale(1.1);
}

.zoom-icon i {
    font-size: 1.5rem;
}

.zoom-icon span {
    font-size: 0.9rem;
}

.image-info {
    text-align: center;
}

.image-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.image-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.thumbnail-gallery {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #b89b8c #f0f0f0;
}

/* Mobil için thumbnail gallery responsive yapısı */
@media (max-width: 768px) {
    .thumbnail-gallery {
        width: 100%;
        gap: 0;
        margin-bottom: 10px; /* Daha az margin */
        order: 1; /* Ana görsel altında göster */
    }
    
    .thumbnails-container {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 6px;
        gap: 4px; /* Gap'i 2px daha düşürdük */
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #b89b8c #f0f0f0;
        justify-content: center; /* Thumbnail'ları ortala */
    }
    
    .thumbnails-container::-webkit-scrollbar {
        height: 4px; /* Daha ince scrollbar */
        width: auto;
    }
    
    .thumbnails-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 2px;
    }
    
    .thumbnails-container::-webkit-scrollbar-thumb {
        background: #b89b8c;
        border-radius: 2px;
    }
    
    .thumbnail {
        flex-shrink: 0;
        margin-right: 4px; /* Margin'i 2px düşürdük */
        border-radius: 6px;
        box-sizing: border-box;
    }
}

/* CSS'in geri kalanı */

.thumbnails-container::-webkit-scrollbar {
    width: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #b89b8c;
    border-radius: 3px;
}

.thumbnail {
    flex-shrink: 0;
    width: 100%;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #b89b8c;
}

.thumbnail:hover {
    border-color: #d4b896;
}

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

.gallery-counter {
    text-align: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Modal dışındaki X butonu için stil - popup'ın sağ üst köşesinde sabit */
.modal-close-outside {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #7f8c8d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-close-outside:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #b89b8c;
    color: #2c3e50;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-close-outside:active {
    transform: scale(0.95);
}