/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* Единые стили для пустых состояний */
.empty-state,
.empty-orders,
.empty-catalog,
.empty-favorites,
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f8f8;
    border-radius: 20px;
    margin: 1rem 0;
}

.empty-state .empty-icon,
.empty-orders .empty-icon,
.empty-catalog .empty-icon,
.empty-favorites .empty-icon,
.empty-cart .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3,
.empty-orders h3,
.empty-catalog h3,
.empty-favorites h3,
.empty-cart h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.empty-state p,
.empty-orders p,
.empty-catalog p,
.empty-favorites p,
.empty-cart p {
    margin: 0 0 1.5rem;
    color: #666;
}

.empty-state .btn,
.empty-orders .btn,
.empty-catalog .btn,
.empty-favorites .btn,
.empty-cart .btn {
    display: inline-block;
    margin-top: 0;
}
.div20{
    height:20px;
}
.div10{
    height:10px;
}
.div7{
    height:7px;
}
/* Основной контейнер — занимает всё доступное пространство */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: #111;
}

.logo span {
    color: #000;
    background: transparent;
    padding: 0 5px 0 2px;
    border-radius: 8px;
    border: solid 2px #000;
    margin-left: 3px;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: #000;
}

/* Основной контент — центрируется по вертикали */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Футер — прижат к низу */
.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    flex-shrink: 0;
    margin-bottom: 30px;
}
h1 span {
    color: #000;
    background: transparent;
    padding: 0 4px;
    border-radius: 8px;
    border: solid 2px #000;
    margin-left: 3px;
}
/* Кнопки */
.btn {
    background: #ffdd22;
    color: #000;
    padding: 0.7rem 2.5rem;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.btn:hover {
    background: #e6c400;
    transform: translateY(-1px);
}

/* Формы */
.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input {
    width: auto;
    margin-top: 0.15rem;
}

.radio-label small {
    font-size: 0.75rem;
    color: #666;
    display: block;
    margin-left: 1.5rem;
}

/* Уведомления */
.success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 4px;
}
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 1rem 0;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Обёртка для поля и крестика */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 35px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #ffdd22;
    box-shadow: 0 0 0 3px rgba(255, 221, 34, 0.1);
}

/* Крестик — скрыт по умолчанию */
.clear-field {
    position: absolute;
    right: 12px;
    top: 24px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    border-radius: 50%;
    display: none;  /* ← скрыт по умолчанию */
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: transparent;
}

.clear-field:hover {
    opacity: 1;
    background: #f0f0f0;
}

.clear-field::before,
.clear-field::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: #999;
    border-radius: 1px;
}

.clear-field::before {
    transform: rotate(45deg);
}

.clear-field::after {
    transform: rotate(-45deg);
}

/* Подсказки */
.hint {
    font-size: 0.7rem;
    margin-top: 0;
    min-height: 0;
}

.hint.error {
    color: #dc3545;
}

.hint.success {
    color: #28a745;
}

.hint.warning {
    color: #ffc107;
}

small {
    display: block;
    color: #888;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.btn {
    width: 100%;
    background: #ffdd22;
    color: #000;
    padding: 16px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
}

.btn-clear {
    background: #f0f0f0;
    color: #666;
    margin-top: 0.5rem;
}

.btn-clear:hover {
    background: #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
}
.tx-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.tx-chat-icon {
    width: 55px;
    height: 55px;
    background: #ffdd22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    position: relative;
}

.tx-chat-icon:hover {
    transform: scale(1.05);
}

.tx-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
/* Адаптивность */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    

    main {
        padding: 1rem 0;
    }
}