/* Cleanworld Request a Quote – Frontend Styles */

/* ── Buton ── */
.crq-button-wrap {
    margin: 8px 0;
}

.crq-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2c3e50;
    color: #fff !important;
    border: 2px solid #2c3e50;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
    white-space: nowrap;
}

.crq-add-btn:hover {
    background: #1a252f;
    border-color: #1a252f;
}

.crq-add-btn.crq-in-list {
    background: #27ae60;
    border-color: #27ae60;
}

.crq-add-btn.crq-in-list:hover {
    background: #1e8449;
    border-color: #1e8449;
}

.crq-add-btn.crq-loading {
    opacity: .7;
    pointer-events: none;
}

.crq-context-loop .crq-add-btn {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 8px 12px;
}

/* ── Yüzen Sayaç ── */
#crq-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
}

#crq-float.crq-float-visible {
    display: block;
}

#crq-float a {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2c3e50;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    font-weight: 700;
    font-size: 15px;
    transition: background .2s, transform .2s;
}

#crq-float a:hover {
    background: #1a252f;
    transform: scale(1.05);
}

.crq-float-icon {
    font-size: 18px;
}

.crq-float-count {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    padding: 0 4px;
}

/* ── Teklif Listesi Sayfası ── */
#crq-quote-list-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.crq-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.crq-empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Tablo */
.crq-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.crq-table th,
.crq-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.crq-table thead th {
    background: #f8f8f8;
    font-weight: 700;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

.crq-col-product {
    width: 50%;
}

.crq-col-sku {
    width: 15%;
    color: #888;
    font-size: 12px;
}

.crq-col-qty {
    width: 15%;
}

.crq-col-remove {
    width: 50px;
    text-align: center;
}

.crq-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    float: left;
    margin-right: 12px;
}

.crq-product-info {
    overflow: hidden;
}

.crq-product-info a {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

.crq-product-info a:hover {
    text-decoration: underline;
}

.crq-variation {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.crq-variation span::after {
    content: ' · ';
}

.crq-variation span:last-child::after {
    content: '';
}

.crq-qty {
    width: 65px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.crq-remove-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .2s, background .2s;
}

.crq-remove-btn:hover {
    color: #e74c3c;
    background: #fdf3f3;
}

.crq-actions-top {
    margin-bottom: 30px;
}

/* Form */
.crq-form-wrap {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px 30px;
    margin-top: 10px;
    box-sizing: border-box;
    width: 100%;
}

.crq-form-wrap h3 {
    margin-top: 0;
    font-size: 18px;
    color: #2c3e50;
}

.crq-form-row {
    margin-bottom: 16px;
}

.crq-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .crq-form-row-2 {
        grid-template-columns: 1fr;
    }

    .crq-form-wrap {
        padding: 20px 16px;
    }

    /* Tablo mobil: scroll yerine kart görünümü */
    .crq-table thead {
        display: none;
    }

    .crq-table,
    .crq-table tbody,
    .crq-table tr,
    .crq-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .crq-table tr {
        border: 1px solid #eee;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 12px;
        position: relative;
    }

    .crq-table td {
        border: none;
        padding: 4px 0;
        width: 100% !important;
    }

    .crq-col-remove {
        position: absolute;
        top: 8px;
        right: 8px;
        width: auto !important;
        text-align: right;
    }

    .crq-col-sku::before { content: "SKU: "; font-weight: 600; color: #555; }
    .crq-col-qty::before  { content: "Adet: "; font-weight: 600; color: #555; }

    .crq-thumb {
        width: 44px;
        height: 44px;
    }

    #crq-float {
        bottom: 16px;
        right: 16px;
    }

    #crq-float a {
        padding: 10px 14px;
        font-size: 14px;
    }
}

.crq-form-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

.crq-form-field input,
.crq-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}

.crq-form-field input:focus,
.crq-form-field textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44,62,80,.1);
}

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

.crq-form-submit {
    margin-top: 0;
}

.main-container .page-content .crq-btn-submit,
.crq-btn-submit {
    background: #27ae60 !important;
    border: 2px solid #27ae60 !important;
    color: #fff !important;
    /* Temanın height:48px + line-height:48px + padding:0 override */
    height: auto !important;
    line-height: 1.4 !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background .2s !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: visible !important;
    vertical-align: top !important;
}

.main-container .page-content .crq-btn-submit:hover,
.crq-btn-submit:hover {
    background: #1e8449 !important;
    border-color: #1e8449 !important;
}

.crq-btn-submit:disabled {
    opacity: .7;
    pointer-events: none;
}

.crq-btn-secondary {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #888 !important;
    font-size: 13px !important;
}

.crq-btn-secondary:hover {
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

/* Bildirimler */
.crq-notice {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.crq-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.crq-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Item kaldırılma animasyonu */
.crq-item.removing {
    opacity: 0;
    transition: opacity .3s;
}
