/* Musteri editoru yeni gorunum. Sol sablon paneli simdilik yalniz genis ekranda (mobil sonraki adim). */
.ec-history .btn:disabled { opacity: .35; cursor: default; }
.ec-edit-text[hidden], .ec-text-editor[hidden], .ec-guides i[hidden] { display: none !important; }
.ec-ust-bar .ec-edit-text { color: #0369a1; font-weight: 600; }
body.ec-text-selected .dynamic-toolbar .ctrl-editobject { display: none; }
.ec-text-editor {
    position: fixed;
    z-index: 1060;
    width: min(360px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid #d5d9de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .18);
    color: #111827;
    font-size: 14px;
}
.ec-text-editor label { display: block; margin: 0 0 8px; font-weight: 600; }
.ec-text-editor textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    padding: 8px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
}
.ec-text-editor textarea:focus-visible { outline: 2px solid #007da8; outline-offset: 2px; }
.ec-text-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ec-text-actions button {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #d5d9de;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-weight: 600;
}
.ec-text-actions .ec-text-apply { background: #007da8; color: #fff; border-color: #007da8; }
.ec-text-actions button:focus-visible { outline: 2px solid #007da8; outline-offset: 2px; }
.ec-text-hint { display: block; margin-top: 8px; color: #64748b; font-size: 11px; }
.ec-guides { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.ec-guides i { position: absolute; display: block; background: #007da8; pointer-events: none; }
.ec-guide-x { top: 0; bottom: 0; width: 1px; }
.ec-guide-y { left: 0; right: 0; height: 1px; }
@media (max-width: 767px) {
    #product-info-holder > .panel > .panel-body > .text-right > img {
        max-width: 100%;
        height: auto;
    }
    .ec-ust-bar .ec-edit-text {
        position: fixed;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 1050;
        padding: 8px 16px;
        min-height: 44px;
        background: #007da8 !important;
        color: #fff !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, .16);
    }
    body.ec-text-selected .mt-destek-dugme { visibility: hidden; }
}

#ec-sablonlar, .ec-ac { display: none; }
.ec-liste .ec-kart.ec-bos-sablon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: auto; min-height: 144px; padding: 16px; background: #fff; color: #475569; text-decoration: none; }
.ec-bos-sablon strong { font-size: 14px; color: #111827; }
.ec-bos-sablon > span:last-child { font-size: 12px; }
.ec-bos-kagit { display: grid; place-items: center; width: 76px; height: 48px; margin-bottom: 4px; border: 1px dashed #94a3b8; border-radius: 6px; font-size: 28px; line-height: 1; color: #007da8; background: #f8fafc; }
.ec-sayfalama { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 6px; padding: 12px; border-top: 1px solid #e3e6ea; background: #fff; }
.ec-sayfalama button,.ec-liste-tekrar { border: 1px solid #dce4ee; border-radius: 7px; padding: 7px 9px; background: #fff; color: #007da8; font-size: 12px; cursor: pointer; }
.ec-sayfalama button:hover:not(:disabled),.ec-liste-tekrar:hover { background: #eaf8fd; border-color: #8ed7ef; }
.ec-sayfalama button:disabled { color: #94a3b8; cursor: default; }
.ec-sayfalama span { font-size: 11px; white-space: nowrap; color: #64748b; }
.ec-sayfalama button:focus-visible,.ec-liste-tekrar:focus-visible { outline: 2px solid #00a8e2; outline-offset: 2px; }

@media (min-width: 1200px) {
    .ec-govde { display: flex; align-items: flex-start; position: relative; }
    .ec-govde > #editor-holder { flex: 1; min-width: 0; padding-top: 20px; }
    .ec-govde > #editor-holder > .container { width: 100%; max-width: 1170px; }

    #ec-sablonlar {
        display: flex;
        flex-direction: column;
        flex: 0 0 292px;
        height: 100vh;
        position: sticky;
        top: 0;
        background: #fff;
        border-right: 1px solid #e3e6ea;
    }
    .ec-kapali #ec-sablonlar { display: none; }
    .ec-kapali .ec-ac { display: block; }

    .ec-ust { display: flex; padding: 12px; }
    .ec-ara {
        flex: 1;
        min-width: 0;
        height: 40px;
        padding: 0 12px;
        border: 1px solid #d5d9de;
        border-radius: 10px;
        font-size: 14px;
    }
    .ec-kapat, .ec-ac {
        border: 1px solid #d5d9de;
        background: #fff;
        border-radius: 10px;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }
    .ec-kapat { margin-left: 8px; }
    .ec-ac { position: absolute; left: 8px; top: 8px; z-index: 5; }

    .ec-baslik { padding: 0 12px 8px; font-weight: 600; font-size: 13px; }
    .ec-kaydir { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
    .ec-liste { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
    .ec-kart {
        display: block;
        aspect-ratio: 1 / 1;
        min-height: 100px;
        border: 1px solid #e3e6ea;
        border-radius: 8px;
        overflow: hidden;
        background: #f3f4f6;
    }
    .ec-kart:hover, .ec-kart:focus { border-color: #47a5dc; box-shadow: 0 0 0 2px rgba(71, 165, 220, .35); }
    .ec-kart img { width: 100%; height: 100%; object-fit: contain; }
    .ec-durum { padding: 12px 0; text-align: center; font-size: 12px; color: #6b7280; }
}

/* Ust arac cubugu: iki serit tek beyaz bar. Yalniz musteri modu. */
.ec-ust-bar > div:first-child { background: #fff !important; border-bottom: 1px solid #eef0f3; }
.ec-ust-bar > div:nth-child(2) { background: #fff !important; border-bottom: 1px solid #e3e6ea !important; }

.ec-ust-bar .btn-toolbar .btn.navbar-btn,
.ec-ust-bar .btn-toolbar .btn.input-fontsize {
    border-color: transparent;
    border-radius: 8px;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    color: #1f2937;
}
.ec-ust-bar .btn-toolbar .btn.input-fontsize { border-color: #e3e6ea; }
.ec-ust-bar .btn-toolbar .btn.navbar-btn:hover,
.ec-ust-bar .btn-toolbar .btn.navbar-btn:focus,
.ec-ust-bar .btn-toolbar .open > .btn.navbar-btn { background-color: #f1f3f5; color: #111827; }

.ec-ust-bar .btn-toolbar .btn.navbar-btn.btn-warning { border-color: #e3e6ea; font-weight: 600; }
.ec-ust-bar .btn-toolbar .btn.navbar-btn.btn-danger { background-color: #00a8e2; color: #fff; font-weight: 600; padding-left: 16px; padding-right: 16px; }
.ec-ust-bar .btn-toolbar .btn.navbar-btn.btn-danger:hover,
.ec-ust-bar .btn-toolbar .btn.navbar-btn.btn-danger:focus { background-color: #0090c4; color: #fff; }
.ec-ust-bar .btn-toolbar .btn.navbar-btn.btn-active { background-color: #e6f6fd !important; color: #0369a1; }
.ec-ust-bar .btn-toolbar .btn.navbar-btn:focus-visible { outline: 2px solid #00a8e2; outline-offset: -2px; }

@media (min-width: 1200px) {
    .ec-ust-bar .container { width: 100%; }
}

/* Gri calisma zemini ve kart golgesi. */
#editor-holder.ec-zemin { margin-top: 0; padding-top: 28px; padding-bottom: 40px; background: #eef0f3; }
.ec-zemin #original-objects-holder { box-shadow: 0 8px 28px rgba(15, 23, 42, .18); }

/* Sag panel: tek beyaz kart, ayirici cizgiler. Yalniz musteri modu. */
@media (min-width: 992px) {
    .ec-zemin #product-info-holder {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
        padding-left: 4px;
        padding-right: 4px;
    }
}
.ec-zemin #product-info-holder > .panel { margin-bottom: 0; border: 0; border-bottom: 1px solid #eef0f3; border-radius: 0; box-shadow: none; }
.ec-zemin #product-info-holder > .panel:last-child { border-bottom: 0; }
.ec-zemin #product-info-holder > .panel > .panel-heading { background: transparent; border: 0; padding-bottom: 0; font-size: 14px; }
.ec-zemin #product-info-holder > .panel > .panel-footer { background: transparent; border: 0; padding-top: 0; }
.ec-zemin #product-info-holder > .panel > .panel-body img[height="40"] { max-width: 100%; height: 40px; object-fit: contain; }
.ec-zemin #product-info-holder > .text-muted { margin: 0 !important; padding: 10px 15px; border-bottom: 1px solid #eef0f3; }

.ec-zemin .secenek-label-metin,
.ec-zemin .secenek-tek-deger { line-height: 22px; min-height: 22px; }
.ec-zemin .secenek-ayrac { margin: 8px 0; }
.ec-zemin #secenekler-secenek-holder .bootstrap-select > .btn,
.ec-zemin #secenekler-adet-holder .bootstrap-select > .btn { border-radius: 8px; }

/* Fiyat ve Sepete Ekle */
.ec-zemin #sepet-panel .col-xs-5 > div { border: 0 !important; background: #f7f8fa; border-radius: 10px; }
.ec-zemin #secenekler-fiyat-holder { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.ec-zemin #secenekler-onay-button {
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: #00a8e2;
    font-size: 16px;
    font-weight: 700;
}
.ec-zemin #secenekler-onay-button:hover,
.ec-zemin #secenekler-onay-button:focus { background: #0090c4; }
.ec-zemin #secenekler-onay-button:focus-visible { outline: 2px solid #075985; outline-offset: 2px; }

/* Fiyat kutusu asagida kalirken ekranin altinda gorunur kalsin. */
@media (min-width: 992px) and (min-height: 600px) {
    .ec-zemin #sepet-panel { position: sticky; bottom: 0; z-index: 8; box-shadow: 0 -6px 14px rgba(15, 23, 42, .08); }
}

/* Mobil: buyuk dokunma alanlari, "Ekle" dugmeleri yazili tek satir. */
@media (max-width: 767px) {
    .ec-ust-bar .btn-toolbar .btn { height: 44px; min-width: 44px; }
    .ec-ust-bar .btn-toolbar a.btn { line-height: 30px; }
    .ec-ust-bar .btn-toolbar .navbar-btn { margin-top: 4px; margin-bottom: 4px; }

    .ec-ust-bar > div:first-child .btn-toolbar > .pull-right { float: none !important; display: flex; clear: both; padding-top: 4px; }
    .ec-ust-bar > div:first-child .btn-toolbar > .pull-right > .btn-group { flex: 1 1 0; min-width: 0; margin: 0 !important; float: none; }
    .ec-ust-bar > div:first-child .pull-right .btn.hidden-lg { display: none !important; }
    .ec-ust-bar > div:first-child .pull-right .btn.visible-lg {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 58px;
        padding: 4px 2px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
    }
    .ec-ust-bar > div:first-child .pull-right .btn.visible-lg .fa { font-size: 18px; margin-bottom: 4px; }

    #editor-holder.ec-zemin { padding-top: 16px; padding-bottom: 24px; }
    .ec-zemin #product-info-holder > .panel,
    .ec-zemin #product-info-holder > .text-muted { background: #fff; }
}

/* ================= Tam ekran uygulama duzeni ================= */
.ec-geri, .ec-sayfalar, .ec-ac span { display: none; }

@media (min-width: 768px) {
    html.ec-app-html, body.ec-app { overflow: hidden; height: 100%; }
    body.ec-app { background: #fff; }
    body.ec-app .mt-v3h,
    body.ec-app .mobile-app-navbar,
    body.ec-app .brsmobilara2 { display: none !important; }

    /* Ust bar */
    body.ec-app .ec-geri {
        display: flex;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 56px;
        padding: 0 12px;
        z-index: 1021;
        color: #1f2937;
        white-space: nowrap;
    }
    body.ec-app .ec-geri a { color: #1f2937; margin-right: 14px; padding: 8px; border-radius: 8px; text-decoration: none; }
    body.ec-app .ec-geri a:hover, body.ec-app .ec-geri a:focus { background: #f3f4f6; }
    body.ec-app .ec-geri strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; }

    body.ec-app .ec-ust-bar > div:nth-of-type(1) {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        z-index: 1020 !important;
        background: #fff !important;
        border: 0 !important;
        border-bottom: 1px solid #e3e6ea !important;
    }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) > .container { width: 100%; padding: 0 12px 0 272px; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .btn-toolbar { margin: 0; display: flex; justify-content: flex-end; align-items: center; height: 56px; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .btn-toolbar > .btn-group:not(.force-hide) { float: none; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn { margin: 0; color: #1f2937; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn:hover,
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn:focus,
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .open > .navbar-btn { background-color: #f3f4f6; color: #1f2937; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn.btn-warning { border-color: #d5d9de; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn.btn-danger { background-color: #00a8e2; margin-left: 12px; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn:focus-visible { outline: 2px solid #7dd3f5; }

    /* Sol ikon rayi: ekleme dugmeleri */
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .btn-toolbar > .pull-right {
        position: fixed !important;
        top: 56px;
        bottom: 0;
        left: 0;
        width: 76px;
        float: none !important;
        display: flex;
        flex-direction: column;
        padding: 8px 6px;
        overflow-y: auto;
        background: #fff;
        border-right: 1px solid #e3e6ea;
    }
    body.ec-app.ec-sablonlu .ec-ust-bar > div:nth-of-type(1) .btn-toolbar > .pull-right { padding-top: 76px; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .btn-toolbar > .pull-right > .btn-group { float: none; margin: 0 0 4px !important; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .pull-right .btn.hidden-lg { display: none !important; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .btn-toolbar > .pull-right .btn.visible-lg {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        padding: 4px 2px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
    }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) .pull-right .btn.visible-lg .fa { font-size: 19px; margin-bottom: 5px; }

    /* Calisma alani */
    body.ec-app #editor-holder.ec-zemin {
        position: fixed;
        top: 56px;
        right: 0;
        bottom: 0;
        left: 76px;
        margin: 0;
        padding: 0;
        z-index: 1000;
        overflow: hidden;
    }
    body.ec-app .ec-govde { display: block; position: static; }
    body.ec-app #editor-holder > .container,
    body.ec-app #editor-holder > .container > .row { width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; }
    body.ec-app #canvas-holder { float: none; padding: 0; min-height: 0; }

    /* Sag panel */
    body.ec-app #product-info-holder {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        float: none;
        width: 300px;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        background: #fff;
        border-radius: 0;
        border-left: 1px solid #e3e6ea;
        box-shadow: none;
    }
    body.ec-app #product-info-holder > * { flex-shrink: 0; }
    body.ec-app #product-info-holder > #sepet-panel {
        order: 2;
        position: sticky;
        bottom: 0;
        margin-top: auto;
        z-index: 8;
        background: #fff;
        border-top: 1px solid #e3e6ea;
        box-shadow: 0 -6px 14px rgba(15, 23, 42, .08);
    }
    body.ec-app #sepet-panel > .panel-body { padding-top: 10px; padding-bottom: 8px; }
    body.ec-app #sepet-panel .col-xs-5 > div { min-height: 128px !important; }
    body.ec-app #sepet-panel .col-xs-12[style*="margin-top"] { margin-top: 8px !important; }
    body.ec-app #sepet-panel .col-xs-12[style*="margin-top"] img { max-width: 48%; height: auto; }
    body.ec-app.ec-tam #product-info-holder { display: none; }

    /* Nesne arac cubugu: yalniz secim varken yuzer */
    body.ec-app .ec-ust-bar > div:nth-of-type(2) {
        display: none;
        position: fixed !important;
        top: 64px;
        left: 76px;
        right: 300px;
        min-height: 0 !important;
        z-index: 1010 !important;
        background: transparent !important;
        border: 0 !important;
        pointer-events: none;
    }
    body.ec-app.ec-secim .ec-ust-bar > div:nth-of-type(2) { display: block; }
    body.ec-app.ec-tam .ec-ust-bar > div:nth-of-type(2) { right: 0; }
    body.ec-app .ec-ust-bar > div:nth-of-type(2) > .container { width: 100%; padding: 0 8px; text-align: center; }
    body.ec-app .ec-ust-bar > div:nth-of-type(2) .row { margin: 0; }
    body.ec-app .ec-ust-bar > div:nth-of-type(2) .col-md-12 { padding: 0; }
    body.ec-app .dynamic-toolbar {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        margin: 0;
        padding: 4px 6px;
        background: #fff;
        border: 1px solid #e3e6ea;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, .14);
        pointer-events: auto;
        text-align: left;
    }
    body.ec-app .dynamic-toolbar .navbar-btn { margin: 0; }
    body.ec-app .dynamic-toolbar #single-object-edit-buttons { float: none !important; display: flex; flex-wrap: wrap; align-items: center; }

    /* Sablon paneli ve rayin "Sablon" dugmesi yalniz genis ekranda */
    body.ec-app #contextMenu { z-index: 1035; }
    body.ec-app > #popover-prompt, body.ec-app .dynamic-toolbar .popover { z-index: 1035; }

    /* Kart altindaki sayfa secici */
    body.ec-app .ec-sayfalar {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: calc((100% + 76px - 300px) / 2);
        transform: translateX(-50%);
        z-index: 1008;
        padding: 4px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
        white-space: nowrap;
    }
    body.ec-app .ec-sayfalar.ec-gizli { display: none; }
    body.ec-app .ec-sayfalar button { border: 0; background: transparent; border-radius: 8px; padding: 7px 16px; font-weight: 600; color: #4b5563; }
    body.ec-app .ec-sayfalar button[aria-pressed="true"] { background: #e6f6fd; color: #0369a1; }
    body.ec-app .ec-sayfalar button:focus-visible { outline: 2px solid #00a8e2; }
    body.ec-app.ec-tam .ec-sayfalar { left: calc((100% + 76px) / 2); }

    body.ec-app .mt-destek-dugme { left: auto; right: 314px; bottom: 12px; }
    body.ec-app.ec-tam .mt-destek-dugme { right: 14px; }
}

@media (min-width: 1200px) {
    body.ec-app #product-info-holder { width: 360px; }
    body.ec-app .ec-ust-bar > div:nth-of-type(2) { right: 360px; }
    body.ec-app.ec-sablonlu:not(.ec-kapali-panel):not(.ec-tam) .ec-ust-bar > div:nth-of-type(2) { left: 368px; }
    body.ec-app .ec-sayfalar { left: calc((100% + 76px - 360px) / 2); }
    body.ec-app .mt-destek-dugme { right: 374px; }

    body.ec-app #ec-sablonlar { position: fixed; top: 56px; bottom: 0; left: 76px; width: 292px; height: auto; z-index: 1005; }
    body.ec-app .ec-govde:not(.ec-kapali) #editor-holder.ec-zemin { left: 368px; }
    body.ec-app .ec-govde:not(.ec-kapali) ~ .ec-sayfalar { left: calc((100% + 368px - 360px) / 2); }
    body.ec-app .ec-ac {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 64px;
        left: 6px;
        width: 64px;
        height: 64px;
        z-index: 1025;
        border: 0;
        background: rgba(255, 255, 255, .14);
        color: #fff;
        font-size: 11px;
    }
    body.ec-app .ec-ac i { font-size: 19px; margin-bottom: 5px; }
    body.ec-app .ec-ac span { display: block; }
    body.ec-app .ec-govde.ec-kapali .ec-ac { background: transparent; }
    body.ec-app.ec-tam #ec-sablonlar { display: none; }
    body.ec-app.ec-tam .ec-govde #editor-holder.ec-zemin { left: 76px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    body.ec-app .ec-ac { display: none !important; }
    body.ec-app.ec-sablonlu .ec-ust-bar > div:nth-of-type(1) .btn-toolbar > .pull-right { padding-top: 8px; }
}

/* Dar ekranda saydamlik ve hizalama acilir menuye iner. */
@media (min-width: 1200px) and (max-width: 1899px) {
    body.ec-app .dynamic-toolbar .btn-group.visible-lg { display: none !important; }
    body.ec-app .dynamic-toolbar .btn-group.hidden-lg:not(.force-hide) { display: inline-block !important; }
}
@media (min-width: 768px) and (max-width: 999px) {
    body.ec-app .ec-geri { width: auto; }
    body.ec-app .ec-geri strong, body.ec-app .ec-geri span { display: none; }
    body.ec-app .ec-ust-bar > div:nth-of-type(1) > .container { padding-left: 60px; }
}

/* ================= Modern tasarim: ikonlar, kartlar, menu ve pencereler ================= */
@media (min-width: 768px) {
    /* (1) Ince cizgi ikonlar: Font Awesome glifi yerine SVG maske. */
    body.ec-app .fa-font::before,
    body.ec-app .fa-picture-o::before,
    body.ec-app .fa-star-o::before,
    body.ec-app .fa-map-marker::before,
    body.ec-app .fa-qrcode::before,
    body.ec-app .fa-th-large::before,
    body.ec-app .fa-chevron-left::before,
    body.ec-app .fa-bookmark::before,
    body.ec-app .fa-mail-reply-all::before,
    body.ec-app .fa-tint::before,
    body.ec-app .fa-cut::before,
    body.ec-app .fa-files-o::before,
    body.ec-app .fa-clipboard::before,
    body.ec-app .fa-arrows-alt::before,
    body.ec-app .fa-desktop::before,
    body.ec-app .fa-undo::before,
    body.ec-app .fa-repeat::before,
    body.ec-app .fa-adjust::before,
    body.ec-app .fa-trash-o::before,
    body.ec-app .fa-bold::before,
    body.ec-app .fa-italic::before,
    body.ec-app .fa-underline::before,
    body.ec-app .fa-align-left::before,
    body.ec-app .fa-align-center::before,
    body.ec-app .fa-align-right::before {
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        vertical-align: -.2em;
        background: currentColor;
        -webkit-mask: var(--ec-ik) center / contain no-repeat;
        mask: var(--ec-ik) center / contain no-repeat;
    }
    body.ec-app .fa-font { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7V5h14v2M12 5v14M9 19h6'/%3E%3C/svg%3E"); }
    body.ec-app .fa-picture-o { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.5'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E"); }
    body.ec-app .fa-star-o { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E"); }
    body.ec-app .fa-map-marker { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5a7 7 0 10-14 0C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
    body.ec-app .fa-qrcode { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h2v2h-2zM20 14v2M14 20h2M20 19v1h-1'/%3E%3C/svg%3E"); }
    body.ec-app .fa-th-large { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
    body.ec-app .fa-chevron-left { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
    body.ec-app .fa-bookmark { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12v16l-6-4-6 4z'/%3E%3C/svg%3E"); }
    body.ec-app .fa-mail-reply-all { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 108-8 8.5 8.5 0 00-6 2.5L4 8.5M4 4v4.5h4.5'/%3E%3C/svg%3E"); }
    body.ec-app .fa-tint { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5s6 6.3 6 10.5a6 6 0 11-12 0c0-4.2 6-10.5 6-10.5z'/%3E%3C/svg%3E"); }
    body.ec-app .fa-cut { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='7' r='2.5'/%3E%3Ccircle cx='6' cy='17' r='2.5'/%3E%3Cpath d='M8 8.5L20 17M8 15.5L20 7'/%3E%3C/svg%3E"); }
    body.ec-app .fa-files-o { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 012-2h9'/%3E%3C/svg%3E"); }
    body.ec-app .fa-clipboard { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='5' width='12' height='16' rx='2'/%3E%3Cpath d='M9 5V3h6v2'/%3E%3C/svg%3E"); }
    body.ec-app .fa-arrows-alt { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'/%3E%3C/svg%3E"); }
    body.ec-app .fa-desktop { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M9 20h6M12 16v4'/%3E%3C/svg%3E"); }
    body.ec-app .fa-undo { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5M4 9h10a6 6 0 010 12h-3'/%3E%3C/svg%3E"); }
    body.ec-app .fa-repeat { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14l5-5-5-5M20 9H10a6 6 0 000 12h3'/%3E%3C/svg%3E"); }
    body.ec-app .fa-adjust { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4v16M12 8h5M12 12h8M12 16h5'/%3E%3C/svg%3E"); }
    body.ec-app .fa-trash-o { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5'/%3E%3C/svg%3E"); }
    body.ec-app .fa-bold { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5h6a3.5 3.5 0 010 7H7zM7 12h7a3.5 3.5 0 010 7H7z'/%3E%3C/svg%3E"); }
    body.ec-app .fa-italic { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5h8M6 19h8M14 5l-4 14'/%3E%3C/svg%3E"); }
    body.ec-app .fa-underline { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v7a5 5 0 0010 0V4M5 20h14'/%3E%3C/svg%3E"); }
    body.ec-app .fa-align-left { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 10h10M4 14h16M4 18h10'/%3E%3C/svg%3E"); }
    body.ec-app .fa-align-center { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M7 10h10M4 14h16M7 18h10'/%3E%3C/svg%3E"); }
    body.ec-app .fa-align-right { --ec-ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M10 10h10M4 14h16M10 18h10'/%3E%3C/svg%3E"); }

    /* (5) Tek yazi ve bosluk olcegi: 12 / 13 / 14 / 22px, 4 / 8 / 12 / 16px. */
    body.ec-app { --ec-kucuk: 12px; --ec-metin: 13px; --ec-baslik-boy: 14px; --ec-cizgi: #e3e6ea; --ec-yazi: #111827; --ec-soluk: #6b7280; }

    /* (2) Sag panel: gri zeminde gruplu kartlar. */
    body.ec-app #product-info-holder { padding: 12px 12px 0; background: #f4f6f8; font-size: var(--ec-metin); color: var(--ec-yazi); }
    body.ec-app #product-info-holder > .panel { margin: 0 0 12px; border: 1px solid var(--ec-cizgi); border-radius: 12px; box-shadow: none; background: #fff; }
    body.ec-app #product-info-holder > .panel > .panel-heading { padding: 12px 12px 0; font-size: var(--ec-baslik-boy); }
    body.ec-app #product-info-holder > .panel > .panel-body { padding: 12px; }
    body.ec-app #product-info-holder > .panel > .panel-footer { padding: 0 12px 12px; border-radius: 0 0 12px 12px; }
    body.ec-app #product-info-holder > .panel > #kritik-secenek-info-holder { padding-top: 12px; }
    body.ec-app #product-info-holder > .text-muted { margin: 0 0 12px !important; padding: 0 4px; border: 0; font-size: var(--ec-kucuk) !important; text-align: left; }
    body.ec-app #product-info-holder > #sepet-panel { margin: auto -12px 0; border: 0; border-top: 1px solid var(--ec-cizgi); border-radius: 0; }
    body.ec-app #secenekler-fiyat-holder { font-size: 22px; }

    body.ec-app .secenek-label-metin { color: var(--ec-soluk); }
    body.ec-app .secenek-label-metin strong { font-weight: 400; }
    body.ec-app .secenek-label-select { width: 100%; margin: 4px 0 !important; }
    body.ec-app #secenekler-secenek-holder .bootstrap-select { width: 100% !important; margin-bottom: 8px !important; }
    body.ec-app .ec-secenek-btn { display: flex; flex-wrap: wrap; clear: both; margin: 0 -4px 4px 0; }
    body.ec-app .ec-secenek-btn button {
        flex: 1 1 0;
        min-width: 84px;
        min-height: 36px;
        margin: 0 4px 4px 0;
        padding: 6px 8px;
        border: 1px solid var(--ec-cizgi);
        border-radius: 8px;
        background: #fff;
        color: var(--ec-yazi);
        font-size: var(--ec-kucuk);
        line-height: 1.3;
    }
    body.ec-app .ec-secenek-btn button:hover { border-color: #9fd9f0; }
    body.ec-app .ec-secenek-btn button[aria-pressed="true"] { border-color: #00a8e2; background: #e6f6fd; color: #0369a1; font-weight: 600; box-shadow: inset 0 0 0 1px #00a8e2; }
    body.ec-app .ec-secenek-btn button:focus-visible { outline: 2px solid #075985; outline-offset: 1px; }
    body.ec-app .ec-secenek-btn + select + .bootstrap-select { display: none !important; }

    /* Urun ozellikleri: kapali baslar. */
    body.ec-app .ec-katlanir > .panel-heading { padding-bottom: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
    body.ec-app .ec-katlanir > .panel-heading::after { content: ''; width: 7px; height: 7px; border: solid var(--ec-soluk); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
    body.ec-app .ec-katlanir.ec-acik > .panel-heading::after { transform: rotate(225deg); }
    body.ec-app .ec-katlanir > .panel-heading:focus-visible { outline: 2px solid #00a8e2; border-radius: 12px; }
    body.ec-app #product-info-holder > .ec-katlanir:not(.ec-acik) > .panel-body { display: none; }

    /* (4) Acilir menuler ve pencereler. */
    body.ec-app .dropdown-menu { padding: 6px; border: 1px solid var(--ec-cizgi); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .16); font-size: var(--ec-metin); }
    body.ec-app .bootstrap-select .dropdown-menu.inner { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    body.ec-app .dropdown-menu > li > a { padding: 8px 10px; border-radius: 8px; }
    body.ec-app .dropdown-menu > li > a:hover,
    body.ec-app .dropdown-menu > li > a:focus { background: #f1f3f5; color: var(--ec-yazi); }
    body.ec-app .dropdown-menu > .active > a,
    body.ec-app .dropdown-menu > .selected > a { background: #e6f6fd; color: #0369a1; }
    body.ec-app .dropdown-menu > li > a:hover small,
    body.ec-app .dropdown-menu > .selected > a small { color: var(--ec-soluk) !important; }
    body.ec-app #font-size-dropdown-menu { max-height: calc(100vh - 160px); overflow-y: auto; }
    body.ec-app #font-size-dropdown-menu > li > a { padding: 4px 10px; }
    body.ec-app .modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); overflow: hidden; }
    body.ec-app .modal-header { padding: 16px; border-bottom: 1px solid #eef0f3; }
    body.ec-app .modal-title { font-size: 16px; font-weight: 600; margin: 0; }
    body.ec-app .modal-body { padding: 16px; font-size: var(--ec-metin); }
    body.ec-app .modal-footer { padding: 12px 16px; border-top: 1px solid #eef0f3; }
    body.ec-app .modal .btn { border-radius: 8px; }
    body.ec-app .modal-footer .btn-primary,
    body.ec-app .modal #upload-button { border-color: #00a8e2; background: #00a8e2; }
    body.ec-app .modal-footer .btn-primary:hover,
    body.ec-app .modal #upload-button:hover { background: #0090c4; }
    body.ec-app .modal .form-control { border-radius: 8px; border-color: var(--ec-cizgi); box-shadow: none; }
    body.ec-app .modal .form-control:focus { border-color: #00a8e2; box-shadow: 0 0 0 3px rgba(0, 168, 226, .2); }
    body.ec-app .modal .alert { border-radius: 10px; }
}

/* (3) Sablon paneli: tek sutun, buyuk onizleme. */
@media (min-width: 1200px) {
    body.ec-app .ec-liste { grid-template-columns: minmax(0, 1fr); grid-gap: 12px; gap: 12px; }
    body.ec-app .ec-kart { aspect-ratio: 4 / 3; border-radius: 12px; }
    body.ec-app .ec-kart img { object-fit: cover; }
    body.ec-app .ec-baslik { font-size: var(--ec-baslik-boy); }
}

/* Dar masaustu: destek dugmesi yalniz resim, sayfa secicinin ustune binmez. */
@media (min-width: 768px) and (max-width: 999px) {
    body.ec-app .mt-destek-dugme { width: 54px; height: 54px; padding: 0; font-size: 0; }
    body.ec-app .mt-destek-dugme img { left: 0; bottom: 0; width: 52px; height: 52px; }
}

/* Dugme aynasi yalniz masaustu duzeninde. */
.ec-secenek-btn { display: none; }

/* Kartvizit editorunde teknik gorseller secenek kartinin icinde gorunur. */
#secenekler-secenek-holder .ec-gorselli-secenek {
    display: flex;
    flex-wrap: wrap;
    clear: both;
    gap: 8px;
    margin: 0 0 12px;
}
#secenekler-secenek-holder .ec-gorselli-secenek button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 0;
    min-width: 0;
    min-height: 112px;
    margin: 0;
    padding: 8px;
    gap: 8px;
    border: 1px solid #d5dfe9;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
}
#secenekler-secenek-holder .ec-gorselli-secenek button img { display: block; width: 100%; height: 72px; object-fit: contain; border-radius: 6px; background: #f5f7f9; }
#secenekler-secenek-holder .ec-gorselli-secenek button[aria-pressed="true"] { border-color: #00a8e2; background: #e6f6fd; color: #0369a1; box-shadow: inset 0 0 0 1px #00a8e2; }
#secenekler-secenek-holder .ec-gorselli-secenek button:focus-visible { outline: 2px solid #007da8; outline-offset: 2px; }
#secenekler-secenek-holder .secenek-label-select:has(+ .ec-gorselli-secenek) { width: 100%; margin: 8px 0 !important; }
#secenekler-secenek-holder .ec-gorselli-secenek + select + .bootstrap-select { display: none !important; }
#secenekler-secenek-holder .ec-option-card { position: relative; flex: 1 1 0; min-width: 0; }
#secenekler-secenek-holder .ec-option-card .ec-option-select { width: 100%; height: 100%; }
#secenekler-secenek-holder button.ec-option-zoom {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: flex; align-items: center; justify-content: center; gap: 0; line-height: 0;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px;
    margin: 0; padding: 0; border: 1px solid #d5dfe9; border-radius: 50%;
    background: #fff; color: #334155; box-shadow: 0 1px 4px rgba(15,23,42,.12);
}
#secenekler-secenek-holder button.ec-option-zoom::before { content: ""; position: absolute; inset: -8px; }
#secenekler-secenek-holder .ec-option-zoom svg { display: block; flex: none; width: 16px; height: 16px; }
.ec-option-modal .modal-dialog { width: min(720px, calc(100% - 32px)); margin: 24px auto; }
.ec-option-modal .modal-content { max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 14px; }
.ec-option-modal .modal-title { font-size: 18px; line-height: 44px; }
.ec-option-modal .close { width: 44px; height: 44px; font-size: 28px; }
.ec-option-modal .modal-body { background: #f4f6f8; }
.ec-option-modal .modal-body img { display: block; width: 100%; max-height: 65vh; object-fit: contain; }
.ec-option-modal .modal-footer button { min-height: 44px; }
.ec-option-modal button:focus-visible { outline: 2px solid #007da8; outline-offset: 2px; }
.ec-option-image-error[hidden] { display: none; }
body:has(.ec-option-modal.in) .mt-destek-dugme { visibility: hidden; }

/* ================= Shimmer yukleme ================= */
.ec-iskelet,
#editor-holder.ec-yukleniyor #canvas-holder::after {
    background: linear-gradient(100deg, #e7eaee 30%, #f7f8fa 50%, #e7eaee 70%) #e7eaee;
    background-size: 300% 100%;
    animation: ec-parla 1.4s linear infinite;
}
@keyframes ec-parla {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

.ec-liste .ec-bos { display: block; aspect-ratio: 1 / 1; min-height: 100px; border-radius: 8px; }
.ec-liste .ec-kart.ec-iskelet img { opacity: 0; }

/* Tuval cizilene kadar yerinde kart oraninda bir kutu. */
#editor-holder.ec-yukleniyor #canvas-holder { min-height: 200px; }
#editor-holder.ec-yukleniyor #canvas-holder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    padding-top: 55%;
    border-radius: 8px;
    z-index: 900;
    animation: ec-parla 1.4s linear infinite;
}
/* Yari cizilmis tuval, gorseller dogrulanmadan kullanima acilmaz. */
#editor-holder.ec-yukleniyor #canvas-holder > * { visibility: hidden; }
#editor-holder.ec-yukleniyor #secenekler-onay-button,
html.ec-editor-loading #secenekler-onay-button { visibility: hidden; pointer-events: none; transition: none; }
html.ec-editor-loading .mt-destek-dugme { visibility: hidden; pointer-events: none; }

.ec-yukleme-hata {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2100;
    transform: translate(-50%, -50%);
    width: min(360px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid #d5d9de;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}
.ec-yukleme-hata[hidden] { display: none; }
.ec-yukleme-hata p { margin: 0 0 16px; }
.ec-yukleme-hata button {
    min-height: 44px;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    background: #007da8;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.ec-yukleme-hata button:focus-visible { outline: 2px solid #007da8; outline-offset: 3px; }
html.ec-editor-error .ec-iskelet,
html.ec-editor-error #editor-holder.ec-yukleniyor #canvas-holder::after { animation: none; }

/* Tam ekran duzeninde: sag panel haric calisma alaninin ortasi. --ec-g = tuvalin yaklasik genisligi. */
@media (min-width: 768px) {
    body.ec-app #editor-holder.ec-yukleniyor { --ec-sol: 76px; --ec-sag: 300px; }
    body.ec-app #editor-holder.ec-yukleniyor #canvas-holder::after {
        --ec-g: min(calc(100vw - var(--ec-sol) - var(--ec-sag) - 64px), calc((100vh - 220px) * 1.6));
        position: fixed;
        top: calc(50% + 46px);
        left: calc((100% + var(--ec-sol) - var(--ec-sag)) / 2);
        right: auto;
        width: var(--ec-g);
        height: calc(var(--ec-g) * .62);
        padding: 0;
        transform: translate(-50%, -50%);
    }
}
@media (min-width: 1200px) {
    body.ec-app #editor-holder.ec-yukleniyor { --ec-sag: 360px; }
    body.ec-app .ec-govde:not(.ec-kapali) #editor-holder.ec-yukleniyor { --ec-sol: 368px; }
}

@media (prefers-reduced-motion: reduce) {
    .ec-iskelet { animation: none; }
    #editor-holder.ec-yukleniyor #canvas-holder::after { animation: none; }
}

body.ec-app .ec-liste .ec-bos { aspect-ratio: 4 / 3; border-radius: 12px; }

/* ================= Sayfa iskeleti (#ec-isk, yenieditor/index.php) =================
   Editor hazir olana kadar ayni duzen; hazir sinyaliyle kalkar. */
#ec-isk { display: none; }
@media (min-width: 768px) {
    html.ec-editor-loading:not(.ec-template-switch) body.ec-app #ec-isk { display: block; }
    #ec-isk { position: fixed; inset: 0; z-index: 2000; background: #fff; font-size: 11px; color: #1f2937; }
    #ec-isk .fa { font-size: 19px; }
    .ec-isk-ust {
        position: absolute; top: 0; left: 0; right: 0; height: 56px; padding: 0 12px;
        display: flex; align-items: center; background: #fff; border-bottom: 1px solid #e3e6ea;
    }
    .ec-isk-geri { display: flex; align-items: center; gap: 6px; width: 260px; font-size: 14px; white-space: nowrap; overflow: hidden; }
    .ec-isk-geri .fa { font-size: 14px; }
    .ec-isk-geri b { margin-left: 18px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
    .ec-isk-araclar { flex: 1; display: flex; justify-content: center; gap: 14px; }
    .ec-isk-araclar i { width: 28px; height: 28px; border-radius: 8px; opacity: 1; }
    .ec-isk-araclar i:first-child { width: 104px; }
    .ec-isk-onizle { padding: 8px 16px; border-radius: 6px; background: #00a8e2; font-size: 14px; font-weight: 600; }
    .ec-isk-onizle .fa { font-size: 14px; }
    .ec-isk-ray { position: absolute; top: 56px; bottom: 0; left: 0; width: 76px; padding-top: 8px; background: #fff;
        border-right: 1px solid #e3e6ea; }
    .ec-isk-ray span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 6px 4px; border-radius: 8px; text-align: center; line-height: 1.2; }
    .ec-isk-ray .fa { margin-bottom: 5px; }
    .ec-isk-ray .ec-isk-aktif { background: #f3f4f6; }
    .ec-isk-panel { display: none; position: absolute; top: 56px; bottom: 0; left: 76px; width: 292px; padding: 12px; overflow: hidden; background: #fff; border-right: 1px solid #e3e6ea; color: #111827; }
    .ec-isk-ara { height: 40px; margin-bottom: 12px; padding: 0 12px; line-height: 38px; border: 1px solid #d5d9de; border-radius: 10px; font-size: 14px; color: #9ca3af; }
    .ec-isk-panel b { display: block; margin-bottom: 8px; font-size: 13px; }
    .ec-isk-panel span { display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: 12px; }
    .ec-isk-tuval {
        --ec-sol: 76px; --ec-sag: 300px;
        --ec-g: min(calc(100vw - var(--ec-sol) - var(--ec-sag) - 64px), calc((100vh - 220px) * 1.6));
        position: absolute; top: calc(50% + 28px); left: calc((100% + var(--ec-sol) - var(--ec-sag)) / 2);
        width: var(--ec-g); height: calc(var(--ec-g) * .62); border-radius: 4px; transform: translate(-50%, -50%);
    }
    .ec-isk-sag { position: absolute; top: 56px; right: 0; bottom: 0; width: 300px; padding: 12px; background: #fff; border-left: 1px solid #e3e6ea; }
    .ec-isk-kart { padding: 14px 12px; margin-bottom: 12px; border: 1px solid #e3e6ea; border-radius: 12px; }
    .ec-isk-kart i, .ec-isk-sepet i { display: block; height: 12px; margin: 8px 0; border-radius: 6px; }
    .ec-isk-kart i:nth-child(2n) { width: 60%; }
    .ec-isk-uzun i { height: 14px; margin: 12px 0; }
    .ec-isk-sepet { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; border-top: 1px solid #e3e6ea; }
    .ec-isk-sepet i { height: 40px; width: 50%; margin: 0 0 12px auto; }
    .ec-isk-sepet span { display: block; height: 48px; line-height: 48px; border-radius: 8px; background: #00a8e2; text-align: center; font-size: 16px; font-weight: 600; }
    .ec-isk-sepet i.ec-isk-dugme { height: 48px; width: 100%; margin: 0; }
}
@media (min-width: 1200px) {
    .ec-isk-sag { width: 360px; }
    .ec-isk-tuval { --ec-sag: 360px; }
    .ec-isk-panelli .ec-isk-panel { display: block; }
    .ec-isk-panelli .ec-isk-tuval { --ec-sol: 368px; }
}
@media (min-width: 768px) and (max-width: 999px) {
    .ec-isk-geri { width: auto; }
    .ec-isk-geri b { display: none; }
}

/* Kargo Teslim altinda musteri editorunun adet/teslimat fiyat tablosu. */
.ec-adet-tablo { clear: both; padding-top: 16px; margin-top: 12px; border-top: 1px solid #e3e6ea; }
.ec-adet-tablo[hidden], .ec-adet-eski-gizli { display: none !important; }
.ec-adet-baslik { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.ec-adet-baslik h3 { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.4; color: #0f172a; }
.ec-adet-baslik > small { font-size: 9px; color: #64748b; white-space: nowrap; }
.ec-adet-kaydir { max-width: 100%; overflow-x: auto; }
.ec-adet-tablo table { width: 100%; min-width: 260px; border-collapse: separate; border-spacing: 3px 5px; table-layout: fixed; }
.ec-adet-tablo th { font-size: 11px; font-weight: 600; text-align: center; vertical-align: middle; }
.ec-adet-tablo th:first-child { width: 52px; }
.ec-adet-tablo tbody th { padding: 3px; }
.ec-adet-teslim { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding-bottom: 8px; }
.ec-adet-teslim > img { flex: none; width: 30px; height: 40px; object-fit: contain; }
.ec-adet-teslim > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ec-adet-teslim b { font-size: 20px; line-height: 1; color: #0f172a; }
.ec-adet-teslim small { font-size: 8px; line-height: 1; letter-spacing: .04em; color: #64748b; }
.ec-adet-teslim em { padding: 2px 4px; border-radius: 3px; background: #fff2d9; color: #805714; font-size: 7px; line-height: 1; font-style: normal; }
.ec-adet-tablo th:nth-child(2) .ec-adet-teslim em { background: #e7f6ed; color: #237a45; }
.ec-adet-fiyat { display: block; width: 100%; min-height: 44px; padding: 8px 4px; border: 1px solid #dce3eb; border-radius: 8px; background: #fff; color: #0f172a; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ec-adet-fiyat:hover:not(:disabled) { background: #f8fafc; border-color: #a4b9c9; }
.ec-adet-fiyat[aria-pressed="true"] { border-color: #58ad77; background: #f1faf4; box-shadow: inset 0 0 0 1px #58ad77; color: #1b6b36; }
.ec-adet-fiyat[aria-pressed="true"]::before { content: '✓'; margin-right: 4px; font-weight: 700; }
.ec-adet-fiyat:focus-visible, .ec-adet-tekrar:focus-visible { outline: 2px solid #007da8; outline-offset: 2px; }
.ec-adet-fiyat:disabled { opacity: .45; cursor: not-allowed; }
.ec-adet-populer { display: block; width: max-content; margin: 4px auto 0; padding: 2px 3px; border-radius: 3px; background: #fff104; color: #0f172a; font-size: 7px; line-height: 1.2; }
.ec-adet-durum { margin: 8px 0; font-size: 11px; line-height: 1.5; color: #64748b; }
.ec-adet-tekrar { padding: 6px 10px; border: 1px solid #dce3eb; border-radius: 6px; background: #fff; color: #007da8; font-size: 12px; }
.ec-adet-tablo #secenekler-adet-holder { float: none; margin-bottom: 8px; }

/* Beyaz editor yuzeyleri; marka vurgusu yalniz temel eylemlerde kalir. */
#editor-holder.ec-zemin,
body.ec-app #editor-holder.ec-zemin,
body.ec-app #product-info-holder { background: #fff; }
body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn.btn-danger,
body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn.btn-danger:hover,
body.ec-app .ec-ust-bar > div:nth-of-type(1) .navbar-btn.btn-danger:focus,
.ec-isk-onizle { color: #fff; }
body.ec-app .ec-ac,
body.ec-app .ec-ac:hover,
body.ec-app .ec-ac:focus { background: #f3f4f6; color: #1f2937; }
body.ec-app .ec-sayfalar button[aria-pressed="true"] { background: #f3f4f6; color: #1f2937; }
#secenekler-secenek-holder .ec-option-select[aria-pressed="true"] { background: #fff; }
.ec-option-modal .modal-body { background: #fff; }
