@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
* {
    max-width: 100%;
}

.container {
    overflow-x: hidden;
}
.container .btn,
.container .link {
    margin-bottom: 0px;
}

.btn, .btn-outline {
    white-space: nowrap;
}

@media (max-width: 400px) {
    .container .btn {
        padding: 12px 16px;
    }
}

.header-cart {
    padding: 6px 8px;
    font-size: 12px;
}

.header-cart svg {
    width: 20px;
    height: 20px;
}



@media (max-width: 360px) {
    .container {
        padding: 13px 6px !important;
    }
}

.products-grid {
    gap: 4px;
}
.admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.admin-table th,
.admin-table td {
    white-space: nowrap;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
    color: #001a34;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 17px 12px;
}

/* Шапка Озон */
.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #005bff;
    padding: 14px 0;
    margin-bottom: 16px;
}

.header .container {
    padding: 7px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



@media (max-width: 360px) {
    .header-cart {
        padding: 4px;
    }
}
.logo {
    color: white;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.cart-badge {
    background: #ff3b30;
    color: white;
    border-radius: 12px;
    padding: 0 5px;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
    position: absolute;
    top: -6px;
    right: -6px;
}

.header-cart {
    position: relative;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 8px 12px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}

/* Каталог */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
    border: 1px solid #e9eaec;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: #001a34;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 18px;
    color: #001a34;
    margin-bottom: 10px;
}

.product-price small {
    font-weight: 400;
    font-size: 12px;
    color: #7b8c9e;
}

.category-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 6px;
    background: #f0f3f7;
    color: #5b6f82;
}

.btn {
    background: #005bff;
    color: white;
    text-decoration: none;
    border: none;
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}
.btn {
    -webkit-appearance: button;
    appearance: button;
    touch-action: manipulation;
}
.btn:hover {
    background: #0049cc;
}

.btn:active {
    background: #003d99;
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: #ff3b30 !important;
    border: 1px solid #ff3b30;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}

.btn-outline:hover {
    background: rgba(255, 59, 48, 0.1);
}
.btn-delete {
    background: red;
    color: white;
    border: 1px solid red;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}
.btn-delete:hover {
    background: #A60000;
}
.btn-danger {
    background: #ff3b30;
    color: white;
    text-decoration: none;
    border: none;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: #e02b20;
}

/* Корзина */
.cart-item {
    flex-wrap: wrap;
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e9eaec;
}

.cart-item-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cart-item-price {
    font-weight: 700;
    color: #001a34;
    font-size: 16px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-quantity {
    font-weight: 500;
    color: #5b6f82;
}

.btn-remove {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s;
}

.btn-remove:hover {
    background: #fff0ef;
}

.cart-total {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    border: 1px solid #e9eaec;
}

/* Формы */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #e9eaec;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #001a34;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.15s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #005bff;
    box-shadow: 0 0 0 3px rgba(0,91,255,0.1);
}

.form-group input::placeholder {
    color: #a0abb8;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #5b6f82;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d9dde3;
    font-weight: 700;
    font-size: 18px;
    color: #001a34;
}

/* Успех */
.success-card {
    background: white;
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    border: 1px solid #e9eaec;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #00a650;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.order-number {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 18px;
    margin: 20px 0;
}

.order-number strong {
    color: #005bff;
}

.pickup-info {
    background: #fff9e6;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    text-align: left;
    border-left: 4px solid #ffb800;
}

.pickup-info h3 {
    margin-bottom: 12px;
    color: #cc7a00;
}

.pickup-info p {
    margin-bottom: 8px;
    color: #333;
}

/* Админка */
/* Таблицы админки */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e9eaec;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    white-space: nowrap;
}

.admin-table th {
    font-size: 11px;
}

.admin-table .btn {
    padding: 4px 8px;
    font-size: 11px;
}
.admin-table tbody tr:hover {
    background: #fafbfc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}



.admin-table .btn-danger {
    background: white;
    color: #ff3b30;
    border: 1px solid #ff3b30;
}

.admin-table .btn-danger:hover {
    background: #fff0ef;
    color: #e02b20;
    border-color: #e02b20;
}

.admin-table .btn-success {
    background: #00a650 !important;
    color: white;
    border: none;
}
.btn .btn-success {
    background: #00a650 !important;
    color: white;
    border: none;
}
.admin-table .btn-success:hover {
    background: #008c42;
}

/* Статусы в таблице */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-new {
    background: #fff3d9;
    color: #cc7a00;
}

.status-completed {
    background: #e6f7e6;
    color: #00a650;
}

/* Миниатюра товара */
.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9eaec;
}

/* Действия в ячейке */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* Навигация админки */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 10px 20px;
    background: white;
    border-radius: 40px;
    text-decoration: none;
    color: #001a34;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #d9dde3;
    transition: all 0.15s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #005bff;
    color: white;
    border-color: #005bff;
}
/* Уведомления */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #e6f7e6;
    color: #006838;
    border: 1px solid #b8e6b8;
}

.alert-error {
    background: #ffe6e5;
    color: #cc1a1a;
    border: 1px solid #ffb8b8;
}

/* Пустая корзина */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.empty-state h2 {
    margin: 20px 0 10px;
    color: #001a34;
}

.empty-state p {
    color: #7b8c9e;
    margin-bottom: 24px;
}

/* Ссылки */
.link {
    color: #005bff;
    text-decoration: none;
    font-weight: 500;
}
.register{
    color: #005bff !important;
    text-align: center !important;
    justify-content: center !important;
}
.link:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 480px) {
    
    .products-grid {
        gap: 6px;
    }
    
    .product-card {
        padding: 8px;
    }
}
.btn {
    transition: background 0.2s, transform 0.1s;
}
.cart-controls {
    margin-top: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 2px;
}
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #001a34;
    fill: none;
    stroke: currentColor;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.15s;
}

.favorite-btn.active {
    color: #ff3b30;
    fill: #ff3b30;
    stroke: #ff3b30;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 500;
    color: #005bff;
    cursor: pointer;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #f0f7ff;
}

.qty-btn:active {
    background: #e0edff;
}

.qty-value {
    font-weight: 600;
    font-size: 16px;
    color: #001a34;
    min-width: 30px;
    text-align: center;
}
/* Кнопка Админ в шапке */
.admin-link {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
    margin-left: 8px;
}

.admin-link:hover {
    background: rgba(255,255,255,0.25);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.table-actions .btn {
    width: 85px;
    text-align: center;
}
.admin-table td strong {
    font-weight: 700;
    color: #001a34;
}

.table-actions form {
    margin: 0;
}

.table-actions .btn-success {
    background: #00a650;
    color: white;
    border: none;
}

.table-actions .btn-success:hover {
    background: #008c42;
}
.admin-table td {
    white-space: nowrap;
}

.admin-table td:nth-child(3),
.admin-table td:nth-child(6) {
    white-space: nowrap;
}
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #7b8c9e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: #001a34;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.order-items-table th,
.order-items-table td {
    padding: 12px 4px;
    font-size: 14px;
    word-break: break-word;
}

.order-items-table tfoot td {
    border-bottom: none;
    padding-top: 20px;
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: center;
}

.order-actions .btn {
    width: auto;
    padding: 12px 24px;
}

.btn-success {
    background: #00a650;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #008c42;
}
/* Избранное*/
.favorite-btn {
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #ccc;
    transition: all 0.15s;
}

.favorite-btn.active {
    color: #ff3b30;
}

.favorite-btn:hover {
    transform: scale(1.1);
}
/* Категори*/
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.favorite-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.category-link {
    padding: 8px 16px;
    background: white;
    border-radius: 40px;
    text-decoration: none;
    color: #001a34;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d9dde3;
    transition: all 0.15s;
}

.category-link:hover,
.category-link.active {
    background: #005bff;
    color: white;
    border-color: #005bff;
}
.profile-info {
    padding: 8px 0;
    text-align: left;
}

.profile-info h2,
.profile-info p {
    text-align: left;
    margin: 0;
}

.profile-info p {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f7;
    font-size: 16px;
}

.profile-info p:last-child {
    border-bottom: none;
}

.profile-info strong {
    width: 80px;
    color: #5b6f82;
    font-weight: 500;
    font-size: 14px;
}

.profile-info span {
    color: #001a34;
    font-weight: 500;
}
.btn-edit{
    margin-top: 60px;
}

/*Страница товара  */
.product-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 0 !important;
    border: 1px solid #e9eaec;
    overflow: hidden;
}

.product-page-image {
    width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 1/1;
    border-radius: 0 !important;
    overflow: hidden;
    background: #f8f9fa;
}

