/** Ek ürünler sayfası + modal */
.ek-urunler-wrap {
    --max-w: 960px;
}

.ek-urunler-wrap .ek-hediye-blok {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.ek-urunler-wrap .ek-hediye-kart {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4eef3;
    box-shadow: 0 8px 22px rgba(18, 55, 72, 0.05);
}

.ek-urunler-wrap .ek-hediye-kart-hediye {
    border-top: 3px solid #17657e;
}

.ek-urunler-wrap .ek-hediye-kart-ek {
    border-top: 3px solid #1b2b45;
}

.ek-urunler-wrap .ek-hediye-not-ikon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #17657e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.ek-urunler-wrap .ek-hediye-kart-ek .ek-hediye-not-ikon {
    background: #1b2b45;
}

.ek-urunler-wrap .ek-hediye-not-icerik {
    min-width: 0;
}

.ek-urunler-wrap .ek-hediye-etiket {
    color: #17657e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ek-urunler-wrap .ek-hediye-kart-ek .ek-hediye-etiket {
    color: #1b2b45;
}

.ek-urunler-wrap .ek-hediye-not-baslik {
    margin-top: 0.15rem;
    color: #17324a;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.4;
}

.ek-urunler-wrap .ek-hediye-not-alt {
    margin-top: 0.3rem;
    color: #5d7380;
    font-size: 0.86rem;
    line-height: 1.45;
}

.ek-urunler-wrap .ek-hediye-not-ipucu {
    margin-top: 0.15rem;
    color: #17324a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    .ek-urunler-wrap .ek-hediye-kart {
        gap: 0.7rem;
        padding: 0.8rem 0.75rem;
    }

    .ek-urunler-wrap .ek-hediye-not-ikon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .ek-urunler-wrap .ek-hediye-not-baslik,
    .ek-urunler-wrap .ek-hediye-not-ipucu {
        font-size: 0.9rem;
    }
}

.ek-secilenler-panel {
    background: var(--km-primary-light);
    border: 1px solid var(--km-info-border);
    border-radius: 12px;
    overflow: hidden;
}

.ek-secilenler-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, var(--km-primary) 0%, var(--km-primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

    .ek-secilenler-header .badge {
        background: #fff !important;
        color: var(--km-primary-dark) !important;
    }

.ek-secilenler-liste {
    padding: 0.5rem 0.75rem;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
}

.ek-sepet-satir {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: start;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e8eef5;
}

.ek-sepet-satir:last-child { border-bottom: 0; }

.ek-sepet-gorsel {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #f7fbfd;
    border: 1px solid #e8f3f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ek-sepet-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ek-sepet-ad {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a2b32;
    line-height: 1.3;
}

.ek-sepet-detay {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.ek-sepet-fiyat {
    font-weight: 800;
    color: var(--km-primary-dark);
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: right;
}

.ek-secilen-satir {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #cfe2ff;
    font-size: 0.85rem;
}

.ek-secilenler-toplam {
    padding: 0.6rem 1rem;
    background: #fff;
    border-top: 1px solid var(--km-info-border);
    color: var(--km-primary-dark);
    font-weight: 600;
}

.ek-kat-tikla {
    display: block;
    width: 100%;
    cursor: pointer;
}

    .ek-kat-tikla:hover .kat-kart {
        border-color: var(--km-border-hover);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.12);
    }

.ek-ozel-serit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--km-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    padding: 3px 4px;
    z-index: 2;
}

.ek-kat-tikla .kat-isim span {
    font-weight: 700;
    color: var(--km-primary-dark);
    text-transform: uppercase;
}

#ekUrunKatalogModal { z-index: 1085; }
body.modal-open .modal-backdrop + .modal-backdrop { z-index: 1080; }

#ekUrunModal .ek-urun-modal-header {
    background: linear-gradient(135deg, var(--km-primary) 0%, var(--km-primary-dark) 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#ekUrunModal .ek-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#ekUrunModal .ek-urun-modal-content {
    position: relative;
}

#ekUrunModal .ek-modal-durum {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: rgba(23, 101, 126, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    border-radius: inherit;
}

#ekUrunModal .ek-modal-durum-kutu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 280px;
}

#ekUrunModal .ek-modal-durum-kutu strong {
    font-size: 1.15rem;
}

#ekUrunModal .ek-modal-durum-kutu span {
    font-size: 0.9rem;
    opacity: 0.92;
}

#ekUrunModal .ek-modal-baslik-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#ekUrunModal .ek-urun-ara-kutu {
    position: relative;
}
#ekUrunModal .ek-urun-ara-kutu > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--km-primary-dark);
    pointer-events: none;
    font-size: 0.9rem;
}
#ekUrunModal .ek-urun-ara-kutu input[type="search"] {
    padding-left: 2.4rem;
    border-radius: 22px;
    border: 1px solid var(--km-info-border, #c5e4ec);
    min-height: 40px;
}

#ekUrunModal .ek-stok-durum {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

