body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 70px;
    background-color: #f1f1f1;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.search-container {
    position: relative;
}

.search-input2 {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.search-input2.active {
    display: block;
}

.fjtg {
    height: 48px;
}

.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.search-overlay.active {
    display: block;
}

.search-input2 .input-group {
    display: flex;
    width: 100%;
}

.search-input2 input.form-control {
    flex: 0 0 90%;
    max-width: 89%;
}

.search-input2 button.btn {
    flex: 0 0 10%;
    max-width: 10%;
}


.filter-btn {
    background-color: white;
    border: 1px solid #dee2e6;
    color: #495057;
    border-radius: 20px;
    padding: 5px 15px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.filter-btn.active {
    color: blue;
}

/* Основные стили для карточек */
.product-col {
    padding: 0 5px;
    margin-bottom: 10px;
}

.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-img-container {
    position: relative;
    flex-grow: 1;
}

.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 10px 12px;
    flex-shrink: 0;
    background: #fff;
}

.product-price {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: #212529;
}

.product-title {
    font-weight: 400;
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничиваем текст 2 строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Стили для карусели */
.product-carousel {
    height: 100%;
}

.product-carousel .carousel-inner,
.product-carousel .carousel-item {
    height: 100%;
}

.product-carousel .carousel-indicators {
    margin-bottom: 5px;
}

.product-carousel .carousel-indicators button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0,0,0,0.25);
}

.product-carousel .carousel-indicators button.active {
    background-color: rgba(0,0,0,0.8);
}

/* Нижнее меню */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-link {
    color: #6c757d;
    text-align: center;
    padding: 3px 0;
}

.nav-link.active {
    color: #0d6efd;
}

.nav-link i {
    display: block;
    font-size: 1.2rem;
    /* margin-bottom: 5px; */
}

 /* Стили для главного слайдера */
.main-carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.main-carousel .carousel-inner {
    border-radius: 12px;
}

.main-carousel .carousel-item img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.main-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

.main-carousel .carousel-indicators button.active {
    background-color: white;
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .main-carousel .carousel-item img {
        height: 300px;
    }
}

/* Стили для фильтров */
.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sort-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    border-radius: 50px;
    padding: 8px 15px;
    white-space: nowrap;
}

/* Стили для тегов выбранных фильтров */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-tag {
    background-color: #e9ecef;
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag .close {
    font-size: 1rem;
    line-height: 1;
}

/* Выпадающие меню */
.dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dropdown-item.active {
    background-color: #f8f9fa;
    color: #0d6efd;
    font-weight: 500;
}

/* Шапка профиля */
.profile-header {
    padding: 20px 0;
    text-align: center;
    color: black;
    margin-bottom: 20px;
    border-radius: 0 0 20px 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-bottom: 10px;
}

.profile-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.profile-phone {
    font-size: 0.9rem;
    opacity: 0.9;
}

.info-val {
    font-weight: 500;
    text-align: left;
}

/* Блоки информации */
.info-card {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card-title .edit-btn {
    color: var(--tg-theme-link-color);
    font-size: 0.9rem;
}

/* История заказов */
.order-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-date {
    font-size: 0.8rem;
    color: var(--tg-theme-hint-color);
    margin-bottom: 8px;
}

.order-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-new {
    background-color: #ffeeba;
    color: #856404;
}

.status-processing {
    background-color: #bee5eb;
    color: #0c5460;
}

.status-delivered {
    background-color: #c3e6cb;
    color: #155724;
}

.status-cancelled {
    background-color: #f5c6cb;
    color: #721c24;
}

.order-price {
    font-weight: 600;
    margin-top: 8px;
}

.prf {
    font-size: 0.8rem; 
    color: #707579;
}

/* Страница редактирования */
.edit-header {
    padding: 10px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.back-btn {
    color: #3390ec;
    font-size: 1rem;
    text-decoration: none;
}

.header-title {
    font-weight: 600;
    font-size: 0.8rem;
}

.save-btn {
    color: #3390ec;
    font-weight: 500;
    border: none;
    background: none;
    font-size: 1rem;
}

/* Форма редактирования */
.edit-form {
    padding: 0 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--tg-theme-hint-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background-color: white;
}

.form-control:focus {
    border-color: #0d6efd;
    outline: none;
}

/* Аватар */
.avatar-upload {
    text-align: center;
    margin-bottom: 25px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.avatar-change {
    color: var(--tg-theme-link-color);
    font-size: 0.9rem;
    text-decoration: none;
}

/* Кнопка выхода */
.logout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: #dc3545;
    font-weight: 500;
    margin-top: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: none;
}

/* Слайдер товара в карточке товара */
.product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-slider .carousel-inner {
    border-radius: 0;
}

.product-slider .carousel-item img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
}

.product-slider .carousel-indicators {
    bottom: 15px;
    margin: 0;
}

.product-slider .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgb(39 37 37 / 50%);
    margin: 0 4px;
}

.product-slider .carousel-indicators button.active {
    background-color: #000;
}

.product-name {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.product-category {
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Описание товара */
.product-description {
    margin-bottom: 25px;
}

.description-text {
    margin-bottom: 10px;
    line-height: 1.5;
}

.description-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    color: #6e6e76;
    font-weight: 500;
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
}

/* Блок вопросов */
.questions-block {
    background-color: #f4f4f5;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.questions-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.support-btn i {
    margin-right: 5px;
}

/* Кнопка корзины */
.add-to-cart-btn, .checkout-btn, .confirm-btn, .pay-btn {
    position: fixed;
    bottom: 10px;
    left: 15px;
    right: 15px;
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 100;
}

/* Плавающая кнопка корзины */
.cart-float-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cart-float-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-float-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* оформление заказа */
.cart-title-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
}

.cart-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.clear-cart, .delete-item-btn {
    color: #dc3545;
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
}

.delete-item-btn {
    background: none;
    outline: none;
    border: none;
}

/* Товары в корзине */
.cart-items {
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-category {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 3px 10px;
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 1rem;
    padding: 0 5px;
    /* color: #0d6efd; */
}

.quantity-value {
    margin: 0 10px;
    font-weight: 500;
}

.cart-item-price {
    font-weight: 700;
}

/* Промокод */
.promo-block {
    padding: 15px;
    background-color: white;
    margin-bottom: 15px;
}

.promo-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.promo-input-group {
    display: flex;
    position: relative;
}

.promo-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.promo-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
}

.promo-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* Итого */
.cart-summary {
    padding: 15px;
    background-color: white;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    font-weight: 500;
}

.total-row {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
}

.form-cont {
    border: none;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    outline: none;
}
.form-bel {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #36a0d7;
}

/* Доставка */

/* Табы доставки */
.delivery-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background-color: white;
}