.product-page-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.product-page-info {
    padding: 0 20px 20px 20px;
}
.modal-content {
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7b8c9e;
}
.modal-close:hover {
    color: #001a34;
}
.dark-theme .modal-close {
    color: #aaaaaa;
}
.dark-theme .modal-close:hover {
    color: #ffffff;
}

.product-page-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: #001a34;
}

.product-page-price {
    font-size: 28px;
    font-weight: 700;
    color: #001a34;
    margin-bottom: 20px;
}

.product-page-price small {
    font-size: 16px;
    font-weight: 400;
    color: #7b8c9e;
}

.product-page-description {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e9eaec;
}

.product-page-description h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #5b6f82;
}

.product-page-description p {
    line-height: 1.6;
    color: #001a34;
}

.product-page-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.quantity-selector-large {
    height: 48px;
}

.quantity-selector-large .qty-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
}

.quantity-selector-large .qty-value {
    font-size: 18px;
} 
/* Слайдер*/
.slider-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #001a34;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.slider-btn:hover {
    background: white;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.15s;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}
/* Рейтинг */
.product-rating {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: #e0e0e0;
    font-size: 18px;
}

.star.filled {
    color: #ffa500;
}

.rating-value {
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
    color: #001a34;
}

.rating-count {
    color: #8c9aa8;
    font-size: 14px;
    margin-left: 6px;
}

/* Форма отзыва */
.review-form {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.review-form h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #001a34;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    width: fit-content;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffa500;
}

.rating-input input:checked ~ label {
    color: #ffa500;
}
.review-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}

.review-form .btn {
    margin-top: 15px;
}

/* Список отзывов */
.reviews-list {
    margin-top: 30px;
}

.reviews-list h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #001a34;
}

.review-item {
    padding: 18px 0;
    border-bottom: 1px solid #edf0f3;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    color: #001a34;
    margin-right: 15px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 14px;
}

.review-date {
    color: #8c9aa8;
    font-size: 13px;
    margin-left: auto;
}

.review-comment {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.promo-form {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    max-width: 400px;
}

.promo-form input {
    flex: 1;
    padding: 14px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    min-width: 0;
}

.promo-form .btn {
    width: auto;
    padding: 14px 20px;
    flex-shrink: 0;
}
.promo-applied {
    background: #e6f7e6;
    padding: 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
}

.promo-applied a {
    color: #ff3b30;
    text-decoration: none;
}

/* Доставка*/
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input {
    width: auto;
}

#delivery-fields select {
    width: 100%;
    padding: 14px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}
#payment-form input {
    text-transform: uppercase;
}
@media (max-width: 360px) {
    .container {
        padding: 13px 6px !important;
    }
}
    
    .products-grid {
        gap: 4px;
    }
    
    .product-card {
        padding: 6px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .header-cart {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
}
@media (max-width: 600px) {
    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
    }
    
    .admin-table thead {
        display: none;
    }
    
    .admin-table tr {
        margin-bottom: 16px;
        border: 1px solid #e9eaec;
        border-radius: 12px;
        padding: 12px;
        background: white;
    }
    
    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        white-space: normal;
    }
    
    .admin-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #5b6f82;
        margin-right: 16px;
    }
}
.mobile-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e9eaec;
}

.mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f7;
}

.mobile-row:last-child {
    border-bottom: none;
}

.mobile-label {
    font-weight: 600;
    color: #5b6f82;
    font-size: 13px;
}
.mobile-row .btn-danger {
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
    display: inline-block;
}
.mobile-row .table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mobile-row .table-actions .btn,
.mobile-row .table-actions .btn-success,
.mobile-row .table-actions .btn-danger {
    padding: 8px 10px;
    font-size: 11px;
    width: auto;
    flex: 0 0 auto;
}

.mobile-row .table-actions form {
    margin: 0;
}
.btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    text-align: center;
}

form {
    position: relative;
    z-index: 5;
}

.form-card {
    overflow: visible;
}
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e9eaec;
}

.price-fields {
    display: flex;
    gap: 8px;
}

.price-fields input {
    flex: 1;
    padding: 14px 12px ;
    border: 1px solid #d9dde3 ;
    border-radius: 8px ;
    font-size: 16px ;
    background: white ;
    width: 100%;
}
.price-actions {
    display: flex;
    gap: 8px;
}

.price-actions .btn,
.price-actions .btn-outline {
    flex: 1;
    padding: 14px 12px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
}

.price-filter select {
    width: 100%;
    padding: 14px 12px ;
    border: 1px solid #d9dde3 ;
    border-radius: 8px ;
    font-size: 16px ;
    background: white ;
    -webkit-appearance: none ;
    appearance: none ;
}
.form-group input {
    padding: 14px 16px ;
    border: 1px solid #d9dde3 ;
    border-radius: 8px ;
    font-size: 15px ;
}
@media (max-width: 480px) {
    .price-filter {
        flex-direction: column;
    }
    
    .price-filter input {
        width: 100% !important;
    }
    
    .price-filter .btn,
    .price-filter .btn-outline {
        width: 100% !important;
        margin-top: 4px;
    }
}
.mobile-label2 {
    color: #001a34;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.15s;
}

.mobile-label2:hover {
    color: #005bff;
    text-decoration: underline !important;
}
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0088cc;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,136,204,0.3);
    z-index: 1000;
    transition: transform 0.15s;
}

.chat-widget svg {
    width: 32px;
    height: 32px;
}
.chat-widget:hover {
    transform: scale(1.1);
}
.site-footer {
    background: #005bff;
    padding: 20px 0;
    margin-top: 40px;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    transition: background 0.15s, transform 0.15s;
}

.social-icon:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}
.form-card h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #001a34;
}

.form-card h2 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: #001a34;
    border-bottom: 1px solid #e9eaec;
    padding-bottom: 8px;
}

.form-card p {
    line-height: 1.7;
    color: #3a4a5a;
    margin-bottom: 12px;
}

.form-card a {
    color: white;
    text-decoration: none;
}

.form-card a:hover {
    text-decoration: none;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #e9eaec;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7b8c9e;
    font-size: 12px;
    gap: 4px;
}

.nav-item.active {
    color: #005bff;
}

body {
    padding-bottom: 70px;
}




/* Главная страница */
.hero-image {
    margin: 16px 0 20px;
}

.hero-btn {
    display: block;
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.honest-banner {
    background: #f0f7ff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    cursor: pointer;
}

.honest-text {
    display: flex;
    flex-direction: column;
}

.honest-title {
    font-weight: 700;
    font-size: 20px;
    color: #001a34;
}

.honest-subtitle {
    color: #3d8cff;
    font-weight: 600;
    margin-top: 4px;
}

.honest-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.quick-actions {
    margin: 32px 0 20px;
}

.quick-actions h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #001a34;
    text-align: center;
}

.quick-grid.one-line {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.quick-grid.one-line .quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #001a34;
    font-weight: 500;
    font-size: 13px;
    gap: 8px;
    background: white;
    border-radius: 16px;
    padding: 16px 12px;
    border: 1px solid #e9eaec;
    flex: 1;
    max-width: 110px;
}
@media (min-width: 768px) {
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
    
    .container {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .quick-grid.one-line {
        max-width: 480px;
        margin: 0 auto;
    }
}
/* Нижняя навигация */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #e9eaec;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7b8c9e;
    font-size: 11px;
    gap: 4px;
}

.nav-item.active {
    color: #3d8cff;
}

body {
    padding-bottom: 75px;
}

/* Компьютер — ограничить ширину навигации */
@media (min-width: 480px) {
    .bottom-nav {
        max-width: 480px;
        height: 65px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
        padding: 6px 12px 10px; 
        bottom: 20px;
    }
}
.header .container {
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 40px;
    padding: 4px 12px;
    width: 100%;
    box-sizing: border-box;
}

.header-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 10px 0;
    min-width: 0;
}
.search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.cancel-link {
    color: black;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 44px;
}
.header-search svg {
    flex-shrink: 0;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}

.catalog-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #001a34;
}

.filter-btn {
    background: white;
    border: 1px solid #e9eaec;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 10px 18px;
    background: white;
    border-radius: 40px;
    text-decoration: none;
    color: #001a34;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e9eaec;
    white-space: nowrap;
}

.category-pill.active {
    background: #005bff;
    color: white;
    border-color: #005bff;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7b8c9e;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #001a34;
}

.filter-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #e9eaec;
    border-radius: 12px;
    font-size: 15px;
    background: white;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.filter-actions .btn {
    flex: 1;
}

@media (min-width: 768px) {
    .modal-content {
        left: 25%;
        transform: translateX(-50%);
        border-radius: 20px;
        bottom: 50%;
        transform: translate(-50%, 50%);
    }
}
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: thin;
}

