/* ===== MODERN ÜRÜN DETAY SAYFASI STİLLERİ ===== */

/* Ana Container */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
}

/* Ana İçerik Alanı - Masaüstü için iki sütunlu düzen */
.product-main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ürün Galerisi Bölümü - Sol Taraf */
.product-gallery-section {
    flex: 0 0 48%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-right: 1px solid #e9ecef;
}

.gallery-container {
    position: relative;
    width: 100%;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.main-image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.main-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease;
}

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

/* Navigasyon Okları */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #495057;
    font-size: 1.1rem;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
    color: #198754;
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* Zoom Butonu */
.zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #495057;
    font-size: 1.1rem;
}

.zoom-btn:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
    color: #198754;
}

/* Pagination Dots */
.pagination-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    transform: scale(1.3);
    border-color: #198754;
}

/* Ürün Bilgileri Bölümü - Sağ Taraf */
.product-info-section {
    flex: 1;
    background: white;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.product-info-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Kategori ve Etiketler */
.category-badge, .product-badge {
    margin-bottom: 20px;
}

.category-badge .badge, .product-badge .badge {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    transition: all 0.3s ease;
}

.category-badge .badge:hover, .product-badge .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Ürün Başlığı */
.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fiyat Bölümü */
.price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.price-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #198754;
    margin: 0;
    text-shadow: 0 2px 4px rgba(25, 135, 84, 0.1);
}

.old-price {
    font-size: 1.3rem;
    color: #6c757d;
    text-decoration: line-through;
    margin: 0;
    opacity: 0.7;
}

.discount-badge {
    margin-left: auto;
}

.discount-badge .badge {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Adet Seçimi */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-section .form-label {
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    max-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.quantity-selector:hover {
    border-color: #198754;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.1);
}

.quantity-btn {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: none;
    padding: 15px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #495057;
    font-size: 1.2rem;
    min-width: 50px;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    transform: scale(1.05);
}

.quantity-input {
    border: none;
    background: transparent;
    text-align: center;
    padding: 15px 18px;
    width: 70px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.quantity-input:focus {
    outline: none;
    background: rgba(25, 135, 84, 0.05);
}

/* Aksiyon Butonları */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.add-to-cart-btn, .whatsapp-btn {
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    min-width: 180px;
    flex: 1;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #157347 0%, #1ea085 100%);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    min-width: 70px;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
    transform: translateY(-1px);
}

/* Stok Durumu */
.stock-info {
    margin-bottom: 25px;
}

.stock-info .alert {
    margin: 0;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stock-info .alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    color: #0f5132;
    border-left: 4px solid #198754;
}

.stock-info .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Ürün Açıklaması ve Özellikleri */
.description-section, .features-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.description-section h5, .features-section h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-section h5 i, .features-section h5 i {
    color: #198754;
    font-size: 1.3rem;
}

.description-section p, .features-section p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Benzer Ürünler */
.similar-products {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
}

.similar-products-header {
    text-align: center;
    margin-bottom: 40px;
}

.similar-products h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.similar-products h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border-radius: 2px;
}

.similar-products-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.similar-products-container {
    max-width: 100%;
    margin: 0 auto;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.similar-product-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 200px;
    margin: 0 auto;
}

.similar-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: #198754;
}

.similar-product-image-container {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
}

.similar-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.similar-product-card:hover .similar-product-image {
    transform: scale(1.05);
}

.similar-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 135, 84, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.similar-product-card:hover .similar-product-overlay {
    opacity: 1;
}

.view-product-btn {
    background: white;
    color: #198754;
    padding: 8px 16px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.view-product-btn:hover {
    background: #198754;
    color: white;
    transform: scale(1.05);
    text-decoration: none;
}

.similar-product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.similar-product-category {
    font-size: 0.75rem;
    color: #198754;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.similar-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.similar-product-price-section {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.similar-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #198754;
    margin: 0;
}

.similar-product-old-price {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
    margin: 0;
    opacity: 0.7;
}

.similar-product-actions {
    margin-top: auto;
}

.similar-product-link {
    display: inline-block;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
    width: 100%;
}

.similar-product-link:hover {
    background: linear-gradient(135deg, #157347 0%, #1ea085 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .product-main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-gallery-section {
        flex: none;
        width: 100%;
        padding: 25px;
    }
    
    .product-info-section {
        padding: 30px;
    }
    
    .main-image-wrapper {
        height: 400px;
    }
    
    .product-title {
        font-size: 1.7rem;
    }
    
    .current-price {
        font-size: 1.9rem;
    }
    
    .similar-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 18px;
    }
    
    .similar-product-card {
        max-width: 180px;
    }
    
    .similar-product-image-container {
        height: 130px;
    }
    
    .similar-product-info {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 20px 15px;
    }
    
    .product-main-content {
        gap: 20px;
        border-radius: 16px;
    }
    
    .product-gallery-section, .product-info-section {
        padding: 20px;
    }
    
    .main-image-wrapper {
        height: 350px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.7rem;
    }
    
    .price-section {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .discount-badge {
        margin-left: 0;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .add-to-cart-btn, .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
    
    .similar-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .similar-product-card {
        max-width: 160px;
    }
    
    .similar-product-image-container {
        height: 120px;
    }
    
    .similar-product-info {
        padding: 10px;
    }
    
    .similar-product-title {
        font-size: 0.9rem;
    }
    
    .similar-product-price {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .product-detail-container {
        padding: 15px 10px;
    }
    
    .product-main-content {
        gap: 15px;
        border-radius: 12px;
    }
    
    .product-gallery-section, .product-info-section {
        padding: 15px;
    }
    
    .main-image-wrapper {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .old-price {
        font-size: 1.1rem;
    }
    
    .quantity-selector {
        max-width: 140px;
    }
    
    .quantity-btn, .quantity-input {
        padding: 12px 15px;
    }
    
    .quantity-input {
        width: 60px;
    }
    
    .similar-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .similar-product-card {
        max-width: 140px;
    }
    
    .similar-product-image-container {
        height: 100px;
    }
    
    .similar-product-info {
        padding: 8px;
    }
    
    .similar-product-title {
        font-size: 0.8rem;
        min-height: 2.2em;
    }
    
    .similar-product-price {
        font-size: 0.9rem;
    }
    
    .similar-product-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info-section, .similar-products {
    animation: fadeIn 0.8s ease-out;
}

/* Hover Efektleri */
.similar-product-card:hover .similar-product-title {
    color: #198754;
}

/* Loading Durumu */
.add-to-cart-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.add-to-cart-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ek Görsel Efektler */
.product-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    z-index: 2;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.add-to-cart-btn:focus, .whatsapp-btn:focus, .quantity-btn:focus {
    outline: 2px solid #198754;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(25, 135, 84, 0.2);
    color: #2c3e50;
}
