/**
 * Emayetel Quote System - Frontend CSS
 */

/* ==========================================================================
   Genel Stiller
   ========================================================================== */

.emayetel-quote-system {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Teklif Butonu Stilleri
   ========================================================================== */

.emayetel-quote-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.emayetel-quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #0056b3);
}

.quantity-selector {
    margin-bottom: 15px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    max-width: 150px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #007cba;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #005a87;
}

.qty-btn:active {
    transform: scale(0.95);
}

.quote-quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.quote-quantity-input:focus {
    outline: none;
    background: #f8f9fa;
}

.quote-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.emayetel-quote-btn,
.emayetel-quote-direct-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.emayetel-quote-btn::before,
.emayetel-quote-direct-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;
}

.emayetel-quote-btn:hover::before,
.emayetel-quote-direct-btn:hover::before {
    left: 100%;
}

.emayetel-quote-btn {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    border-color: #007cba;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.emayetel-quote-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.emayetel-quote-direct-btn {
    background: transparent;
    color: #007cba;
    border-color: #007cba;
}

.emayetel-quote-direct-btn:hover {
    background: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.quote-info-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.quote-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #007cba;
    border-radius: 2px;
}

.quote-info-content h6 {
    margin: 0 0 12px 0;
    color: #0066cc;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-info-content ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.quote-info-content li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.quote-info-content li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.quote-out-of-stock {
    text-align: center;
    padding: 30px 20px;
}

.stock-status {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   Teklif Sepeti Widget Stilleri
   ========================================================================== */

.quote-cart-widget {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: inherit;
}

.quote-cart-trigger {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.4);
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.quote-cart-trigger::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;
}

.quote-cart-trigger:hover::before {
    left: 100%;
}

