/* ==========================================================================
   1. WooCommerce Ürün Detay (PDP) Bilgi Notu Stilleri
   ========================================================================== */
.dmc-montage-info-box {
    background-color: #f7f9fa;
    border-left: 4px solid #007cba; /* WordPress/WooCommerce temalarına uygun mavi */
    padding: 14px 18px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.dmc-montage-info-box .dmc-montage-title {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.45;
}

.dmc-montage-info-box .dmc-montage-subtitle {
    margin: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.4;
}

/* ==========================================================================
   2. Sepet Butonları (Cart Action Trigger Box) Stilleri
   ========================================================================== */
.dmc-cart-action-box {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dmc-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.25s ease-in-out !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.dmc-btn-calc {
    background-color: #007cba !important;
    color: #ffffff !important;
}

.dmc-btn-calc:hover:not(:disabled) {
    background-color: #006699 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.dmc-btn-calc.disabled,
.dmc-btn-calc:disabled {
    background-color: #e5e5e5 !important;
    color: #a7aaad !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.dmc-btn-inquiry {
    background-color: #2271b1 !important;
    color: #ffffff !important;
}

.dmc-btn-inquiry:hover {
    background-color: #135e96 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

/* 25 kW Üzeri Uyarı Kutusu */
.dmc-cart-warning {
    background-color: #fcf1f1;
    border-left: 4px solid #d94f4f;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 5px 0;
}

.dmc-cart-warning p {
    margin: 0;
    color: #b32d2d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   3. Modal & Overlay Stilleri (Modern & Premium Design)
   ========================================================================== */
.dmc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px); /* Premium buzlu cam efekti */
    z-index: 99999;
}

.dmc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dmcScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dmcScaleUp {
    from {
        transform: translate(-50%, -45%) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.dmc-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.dmc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.dmc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #007cba;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.dmc-modal-close:hover {
    color: #006699;
}

.dmc-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dmc-modal-intro-text {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #50575e;
    line-height: 1.5;
}

/* Modal Form Alanları */
.dmc-form-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.dmc-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.dmc-form-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3338;
}

/* Sepet Özeti Listesi */
.dmc-cart-summary-list {
    background-color: #f7f9fa;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #e5e5e5;
}

.dmc-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #50575e;
    padding: 6px 0;
    border-bottom: 1px solid #ededed;
}

.dmc-summary-item:last-child {
    border-bottom: none;
}

.dmc-summary-total-power {
    text-align: right;
    margin-top: 8px;
    font-size: 14px;
    color: #1a1a1a;
}

/* Opsiyon Seçim Grupları */
.dmc-options-group {
    background: #fbfbfc;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ccd0d4;
    margin-bottom: 12px;
}

.dmc-options-group h5 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #007cba;
}

/* Form Satırları */
.dmc-field-row {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.dmc-field-row label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #3c434a;
}

.dmc-field-row input[type="text"],
.dmc-field-row input[type="email"],
.dmc-field-row input[type="tel"],
.dmc-field-row select,
.dmc-field-row textarea {
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dmc-field-row input:focus,
.dmc-field-row select:focus,
.dmc-field-row textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Checkbox Satırları */
.dmc-field-row.checkbox-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dmc-field-row.checkbox-row label {
    margin-bottom: 0;
    cursor: pointer;
}

.dmc-field-row.checkbox-row input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Hesaplama Canlı Fiyat Alanı */
.dmc-calculation-result {
    background-color: #f0f6fa;
    border: 1px solid #c3ddf7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.dmc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.dmc-price-val {
    font-size: 22px;
    color: #007cba;
    font-weight: 700;
}

.dmc-calculation-note {
    margin: 8px 0 0 0;
    font-size: 11px;
    color: #646970;
}

/* Submit Butonu */
.dmc-submit-btn {
    width: 100%;
    background-color: #007cba !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease !important;
}

.dmc-submit-btn:hover:not(:disabled) {
    background-color: #006699 !important;
}

.dmc-submit-btn:disabled {
    background-color: #ccd0d4 !important;
    color: #a7aaad !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Mesaj Alanı (Başarılı / Hatalı) */
.dmc-message-area {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.dmc-message-area.dmc-success {
    background-color: #edfaef;
    border-left: 4px solid #46b450;
    color: #257e2d;
}

.dmc-message-area.dmc-error {
    background-color: #fcf1f1;
    border-left: 4px solid #d94f4f;
    color: #b32d2d;
}

/* Responsive Düzenlemeler */
@media screen and (max-width: 600px) {
    .dmc-modal {
        width: 95%;
        max-height: 90vh;
    }
    .dmc-price-val {
        font-size: 18px;
    }
}

/* ==========================================================================
   4. Sepet Sayfası Miktar Kutusu (Quantity Input) Genişlik Ayarı
   ========================================================================== */
.woocommerce-cart table.cart td.product-quantity .quantity input.qty,
.woocommerce-cart-form table.cart td.product-quantity .quantity input.qty,
.woocommerce-cart-form td.product-quantity input.qty,
.woocommerce-cart input.qty,
.woocommerce-cart .quantity input.qty {
    width: 65px !important;
    min-width: 65px !important;
    padding: 6px !important;
    text-align: center !important;
    display: inline-block !important;
}

/* ==========================================================================
   5. Sepet Sayfası (Cart) Yan Yana Düzeni (TRD - İkinci Kısım)
   ========================================================================== */
@media screen and (min-width: 768px) {
    /* Temaların yapılarını ezip Flexbox ile temiz bir yan yana dizilim */
    .woocommerce-cart .woocommerce {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 3% !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
    }
    
    .woocommerce-cart .woocommerce::after,
    .woocommerce-cart .woocommerce::before {
        display: none !important;
    }
    
    .woocommerce-cart .woocommerce-cart-form {
        flex: 0 0 65% !important;
        width: 65% !important;
        max-width: 65% !important;
        margin: 0 !important;
        float: none !important;
    }
    
    .woocommerce-cart .cart-collaterals {
        flex: 0 0 32% !important;
        width: 32% !important;
        max-width: 32% !important;
        margin: 0 !important;
        float: none !important;
    }
    
    .woocommerce-cart .cart-collaterals h2 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   6. Sepet Sayfası Montaj Satırı (Sub-item) Görünümü
   ========================================================================== */
.woocommerce-cart table.cart tr.is-dmc-montage-row {
    background-color: #fcfcfc;
}

.woocommerce-cart table.cart tr.is-dmc-montage-row td {
    border-top: none !important; /* Üstteki ürünle aradaki çizgiyi kaldır */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* İlk hücrenin soluna mavi bir çizgi (indent/girinti hissi) */
.woocommerce-cart table.cart tr.is-dmc-montage-row td:first-child {
    border-left: 4px solid #007cba;
    padding-left: 15px !important;
}

/* Remove butonu küçültme ve sağa yaslama */
.woocommerce-cart table.cart tr.is-dmc-montage-row td.product-remove a.remove-dmc-montage {
    float: right;
    margin-top: 5px;
}

/* ==========================================================================
   7. Checkout (Kasse) Sayfası Görsel Düzeltmeleri
   ========================================================================== */
/* Kasse sayfasında ürün isimlerinin devasa olup birbirine girmesini (overlap) engelle */
.woocommerce-checkout .product-name,
.wc-block-components-product-name,
.wc-block-components-order-summary-item__name,
.wc-block-components-order-summary-item .wc-block-components-product-name {
    font-size: 16px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* Kasse sayfasındaki alt ürün açıklamalarının da düzgün hizalanmasını sağla */
.woocommerce-checkout .product-name .item-description,
.wc-block-components-product-details,
.wc-block-components-order-summary-item__description {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-top: 5px !important;
    display: block !important;
}