.category-scroll::-webkit-scrollbar {
    height: 4px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: #d9dde3;
    border-radius: 4px;
}
.favorite-btn {
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #ccc;
    stroke: #ccc;
    fill: none;
}

.favorite-btn.active {
    color: #ff3b30;
    stroke: #ff3b30;
    fill: #ff3b30;
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 20px;
}

.favorites-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #001a34;
    margin: 0 auto 0 0;
}

.edit-btn {
    color: #005bff;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f3f7;
}

.favorite-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #005bff;
}

.favorite-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: #001a34;
}

.favorite-price {
    font-weight: 700;
    color: #001a34;
}

.favorite-price small {
    font-weight: 400;
    color: #7b8c9e;
    font-size: 13px;
}

.favorite-remove {
    color: #ff3b30;
    text-decoration: none;
    font-size: 20px;
    padding: 8px;
}

.favorites-footer {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 8px 16px;
    border-top: 1px solid #e9eaec;
    border-radius: 20px;
}
.favorites-total {
    font-weight: 700;
    font-size: 20px;
    color: #001a34;
    margin-bottom: 15px;
}
@media (min-width: 768px) {
    .favorites-footer {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.edit-actions {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    border-top: 1px solid #e9eaec;
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.edit-actions .btn {
    flex: 1;
}

.favorites-footer .btn-primary {
    width: auto;
    padding: 14px 24px;
    flex-shrink: 0;
    
}

.favorite-unit {
    font-size: 12px;
    color: #7b8c9e;
    margin-top: 2px;
}
.edit-btn svg {
    width: 24px;
    height: 24px;
}
.edit-bar {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #e9eaec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    z-index: 100;
    box-sizing: border-box;
}

.edit-bar-left {
    display: flex;
    align-items: center;
}

.edit-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.edit-close,
.edit-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.edit-close svg {
    width: 35px;
    height: 33px;
    stroke: #005bff;
}

.edit-delete svg {
    width: 24px;
    height: 24px;
    stroke: #ff3b30;
}
/* Выделение выбранного товара */
.cart-item {
    transition: background-color 0.2s ease, border-left 0.2s ease;
}

.cart-item.selected {
    background-color: rgba(0, 91, 255, 0.05);
    border-left: 3px solid #005bff;
}
.edit-cart {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #005bff;
    border: none;
    cursor: pointer;
    border-radius: 12px;
}

.edit-cart svg {
    width: 24px;
    height: 24px;
    stroke: #005bff;
}

.edit-total {
    font-size: 16px;
    font-weight: 700;
    color: #005bff;
}

.dark-theme .edit-bar {
    background: #1e1e1e;
    border-top-color: #333;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid #e9eaec;
    transition: background-color 0.2s ease, border-left 0.2s ease;
    cursor: pointer;
}

.dark-theme .favorite-item {
    background: #1e1e1e;
    border-color: #333;
}

.favorite-item .quantity-selector {
    cursor: default;
}

.favorite-item .qty-btn {
    cursor: pointer;
}

.favorite-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #005bff;
}

.edit-select-all {
    background: none;
    border: none;
    color: #005bff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
}

@media (max-width: 560px) {
    .edit-close,
    .edit-delete,
    .edit-cart {
        width: 48px;
        height: 48px;
    }
}
.edit-total {
    margin-left: auto;
    font-weight: 700;
    font-size: 18px;
    color: #001a34;
}

.edit-cart {
    background: none;
    border: none;
    color: #005bff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.dark-theme .edit-close svg {
    stroke: #005bff;
}

.dark-theme .edit-delete svg {
    stroke: #ff6b6b;
}
@media (min-width: 768px) {
    .edit-bar {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0px;
        border-radius: 20px;
        height: 52px;
    }
}
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #00a650;
    color: white;
    padding: 14px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    width: fit-content;
    text-align: center;
}

.toast-message.show {
    opacity: 1;
    display: block;
}
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}

.cart-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #001a34;
}

.cart-header-actions {
    display: flex;
    gap: 16px;
}

.cart-edit {
    color: #005bff;
    text-decoration: none;
}

.cart-clear {
    color: #ff3b30;
    text-decoration: none;
}

.promo-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.promo-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    height: 48px;
    box-sizing: border-box;
    min-width: 0;
}

.promo-form .btn {
    width: auto;
    padding: 0 24px;
    height: 52px;
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
}

.promo-applied {
    background: #e6f7e6;
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
}

.cart-list {
    margin: 20px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 5px;
    border-bottom: 1px solid #f0f3f7;
}

.cart-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #005bff;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #7b8c9e;
    font-size: 14px;
}

.cart-item-total {
    font-weight: 700;
    font-size: 18px;
    color: #001a34;
     order: 3;
    min-width: 80px;
    text-align: right;
}
.cart-item a[style*="flex: 1"] {
    order: 1;
    flex: 1;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.cart-footer {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #e9eaec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
}

.cart-footer .btn {
    width: auto;
    padding: 12px 24px;
}
.cart-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-footer-label {
    color: #7b8c9e;
    font-size: 16px;
}

.cart-footer-total {
    font-weight: 700;
    font-size: 20px;
    color: #001a34;
}

.cart-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}


@media (min-width: 768px) {
    .cart-footer {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px;
    }
}
.forgot-link {
    color: #005bff !important;
    text-decoration: none;
    font-size: 14px;
}

.register-text {
    text-align: center;
    margin-top: 20px;
    color: #5b6f82;
    font-size: 14px;
}

.register-link {
    color: #005bff !important;
    text-decoration: none;
    font-weight: 600;
}

.social-login {
    margin-top: 24px;
    text-align: center;
}

.social-login p {
    color: #7b8c9e;
    font-size: 14px;
    margin-bottom: 16px;
}

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}
.social-btn png {
    width: 20px;
    height: 20px;
}
.social-btn.google {
    color: #4285F4;
}

.social-btn.telegram {
    color: #0088cc;
    
}
.header-login {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-left: 12px;
    white-space: nowrap;
}
.favorites-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}


.cart-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-label {
    color: #7b8c9e;
    font-size: 14px;
    margin-bottom: 2px;
}

.profile-guest {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.profile-guest h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #001a34;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
}

.profile-avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    background: #005bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}
.profile-avatar-img {
    width: 100px;
    height: 100px;
}
.profile-info h2 {
    font-size: 18px;
    margin-bottom: 4px;
}
.profile-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.profile-info {
    text-align: left !important;
        margin-bottom: -10px;
}

.profile-info h2,
.profile-info p {
    text-align: left !important;
    margin: 0 !important;
}

.profile-info h2 {
    margin-bottom: 4px !important;
}

.profile-info p {
    margin-top: 0 !important;
}
.profile-info p {
    color: #7b8c9e;
    font-size: 14px;
}

.profile-menu {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: #001a34 !important;
    border-bottom: 1px solid #f0f3f7;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item span:last-child {
    margin-left: auto;
    color: #c0c8d0;
    font-size: 20px;
}
.profile-menu-item:hover {
    background: #f5f7fa !important;
}

.profile-menu-item:hover span:first-child {
    color: #005bff;
}


.dark-theme .profile-menu-item:hover {
    background: #2a2a2a;
}

.profile-menu-item:hover span:first-child {
    color: #005bff !important;
}

.dark-theme .profile-menu-item:hover span:first-child {
    color: #3d8cff !important;
}

.dark-theme .profile-menu-item:hover {
    background: #2a2a2a !important;
}


.dark-theme .profile-menu-item:hover span:first-child {
    color: #3d8cff !important;
}
.contacts-card {
    background: white;
    border-radius: 20px;
    padding: 8px 0;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f3f7;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 13px;
    color: #7b8c9e;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    font-weight: 500;
    color: #001a34;
    text-decoration: none;
}

.contacts-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.contacts-social .social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.contacts-social .social-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #005bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e9eaec;
    cursor: pointer;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-number {
    font-weight: 600;
    color: #001a34;
}

.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.status-new {
    background: #fff3d9;
    color: #cc7a00;
}

.order-status.status-completed {
    background: #e6f7e6;
    color: #00a650;
}

.order-info {
    display: flex;
    justify-content: space-between;
    color: #5b6f82;
    font-size: 14px;
}

.order-total {
    font-weight: 700;
    color: #001a34;
}
.order-detail {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #005bff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}
.back-link span {
    display: none;
}

@media (min-width: 768px) {
    .back-link span {
        display: inline;
    }
}
.about-card {
    background: white;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
}

.about-logo {
    font-size: 64px;
    margin-bottom: 16px;
}

.about-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #001a34;
    margin-bottom: 8px;
}

.about-subtitle {
    color: #5b6f82;
    font-size: 16px;
    margin-bottom: 32px;
}