.quote-cart-trigger:hover {
    background: linear-gradient(135deg, #005a87 0%, #004085 100%);
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 0 6px 25px rgba(0, 124, 186, 0.5);
}

.quote-cart-label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.quote-cart-count {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

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

.quote-cart-dropdown {
    position: absolute;
    right: 100%;
    top: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.quote-cart-dropdown.show {
    opacity: 1;
    transform: translateX(0);
}

.quote-cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.quote-cart-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.quote-cart-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-cart-close:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.quote-cart-content {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.quote-cart-loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.quote-cart-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quote-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.empty-cart-icon i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.quote-cart-empty p {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

.quote-cart-empty small {
    color: #999;
}

.quote-cart-items {
    padding: 10px 0;
}

.quote-cart-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    opacity: 0;
    animation: slideInItem 0.3s ease forwards;
}

.quote-cart-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
}

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

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

.quote-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.quote-item-details {
    flex: 1;
    min-width: 0;
}

.quote-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quote-item-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
}

.quote-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-item-quantity {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 40px;
    height: 30px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.quote-item-quantity:focus {
    outline: none;
    border-color: #007cba;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.quote-item-remove {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-item-remove:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.quote-cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 12px 12px;
}

.quote-cart-actions {
    display: flex;
    gap: 10px;
}

.quote-cart-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.quote-cart-actions .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;
}

.quote-cart-actions .btn:hover::before {
    left: 100%;
}

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    border-color: #007cba;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* ==========================================================================
   Responsive Tasarım
   ========================================================================== */

@media (max-width: 768px) {
    .quote-cart-widget {
        right: 10px;
    }
    
    .quote-cart-dropdown {
        width: 300px;
    }
    
    .quote-cart-trigger {
        min-width: 120px;
        padding: 10px 14px;
    }
    
    .quote-cart-label {
        font-size: 13px;
    }
    
    .quote-buttons {
        flex-direction: column;
    }
    
    .emayetel-quote-btn,
    .emayetel-quote-direct-btn {
        width: 100%;
        justify-content: center;
    }
    
    .emayetel-quote-section {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .quote-cart-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
    
    .quote-cart-widget {
        right: 5px;
    }
    
    .quote-cart-trigger {
        min-width: 100px;
        padding: 8px 12px;
    }
    
    .quote-cart-label {
        font-size: 12px;
    }
    
    .quantity-input-wrapper {
        max-width: 120px;
    }
}

/* ==========================================================================
   Admin Ürün Listesi Badge Stilleri
   ========================================================================== */

.quote-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-badge.quote-product {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.quote-badge.normal-product {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* ==========================================================================
   Yardımcı Sınıflar
   ========================================================================== */

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

.text-muted {
    color: #6c757d;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* ==========================================================================
   Animasyonlar ve Efektler
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

.bounce-in {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Dark Mode Desteği
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .emayetel-quote-section {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .quote-info-box {
        background: linear-gradient(135deg, #2a4365 0%, #3182ce 100%);
        border-color: #3182ce;
    }
    
    .quote-cart-dropdown {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .quote-cart-header {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    
    .quote-cart-item:hover {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
}

/* ==========================================================================
   Müşteri Talep Listesi Grid Sistemi
   ========================================================================== */

.quotes-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 0;
}

.quote-item {
    width: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.quote-item.animate-in {
    animation: slideInUp 0.5s ease-out;
}

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

.quote-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e8eaed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-id strong {
    font-size: 15px;
    color: #202124;
    font-weight: 600;
}

.quote-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.quote-status.approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.quote-status.rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quote-date {
    font-size: 12px;
    color: #5f6368;
    font-weight: 400;
}

.quote-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-info {
    flex: 1;
    width: 100%;
}

.quote-products {
    margin-bottom: 0;
    width: 100%;
}

.product-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    transition: all 0.2s;
    width: 100%;
}

.product-item-card:hover {
    background: #f1f3f4;
    border-color: #dadce0;
}

.quote-item .product-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.product-details {
    flex: 1;
    min-width: 0;
}

.product-name {
    margin-bottom: 8px;
}

.original-product-name {
    margin-bottom: 2px;
}

.original-product-name a {
    font-size: 12px;
    color: #5f6368;
    text-decoration: none;
    opacity: 0.8;
    line-height: 1.3;
}

.custom-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    line-height: 1.3;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quantity {
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
}

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

.original-price-crossed {
    font-size: 11px;
    color: #9aa0a6;
}

.new-price {
    font-size: 13px;
    font-weight: 600;
    color: #137333;
}

.quote-price-summary {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.price-label {
    font-size: 12px;
    color: #2e7d32;
    margin-bottom: 4px;
    font-weight: 500;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1b5e20;
}

.quote-messages {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.messages-title {
    font-size: 13px;
    color: #202124;
    margin: 0;
    padding: 12px 16px;
    background: #f1f3f4;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.messages-container {
    padding: 12px;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    max-width: 85%;
}

.customer-message {
    background: #1a73e8;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.admin-message {
    background: #f1f3f4;
    color: #202124;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #e8eaed;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    opacity: 0.9;
}

.sender {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timestamp {
    font-size: 9px;
    opacity: 0.8;
}

.message-content {
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.quote-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.add-to-cart-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;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

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

/* ==========================================================================
   Responsive Grid Sistemi
   ========================================================================== */

/* Büyük ekranlar (1200px+) */
@media (min-width: 1200px) {
    .quotes-list {
        gap: 25px;
    }
    
    .quote-item {
        min-height: 450px;
    }
}

/* Orta ekranlar (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .quotes-list {
        gap: 18px;
    }
    
    .quote-item {
        min-height: 380px;
    }
    
    .product-item-card {
        padding: 10px;
    }
    
    .product-image {
        width: 50px;
        height: 50px;
    }
    
    .quote-content {
        padding: 15px;
    }
}

/* Tablet ve küçük ekranlar (767px ve altı) */
@media (max-width: 767px) {
    .quotes-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quote-item {
        min-height: auto;
        margin-bottom: 0;
    }
    
    .quote-header {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .quote-content {
        padding: 15px;
    }
    
    .product-item-card {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 10px auto;
    }
    
    .quote-messages {
        max-height: 120px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .price-amount {
        font-size: 16px;
    }
}

/* Çok küçük ekranlar (480px ve altı) */
@media (max-width: 480px) {
    .quotes-list {
        gap: 12px;
        margin-top: 15px;
    }
    
    .quote-item {
        border-radius: 8px;
    }
    
    .quote-header {
        padding: 10px 12px;
    }
    
    .quote-content {
        padding: 12px;
    }
    
    .product-item-card {
        padding: 10px;
    }
    
    .product-image {
        width: 60px;
        height: 60px;
    }
    
    .quote-messages {
        padding: 10px;
        max-height: 100px;
    }
    
    .add-to-cart-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Quote Ürünlerde WooCommerce Butonlarını Gizle
   ========================================================================== */

/* Quote ürün sayfalarında WooCommerce'in sepete ekle butonunu gizle */
body.emayetel-quote-product .single_add_to_cart_button,
body.emayetel-quote-product form.cart .single_add_to_cart_button,
body.emayetel-quote-product .cart .single_add_to_cart_button,
body.emayetel-quote-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
body.emayetel-quote-product .product-type-simple .single_add_to_cart_button,
body.emayetel-quote-product .product-type-variable .single_add_to_cart_button,
body.emayetel-quote-product .add_to_cart_button,
body.emayetel-quote-product .button.product_type_simple,
body.emayetel-quote-product .button.product_type_variable,
body.emayetel-quote-product .button.add_to_cart_button {
    display: none !important;
}

/* Quote ürünlerde quantity selector'ı da gizle (WooCommerce'in) */
body.emayetel-quote-product form.cart .quantity,
body.emayetel-quote-product .woocommerce-variation-add-to-cart .quantity {
    display: none !important;
}

/* Quote ürünlerde variation form'unu gizleme (sadece butonları gizle) */
body.emayetel-quote-product .variations_form .variations {
    display: block !important; /* Varyasyon seçimini göster */
}

/* Porto teması için özel seçiciler */
body.emayetel-quote-product .porto-single-product .single_add_to_cart_button,
body.emayetel-quote-product .porto-product-summary .single_add_to_cart_button,
body.emayetel-quote-product .product-summary .single_add_to_cart_button {
    display: none !important;
}

/* Tema bağımsız genel seçiciler */
body.emayetel-quote-product .product .cart button[type="submit"],
body.emayetel-quote-product .product .cart input[type="submit"],
body.emayetel-quote-product .product .cart .button[name="add-to-cart"],
body.emayetel-quote-product .woocommerce .product .cart .button {
    display: none !important;
}

/* Sadece quote butonlarının görünür olmasını sağla */
body.emayetel-quote-product .emayetel-quote-section,
body.emayetel-quote-product .emayetel-quote-btn,
body.emayetel-quote-product .emayetel-quote-request-btn,
body.emayetel-quote-product .emayetel-quote-shortcode {
    display: block !important;
}

/* Quote ürünlerde stok durumu mesajlarını göster */
body.emayetel-quote-product .stock,
body.emayetel-quote-product .woocommerce-product-details__short-description {
    display: block !important;
}

/* ==========================================================================
   Print Stilleri
   ========================================================================== */

@media print {
    .quote-cart-widget,
    .emayetel-quote-btn,
    .emayetel-quote-direct-btn {
        display: none !important;
    }
    
    .emayetel-quote-section {
        border: 1px solid #000;
        background: white;
        box-shadow: none;
    }
    
    .quotes-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
