
/* ==================================================
   TIENDAS Y CATEGORÍAS
================================================== */

.tc-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.tc-welcome h1 {
    margin: 8px 0;
    color: #342b31;
    font-size: 28px;
}

.tc-welcome p {
    margin: 0;
    color: #897d85;
    font-size: 14px;
}

.tc-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.tc-summary-card {
    background: #fff;
    border: 1px solid #eee5e9;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-summary-card span {
    color: #897d85;
    font-size: 13px;
}

.tc-summary-card strong {
    color: #493943;
    font-size: 27px;
}

.tc-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
    gap: 20px;
    align-items: start;
}

.tc-panel {
    background: #fff;
    border: 1px solid #eee5e9;
    border-radius: 16px;
    padding: 22px;
    min-width: 0;
}

.tc-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.tc-panel-heading h2 {
    color: #493943;
    font-size: 18px;
    margin: 0 0 6px;
}

.tc-panel-heading p {
    color: #958891;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.tc-button {
    border: 0;
    border-radius: 9px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.tc-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tc-button-primary {
    color: #fff;
    background: #c77e9e;
}

.tc-button-primary:hover:not(:disabled) {
    background: #b66b8d;
}

.tc-button-light {
    color: #756771;
    background: #f5eff2;
}

.tc-button-light:hover {
    background: #eee4e9;
}

.stores-list,
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.store-item,
.category-item {
    border: 1px solid #eee6ea;
    border-radius: 11px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: 0.2s ease;
}

.store-item {
    cursor: pointer;
}

.store-item:hover {
    border-color: #d9a2b8;
    background: #fdf9fb;
}

.store-item.selected {
    border-color: #c77e9e;
    background: #fcf4f8;
    box-shadow: 0 0 0 2px rgba(199, 126, 158, 0.10);
}

.tc-item-main {
    min-width: 0;
}

.tc-item-main strong {
    display: block;
    color: #493943;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.tc-item-main small {
    display: block;
    color: #998d95;
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.4;
}

.tc-item-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.tc-icon-button {
    width: 32px;
    height: 32px;
    border: 1px solid #eee5e9;
    border-radius: 8px;
    background: #fff;
    color: #786a73;
    cursor: pointer;
    font-size: 14px;
}

.tc-icon-button:hover {
    background: #f8eff3;
    border-color: #d9a2b8;
}

.tc-status {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.tc-status.active {
    color: #357b5c;
    background: #eaf6ef;
}

.tc-status.inactive {
    color: #96727e;
    background: #f4edf0;
}

.tc-empty {
    color: #a0959d;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    padding: 30px 15px;
    background: #fcfafb;
    border: 1px dashed #e9dfe4;
    border-radius: 11px;
}

.tc-message {
    display: none;
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 13px;
}

.tc-message.show {
    display: block;
}

.tc-message.success {
    color: #357b5c;
    background: #eaf6ef;
}

.tc-message.error {
    color: #a34455;
    background: #fff0f1;
}

/* MODALES */

.tc-dialog {
    width: min(460px, calc(100% - 30px));
    border: 1px solid #eee5e9;
    border-radius: 16px;
    padding: 25px;
    color: #493943;
    box-shadow: 0 20px 70px rgba(54, 35, 46, 0.20);
}

.tc-dialog::backdrop {
    background: rgba(43, 31, 39, 0.42);
    backdrop-filter: blur(3px);
}

.tc-dialog form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tc-dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tc-dialog-heading h2 {
    margin: 7px 0 0;
    font-size: 20px;
}

.tc-close-button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f6eff2;
    color: #796a73;
    font-size: 22px;
    cursor: pointer;
}

.tc-dialog label:not(.tc-checkbox) {
    color: #675963;
    font-size: 12px;
    font-weight: 600;
}

.tc-dialog input[type="text"],
.tc-dialog textarea {
    width: 100%;
    border: 1px solid #e8dfe4;
    border-radius: 9px;
    padding: 11px 12px;
    outline: none;
    color: #493943;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
}

.tc-dialog input:focus,
.tc-dialog textarea:focus {
    border-color: #c77e9e;
    box-shadow: 0 0 0 3px rgba(199, 126, 158, 0.10);
}

.tc-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 7px 0;
    color: #675963;
    font-size: 12px;
}

.tc-checkbox input {
    accent-color: #c77e9e;
}

.tc-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

@media (max-width: 1050px) {
    .tc-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .tc-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tc-summary-card {
        padding: 15px;
    }

    .tc-summary-card strong {
        font-size: 23px;
    }

    .tc-panel {
        padding: 16px;
    }

    .tc-panel-heading {
        flex-direction: column;
    }

    .tc-panel-heading .tc-button {
        width: 100%;
    }

    .store-item,
    .category-item {
        align-items: flex-start;
    }

    .tc-item-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .tc-welcome h1 {
        font-size: 23px;
    }

    .tc-dialog {
        padding: 20px;
    }
}