.about-features {
    text-align: left;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f3f7;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 28px;
    width: 48px;
    text-align: center;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #001a34;
}

.feature-item p {
    color: #5b6f82;
    font-size: 14px;
}

.about-steps {
    text-align: left;
    margin: 24px 0;
}

.about-steps h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #001a34;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-num {
    width: 36px;
    height: 36px;
    background: #005bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.about-version {
    margin-top: 32px;
    color: #a0abb8;
    font-size: 14px;
}

.install-guide {
    text-align: left;
    margin: 20px 0;
}

.guide-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 12px;
}



.guide-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.guide-item p {
    color: #5b6f82;
    font-size: 14px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f3f7;
    
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 14px;
    color: #005bff;
}
.contacts-social {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.contacts-social .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contacts-social .social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(0.9);
}

.contacts-social .social-btn img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.contacts-social .social-btn.email img,
.contacts-social .social-btn.phone img {
    width: 40px;
    height: 40px;
}
.install-modal-content {
    text-align: center;
    padding: 20px 0;
}

.install-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.install-actions .btn {
    flex: 1;
}
.install-guide-modal {
    text-align: left;
    margin: 10px 0;
}

.guide-item-modal {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
}

.guide-item-modal h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.guide-item-modal p {
    font-size: 13px;
    color: #5b6f82;
}
.app-features-vertical {
    text-align: left;
    margin: 20px 0;
}

.feature-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 12px;
}

.feature-row h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #001a34;
    text-align: left;
}

.feature-row p {
    font-size: 14px;
    color: #5b6f82;
}
h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #001a34 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}
.address-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e9eaec;
    position: relative;
}

.address-card.default {
    border-color: #005bff;
}

.address-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #005bff;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.address-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    padding-right: 80px;
}

.address-details {
    color: #5b6f82;
    margin-bottom: 16px;
}

.address-actions {
    display: flex;
    gap: 20px;
}

.address-actions a {
    color: #7b8c9e;
    text-decoration: none;
    font-size: 20px;
}
#savedAddress {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    font-family: 'Inter', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%237b8c9e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.profile-guest .btn {
    width: 100% !important;
    display: block;
    text-align: center;
}
.settings-menu {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.settings-section {
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f7;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    padding: 12px 20px;
    font-size: 14px;
    color: #c0c8d0 !important;
    font-weight: 500;
    text-transform: uppercase;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: #001a34;
    cursor: pointer;
}

.settings-item.danger {
    color: #ff3b30;
}

.settings-value {
    color: #c0c8d0;
}

.settings-logout {
    display: block;
    padding: 16px 20px;
    color: #ff3b30;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--dark-border, #f0f3f7);
}

.settings-logout:last-child {
    border-bottom: none;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #005bff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}
.language-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
}

.language-item .check {
    color: #005bff;
    display: none;
}

.language-item.active .check {
    display: block;
}
/* Переключатель */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #005bff;
}

input:checked + .slider:before {
    transform: translateX(24px);
}
/* Тёмная тема — полная */

body.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

body.dark-theme .header {
    background: #121212;
}

body.dark-theme .header-search {
    background: #2a2a2a !important;
    border-color: #3a3a3a;
}

body.dark-theme .header-search input {
    color: #fff !important;
    background: transparent !important;
}

body.dark-theme .header-search input::placeholder {
    color: #999 !important;
}

body.dark-theme .header-search svg {
    stroke: #999;
}

body.dark-theme .header-login {
    color: #fff;
}

body.dark-theme .product-card,
body.dark-theme .form-card,
body.dark-theme .profile-menu,
body.dark-theme .profile-guest,
body.dark-theme .profile-header,
body.dark-theme .bottom-nav,
body.dark-theme .cart-item,
body.dark-theme .empty-state,
body.dark-theme .contacts-card,
body.dark-theme .about-card,
body.dark-theme .address-card,
body.dark-theme .order-card,
body.dark-theme .modal-content,
body.dark-theme .settings-menu,
body.dark-theme .category-link,
body.dark-theme .category-pill,
body.dark-theme .price-filter,
body.dark-theme .promo-form input,
body.dark-theme .honest-banner {
    background: #1e1e1e !important;
    border-color: #333 !important;
    
}

body.dark-theme .product-name,
body.dark-theme .product-price,
body.dark-theme h1, h2, h3, h4, h5, h6,
body.dark-theme p,
body.dark-theme .cart-item-name,
body.dark-theme .cart-footer-label,
body.dark-theme .cart-footer-total,
body.dark-theme .profile-menu-item,
body.dark-theme .contact-value,
body.dark-theme .order-number,
body.dark-theme .info-value,
body.dark-theme .favorite-name,
body.dark-theme .favorite-price,
body.dark-theme .favorites-total,
body.dark-theme .address-name,
body.dark-theme .settings-item,
body.dark-theme .category-link,
body.dark-theme .category-pill,
body.dark-theme .honest-title,
body.dark-theme .feature-row h4,
body.dark-theme .about-card h1,
body.dark-theme .profile-info h2,
body.dark-theme .catalog-header h1,
body.dark-theme .cart-header h1,
body.dark-theme .favorites-header h1 {
    color: #ffffff !important;
}

body.dark-theme .product-price small,
body.dark-theme .cart-item-price,
body.dark-theme .category-tag,
body.dark-theme .favorite-unit,
body.dark-theme .contact-label,
body.dark-theme .address-details,
body.dark-theme .info-label,
body.dark-theme .order-info,
body.dark-theme .feature-row p,
body.dark-theme .about-subtitle,
body.dark-theme .guide-item p,
body.dark-theme .profile-info p {
    color: #aaaaaa !important;
}

body.dark-theme .btn {
    background: #3d8cff;
    color: #fff;
}

body.dark-theme .btn-outline {
    background: transparent;
    color: #3d8cff;
    border-color: #3d8cff;
}

body.dark-theme .btn-outline:hover {
    background: rgba(61, 140, 255, 0.1);
}

body.dark-theme .quantity-selector {
    background: #2a2a2a;
}

body.dark-theme .qty-btn {
    background: #1e1e1e;
    color: #3d8cff;
}

body.dark-theme .qty-value {
    color: #fff;
}

body.dark-theme .favorite-btn {
    background: #1e1e1e;
    color: #888;
    stroke: #888;
}

body.dark-theme .favorite-btn.active {
    color: #ff4d4d;
    stroke: #ff4d4d;
    fill: #ff4d4d;
}

body.dark-theme .modal {
    background: rgba(0,0,0,0.8);
}

body.dark-theme .modal-content {
    left: 29%;
    background: #1e1e1e;
}

body.dark-theme .modal-close {
    color: #aaa;
}

body.dark-theme .alert-success {
    background: #1a3a2a;
    color: #7ddf9c;
    border-color: #2a5a3a;
}

body.dark-theme .alert-error {
    background: #3a1a1a;
    color: #ff7d7d;
    border-color: #5a2a2a;
}

body.dark-theme .promo-applied {
    background: #1a3a2a;
    color: #7ddf9c;
}

body.dark-theme .promo-applied a {
    color: #ff7d7d;
}

body.dark-theme .status-new {
    background: #3a2a1a;
    color: #ffb86c;
}

body.dark-theme .status-completed {
    background: #1a3a2a;
    color: #7ddf9c;
}

body.dark-theme .footer-social .social-icon,
body.dark-theme .contacts-social .social-btn {
    background: #2a2a2a;
}

body.dark-theme .guide-item,
body.dark-theme .guide-item-modal,
body.dark-theme .feature-row,
body.dark-theme .language-item {
    background: #2a2a2a !important;
}

body.dark-theme .slider {
    background-color: #555;
}

body.dark-theme input:checked + .slider {
    background-color: #3d8cff;
}

body.dark-theme input, 
body.dark-theme select, 
body.dark-theme textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #888;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    border-color: #3d8cff;
}

body.dark-theme .cart-item,
body.dark-theme .favorite-item,
body.dark-theme .contact-item,
body.dark-theme .profile-menu-item {
    border-bottom-color: #333 !important;
}

body.dark-theme .site-footer {
    background: #1a1a1a;
}

body.dark-theme .chat-widget {
    background: #3d8cff;
}

body.dark-theme .star {
    color: #555;
}

body.dark-theme .star.filled {
    color: #ffb86c;
}

body.dark-theme .dot {
    background: rgba(255,255,255,0.3);
}

body.dark-theme .dot.active {
    background: #fff;
}

body.dark-theme .slider-btn {
    background: rgba(30,30,30,0.8);
    color: #fff;
}

body.dark-theme .slider-btn:hover {
    background: #1e1e1e;
}

body.dark-theme .review-form {
    background: #2a2a2a;
}

body.dark-theme .rating-input label {
    color: #555;
}

