/* Modern Ürünler Modülü - Gelişmiş Stiller */

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

/* Product Cards - Ekstra İyileştirmeler */
.product-main-box {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ürün Kartı Badge/Etiket Sistemi */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
}

.product-badge.new {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
}

.product-badge.popular {
    background: linear-gradient(135deg, #f39c12, #d68910);
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.4);
}

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

/* Loading Animation */
.product-loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State için Modern Tasarım */
.product-empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-empty-state-icon {
    font-size: 64px;
    color: #bdc3c7;
    margin-bottom: 20px;
    opacity: 0.7;
}

.product-empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'Open Sans', Arial;
}

.product-empty-state-text {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
    font-family: 'Open Sans', Arial;
}

/* Ticaret Bilgilendirme Modern Tasarım */
.ticaret-bilgilendirme-main-div {
    transition: all 0.3s ease;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.ticaret-bilgilendirme-box {
    transition: transform 0.3s ease;
}

.ticaret-bilgilendirme-box:hover {
    transform: translateY(-3px);
}

.ticaret-bilgilendirme-box-i {
    transition: all 0.3s ease;
}

.ticaret-bilgilendirme-box:hover .ticaret-bilgilendirme-box-i {
    transform: scale(1.1);
}

/* Tab Container İyileştirmeleri */
#tab-container {
    position: relative;
}

/* Quick View Button Efekti */
.quick-view-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-main-box:hover .quick-view-btn {
    opacity: 1;
    transform: scale(1);
}

.quick-view-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* Wishlist/Favorite Button */
.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #95a5a6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    font-size: 18px;
}

.product-main-box:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Stok Durumu Badge */
.stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.stock-badge.out-of-stock {
    background: rgba(231, 76, 60, 0.95);
}

/* Kategori Badge Hover Effect */
.product-main-box-category {
    position: relative;
    overflow: visible;
}

.product-main-box-category::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.product-main-box:hover .product-main-box-category::before {
    width: 60px;
}

/* Skeleton Loading Effect */
.skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Scroll to Top Button için Ürünler Bölümü */
.products-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    z-index: 1000;
}

.products-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.products-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

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

.product-main-box {
    animation: fadeInUp 0.6s ease-out backwards;
}

.product-main-box:nth-child(1) { animation-delay: 0.1s; }
.product-main-box:nth-child(2) { animation-delay: 0.2s; }
.product-main-box:nth-child(3) { animation-delay: 0.3s; }
.product-main-box:nth-child(4) { animation-delay: 0.4s; }
.product-main-box:nth-child(5) { animation-delay: 0.5s; }
.product-main-box:nth-child(6) { animation-delay: 0.6s; }
.product-main-box:nth-child(7) { animation-delay: 0.7s; }
.product-main-box:nth-child(8) { animation-delay: 0.8s; }

/* Tooltip Stili */
.product-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.has-tooltip:hover .product-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Fiyat Animasyonu */
.product-main-box-price h1 {
    position: relative;
    overflow: hidden;
}

.product-main-box:hover .product-main-box-price h1 {
    animation: priceHighlight 0.6s ease;
}

@keyframes priceHighlight {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: #e74c3c;
    }
}

/* Modern Filter/Sort Buttons (gelecek geliştirmeler için) */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Print Styles */
@media print {
    .product_tabs,
    .product-main-box-img .buttons,
    .wishlist-btn,
    .quick-view-btn {
        display: none !important;
    }
    
    .product-main-box {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (opsiyonel) */
@media (prefers-color-scheme: dark) {
    .product-main-box {
        background-color: #2c3e50;
        border-color: #34495e;
    }
    
    .product-main-box-baslik-in a {
        color: #ecf0f1;
    }
    
    .product-main-box-price h1 {
        color: #ecf0f1;
    }
}

/* ============================================
   SORU-CEVAP (YENİ) ACCORDION STİLLERİ
   ============================================ */

.product-sorucevap-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #f8f9fa;
}

.product-sorucevap-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-item {
    background: #ffffff;
    border: 1px solid #EBEBEB;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sc-item:hover {
    border-color: #CCC;
}

.sc-question {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    gap: 15px;
}

.sc-question:hover {
    background-color: #f0f0f0;
}

.sc-question.active {
    background-color: #000;
    color: #fff;
}

.sc-number {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Open Sans', Arial, sans-serif;
    min-width: 40px;
    transition: all 0.3s ease;
}

.sc-question.active .sc-number {
    color: #fff;
}

.sc-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.sc-question.active .sc-title {
    color: #fff;
}

.sc-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: inherit;
}

.sc-question.active .sc-icon {
    color: #fff;
}

.sc-question.active .sc-icon i {
    transform: rotate(45deg);
}

.sc-answer {
    padding: 0;
    background-color: #fff;
    display: none;
    overflow: hidden;
}

.sc-answer.show {
    display: block;
    padding: 0px;
}

.sc-answer p {
    margin: 25px;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .product-sorucevap-container {
        padding: 20px 15px;
    }
    
    .sc-question {
        padding: 15px 20px;
    }
    
    .sc-number {
        font-size: 20px;
        min-width: 30px;
    }
    
    .sc-title {
        font-size: 14px;
    }
    
    .sc-icon {
        font-size: 18px;
    }
    
    .sc-answer.show {
        padding: 20px;
    }
    
    .sc-answer p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-sorucevap-container {
        padding: 15px 10px;
        background: #ffffff;
    }
    
    .product-sorucevap-accordion {
        gap: 10px;
    }
    
    .sc-question {
        padding: 14px 16px;
    }
    
    .sc-number {
        font-size: 18px;
        min-width: 28px;
    }
    
    .sc-title {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .sc-icon {
        font-size: 16px;
    }
    
    .sc-answer.show {
        padding: 18px 16px;
    }
    
    .sc-answer p {
        font-size: 13px;
        line-height: 1.6;
    }
}

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

.sc-item {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.sc-item:nth-child(1) { animation-delay: 0.05s; }
.sc-item:nth-child(2) { animation-delay: 0.1s; }
.sc-item:nth-child(3) { animation-delay: 0.15s; }
.sc-item:nth-child(4) { animation-delay: 0.2s; }
.sc-item:nth-child(5) { animation-delay: 0.25s; }
.sc-item:nth-child(6) { animation-delay: 0.3s; }
.sc-item:nth-child(7) { animation-delay: 0.35s; }
.sc-item:nth-child(8) { animation-delay: 0.4s; }
.sc-item:nth-child(9) { animation-delay: 0.45s; }
.sc-item:nth-child(10) { animation-delay: 0.5s; }

/* Başlık animasyonu */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-sorucevap-container > .card-title,
.product-sorucevap-container > h3,
.product-sorucevap-container > h4 {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print için */
@media print {
    .sc-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .sc-answer {
        max-height: none !important;
        display: block !important;
    }
    
    .sc-icon {
        display: none;
    }
}


