/* ==========================================================================
   Katalog Fiyat Tablosu - Frontend Styles
   ========================================================================== */

.kft-price-module {
    margin: 20px 0;
    font-family: inherit;
}

/* ---------- Table ---------- */

.kft-price-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.kft-price-table thead th {
    background: #f7f7f7;
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.kft-price-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.kft-price-table tbody tr:last-child {
    border-bottom: none;
}

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

.kft-price-table td {
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}

/* Column widths */
.kft-col-adet {
    width: 20%;
    font-weight: 600;
    color: #222;
}

.kft-col-fiyat {
    width: 35%;
    color: #444;
}

.kft-col-sepet {
    width: 45%;
}

/* ---------- Hidden rows ---------- */

.kft-price-row.kft-hidden {
    display: none;
}

.kft-price-row.kft-visible {
    display: table-row;
}

/* ---------- Add to Cart Button ---------- */

.kft-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    line-height: 1;
    white-space: nowrap;
}

.kft-add-to-cart-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.kft-add-to-cart-btn:active {
    transform: translateY(0);
}

.kft-add-to-cart-btn.kft-loading {
    opacity: 0.7;
    pointer-events: none;
}

.kft-add-to-cart-btn.kft-added {
    background: #27ae60;
}

.kft-cart-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Show More Button ---------- */

.kft-show-more-wrap {
    text-align: center;
    padding: 16px 0;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fafafa;
}

.kft-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kft-show-more-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

.kft-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.kft-show-more-btn.kft-expanded .kft-arrow {
    transform: rotate(90deg);
}

/* ---------- View Cart Link ---------- */

.kft-view-cart-link {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #f39c12;
    text-decoration: underline;
}

/* ==========================================================================
   Mobile Responsive - Card Layout
   ========================================================================== */

@media (max-width: 600px) {

    .kft-price-table thead {
        display: none;
    }

    .kft-price-table,
    .kft-price-table tbody,
    .kft-price-table tr,
    .kft-price-table td {
        display: block;
        width: 100%;
    }

    .kft-price-table tbody tr {
        margin-bottom: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px 16px;
        background: #fff;
    }

    .kft-price-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .kft-price-table td {
        padding: 6px 0;
        text-align: left;
        border: none;
    }

    .kft-price-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #333;
        display: inline;
    }

    .kft-col-sepet {
        text-align: center;
        padding-top: 10px !important;
    }

    .kft-col-sepet::before {
        display: none !important;
    }

    .kft-add-to-cart-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .kft-price-row.kft-hidden {
        display: none;
    }

    .kft-price-row.kft-visible {
        display: block;
    }

    .kft-show-more-wrap {
        border: none;
        background: transparent;
    }
}