body.dark-theme .rating-input label:hover,
body.dark-theme .rating-input label:hover ~ label,
body.dark-theme .rating-input input:checked ~ label {
    color: #ffb86c;
}
body.dark-theme .cart-footer {
    margin-bottom: 30px;
    background: #1e1e1e !important;
    border-top-color: #333 !important;
}

body.dark-theme .cart-footer .cart-footer-label {
    color: #aaaaaa !important;
}

body.dark-theme .cart-footer .cart-footer-total {
    color: #ffffff !important;
    font-weight: 700;
}

body.dark-theme .cart-footer .btn-primary {
    background: #3d8cff !important;
    color: #fff !important;
}
body.dark-theme .order-summary {
    background: #2a2a2a !important;
}

body.dark-theme .summary-row {
    color: #cccccc !important;
}

body.dark-theme .summary-total {
    color: #ffffff !important;
    border-top-color: #444 !important;
}

body.dark-theme .delivery-options label {
    color: #ffffff !important;
}

body.dark-theme #delivery-fields select,
body.dark-theme #delivery-fields input {
    background: #2a2a2a;
    color: #fff;
    border-color: #444;
}
body.dark-theme .form-group label {
    color: #cccccc !important;
}

body.dark-theme .radio-label {
    color: #ffffff !important;
}
body.dark-theme .success-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-theme .success-card h1 {
    color: #ffffff !important;
}

body.dark-theme .order-number {
    background: #2a2a2a !important;
    color: #cccccc !important;
}

body.dark-theme .order-number strong {
    color: #3d8cff !important;
}

body.dark-theme .pickup-info {
    background: #2a2a2a !important;
    border-left-color: #ffb800 !important;
}

body.dark-theme .pickup-info h3 {
    color: #ffb86c !important;
}

body.dark-theme .pickup-info p {
    color: #cccccc !important;
}

body.dark-theme .pickup-info p strong {
    color: #ffffff !important;
}
body.dark-theme .favorites-footer {
    margin-bottom: 30px;
    background: #1e1e1e !important;
    border-top-color: #333 !important;
}

body.dark-theme .favorites-footer .total-label {
    color: #aaaaaa !important;
}

body.dark-theme .favorites-footer .cart-footer-total,
body.dark-theme .favorites-footer #favoritesTotal {
    color: #ffffff !important;
}

body.dark-theme .favorites-footer .btn-primary {
    background: #3d8cff !important;
    color: #fff !important;
}
body.dark-theme .edit-bar { 
    margin-bottom: 20px;
    background: #1e1e1e !important;
    border-top-color: #333 !important;
}

body.dark-theme .edit-close {
    color: #3d8cff !important;
}

body.dark-theme .edit-delete {
    color: #ff4d4d !important;
}

body.dark-theme .edit-total {
    color: #ffffff !important;
}

body.dark-theme .edit-cart {
    color: #3d8cff !important;
}
body.dark-theme .cart-item-total {
    color: #ffffff !important;
}
body:not(.dark-theme) h1 ,
body:not(.dark-theme) h2,
body:not(.dark-theme) h3,
body:not(.dark-theme) h4 {
    color: #001a34!important;
}


.settings-item span:first-child {
    color: #001a34;
    font-weight: 500;
}

.settings-value {
    color: #c0c8d0 !important;
}

.settings-item.danger span:first-child {
    color: #ff3b30 !important;
}

.settings-logout {
    color: #ff3b30 !important;
}
.settings-section h3 {
    padding: 12px 20px;
    font-size: 14px;
    color: #7b8c9e !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body.dark-theme .settings-item span:first-child {
    color: #ffffff !important;
}

body.dark-theme .settings-value {
    color: #aaaaaa !important;
}

body.dark-theme .settings-item.danger span:first-child {
    color: #ff4d4d !important;
}
.support-contacts {
    margin-bottom: 32px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e9eaec;
}

.support-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.support-info h3 {
    font-size: 14px;
    color: #7b8c9e;
    margin-bottom: 4px;
    font-weight: 500;
}

.support-value {
    font-size: 18px;
    font-weight: 600;
    color: #001a34;
    text-decoration: none;
}

.support-value:hover {
    color: #005bff;
}

.support-info p {
    font-size: 12px;
    color: #7b8c9e;
    margin-top: 4px;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e9eaec;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px;
    font-weight: 600;
    background: #f8f9fa;
    cursor: pointer;
    color: #001a34;
    position: relative;
}

.faq-question:after {
    content: "▼";
    position: absolute;
    right: 16px;
    font-size: 12px;
    transition: transform 0.2s;
}

.faq-question.open:after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #5b6f82;
    line-height: 1.5;
}

.faq-answer.show {
    padding: 0 16px 16px;
    max-height: 200px;
}

.support-form select,
.support-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: white;
}

.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: #005bff;
    box-shadow: 0 0 0 3px rgba(0,91,255,0.1);
}

.support-note {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 13px;
    color: #5b6f82;
}

.support-note p {
    margin-bottom: 8px;
}

.support-note p:last-child {
    margin-bottom: 0;
}

.dark-theme .support-item {
    border-bottom-color: var(--dark-border);
}

.dark-theme .support-icon {
    background: rgba(0, 91, 255, 0.15);
}

.dark-theme .support-value {
    color: var(--dark-text-primary);
}

.dark-theme .faq-item {
    border-color: var(--dark-border);
}

.dark-theme .faq-question {
    background: var(--dark-bg-elevated);
    color: var(--dark-text-primary);
}

.dark-theme .faq-answer {
    color: var(--dark-text-secondary);
}

.dark-theme .support-form select,
.dark-theme .support-form textarea {
    background: var(--dark-bg-elevated);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
}

.dark-theme .support-note {
    background: var(--dark-bg-elevated);
    color: var(--dark-text-secondary);
}
.support-contacts {
    margin-bottom: 32px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e9eaec;
}

.support-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.support-info h3 {
    font-size: 14px;
    color: #7b8c9e;
    margin-bottom: 4px;
    font-weight: 500;
}

.support-value {
    font-size: 18px;
    font-weight: 600;
    color: #001a34;
    text-decoration: none;
}

.support-value:hover {
    color: #005bff;
}

.support-info p {
    font-size: 12px;
    color: #7b8c9e;
    margin-top: 4px;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e9eaec;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px;
    font-weight: 600;
    background: #f8f9fa;
    cursor: pointer;
    color: #001a34;
    position: relative;
}

.faq-question:after {
    content: "▼";
    position: absolute;
    right: 16px;
    font-size: 12px;
    transition: transform 0.2s;
}

.faq-question.open:after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #5b6f82;
    line-height: 1.5;
}

.faq-answer.show {
    padding: 0 16px 16px;
    max-height: 200px;
}

.support-form select,
.support-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: white;
}

.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: #005bff;
    box-shadow: 0 0 0 3px rgba(0,91,255,0.1);
}

.support-note {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 13px;
    color: #5b6f82;
}

.support-note p {
    margin-bottom: 8px;
}

.support-note p:last-child {
    margin-bottom: 0;
}

.dark-theme .support-item {
    border-bottom-color: var(--dark-border);
}

.dark-theme .support-icon {
    background: rgba(0, 91, 255, 0.15);
}

.dark-theme .support-value {
    color: var(--dark-text-primary);
}

.dark-theme .faq-item {
    border-color: var(--dark-border);
}

.dark-theme .faq-question {
    background: var(--dark-bg-elevated);
    color: var(--dark-text-primary);
}

.dark-theme .faq-answer {
    color: var(--dark-text-secondary);
}

.dark-theme .support-form select,
.dark-theme .support-form textarea {
    background: var(--dark-bg-elevated);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
}

.dark-theme .support-note {
    background: var(--dark-bg-elevated);
    color: var(--dark-text-secondary);
}
.dark-theme .form-group input[readonly] {
    background: var(--dark-bg-elevated) !important;
    color: var(--dark-text-secondary);
    border-color: var(--dark-border);
}
.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #005bff;
    background: #f0f3f7;
}
.profile-header {
    position: relative;
}

.profile-edit-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #005bff;
    text-decoration: none;
}
/* Стили для загрузки аватарки */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #005bff;
    background: #f0f3f7;
}

.avatar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #f0f3f7;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #005bff;
    transition: all 0.15s;
    vertical-align: middle;
    line-height: 1;
}

.avatar-label svg {
    width: 18px;
    height: 18px;
    display: block;
}

#avatarInput {
    display: none;
}

.avatar-hint {
    font-size: 12px;
    color: #7b8c9e;
}

/* Тёмная тема */
.dark-theme .avatar-preview {
    border-color: #3d8cff;
    background: #2a2a2a;
}