.delivery-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
}

.delivery-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

/* Контент доставки */
.delivery-content {
    padding: 15px;
}

/* Поле поиска */
.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Список ПВЗ */
.pvz-list {
    margin-bottom: 20px;
}

.pvz-group {
    margin-bottom: 15px;
}

.pvz-group-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pvz-item {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

.pvz-item.active {
    border-color: #0d6efd;
    background-color: rgba(108, 92, 231, 0.05);
}

.pvz-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.pvz-address {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.pvz-info {
    font-size: 0.9rem;
    color: #0d6efd;
    font-weight: 500;
}

/* Курьерская доставка */
.courier-info {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.courier-info.active {
    display: block;
}

.courier-price {
    font-weight: 600;
    color: #0d6efd;
    margin-top: 10px;
}

/* Оплата */
.payment-header {
    padding: 15px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    background-color: white;
}

/* Основной контент */
.payment-container {
    padding: 15px;
}

.section-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Блоки информации */
.info-block {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
    text-align: right;
}

.divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 15px 0;
}

/* Способ оплаты */
.payment-method {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.payment-method.active {
    border-color: #0d6efd;
    background-color: rgba(108, 92, 231, 0.05);
}

.payment-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.payment-name {
    font-weight: 500;
    flex: 1;
}

.payment-check {
    color: #0d6efd;
    font-size: 1.2rem;
    margin-left: 10px;
    display: none;
}

.payment-method.active .payment-check {
    display: block;
}

/* Успешная оплата */

.success-header {
    padding: 15px 0;
    text-align: center;
    position: relative;
    background-color: white;
}

/* Основной контент */
.success-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #4cd964;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon i {
    color: white;
    font-size: 2.5rem;
}

.success-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-text {
    color: #6c757d;
    margin-bottom: 25px;
    max-width: 300px;
}

.order-number {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 25px;
}

/* Информация о заказе */
.order-info {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Кнопки */

.btn-outline {
    background-color: white;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
}

/* Страница ошибки */

.error-header {
    padding: 15px 0;
    text-align: center;
    position: relative;
    background-color: white;
}

/* Основной контент */
.error-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.error-icon i {
    color: white;
    font-size: 2.5rem;
}

.error-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0d6efd;
}

.error-text {
    color: #6c757d;
    margin-bottom: 25px;
    max-width: 300px;
}

.order-number {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 25px;
}

/* Информация об ошибке */
.error-info {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #0d6efd;
}

.error-details {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Кнопки */
.btn-retry {
    background-color: #0d6efd;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
    color: white;
}

.btn-support {
    background-color: white;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
}