#ekUrunModal #btnModalTamam {
    background: #fff !important;
    color: var(--km-primary-dark) !important;
    font-weight: 700;
    border-radius: 8px;
    opacity: 0.55;
}

    #ekUrunModal #btnModalTamam:not(:disabled) {
        opacity: 1;
    }

#ekUrunModal .ek-alt-chip {
    border: 1px solid var(--km-info-border);
    background: #fff;
    color: var(--km-primary-dark);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    margin: 0 0.2rem;
}

#ekUrunModal .ek-alt-chip.active {
        background: var(--km-primary);
        border-color: var(--km-primary);
        color: #fff;
    }

#ekUrunModal #modalAltChipAlani {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    overflow-x: hidden;
}

#ekUrunModal #modalUrunGrid {
    overflow-x: hidden;
    max-width: 100%;
}

    #ekUrunModal #modalUrunGrid > .row {
        --bs-gutter-x: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    #ekUrunModal #modalUrunGrid [class*="col-"] {
        min-width: 0;
        max-width: 100%;
    }

#ekUrunModal .ek-urun-card {
    border: 2px solid var(--km-border);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    #ekUrunModal .ek-urun-card.selected {
        border-color: var(--km-primary);
        box-shadow: 0 0 0 1px var(--km-primary);
        background: var(--km-primary-light);
    }

    #ekUrunModal .ek-urun-gorsel {
        width: 100%;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f7fbfd;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    #ekUrunModal .ek-urun-card img.ana-resim {
        display: block;
        max-width: 100%;
        max-height: 150px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    #ekUrunModal .ek-urun-card .urun-ad {
        color: var(--km-primary-dark);
        font-weight: 700;
        text-align: center;
        font-size: 0.78rem;
        line-height: 1.25;
        margin: 4px 0;
        word-break: break-word;
    }

    #ekUrunModal .ek-urun-card .fiyat {
        color: var(--km-primary);
        font-weight: 700;
        text-align: center;
    }

#ekUrunModal .ek-beden-btn {
    border: 1px solid #adb5bd;
    background: #fff;
    padding: 3px 7px;
    font-size: 0.72rem;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
    color: #212529;
}

#ekUrunModal .ek-beden-btn.active {
    background: #17657e;
    border-color: #17657e;
    color: #fff;
}

#ekUrunModal .ek-modal-sepete {
    display: block;
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.45rem 0.5rem;
    border: 0;
    border-radius: 999px;
    background: #17657e;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
}

#ekUrunModal .ek-modal-sepete:hover {
    background: #124f63;
    color: #fff;
}

#ekUrunModal .ek-modal-stok {
    margin-top: 0.35rem;
    text-align: center;
    color: #6b7e8b;
    font-size: 0.75rem;
}

#ekUrunModal .ek-beden-btn.tukendi {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

#ekUrunModal .beden-grup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
}

#ekUrunModal .ek-urun-card.stok-yok-urun,
#ekUrunModal .ek-urun-card[data-stok-yok="1"] {
    opacity: 0.65;
    cursor: not-allowed;
}

#ekUrunModal .beden-tek-etiket {
    color: var(--km-primary-dark);
}

#ekUrunModal .ek-yazi-input:focus {
    border-color: var(--km-primary);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

#ekUrunModal .ek-indirim-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--km-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.ek-urun-gorsel {
    position: relative;
}

.ek-buyutec {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #17657e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    z-index: 3;
}
.ek-buyutec:hover { background: #17657e; color: #fff; }

.ek-one-cikanlar {
    border: 1px solid #c5e4ec;
    border-radius: 10px;
    background: #eef7fa;
    padding: 0.55rem 0.7rem 0.7rem;
}
.ek-one-cikanlar-alt {
    font-weight: 700;
    color: #17657e;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.ek-one-cikanlar-alt i { color: #1ca9c9; font-size: 0.8rem; }
.ek-one-kart {
    background: #fff;
    border: 1px solid #d7eef3;
    border-radius: 10px;
    padding: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ek-one-kart .ek-urun-gorsel {
    position: relative;
    height: 88px;
    background: #f7fbfd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.ek-one-kart .ek-urun-gorsel img {
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
}
.ek-one-kart .ek-buyutec {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #17657e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
.ek-one-kart .ek-buyutec:hover { background: #1ca9c9; color: #fff; }
.ek-one-ad {
    font-weight: 600;
    font-size: 0.7rem;
    color: #17657e;
    line-height: 1.2;
    text-align: center;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ek-one-fiyat {
    font-weight: 800;
    color: #17657e;
    margin: 3px 0 5px;
    text-align: center;
    font-size: 0.8rem;
}
.ek-one-ekle {
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: #17657e;
    color: #fff;
    font-weight: 700;
    padding: 4px 8px;
    font-size: 0.75rem;
}
.ek-one-ekle:hover { background: #1ca9c9; color: #fff; }

.ek-urun-pager .page-link {
    color: #17657e;
    border-color: #d7eef3;
}
.ek-urun-pager .page-item.active .page-link {
    background: #17657e;
    border-color: #17657e;
    color: #fff;
}
.ek-urun-pager .page-item.disabled .page-link {
    color: #8aa;
    background: #f7fbfd;
}