.dark-theme .avatar-label {
    background: #2a2a2a;
    color: #3d8cff;
}

.dark-theme .avatar-label:hover {
    background: #353535;
}
.dark-theme select {
    background: #2a2a2a;
    color: #e8e8e8;
    border-color: #3a3a3a;
}

.dark-theme select option {
    background: #2a2a2a;
    color: #e8e8e8;
}

.dark-theme select:focus {
    outline: none;
    border-color: #3d8cff;
    box-shadow: 0 0 0 3px rgba(61, 140, 255, 0.2);
}
.dark-theme .form-group input,
.dark-theme .form-group input[type="email"],
.dark-theme .form-group input[type="text"],
.dark-theme .form-group input[type="tel"],
.dark-theme .form-group input[type="password"],
.dark-theme .form-group select,
.dark-theme .form-group textarea {
    background: #2a2a2a !important;
    color: #e8e8e8 !important;
    border-color: #3a3a3a !important;
}

.dark-theme .form-group input::placeholder,
.dark-theme .form-group textarea::placeholder {
    color: #888 !important;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus,
.dark-theme .form-group textarea:focus {
    border-color: #3d8cff !important;
    outline: none;
}
/* Тёмная тема для страницы товара */
.dark-theme .product-page {
    background: #1e1e1e;
    border-color: #333;
}

.dark-theme .product-page-info h1 {
    color: #ffffff;
}

.dark-theme .product-page-price {
    color: #ffffff;
}

.dark-theme .product-page-price small {
    color: #aaaaaa;
}

.dark-theme .product-page-description {
    border-top-color: #333;
}

.dark-theme .product-page-description h3 {
    color: #aaaaaa;
}

.dark-theme .product-page-description p {
    color: #cccccc;
}

/* Рейтинг */
.dark-theme .rating-stars .star {
    color: #555;
}

.dark-theme .rating-stars .star.filled {
    color: #ffa500;
}

.dark-theme .rating-value {
    color: #ffffff;
}

.dark-theme .rating-count {
    color: #aaaaaa;
}

/* Форма отзыва */
.dark-theme .review-form {
    background: #2a2a2a;
}

.dark-theme .review-form h3 {
    color: #ffffff;
}

.dark-theme .review-form label {
    color: #cccccc;
}

/* Звезды в форме */
.dark-theme .rating-input label {
    color: #555 !important;
}

.dark-theme .rating-input label:hover,
.dark-theme .rating-input label:hover ~ label {
    color: #ffa500 !important;
}

.dark-theme .rating-input input:checked ~ label {
    color: #ffa500 !important;
}

/* Список отзывов */
.dark-theme .reviews-list h3 {
    color: #ffffff;
}

.dark-theme .review-item {
    border-bottom-color: #333;
}

.dark-theme .review-author {
    color: #ffffff;
}

.dark-theme .review-rating .star {
    color: #555;
}

.dark-theme .review-rating .star.filled {
    color: #ffa500;
}

.dark-theme .review-date {
    color: #888;
}

.dark-theme .review-comment {
    color: #cccccc;
}

/* Кнопки */
.dark-theme .favorite-btn {
    background: #2a2a2a;
    color: #888;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.dark-theme .favorite-btn.active {
    color: #ff4d4d;
}

.dark-theme .quantity-selector {
    background: #2a2a2a;
}

.dark-theme .qty-btn {
    background: #1e1e1e;
    color: #3d8cff;
}

.dark-theme .qty-btn:hover {
    background: #353535;
}

.dark-theme .qty-value {
    color: #ffffff;
}
.dark-theme .cancel-link {
    color: #ffffff;
}

.dark-theme .cancel-link:hover {
    color: #3d8cff;
}
.dark-theme .profile-avatar {
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #3d8cff;
}

.dark-theme .profile-avatar-img {
    border: 2px solid #3d8cff;
}
.dark-theme .profile-avatar {
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #3d8cff;
}

.dark-theme .profile-avatar-img {
    border: 2px solid #3d8cff;
}
.dark-theme .mobile-card {
    background: #1e1e1e;
    border-color: #333;
}

.dark-theme .mobile-row {
    border-bottom-color: #2a2a2a;
}

.dark-theme .mobile-label {
    color: #aaaaaa;
}

.dark-theme .mobile-row strong {
    color: #ffffff;
}

.dark-theme .mobile-row span:last-child {
    color: #cccccc;
}

.dark-theme .btn-danger {
    background: #3a1a1a;
    color: #ff6b60;
    border-color: #ff6b60;
}

.dark-theme .btn-danger:hover {
    background: #4a2020;
}
body.dark-theme .form-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-theme .form-card h2,
body.dark-theme .form-card label {
    color: #ffffff !important;
}

body.dark-theme .form-card input,
body.dark-theme .form-card select,
body.dark-theme .form-card textarea {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #444 !important;
}

body.dark-theme .form-card input::placeholder,
body.dark-theme .form-card textarea::placeholder {
    color: #888 !important;
}

body.dark-theme .form-card select option {
    background: #1e1e1e;
}

body.dark-theme  btn-danger{
    background: #ff3b30 !important;
    color: #fff !important;
}
body.dark-theme .btn {
background: #3d8cff !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.form-group input[type="file"] {
    padding: 10px 0;
    color: #001a34;
}

body.dark-theme .form-group input[type="file"] {
    color: #ffffff !important;
}

body.dark-theme .form-group input[type="file"]::file-selector-button {
    background: #3d8cff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 12px;
}
.dark-theme .order-info-grid {
    background: #2a2a2a;
}

.dark-theme .info-label {
    color: #aaaaaa;
}

.dark-theme .info-value {
    color: #ffffff;
}
.btn-danger {
    background: #ff3b30 !important;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #cc2f26;
}

.dark-theme .btn-danger {
    background: #ff3b30 !important;
    color: white;
}

.dark-theme .btn-danger:hover {
    background: #e02b20;
}
.dark-theme .cart-total {
    background: #1e1e1e;
    border-color: #333;
}

.dark-theme .cart-total span:first-child {
    color: #ffffff;
}

.dark-theme .cart-total span:last-child {
    color: #3d8cff;
}
.order-id {
    color: #005bff !important;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: white;
    border-radius: 20px;
    max-width: 320px;
    width: 90%;
    overflow: hidden;
    text-align: center;
}

.modal-header {
    padding: 24px 20px 0 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #001a34;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 14px;
    color: #5b6f82;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e9eaec;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

.modal-btn-cancel {
    background: #f0f3f7;
    color: #5b6f82;
}

.modal-btn-confirm {
    background: #ff3b30;
    color: white;
}

.dark-theme .modal-dialog {
    background: #1e1e1e;
}

.dark-theme .modal-title {
    color: #ffffff;
}

.dark-theme .modal-message {
    color: #aaaaaa;
}

.dark-theme .modal-actions {
    border-top-color: #333;
}

.dark-theme .modal-btn-cancel {
    background: #2a2a2a;
    color: #aaaaaa;
}
.modal-header {
    display: block !important;
    padding: 24px 20px 0 20px !important;
}

.modal-title {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

.modal-message {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}
/* Глобальный поиск */
.header-search {
    position: relative;
    flex: 1;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #001a34;
    border-bottom: 1px solid #e9eaec;
    cursor: pointer;
}

.search-dropdown-item:hover {
    background: #f5f5f5;
}

.search-dropdown-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.search-dropdown-item .info {
    flex: 1;
}

.search-dropdown-item .name {
    font-weight: 500;
    margin-bottom: 4px;
}

.search-dropdown-item .price {
    color: #005bff;
    font-weight: 700;
}

.search-dropdown-item .type {
    font-size: 11px;
    color: #7b8c9e;
}

.search-dropdown-item mark {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 3px;
}

/* search.php стили */
.search-group {
    margin-bottom: 24px;
}

.search-group h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #005bff;
}

.search-category, .search-page {
    display: block;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #001a34;
    border: 1px solid #e9eaec;
}

.search-category:hover, .search-page:hover {
    background: #f5f5f5;
}

mark {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 3px;
}

/* Тёмная тема */
.dark-theme .search-dropdown {
    background: #1e1e1e;
}

.dark-theme .search-dropdown-item {
    border-bottom-color: #333;
    color: #fff;
}

.dark-theme .search-dropdown-item:hover {
    background: #2a2a2a;
}

.dark-theme .search-dropdown-item mark {
    background: #ffa500;
    color: #1e1e1e;
}

.dark-theme .search-group h3 {
    color: #3d8cff;
}

.dark-theme .search-category,
.dark-theme .search-page {
    background: #1e1e1e;
    border-color: #333;
    color: #fff;
}

.dark-theme .search-category:hover,
.dark-theme .search-page:hover {
    background: #2a2a2a;
}

.dark-theme mark {
    background: #ffa500;
    color: #1e1e1e;
}

.dark-theme .empty-state p {
    color: #aaaaaa;
}
.dark-theme .no-addresses {
    background: #2a2a2a !important;
}
.dark-theme .no-addresses p {
    color: #aaaaaa !important;
}
.dark-theme .category-link.active,
.dark-theme .category-pill.active {
    background: #3d8cff !important;
    color: white !important;
    border-color: #3d8cff !important;
}
.dark-theme .filter-group label {
    color: #ffffff;
    text-align: left;
}

.dark-theme .filter-group select,
.dark-theme .filter-group input {
    background: #2a2a2a;
    color: #e8e8e8;
    border-color: #3a3a3a;
}

.dark-theme .filter-group select option {
    background: #2a2a2a;
    color: #e8e8e8;
}
.dark-theme .contacts-social .social-btn {
    background: transparent !important;
}

.dark-theme .contacts-social .social-btn img {
    filter: brightness(0.9);
}
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #005bff;
    box-shadow: 0 0 0 3px rgba(0,91,255,0.1);
}

.dark-theme .form-group textarea {
    background: #2a2a2a;
    color: #e8e8e8;
    border-color: #3a3a3a;
}

.dark-theme .form-group textarea:focus {
    border-color: #3d8cff;
    box-shadow: 0 0 0 3px rgba(61,140,255,0.2);
}
.status-completed {
    background: #00a650 !important;
    color: white !important;
}
.btn-delete {
    background: #ff3b30;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: background 0.15s;
}

.btn-delete:hover {
    background: #cc2f26;
}

.dark-theme .btn-delete {
    background: #ff3b30;
}

.dark-theme .btn-delete:hover {
    background: #e02b20;
}
.mobile-label2 {
    color: #005bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
}

.mobile-label2:hover {
    color: #003d99;
    text-decoration: underline;
}

.dark-theme .mobile-label2 {
    color: #3d8cff;
}

.dark-theme .mobile-label2:hover {
    color: #5da0ff;
}
.share-product-btn svg {
    stroke: #001a34;
    fill: none;
}

.dark-theme .share-product-btn svg {
    stroke: #ffffff;
}
.favorite-btn,
.share-product-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.favorite-btn:hover,
.share-product-btn:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.8) !important;
}

