/* =============================================
   TPC Frontend Styles
   ============================================= */

.tpc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

.tpc-main-title {
    text-align: center;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    color: #1a2332;
    margin: 0 0 36px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Grid layout */
.tpc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Card */
.tpc-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tpc-card:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

/* Card header */
.tpc-card-header {
    padding: 24px 22px 20px;
    border-radius: 18px 18px 0 0;
}

.tpc-card-title {
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tpc-card-subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Card body */
.tpc-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Row */
.tpc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    gap: 10px;
    transition: filter 0.15s;
}

.tpc-row:hover {
    filter: brightness(0.97);
}

.tpc-row-label {
    flex: 1;
    line-height: 1.4;
}

.tpc-row-price {
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .tpc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .tpc-grid {
        grid-template-columns: 1fr;
    }

    .tpc-card-header {
        padding: 20px 18px 16px;
    }

    .tpc-card-body {
        padding: 12px 12px 14px;
    }
}
