/**
 * Quote System — Frontend Styles
 */

/* =============================================================
   FİYAT GİZLEME (her yerde)
   ============================================================= */

/* Ürün sayfaları, listeler */
.price,
.woocommerce-Price-amount.amount,
.product .price,
.woocommerce-loop-product__price,
.summary .price,
span.price { display: none !important; }

/* Sepet sayfası: Fiyat ve Ara Toplam kolonları */
.woocommerce-cart-form th.product-price,
.woocommerce-cart-form th.product-subtotal,
.woocommerce-cart-form td.product-price,
.woocommerce-cart-form td.product-subtotal { display: none !important; }

/* Sepet sayfası: Kupon formu */
.woocommerce-cart .coupon,
.woocommerce-cart .wd-coupon-form { display: none !important; }

/* Sepet sayfası: Güncelle butonu gizle */
.woocommerce-cart-form button[name="update_cart"] { display: none !important; }

/* Checkout sayfası */
.woocommerce-checkout { display: none !important; }
.wc-proceed-to-checkout { display: none !important; }

/* Mini cart — fiyat/miktar satırı */
.woocommerce-mini-cart-item .quantity { font-size: 12px; color: #999; }

/* Mini cart — toplam satırı */
.woocommerce-mini-cart__total,
p.woocommerce-mini-cart__total { display: none !important; }

/* =============================================================
   TEKLİF FORMU
   ============================================================= */

.quote-request-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.quote-request-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 22px;
}

.quote-description {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.quote-form-field { display: flex; flex-direction: column; }

.quote-form-field.full-width {
    grid-column: 1 / -1;
    margin-bottom: 18px;
}

.quote-form-field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 13px;
}

.quote-form-field .required { color: #e74c3c; }

.quote-form-field input[type="text"],
.quote-form-field input[type="email"],
.quote-form-field input[type="tel"],
.quote-form-field textarea {
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color .25s, box-shadow .25s;
    width: 100%;
    box-sizing: border-box;
}

.quote-form-field input:focus,
.quote-form-field textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,.12);
}

.quote-form-field textarea { resize: vertical; min-height: 100px; }

/* Hata alanı */
.qs-error-field {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,.1) !important;
}

/* Gönder butonu */
.quote-form-actions { text-align: center; margin-top: 22px; }

.quote-submit-button {
    background: #2c3e50 !important;
    color: #fff !important;
    padding: 14px 44px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background .25s, transform .2s, box-shadow .2s !important;
    letter-spacing: .4px;
    min-width: 180px;
}

.quote-submit-button:hover {
    background: #34495e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.quote-submit-button:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Hata/bilgi mesajı */
.quote-form-messages {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}
.quote-form-messages.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; display: block; }
.quote-form-messages.error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; display: block; }

/* =============================================================
   BAŞARI MODALI
   ============================================================= */

.qs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

body.qs-modal-open { overflow: hidden; }

.qs-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 48px 40px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: qs-modal-in .3s ease;
}

@keyframes qs-modal-in {
    from { opacity: 0; transform: scale(.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Animasyonlu tik ikonu */
.qs-modal-icon { margin: 0 auto 24px; width: 72px; height: 72px; }

.qs-checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #27ae60;
    stroke-miterlimit: 10;
}

.qs-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #27ae60;
    fill: none;
    animation: qs-stroke 0.6s cubic-bezier(0.65,0,.45,1) forwards;
}

.qs-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: qs-stroke 0.3s cubic-bezier(0.65,0,.45,1) 0.6s forwards;
}

@keyframes qs-stroke {
    100% { stroke-dashoffset: 0; }
}

.qs-modal-title {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 12px;
    font-weight: 700;
}

.qs-modal-message {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.qs-modal-quote-no {
    font-size: 13px;
    color: #888;
    margin-bottom: 28px;
    font-family: monospace;
}

.qs-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.qs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background .2s, transform .15s;
    min-width: 200px;
}

.qs-btn-whatsapp {
    background: #25d366;
    color: #fff;
}
.qs-btn-whatsapp:hover {
    background: #1ebe5a;
    color: #fff;
    transform: translateY(-1px);
}

.qs-btn-ok {
    background: #2c3e50;
    color: #fff;
}
.qs-btn-ok:hover {
    background: #34495e;
    transform: translateY(-1px);
}

/* =============================================================
   HIZLI TEKLİF MODAL (drawer "Teklif İste" butonu açar)
   ============================================================= */

.qs-quick-modal-box {
    max-width: 560px;
    text-align: left;
    padding: 32px 36px 28px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

.qs-quick-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    transition: color .2s;
}
.qs-quick-modal-close:hover { color: #333; }

/* Ürün listesi */
.qs-quick-products {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.qs-quick-products-label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 8px;
}

.qs-quick-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qs-quick-product-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}
.qs-quick-product-list li:last-child { border-bottom: none; }

.qs-q-qty {
    background: #2c3e50;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.qs-q-name { color: #333; }

.qs-quick-product-list li.qs-empty { color: #999; font-style: italic; justify-content: center; }

/* Quick modal içindeki form */
.qs-quick-modal-box .quote-request-form-wrapper { margin-top: 0; padding: 0; background: none; box-shadow: none; }
.qs-quick-modal-box .quote-request-form-wrapper h2 { display: none; }
.qs-quick-modal-box .quote-description { display: none; }

/* =============================================================
   MINI CART BUTON
   ============================================================= */

.quote-mini-cart-buttons { padding: 12px 16px; }

.quote-request-button {
    background: #2c3e50 !important;
    color: #fff !important;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
}
.quote-request-button:hover { background: #34495e !important; color: #fff !important; }

.qs-view-cart-btn {
    background: transparent !important;
    color: #2c3e50 !important;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
    border: 2px solid #2c3e50 !important;
    margin-top: 8px;
    box-sizing: border-box;
}
.qs-view-cart-btn:hover {
    background: #f0f2f5 !important;
    color: #2c3e50 !important;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
    .quote-request-form-wrapper { padding: 20px; }
    .quote-form-row { grid-template-columns: 1fr; gap: 14px; }
    .quote-submit-button { width: 100%; padding: 14px 20px !important; }
    .qs-modal-box { padding: 36px 24px 28px; }
    .qs-btn { min-width: 160px; }
}