.favorite-btn svg {
    fill: none;
    stroke: #ffffff;
    transition: all 0.2s;
}

.favorite-btn.active svg {
    fill: #ff3b30;
    stroke: #ff3b30;
}

.share-product-btn svg {
    stroke: #ffffff;
    fill: none;
}

.dark-theme .favorite-btn,
.dark-theme .share-product-btn {
    background: rgba(0, 0, 0, 0.7) !important;
}

.dark-theme .favorite-btn:hover,
.dark-theme .share-product-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}

.dark-theme .favorite-btn svg {
    stroke: #ffffff;
}

.dark-theme .favorite-btn.active svg {
    fill: #ff6b60;
    stroke: #ff6b60;
}

.dark-theme .share-product-btn svg {
    stroke: #ffffff;
}
a.btn[href*="category.php"] {
    width: 100% !important;
    display: block;
    text-align: center;
}
.toast-message.error {
    background: #ff3b30 !important;
    color: white;
}
.cart-item-name,
.favorite-name,
.product-name {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Если нужно ограничить до 2 строк */
.cart-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-scroll {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.dark-theme a[href^="tel:"] {
    color: #3d8cff;
    text-decoration: none;
}

.dark-theme .contact-value {
    color: #3d8cff;
}

.dark-theme .profile-phone {
    color: #3d8cff;
}
.header-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f3f7;
    border-radius: 40px;
    padding: 4px 16px;
    cursor: pointer;
}

.header-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    pointer-events: auto;
}

.header-search input:focus {
    outline: none;
}

/* Тёмная тема */
.dark-theme .header-search {
    background: #2a2a2a;
}

.dark-theme .header-search input {
    color: #fff;
}

.dark-theme .header-search input::placeholder {
    color: #888;
}

.dark-theme .header-search svg {
    stroke: #aaa;
}
.admin-search-dropdown {
    position: fixed;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    width: 100%;
}

.dark-theme .admin-search-dropdown {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
}

.dark-theme .admin-search-item {
    border-bottom-color: #333 !important;
    color: #fff !important;
}

.dark-theme .admin-search-item:hover,
.dark-theme .admin-search-item.selected {
    background: #2a2a2a !important;
}

.dark-theme .admin-search-price {
    color: #3d8cff !important;
}
.admin-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #001a34;
    border-bottom: 1px solid #e9eaec;
    cursor: pointer;
}

.admin-search-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-search-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.admin-search-price {
    color: #005bff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.dark-theme .admin-search-item {
    border-bottom-color: #333;
    color: #fff;
}

.dark-theme .admin-search-price {
    color: #3d8cff;
}
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e9eaec;
    border-radius: 40px;
    font-size: 13px;
    text-decoration: none;
    color: #5b6f82;
    white-space: nowrap;
}

.filter-btn.active {
    background: #005bff;
    color: white;
    border-color: #005bff;
}

.price-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #e9eaec;
    border-radius: 40px;
    font-size: 13px;
    text-align: center;
}

.dark-theme .filter-btn {
    background: #1e1e1e;
    border-color: #333;
    color: #aaa;
}

.dark-theme .filter-btn.active {
    background: #3d8cff;
    color: white;
}

