
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.user-info {
    font-size: 14px;
    opacity: 0.9;
}

.catalog, .cart {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.catalog h2, .cart h2 {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 18px;
}

/* Стили для карточек чая - УБИРАЕМ АНИМАЦИИ */
.tea-card {
    display: flex;
    gap: 15px;
    align-items: stretch;
    background: #f7fafc;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    /* УБИРАЕМ ВСЕ ПЕРЕХОДЫ */
    transition: none;
}

.tea-card:active {
    /* УБИРАЕМ ПРЕОБРАЗОВАНИЕ ПРИ НАЖАТИИ */
    transform: none;
}

.tea-left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 80px;
    height: 100%;
}

.tea-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.tea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Элементы управления количеством - БЕЗ АНИМАЦИЙ */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    position: absolute;
    left: 15px;
    bottom: 15px;
    width: auto;
    min-width: 80px;
    height: 52px;
    /* УБИРАЕМ ВСЕ ПЕРЕХОДЫ */
    transition: none;
    transform: translateY(7px);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    /* УБИРАЕМ ВСЕ АНИМАЦИИ И ТРАНСФОРМАЦИИ */
    transition: none;
    outline: none;
}

.quantity-btn:hover {
    background: #5a67d8;
}

.quantity-btn:focus {
    outline: none;
    box-shadow: none;
}

.quantity-btn:active {
    /* УБИРАЕМ ПРЕОБРАЗОВАНИЕ ПРИ НАЖАТИИ */
    transform: none;
    background: #4c51bf;
}

.quantity-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 50px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #2d3748;
    flex-shrink: 0;
    width: 50px;
    height: 24px;
    line-height: 24px;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 8px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    /* УБИРАЕМ ПЕРЕХОДЫ */
    transition: none;
}

/* Правая секция с контентом */
.tea-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 110px;
}

.tea-main-content {
    /* Основной контент занимает доступное пространство сверху */
}

.tea-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #2d3748;
}

.tea-category {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
}

.tea-price {
    font-weight: bold;
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 3px;
}

.tea-stock {
    font-size: 12px;
    color: #666;
}

/* Цена в правом нижнем углу */
.tea-price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 10px;
}

.tea-total-price {
    font-weight: bold;
    font-size: 16px;
    color: #2e7d32;
}

.tea-gram-info {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.tea-total-price {
    font-weight: bold;
    font-size: 16px;
    color: #2d3748;
    text-align: right;
}

.tea-gram-info {
    font-size: 12px;
    color: #718096;
    text-align: right;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .tea-card {
        padding: 12px;
        gap: 12px;
        min-height: 120px;
    }

    .tea-left-section {
        width: 70px;
    }

    .tea-image {
        width: 70px;
        height: 70px;
    }

    .quantity-controls {
        padding: 8px 10px;
        left: 12px;
        bottom: 12px;
        gap: 6px;
        height: 48px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .quantity-display {
        min-width: 45px;
        width: 45px;
        font-size: 13px;
        height: 22px;
        line-height: 22px;
    }
}

/* Корзина */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.cart-item-quantity {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.cart-item-price {
    flex-shrink: 0;
    width: 80px;
    text-align: right;
    font-weight: bold;
    color: #2e7d32;
}

.remove-item {
    background: #e53e3e;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* УБИРАЕМ АНИМАЦИИ */
    transition: none;
}

.remove-item:active {
    /* УБИРАЕМ ПРЕОБРАЗОВАНИЕ ПРИ НАЖАТИИ */
    transform: none;
}

.cart-total {
    text-align: right;
    font-weight: bold;
    font-size: 18px;
    color: #2d3748;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.checkout-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    /* УБИРАЕМ АНИМАЦИИ */
    transition: none;
}

.checkout-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.checkout-btn:not(:disabled):hover {
    background: #5a67d8;
}

.checkout-btn:active {
    /* УБИРАЕМ ПРЕОБРАЗОВАНИЕ ПРИ НАЖАТИИ */
    transform: none;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #e53e3e;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #718096;
}

/* Подпись снизу каталога */
.info-hint {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* УБИРАЕМ АНИМАЦИИ */
    transition: none;
}

.close-modal:hover {
    color: #e53e3e;
}

.close-modal:active {
    /* УБИРАЕМ ПРЕОБРАЗОВАНИЕ ПРИ НАЖАТИИ */
    transform: none;
}

.modal-body {
    padding: 20px;
}

.modal-tea-image {
    text-align: center;
    margin-bottom: 20px;
}

.modal-tea-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.modal-tea-info {
    text-align: left;
}

.modal-tea-category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.modal-tea-price {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.modal-tea-stock {
    color: #48bb78;
    font-size: 14px;
    margin-bottom: 15px;
}

.modal-tea-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.modal-actions {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.btn-close {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    /* УБИРАЕМ АНИМАЦИИ */
    transition: none;
}

.btn-close:hover {
    background: #5a67d8;
}

.btn-close:active {
    /* УБИРАЕМ ПРЕОБРАЗОВАНИЕ ПРИ НАЖАТИИ */
    transform: none;
}

/* Стили для фильтра категорий */
.category-filter {
    margin-bottom: 15px;
    text-align: center;
}

.filter-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    color: #2d3748;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .filter-select {
        font-size: 14px;
        padding: 10px 12px;
    }
}