.tkcm-compare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 24px);
    min-height: 38px;
    margin: 8px 12px 12px;
    padding: 9px 12px;
    border: 1px solid #31452b;
    border-radius: 10px;
    background: #f6f2e8;
    color: #24341f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.tkcm-compare-button:hover,
.tkcm-compare-button:focus {
    background: #31452b;
    color: #fff;
    border-color: #31452b;
    outline: none;
}

.tkcm-compare-button.is-selected {
    background: #31452b;
    color: #fff;
    border-color: #31452b;
}

.tkcm-dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 9998;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    width: min(860px, calc(100vw - 28px));
    padding: 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: #1f2c1b;
    color: #fff;
    box-shadow: 0 16px 36px rgba(0,0,0,.28);
    transform: translateX(-50%);
}

.tkcm-dock[hidden] {
    display: none;
}

.tkcm-dock__title {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 800;
}

.tkcm-dock__items {
    font-size: 12px;
    color: rgba(255,255,255,.88);
}

.tkcm-dock__items ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.tkcm-dock__items li {
    max-width: 220px;
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.11);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tkcm-dock__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.tkcm-dock button,
.tkcm-modal button {
    cursor: pointer;
}

.tkcm-dock__clear,
.tkcm-dock__compare {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.tkcm-dock__clear {
    border: 1px solid rgba(255,255,255,.28);
    background: transparent;
    color: #fff;
}

.tkcm-dock__compare {
    border: 1px solid #f6f2e8;
    background: #f6f2e8;
    color: #1f2c1b;
}

.tkcm-dock__compare:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.tkcm-modal-open {
    overflow: hidden;
}

.tkcm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.tkcm-modal[hidden] {
    display: none;
}

.tkcm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 12, .72);
}

.tkcm-modal__panel {
    position: relative;
    width: min(1240px, calc(100vw - 28px));
    max-height: calc(100vh - 56px);
    margin: 28px auto;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0,0,0,.4);
}

.tkcm-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e6e0d4;
    background: #f6f2e8;
}

.tkcm-modal__header h2 {
    margin: 0;
    color: #1f2c1b;
    font-size: 20px;
    line-height: 1.2;
}

.tkcm-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #1f2c1b;
    color: #fff;
    font-size: 25px;
    line-height: 1;
}

.tkcm-modal__content {
    max-height: calc(100vh - 132px);
    overflow: auto;
    padding: 20px;
}

.tkcm-compare__products {
    display: grid;
    grid-template-columns: repeat(var(--tkcm-cols, 2), minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.tkcm-compare__product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ece7dc;
    border-radius: 14px;
    background: #fffaf1;
}

.tkcm-compare__product h3 {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.25;
}

.tkcm-compare__product h3 a {
    color: #1f2c1b;
    text-decoration: none;
}

.tkcm-compare__thumb {
    grid-row: 1 / span 2;
}

.tkcm-compare__image {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.tkcm-compare__price {
    grid-column: 2;
    font-size: 13px;
    font-weight: 800;
    color: #31452b;
}

.tkcm-compare__table-wrap {
    overflow-x: auto;
    border: 1px solid #e6e0d4;
    border-radius: 14px;
}

.tkcm-compare__table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
    background: #fff;
}

.tkcm-compare__table th,
.tkcm-compare__table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee7da;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.tkcm-compare__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #31452b;
    color: #fff;
    font-weight: 800;
}

.tkcm-compare__table tbody th {
    width: 24%;
    background: #f6f2e8;
    color: #1f2c1b;
    font-weight: 800;
}

.tkcm-compare__table tbody tr:last-child th,
.tkcm-compare__table tbody tr:last-child td {
    border-bottom: 0;
}

.tkcm-compare__missing {
    color: #777;
    font-style: italic;
}

.tkcm-loading,
.tkcm-error,
.tkcm-compare__empty {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: #f6f2e8;
    color: #1f2c1b;
    font-weight: 700;
}

@media (max-width: 920px) {
    .tkcm-compare__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tkcm-dock {
        align-items: stretch;
        flex-direction: column;
    }

    .tkcm-dock__actions {
        width: 100%;
    }

    .tkcm-dock__clear,
    .tkcm-dock__compare {
        flex: 1;
    }

    .tkcm-compare__products {
        grid-template-columns: 1fr;
    }

    .tkcm-modal__panel {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 24px);
        margin: 12px auto;
    }

    .tkcm-modal__content {
        max-height: calc(100vh - 108px);
        padding: 14px;
    }
}


/* Tuğkamp özel kategori kartı entegrasyonu */
.tkce-card-control {
    position: relative;
    z-index: 9;
    width: 100%;
}

.tkce-card-control .tkcm-compare-button,
.tkce-card-control__button.tkcm-compare-button {
    width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid rgba(16, 37, 28, 0.18);
    border-radius: 9px;
    background: rgba(255, 253, 248, 0.86);
    color: rgba(11, 33, 24, 0.86);
    font-size: 11.5px;
    font-weight: 780;
    box-shadow: none;
}

.tkce-card-control .tkcm-compare-button:hover,
.tkce-card-control .tkcm-compare-button:focus,
.tkce-card-control .tkcm-compare-button.is-selected {
    background: #31452b;
    color: #fff;
    border-color: #31452b;
}

/* 1.3.0: Fonksiyonlar niteliği tek satır yerine Var/Yok satırlarına açılır */
.tkcm-compare__section th {
    background: #31452b !important;
    color: #fff !important;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.tkcm-compare__function-row th {
    padding-left: 28px;
    font-weight: 700;
}

.tkcm-compare__yes {
    color: #1f2c1b;
    font-weight: 800;
}

/* 1.5.0: teknik değerler ve var/yok özellikleri ayrı bölümde gösterilir */
.tkcm-compare__presence-row th {
    padding-left: 28px;
    font-weight: 700;
}
