/* Ürün Sayfası - İndirim Mesajı */
.qd-discount-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
    border-left: 4px solid #ff4500;
}

.qd-message-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.qd-message-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

/* Kategori/Arşiv Sayfası - Ürün Kartı Badge */
.qd-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}

.qd-badge-icon {
    font-size: 14px;
    line-height: 1;
}

.qd-badge-text {
    line-height: 1;
    letter-spacing: 0.2px;
}

/* Fiyat Tablosu Container */
.qd-price-table-container {
    margin: 20px 0;
}

.qd-toggle-table {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 14px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.qd-toggle-table:hover {
    background: #f9f9f9;
    border-color: #ff6b35;
}

.qd-toggle-table:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.qd-toggle-icon {
    font-size: 11px;
    transition: transform 0.25s ease;
    color: #666;
}

.qd-toggle-table.active .qd-toggle-icon {
    transform: rotate(180deg);
}

/* Fiyat Tablosu */
.qd-price-table {
    margin-top: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    animation: qd-slideDown 0.25s ease;
    background: #fff;
}

@keyframes qd-slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qd-price-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.qd-price-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #e1e1e1;
}

.qd-price-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    text-transform: none;
}

.qd-price-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.qd-price-table tbody tr:last-child {
    border-bottom: none;
}

.qd-price-table tbody tr:hover {
    background: #fafafa;
}

.qd-price-table tbody td {
    padding: 12px 15px;
    font-size: 13px;
    color: #555;
}

.qd-price-table tbody td:first-child {
    font-weight: 600;
    color: #333;
}

.qd-price-table tbody td:nth-child(2) {
    color: #28a745;
    font-weight: 600;
}

.qd-price-table tbody td:last-child {
    font-weight: 600;
    color: #333;
}

/* Sepet Sayfası - İndirim Bilgisi */
.qd-cart-discount-info {
    background: #f0f9ff !important;
    border-top: 1px solid #e1e8ed !important;
    border-bottom: 1px solid #e1e8ed !important;
}

.qd-cart-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
}

.qd-cart-icon {
    font-size: 20px;
}

.qd-cart-text {
    font-size: 14px;
    font-weight: 600;
    color: #0c5460;
    line-height: 1.5;
}

/* Tasarruf Badge - Yeşil ve profesyonel */
.qd-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.qd-savings-badge .qd-savings-icon {
    font-size: 16px;
}

.qd-savings-badge .qd-savings-text {
    line-height: 1;
}

/* Woodmart Teması için Özel Ayarlar */
.woodmart-theme .qd-discount-message {
    margin: 20px 0 25px 0;
}

.woodmart-theme .qd-price-table-container {
    margin: 25px 0;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .qd-discount-message {
        text-align: center;
        padding: 12px 15px;
    }
    
    .qd-message-text {
        font-size: 14px;
    }
    
    .qd-toggle-table {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .qd-price-table thead th,
    .qd-price-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .qd-cart-message {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .qd-cart-text {
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .qd-toggle-table {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .qd-toggle-table:hover {
        background: #333;
        border-color: #667eea;
    }
    
    .qd-price-table {
        border-color: #444;
    }
    
    .qd-price-table tbody tr {
        border-bottom-color: #444;
    }
    
    .qd-price-table tbody tr:hover {
        background: #2a2a2a;
    }
}

/* Print Styles */
@media print {
    .qd-discount-message {
        background: #f0f0f0 !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .qd-toggle-table {
        display: none;
    }
    
    .qd-price-table {
        display: block !important;
        border: 1px solid #000;
    }
}