.dark-theme .price-input {
    background: #1e1e1e;
    border-color: #333;
    color: #fff;
}
@media (max-width: 600px) {
    .filter-form {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 20px !important;
        padding: 16px !important;
    }
    .filter-field {
        width: 100% !important;
    }
    .filter-select {
        width: 100% !important;
    }
    .price-range {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .price-range input {
        width: 45% !important;
    }
    .filter-actions {
        display: flex !important;
        gap: 10px !important;
        margin-top: 8px !important;
    }
    .filter-btn-submit, 
    .filter-btn-reset {
        flex: 1 !important;
        text-align: center !important;
    }
}
.filter-form-mobile {
    margin-bottom: 20px;
}
.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.filter-select-mobile {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e9eaec;
    border-radius: 40px;
    font-size: 14px;
    background: white;
    min-width: 0;
}
.filter-input-mobile {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e9eaec;
    border-radius: 12px;
    font-size: 14px;
    background: white;
}
.price-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.price-row span {
    color: #7b8c9e;
}
.filter-buttons {
    display: flex;
    gap: 10px;
}
.filter-btn-apply {
    flex: 1;
    padding: 12px;
    background: #005bff;
    color: white;
    border: none;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.filter-btn-reset-mobile {
    flex: 1 !important;
    padding: 12px !important;
    background: #ff3b30  !important;
    border: 1px solid red !important;
    border-radius: 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.dark-theme .filter-select-mobile,
.dark-theme .filter-input-mobile {
    background: #1e1e1e;
    border-color: #333;
    color: #fff
}
.dark-theme .filter-btn-reset-mobile {
    background: #1e1e1e;
    border-color: #333;
    color: #aaa;
}
.review-filter {
    margin-bottom: 20px;
}
.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.filter-select {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border: 1px solid #e9eaec;
    border-radius: 40px;
    font-size: 14px;
    background: white;
}
.filter-buttons-row {
    display: flex;
    gap: 10px;
    width: 100%;
}
.filter-btn-apply {
    flex: 1;
    padding: 10px 20px;
    background: #3d8cff;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.dark-theme .filter-select {
    background: #1e1e1e;
    border-color: #333;
    color: #fff;
}
.dark-theme .filter-btn-reset {
    background: #1e1e1e;
    border-color: #333;
    color: #aaa;
}
/* Телефон */
@media (max-width: 600px) {
    .filter-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .filter-select-mobile {
        flex: 1;
        min-width: 0;
        width: auto;
        padding: 8px 6px;
        font-size: 11px;
        text-align: center;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
}
.reviews-section {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 12px;
}

.review-item-home {
    max-width: 100%;
    box-sizing: border-box;
}
.reviews-all-btn:hover {
    background: #0049cc;
    transform: scale(1.02);
}
.dark-theme .review-item-home {
    background: #1e1e1e !important;
    border-color: #333 !important;
}
.dark-theme .review-item-home p {
    color: #ccc !important;
}
.dark-theme .reviews-all-btn {
    background: #3d8cff !important;
}
.dark-theme .reviews-all-btn:hover {
    background: #2a6fd6 !important;
}
@media (max-width: 480px) {
    .reviews-all-btn {
        width: 100%;
        border-radius: 30px;
        padding: 12px;
    }
}
.review-item-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dark-theme .review-item-home {
    background: #1e1e1e !important;
    border-color: #333 !important;
}
.dark-theme .review-item-home p {
    color: #ccc !important;
}
.dark-theme .review-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

.dark-theme .review-card .product-name {
    color: #fff !important;
}

.dark-theme .review-card .review-date {
    color: #aaa !important;
}

.dark-theme .review-card p {
    color: #ccc !important;
}

.dark-theme .btn-delete {
    background: #ff3b30 !important;
    color: white !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.dark-theme .btn-delete:hover {
    background: #cc2f26 !important;
}

.dark-theme .empty-state h2 {
    color: #fff !important;
}

.dark-theme .empty-state p {
    color: #aaa !important;
}
.dark-theme .review-card,
.dark-theme div[onclick*="product.php"] {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

.dark-theme .review-card strong,
.dark-theme div[onclick*="product.php"] strong {
    color: #3d8cff !important;
}

.dark-theme .review-card span,
.dark-theme div[onclick*="product.php"] span {
    color: #aaa !important;
}

.dark-theme .review-card p,
.dark-theme div[onclick*="product.php"] p {
    color: #ccc !important;
}

.dark-theme .empty-state h2 {
    color: #fff !important;
}

.dark-theme .empty-state p {
    color: #aaa !important;
}
.review-stars {
    display: flex;
    gap: 2px;
}

.review-star {
    font-size: 16px;
}

.review-star.filled {
    color: #ffa500 !important;
}

.review-star.empty {
    color: #e0e0e0 !important;
}

.dark-theme .review-star.filled {
    color: #ffa500 !important;
}

.dark-theme .review-star.empty {
    color: #4a4a4a !important;
}
   .review-star {
            font-size: 16px;
        }
        .review-star.filled {
            color: #ffa500 !important;
        }
        .review-star.empty {
            color: #e0e0e0 !important;
        }
        .dark-theme .review-star.filled {
            color: #ffa500 !important;
        }
        .dark-theme .review-star.empty {
            color: #4a4a4a !important;
        }
        .dark-theme .review-card {
            background: #1e1e1e !important;
            border-color: #333 !important;
        }
        .dark-theme .review-card p {
            color: #ccc !important;
        }
        .dark-theme .review-card .product-name {
            color: #fff !important;
        }
        .dark-theme .review-date {
            color: #aaa !important;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            background: white;
            border-radius: 20px;
            max-width: 480px;
            width: 90%;
            overflow: hidden;
            text-align: center;
            padding: 24px 20px;
        }
        .modal-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .modal-message {
            font-size: 14px;
            color: #5b6f82;
            margin-bottom: 20px;
        }
        .modal-actions {
            display: flex;
            gap: 12px;
        }
        .modal-btn {
            flex: 1;
            padding: 12px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            border: none;
            cursor: pointer;
        }
        .modal-btn-cancel {
            background: #f0f3f7;
            color: #5b6f82;
        }
        .modal-btn-confirm {
            background: #ff3b30;
            color: white;
        }
        .dark-theme .modal-content {
            background: #1e1e1e;
        }
        .dark-theme .modal-title {
            color: #fff;
        }
        .dark-theme .modal-message {
            color: #aaa;
        }
        .dark-theme .modal-btn-cancel {
            background: #2a2a2a;
            color: #aaa;
        }
        .btn-delete {
            background: #ff3b30;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 14px;
            cursor: pointer;
            display: inline-block;
        }
        .btn-delete:hover {
            background: #cc2f26;
        }
.dark-theme .empty-chat h3 {
    color: #ffffff !important;
}

.dark-theme .empty-chat p {
    color: #aaaaaa !important;
}

.dark-theme .empty-chat-icon {
    color: #ffffff !important;
}
.profile-menu-item span:first-child {
    color: #001a34;
}

.profile-menu-item:hover span:first-child {
    color: #005bff;
}

body.dark-theme .form-card pre {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
}
body.dark-theme .form-card h3 {
    color: #ffffff !important;
}

body.dark-theme .form-card p {
    color: #aaaaaa !important;
}

body.dark-theme .form-card label {
    color: #e0e0e0 !important;
}

body.dark-theme .form-card pre {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
}

body.dark-theme .form-card input[type="file"] {
    color: #ffffff !important;
}

body.dark-theme .form-card input[type="file"]::file-selector-button {
    background: #3d8cff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
}
/* Поднятие навигации на телефонах */
@media (max-width: 600px) {
    .bottom-nav {
        bottom: 15px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        border-radius: 30px !important;
    }
    
    body {
        padding-bottom: 85px !important;
    }
}
.dark-theme .review-card-home {
    background: #1e1e1e !important;
    border-color: #2c2c2c !important;
}

.dark-theme .quick-item {
    background: #1e1e1e !important;
    border-color: #2c2c2e !important;
}

.dark-theme .reviews-section h2 {
    color: #ffffff !important;
}
.dark-theme .review-card-home {
    background: #1e1e1e;
    border-color: #2c2c2c;
}

.dark-theme .review-card-home strong {
    color: #3d8cff;
}

.dark-theme .review-card-home span {
    color: #aaaaaa;
}

.dark-theme .review-card-home p {
    color: #cccccc;
}

.dark-theme .quick-item {
    background: #1e1e1e;
    border-color: #2c2c2c;
    color: #ffffff;
}

.dark-theme .quick-item span {
    color: #ffffff;
}

.dark-theme .quick-item svg {
    stroke: #ffffff;
}
@media (max-width: 600px) {
    #filterModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
        position: fixed !important;
    }
}
.cart-item {
    transition: background-color 0.2s ease, border-left 0.2s ease;
    cursor: pointer;
}

.cart-item .quantity-selector {
    order: 2;
    margin-left: auto;
    cursor: default;
}

.cart-item .qty-btn {
    cursor: pointer;
}
@media (max-width: 600px) {
    .modal .modal-content,
    #loginModal .modal-content,
    #deleteModal .modal-content,
    #clearCartModal .modal-content,
    #deleteSelectedModal .modal-content,
    #installModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
    }
}
.cart-item:last-child {
    margin-bottom: 90px !important;
}
.favorite-item:last-child {
    margin-bottom: 90px !important;
}
.cart-item-name-link,
.favorite-name-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.recent-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.recent-scroll-inner {
    display: flex;
    gap: 12px;
    min-width: min-content;
}
.recent-products-section .product-card {
    width: 160px;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .modal .modal-content,
    #loginModal .modal-content,
    #deleteModal .modal-content,
    #clearCartModal .modal-content,
    #deleteSelectedModal .modal-content,
    #installModal .modal-content,
    .modal-dialog,
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
    }
}
@media (max-width: 600px) {
    .checkbox-group input {
        width: 18px;
        height: 18px;
    }
    input[type="file"] {
        font-size: 12px;
    }
    input[type="file"]::file-selector-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}
@media (max-width: 600px) {
    .radio-label input {
        width: 18px;
        height: 18px;
        transform: scale(1);
        margin-right: 8px;
    }
}

.dark-theme input[type="date"] {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #fff;
}

.dark-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.dark-theme select {
    background: #2a2a2a;
    color: #fff;
    border-color: #3a3a3a;
}

.dark-theme select option {
    background: #2a2a2a;
    color: #fff;
}

textarea[name="message"] {
    resize: none;
    overflow-y: hidden;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.dark-theme textarea[name="message"] {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #ffffff;
}

.dark-theme textarea[name="message"]::placeholder {
    color: #888888;
}

.dark-theme textarea[name="message"]:focus {
    outline: none;
    border-color: #3d8cff;
}

/* КНОПКИ НА МОБИЛЬНЫХ - общие правила */
@media (max-width: 600px) {
    .btn,
    .reviews-all-btn,
    a.btn[href*="category.php"],
    .all-reviews-btn {
        font-size: 16px !important;
        padding: 14px 20px !important;
        height: auto !important;
        min-height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    /* КНОПКА "В КОРЗИНУ" - отдельно, нормальный размер */

    .btn-cart,
    .add-to-cart,
    button[onclick*="addToCart"],
    .cart-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        height: auto !important;
    }

    
    /* Кнопка в секции отзывов */
    .reviews-section .btn {
        font-size: 16px !important;
    }
}

/* НИЖНЯЯ НАВИГАЦИЯ */
.bottom-nav .nav-item span {
    font-size: 13px !important;
    font-weight: 500;
}

@media (max-width: 600px) {
    .bottom-nav .nav-item span {
        font-size: 13px !important;
    }
    
    .bottom-nav .nav-item svg {
        width: 22px;
        height: 22px;
    }
}
.input-wrapper textarea {
    overflow-y: hidden !important;
}
.message-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    line-height: 1.35;
    padding: 0;
    margin: 0;
}