* {
    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;
}
.div20x{
    height:20px;
}
.div30{
    height:30px;
}
.div20{
    height:40px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    min-height: 150px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

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

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

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

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

main {
    flex: 1;
}

.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
}
a{
    text-decoration:none;
}

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


.btn:hover {
    background: #e6c400;
    transform: translateY(-1px);
}
.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;
    }
    .nav {
        justify-content: center;
    }
}
/* Плейсхолдеры для изображений */
.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 8px;
}

.product-image-wrapper {
    position: relative;
    background: #f0f0f0;
    min-height: 150px;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Скелетон загрузки */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Плейсхолдеры для изображений */
.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    min-height: 150px;
}

.product-image-wrapper {
    position: relative;
    background: #f0f0f0;
    min-height: 150px;
    overflow: hidden;
    border-radius: 12px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Скелетон загрузки */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
