/* ============================================================
   Общие стили
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.main {
    flex: 1;
    padding: 30px 0;
}

.page-title {
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 300;
}

.muted {
    color: #8a99a6;
    font-size: 13px;
}

.hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

/* ============================================================
   Шапка и пре-хедер
   ============================================================ */

.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.logo a {
    color: #2c3e50;
}

.menu-btn .btn-menu {
    background: #3498db;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.menu-btn .btn-menu:hover {
    background: #2980b9;
}

.search {
    flex: 1 1 300px;
}

.search form {
    display: flex;
}

.search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search button {
    padding: 8px 16px;
    border: none;
    background: #2c3e50;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-actions a {
    font-size: 18px;
    color: #2c3e50;
}

.btn-auth {
    font-size: 14px;
    background: #ecf0f1;
    padding: 6px 14px;
    border-radius: 4px;
}

.btn-wishlist,
.btn-cart {
    position: relative;
}

.pre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 0 6px;
    font-size: 13px;
    color: #8a99a6;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 10px;
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 50%;
    min-width: 0;
    overflow: hidden;
}

.selected-city {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #6b7a86;
}

.city-selector a {
    color: #3498db;
    text-decoration: none;
    flex-shrink: 0;
}

.city-selector a:hover {
    text-decoration: underline;
}

.help-links {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.help-links a {
    color: #8a99a6;
    text-decoration: none;
    transition: color 0.15s;
}

.help-links a:hover {
    color: #3498db;
}

/* ============================================================
   Подвал
   ============================================================ */

.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

/* ============================================================
   Меню (боковое)
   ============================================================ */

.menu-links ul {
    list-style: none;
    padding: 0;
}

.menu-links li {
    margin: 10px 0;
}

.menu-links a {
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding: 10px 0;
    display: block;
}

.menu-links a:hover {
    color: #3498db;
}

/* ============================================================
   Каталог: сетка и карточка товара
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-link {
    display: block;
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.product-image {
    padding: 15px;
    background: #f8f9fa;
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-info {
    padding: 12px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.product-id {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 0;
}

.product-stock {
    color: #27ae60;
}

.product-stock.on-demand {
    color: #f39c12;
}

.product-price {
    font-weight: 600;
    color: #2c3e50;
}

/* Кнопки в карточке */
.btn-buy {
    position: relative;
    z-index: 2;
    background: #3498db;
    color: #fff;
    border: none;
    padding: 8px 0;
    margin: 0 15px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    width: calc(100% - 30px);
    box-sizing: border-box;
}

.btn-buy:hover {
    background: #2980b9;
}

.btn-buy[disabled] {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

.btn-buy[disabled]:hover {
    background: #e0e0e0;
}

.btn-choose {
    background: #3498db;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 0;
    margin: 0 15px 15px;
    border-radius: 8px;
    font-size: 14px;
    width: calc(100% - 30px);
    box-sizing: border-box;
    transition: background 0.2s;
    text-align: center;
}

.btn-choose:hover {
    background: #2980b9;
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-load {
    background: #ecf0f1;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 16px;
    color: #2c3e50;
    transition: background 0.2s;
}

.btn-load:hover {
    background: #d5dbdb;
}

/* Кнопка wishlist (в карточке и на странице товара) */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.wishlist-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.wishlist-btn:active {
    transform: scale(0.95);
}

.wishlist-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* ============================================================
   Страница товара
   ============================================================ */

.product-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.product-detail-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.product-detail-image {
    flex: 0 0 300px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    margin: 0 0 10px 0;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-detail-meta span {
    width: 50%;
}

.product-detail-meta span label {
    color: #666;
    width: 75px;
    display: inline-block;
}

.product-detail-meta a {
    color: #3498db;
    text-decoration: none;
}

.product-detail-meta a:hover {
    text-decoration: underline;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-detail-stock {
    margin-bottom: 15px;
}

.in-stock {
    color: #27ae60;
    font-weight: 500;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: 500;
}

.on-demand {
    color: #f39c12;
    font-weight: 500;
}

.product-detail-description {
    margin: 15px 0;
    line-height: 1.6;
}

/* ID товара */
.product-id-block {
    font-size: 14px;
    color: #888;
    margin: 5px 0 10px;
}

.product-id-label {
    font-weight: 300;
}

.product-id-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Селектор количества (страница товара) */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce1e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quantity-selector:hover {
    border-color: #c4cdd5;
}

.quantity-selector:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.qty-btn {
    width: 46px;
    height: 100%;
    border: none;
    background: transparent;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 0;
}

.qty-btn:hover {
    background: #f2f5f9;
    color: #3498db;
}

.qty-btn:active {
    background: #e4ebf2;
    transform: scale(0.94);
}

.qty-btn.qty-minus {
    border-right: 1px solid #eef1f4;
}

.qty-btn.qty-plus {
    border-left: 1px solid #eef1f4;
}

.qty-input {
    width: 64px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0;
    font-family: inherit;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Блок кнопок на странице товара */
.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-buy-large {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 0 32px;
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.btn-buy-large:hover {
    background: #d35400;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.35);
}

.btn-buy-large:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(230, 126, 34, 0.3);
}

.btn-buy-large[disabled] {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* Родительская группа */
.parent-group-link {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.parent-group-link a {
    color: #3498db;
    text-decoration: none;
}

.parent-group-link a:hover {
    text-decoration: underline;
}

/* Состав бандла */
.bundle-composition {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.bundle-composition h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 500;
}

.bundle-composition ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bundle-composition li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #eef2f6;
    font-size: 14px;
}

.bundle-composition li:last-child {
    border-bottom: none;
}

.bundle-composition a {
    color: #2c3e50;
    text-decoration: none;
    flex: 1;
}

.bundle-composition a:hover {
    text-decoration: underline;
}

.comp-qty {
    font-weight: 600;
    color: #2c3e50;
}

.comp-avail {
    font-size: 13px;
    color: #888;
}

/* Групповые варианты */
.group-variants {
    margin: 25px 0;
}

.group-variants h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-row {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.variant-row:hover {
    border-color: #d6e2f0;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
}

.variant-thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

.variant-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}

.variant-info {
    min-width: 0;
}

.variant-name {
    display: block;
    font-weight: 500;
    font-size: 15px;
    color: #2c3e50;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.variant-name:hover {
    color: #3498db;
}

.variant-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #8a99a6;
}

.variant-id {
    color: #b0b8c0;
}

.variant-stock.in-stock {
    color: #27ae60;
}

.variant-stock.out-of-stock {
    color: #e74c3c;
}

.variant-stock.on-demand {
    color: #f39c12;
}

.variant-price {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.btn-variant-add {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-variant-add:hover {
    background: #2980b9;
}

.btn-variant-add[disabled] {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Таблица вариантов (старый вариант, оставлен на совместимость) */
.variants-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.variants-table th,
.variants-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
    font-size: 14px;
}

.variants-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #555;
}

.variants-table a {
    color: #2c3e50;
    text-decoration: none;
}

.variants-table a:hover {
    text-decoration: underline;
}

/* ============================================================
   Остатки по точкам
   ============================================================ */

.btn-show-stock {
    display: inline-block;
    background: none;
    border: none;
    color: #3498db;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    text-decoration: underline;
    transition: color 0.15s;
}

.btn-show-stock:hover {
    color: #2980b9;
}

.stock-by-source {
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.stock-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #eef2f6;
}

.stock-source:last-child {
    border-bottom: none;
}

.stock-source-name {
    color: #2c3e50;
}

.stock-source-city {
    color: #8a99a6;
    font-size: 13px;
    margin-left: 4px;
}

.stock-source-qty {
    font-weight: 600;
    color: #27ae60;
    white-space: nowrap;
    margin-left: 12px;
}

/* ============================================================
   Характеристики и пищевая ценность
   ============================================================ */

.product-attributes {
    margin-top: 30px;
}

.product-attributes h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.product-attributes ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
}

.product-attributes li {
    padding: 4px 0;
    border-bottom: 1px solid #ecf0f1;
}

.attributes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    table-layout: fixed;
}

.attributes-table tr {
    border-bottom: 1px solid #eef2f6;
}

.attributes-table tr:last-child {
    border-bottom: none;
}

.attributes-table tr:nth-child(even) {
    background: #fafbfc;
}

.attributes-table td {
    padding: 12px 20px;
    font-size: 14px;
    vertical-align: top;
    line-height: 1.5;
    word-break: break-word;
}

.attributes-table .attr-name {
    width: 40%;
    color: #6b7a86;
    font-weight: 400;
}

.attributes-table .attr-value {
    width: 60%;
    color: #2c3e50;
    font-weight: 500;
}

.product-nutrition {
    margin-top: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px 0;
}

.product-nutrition h3 {
    margin: 0 0 15px 0;
    font-size: 17px;
    font-weight: 500;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.nutrition-table th,
.nutrition-table td {
    padding: 8px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
    font-size: 14px;
}

.nutrition-table th {
    background: #f2f5f9;
    font-weight: 500;
    color: #555;
}

.nutrition-table tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   Отзывы и вопросы
   ============================================================ */

.product-reviews,
.product-questions {
    margin-top: 40px;
}

.review-item,
.question-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.review-header,
.question-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.review-title {
    font-weight: 500;
    font-size: 16px;
}

.review-title a,
.question-text a {
    color: #2c3e50;
    text-decoration: none;
}

.review-title a:hover,
.question-text a:hover {
    text-decoration: underline;
}

.review-text,
.question-text {
    margin: 5px 0;
}

.review-pros,
.review-cons {
    font-size: 14px;
    color: #2c3e50;
}

.verified {
    display: inline-block;
    font-size: 12px;
    color: #27ae60;
    margin-top: 5px;
}

.answers {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #bdc3c7;
}

.answer-item {
    margin: 5px 0;
}

.add-review,
.add-question {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.add-review form div,
.add-question form div {
    margin-bottom: 10px;
}

.add-review label,
.add-question label {
    display: block;
    font-weight: 500;
}

.add-review input,
.add-review textarea,
.add-question input,
.add-question textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.add-review button,
.add-question button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* ============================================================
   Сообщения, кнопки-действия, заголовки секций
   ============================================================ */

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
}

.btn-action {
    background: #3498db;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-action:hover {
    background: #2980b9;
}

.view-all-link {
    margin-top: 15px;
    text-align: right;
}

.view-all-link a {
    color: #3498db;
    text-decoration: none;
}

.view-all-link a:hover {
    text-decoration: underline;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-back {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #d5dbdb;
}

/* ============================================================
   Формы общие (form-page, form-header, form-group, form-row)
   ============================================================ */

.form-page {
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.add-review-form form,
.add-question-form form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.add-review-form form div,
.add-question-form form div {
    margin-bottom: 15px;
}

.add-review-form label,
.add-question-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.add-review-form input,
.add-review-form textarea,
.add-question-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.add-review-form button,
.add-question-form button {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.add-review-form button:hover,
.add-question-form button:hover {
    background: #1e8449;
}

.auth-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.auth-required a {
    color: #3498db;
}

/* ============================================================
   Кнопки действия (btn-auth-submit / btn-cancel) — базовые
   ============================================================ */

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 5px;
}

.btn-auth-submit:hover {
    background: #2980b9;
}

/* Вариант для форм: зелёный, компактный */
.account-edit-form .btn-auth-submit,
.geo-add-form .btn-auth-submit {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
    margin-top: 0;
}

.account-edit-form .btn-auth-submit:hover,
.geo-add-form .btn-auth-submit:hover {
    background: #1e8449;
}

.btn-cancel {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
    margin-left: 0;
}

.btn-cancel:hover {
    background: #d5dbdb;
}

/* Красный вариант (например, отказ) */
.btn-cancel.danger,
.btn-cancel--danger {
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 16px;
}

.btn-cancel.danger:hover,
.btn-cancel--danger:hover {
    background: #c0392b;
}

/* ============================================================
   Списки-фильтры (категории, бренды, производители, страны)
   ============================================================ */

.filter-search {
    margin-bottom: 30px;
    max-width: 500px;
}

.filter-search input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    font-size: 16px;
    border: 1px solid #dce1e6;
    border-radius: 30px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 16px center;
    background-size: 18px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    font-family: inherit;
}

.filter-search input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

.filter-search input::placeholder {
    color: #b0b8c0;
}

#category-list ul,
#brand-list ul,
#manufacturer-list ul,
#country-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#category-list li,
#brand-list li,
#manufacturer-list li,
#country-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

#category-list a,
#brand-list a,
#manufacturer-list a,
#country-list a {
    display: inline-block;
    padding: 8px 22px;
    background: #f2f5f9;
    border-radius: 30px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

#category-list a:hover,
#brand-list a:hover,
#manufacturer-list a:hover,
#country-list a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(52, 152, 219, 0.25);
}

#category-list a:active,
#brand-list a:active,
#manufacturer-list a:active,
#country-list a:active {
    transform: scale(0.96);
}

#category-list p,
#brand-list p,
#manufacturer-list p,
#country-list p {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
    margin: 0;
    background: #fff;
    border-radius: 12px;
}

/* ============================================================
   Авторизация
   ============================================================ */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    background: #fff;
    padding: 30px 30px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-title {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f2f5f9;
    border-radius: 8px;
    margin-bottom: 8px;
}

.country-flag {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
}

.country-select {
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    outline: none;
    cursor: pointer;
    flex: 1;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
    overflow: hidden;
}

.phone-input-group:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.phone-code-display {
    padding: 12px 10px 12px 16px;
    color: #888;
    font-weight: 400;
    font-size: 15px;
    background: #fafbfc;
    border-right: 1px solid #dce1e6;
    flex-shrink: 0;
}

.phone-input-group input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.phone-input-group input:focus {
    box-shadow: none;
}

.password-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}

.password-input-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.password-input-wrapper input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.password-input-wrapper input:focus {
    box-shadow: none;
}

.toggle-password {
    background: none;
    border: none;
    padding: 0 16px 0 8px;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.auth-info {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin: -10px 0 15px;
}

.auth-back {
    text-align: center;
    margin-top: 15px;
}

.btn-back-step {
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
}

.btn-back-step:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}

/* ============================================================
   Личный кабинет
   ============================================================ */

.account-page {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.account-sidebar {
    flex: 0 0 220px;
}

.account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    margin-bottom: 2px;
}

.account-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.account-menu a:hover {
    background: #f0f7ff;
}

.account-menu a.active {
    background: #e8f0fe;
    font-weight: 500;
    color: #1a3b5c;
}

.account-menu .logout-link {
    color: #e74c3c;
}

.account-menu .logout-link:hover {
    background: #fde8e8;
}

.account-content {
    flex: 1;
}

.account-title {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 20px 0;
}

.account-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.stat-label {
    font-size: 14px;
    color: #888;
}

.account-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-info li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f2f5;
}

.account-last-orders table {
    width: 100%;
    border-collapse: collapse;
}

.account-last-orders th,
.account-last-orders td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.account-last-orders th {
    font-weight: 500;
    color: #555;
}

.account-last-orders a {
    color: #3498db;
    text-decoration: none;
}

.account-last-orders a:hover {
    text-decoration: underline;
}

.view-all {
    text-align: right;
    margin-top: 10px;
}

.view-all a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.view-all a:hover {
    text-decoration: underline;
}

/* Форма редактирования профиля */
.account-edit-form {
    max-width: 600px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.account-edit-form .form-group {
    margin-bottom: 18px;
}

.account-edit-form label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}

.account-edit-form input[type="text"],
.account-edit-form input[type="email"],
.account-edit-form input[type="date"],
.account-edit-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.account-edit-form input:focus,
.account-edit-form select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.account-edit-form input:disabled {
    background: #f5f6f8;
    color: #888;
    cursor: not-allowed;
}

/* Автокомплит города (используется в формах) */
.city-autocomplete {
    position: relative;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    border-bottom: 1px solid #f2f5f9;
    transition: background 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f0f7ff;
}

.autocomplete-empty {
    padding: 12px 14px;
    color: #999;
    font-size: 14px;
}

/* ============================================================
   Корзина
   ============================================================ */

.cart-page {
    max-width: 1000px;
    margin: 0 auto;
}

#cart-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.cart-item-image {
    flex: 0 0 80px;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
}

.cart-item-name:hover {
    text-decoration: underline;
}

.cart-item-price {
    font-size: 14px;
    color: #888;
}

.cart-item-stock {
    font-size: 13px;
    color: #27ae60;
}

.cart-item-stock .on-demand {
    color: #f39c12;
}

.cart-item-stock .out-of-stock {
    color: #e74c3c;
}

.cart-item-stock .in-stock {
    color: #27ae60;
}

/* ============================================
   Селектор количества в корзине
   ============================================ */
.cart-item-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-item-quantity:hover {
    border-color: #c4cdd5;
}
.cart-item-quantity:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.cart-qty-btn {
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 0;
}
.cart-qty-btn:hover {
    background: #f2f5f9;
    color: #3498db;
}
.cart-qty-btn:active {
    transform: scale(0.9);
}
.cart-qty-btn.cart-qty-minus {
    border-right: 1px solid #eef1f4;
}
.cart-qty-btn.cart-qty-plus {
    border-left: 1px solid #eef1f4;
}

.cart-qty-input {
    width: 54px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0;
    font-family: inherit;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total {
    flex: 0 0 100px;
    font-weight: 600;
}

.cart-item-remove {
    flex: 0 0 40px;
}

.btn-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #b0b8c0;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-remove:hover {
    background: #fdecea;
    color: #e74c3c;
}

.btn-remove:active {
    transform: scale(0.9);
}

.cart-summary {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: right;
}

.cart-total {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-clear,
.btn-update,
.btn-checkout {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.btn-clear {
    background: #e74c3c;
    color: #fff;
}

.btn-clear:hover {
    background: #c0392b;
}

.btn-update {
    background: #3498db;
    color: #fff;
}

.btn-update:hover {
    background: #2980b9;
}

.btn-checkout {
    background: #27ae60;
    color: #fff;
}

.btn-checkout:hover {
    background: #1e8449;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
}

.cart-empty p {
    font-size: 18px;
    color: #888;
    margin-bottom: 25px;
}

.cart-empty .btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.cart-empty .btn-back:hover {
    background: #2980b9;
}

/* Наборы в корзине */
.cart-bundles {
    margin-top: 25px;
}

.cart-bundle {
    background: #fafcfd;
    border: 1px solid #e3eaf0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.cart-bundle-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
}

.cart-bundle-components {
    background: #fff;
    border-top: 1px solid #eef2f6;
    padding: 12px 20px;
}

.cart-bundle-components ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-bundle-components li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #4a5a6a;
    border-bottom: 1px dashed #eef2f6;
}

.cart-bundle-components li:last-child {
    border-bottom: none;
}

.comp-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-bundle-count {
    font-size: 13px;
    color: #888;
    margin: 4px 0;
}

.btn-toggle-components {
    background: none;
    border: none;
    color: #3498db;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-toggle-components:hover {
    color: #2980b9;
}

/* ============================================================
   Уведомления и бейджи
   ============================================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

.cart-badge,
.wishlist-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    min-width: 18px;
    text-align: center;
}

/* ============================================================
   Wishlist (страница избранного)
   ============================================================ */

.wishlist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.empty-wishlist {
    text-align: center;
    padding: 50px 20px;
}

.empty-wishlist p {
    font-size: 18px;
    color: #888;
    margin-bottom: 25px;
}

.empty-wishlist .btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

/* ============================================================
   Геолокация (/geo/)
   ============================================================ */

.geo-page {
    max-width: 640px;
    margin: 30px auto;
    padding: 0 15px;
}

.geo-title {
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 25px 0;
    text-align: center;
    color: #2c3e50;
}

.geo-search-block {
    margin-bottom: 30px;
}

.geo-search-wrapper {
    position: relative;
}

.geo-search-wrapper input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #dce1e6;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.geo-search-wrapper input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

.geo-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dce1e6;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
}

.geo-dropdown.show {
    display: block;
}

.geo-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #f2f5f9;
    transition: background 0.15s;
}

.geo-item:last-child {
    border-bottom: none;
}

.geo-item:hover {
    background: #f0f7ff;
    color: #2980b9;
}

.geo-empty {
    padding: 14px 18px;
    color: #999;
    font-size: 14px;
}

.geo-hint {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #8a99a6;
}

.geo-add-block {
    text-align: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.geo-add-block h2 {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.btn-add-city {
    display: inline-block;
    padding: 10px 24px;
    background: #3498db;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.btn-add-city:hover {
    background: #2980b9;
}

.geo-recent h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.recent-cities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recent-cities-list li {
    border-bottom: 1px solid #f0f2f5;
}

.recent-cities-list li:last-child {
    border-bottom: none;
}

.recent-city {
    display: block;
    padding: 12px 18px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.recent-city:hover {
    background: #f0f7ff;
    color: #2980b9;
}

/* /geo/add/ */
.geo-add-page {
    max-width: 560px;
    margin: 30px auto;
    padding: 0 15px;
}

.geo-add-page h1 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 25px 0;
    color: #2c3e50;
}

.geo-add-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.geo-add-form .form-group {
    margin-bottom: 18px;
}

.geo-add-form label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}

.geo-add-form input,
.geo-add-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.geo-add-form input:focus,
.geo-add-form select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.geo-add-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

/* ============================================================
   Баланс
   ============================================================ */

.balance-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.25);
}

.balance-card-label {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.balance-card-value {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.balance-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.balance-card-actions .btn-auth-submit,
.balance-card-actions .btn-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
    width: auto;
    margin-top: 0;
}

.balance-card-actions .btn-auth-submit {
    background: #fff;
    color: #2980b9;
    border: none;
    cursor: pointer;
}

.balance-card-actions .btn-auth-submit:hover {
    background: #ecf0f1;
}

.balance-card-actions .btn-cancel {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.balance-card-actions .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.3);
}

.balance-hint {
    font-size: 13px;
    color: #8a99a6;
    text-align: center;
    margin-bottom: 30px;
}

.balance-current {
    margin-bottom: 20px;
    font-size: 15px;
    color: #2c3e50;
}

.balance-current strong {
    font-size: 18px;
}

.balance-last h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #2c3e50;
}

.balance-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.balance-table th,
.balance-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
}

.balance-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #6b7a86;
    font-size: 13px;
}

.balance-table tr:last-child td {
    border-bottom: none;
}

.balance-table .text-right {
    text-align: right;
    white-space: nowrap;
}

.balance-table .text-success {
    color: #27ae60;
    font-weight: 600;
}

.balance-table .text-danger {
    color: #e74c3c;
    font-weight: 600;
}

.balance-table .tx-desc {
    color: #8a99a6;
    font-size: 13px;
}

/* Фильтры и табы */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 6px 16px;
    border-radius: 20px;
    background: #f2f5f9;
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s;
}

.filter-tabs a:hover {
    background: #e4ebf2;
}

.filter-tabs a.active {
    background: #3498db;
    color: #fff;
}

.empty-note {
    padding: 30px;
    text-align: center;
    color: #8a99a6;
    font-size: 15px;
}

/* ============================================================
   Пополнение баланса
   ============================================================ */

.topup-block {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topup-block h3 {
    font-size: 19px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #2c3e50;
}

.topup-block h4 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.topup-block p {
    margin: 0 0 20px 0;
    color: #4a5a6a;
    line-height: 1.6;
}

.phone-copy-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.phone-display {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 200px;
}

.btn-copy {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #2980b9;
}

.btn-copy:active {
    transform: scale(0.97);
}

.copy-status {
    min-height: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.copy-status.success {
    color: #27ae60;
}

.copy-status.error {
    color: #e74c3c;
}

.topup-instruction {
    padding: 18px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.topup-instruction ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
    color: #2c3e50;
    font-size: 14px;
}

.topup-warning {
    padding: 14px 18px;
    background: #fff8e6;
    border-left: 4px solid #f39c12;
    border-radius: 6px;
    font-size: 14px;
    color: #7a5c00;
    margin-bottom: 15px;
    line-height: 1.5;
}

.topup-contacts {
    padding: 18px;
    background: #f0f7ff;
    border-radius: 10px;
}

.topup-contacts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #2c3e50;
}

.topup-contacts a {
    color: #3498db;
    text-decoration: none;
}

.topup-contacts a:hover {
    text-decoration: underline;
}

/* ============================================================
   Оформление заказа (checkout)
   ============================================================ */

.checkout-page {
    max-width: 720px;
    margin: 0 auto;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-block {
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-block h2 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 14px 0;
    color: #2c3e50;
}

.checkout-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.checkout-block-head h2 {
    margin: 0;
}

.checkout-edit-link {
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
}

.checkout-edit-link:hover {
    text-decoration: underline;
}

/* Состав */
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f6;
    font-size: 14px;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #f8f9fa;
}

.checkout-item-name {
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item-extra {
    display: block;
    font-size: 12px;
    color: #e67e22;
    margin-top: 2px;
}

.checkout-item-note {
    display: block;
    font-size: 12px;
    color: #f39c12;
    margin-top: 2px;
}

.checkout-item-qty {
    color: #8a99a6;
    font-size: 13px;
    white-space: nowrap;
}

.checkout-item-price {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.checkout-items-total {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
    font-weight: 600;
    color: #2c3e50;
}

/* Город */
.checkout-city {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.checkout-city-label {
    color: #8a99a6;
}

.checkout-city-name {
    color: #2c3e50;
    font-weight: 500;
}

.checkout-city-change {
    margin-left: auto;
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
}

.checkout-city-change:hover {
    text-decoration: underline;
}

/* Способ получения */
.delivery-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.delivery-tab {
    cursor: pointer;
    border: 1px solid #dce1e6;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-tab input[type="radio"] {
    display: none;
}

.delivery-tab-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-tab-title {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.delivery-tab-desc {
    font-size: 12px;
    color: #8a99a6;
}

.delivery-tab:hover {
    border-color: #b8d4ee;
}

.delivery-tab input:checked + .delivery-tab-body {
    color: #2980b9;
}

.delivery-tab:has(input:checked) {
    border-color: #3498db;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.delivery-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Адрес */
.addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.form-group-wide {
    grid-column: span 3;
}

.form-group label {
    font-size: 12px;
    color: #6b7a86;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.checkout-block textarea {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.checkout-block textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Самовывоз */
.pickup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pickup-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dce1e6;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.pickup-item:hover {
    border-color: #b8d4ee;
}

.pickup-item:has(input:checked) {
    border-color: #3498db;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.pickup-item.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pickup-item input {
    margin-top: 3px;
    flex-shrink: 0;
}

.pickup-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.4;
}

.pickup-name {
    font-weight: 500;
    color: #2c3e50;
}

.pickup-addr {
    color: #4a5a6a;
}

.pickup-hours {
    color: #8a99a6;
    font-size: 12px;
}

.pickup-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #e74c3c;
}

.pickup-availability {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    font-size: 12px;
}

.pickup-availability-row {
    color: #4a5a6a;
    line-height: 1.4;
}

.pickup-have {
    color: #e67e22;
    font-weight: 500;
}

.pickup-need {
    color: #8a99a6;
    font-size: 11px;
}

.pickup-out {
    color: #e74c3c;
    font-weight: 500;
}

/* Оплата */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dce1e6;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.payment-item:hover {
    border-color: #b8d4ee;
}

.payment-item:has(input:checked) {
    border-color: #3498db;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.payment-item.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8f9fa;
}

.payment-item input {
    margin-top: 3px;
    flex-shrink: 0;
}

.payment-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.payment-note {
    font-size: 12px;
    color: #8a99a6;
}

/* Итог */
.checkout-summary {
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.checkout-total {
    display: flex;
    flex-direction: column;
}

.checkout-total-label {
    font-size: 13px;
    color: #8a99a6;
}

.checkout-total-hint {
    font-size: 12px;
    color: #8a99a6;
    margin: -4px 0 4px;
}

.checkout-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
}

.btn-checkout-submit {
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #27ae60;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

.btn-checkout-submit:hover {
    background: #1e8449;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}

.btn-checkout-submit:active {
    transform: scale(0.98);
}

/* ============================================================
   Заказы: список
   ============================================================ */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.order-card:hover {
    border-color: #cfe0f3;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.08);
}

.order-card-num {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.order-card-date {
    font-size: 13px;
    color: #8a99a6;
    margin-top: 2px;
}

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
}

.order-card-pay {
    color: #4a5a6a;
}

.order-card-items {
    color: #8a99a6;
}

.order-card-total {
    font-weight: 700;
    color: #2c3e50;
}

.order-card-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #eef2f6;
    color: #4a5a6a;
    white-space: nowrap;
}

.status-new {
    background: #e8f4fd;
    color: #1a76c2;
}

.status-paid {
    background: #e6f7ee;
    color: #1e8449;
}

.status-shipped {
    background: #fff4e0;
    color: #a36700;
}

.status-delivered {
    background: #e6f7ee;
    color: #1e8449;
}

.status-cancelled {
    background: #fdecea;
    color: #c0392b;
}

.order-paid-mark {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #1e8449;
    background: #e6f7ee;
    border-radius: 999px;
    vertical-align: middle;
}

/* ============================================================
   Заказы: детали
   ============================================================ */

.order-detail-head {
    background: #fff;
    padding: 16px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px dashed #eef2f6;
    font-size: 14px;
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-detail-label {
    color: #8a99a6;
    flex-shrink: 0;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-item {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef2f6;
    font-size: 14px;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

.order-item-name a {
    color: #2c3e50;
    text-decoration: none;
}

.order-item-name a:hover {
    color: #3498db;
}

.order-item-note {
    font-size: 12px;
    color: #f39c12;
    margin-top: 2px;
}

.order-item-qty {
    color: #8a99a6;
    white-space: nowrap;
}

.order-item-price {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.order-totals {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4a5a6a;
}

.order-totals-final {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #eef2f6;
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
}

.order-history {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-history-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.order-history-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5df;
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #eef2f6;
}

.order-history-status {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.order-history-meta {
    font-size: 12px;
    color: #8a99a6;
    margin-top: 2px;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 768px) {
    .header-row {
        gap: 10px;
        flex-wrap: wrap;
    }
    .search {
        order: 10;
        flex-basis: 100%;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .product-image {
        height: 140px;
    }
    .product-name {
        font-size: 13px;
    }

    .product-detail-row {
        flex-direction: column;
    }
    .product-detail-image {
        flex-basis: auto;
    }
    .product-attributes ul {
        grid-template-columns: 1fr;
    }
    .product-detail-meta span {
        width: 100%;
    }
    .product-detail-meta span label {
        width: 110px;
    }

    .filter-search {
        max-width: 100%;
    }
    .filter-search input {
        font-size: 14px;
        padding: 10px 14px 10px 40px;
        background-size: 16px;
        background-position: 14px center;
    }
    #category-list ul,
    #brand-list ul,
    #manufacturer-list ul,
    #country-list ul {
        gap: 10px;
    }
    #category-list a,
    #brand-list a,
    #manufacturer-list a,
    #country-list a {
        font-size: 13px;
        padding: 6px 16px;
    }

    .variants-table th,
    .variants-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .variants-table th:nth-child(2),
    .variants-table td:nth-child(2) {
        display: none;
    }

    .account-page {
        flex-direction: column;
    }
    .account-sidebar {
        flex-basis: auto;
    }
    .account-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .account-menu li {
        margin: 0;
    }
    .account-menu a {
        padding: 6px 14px;
        font-size: 14px;
    }
    .account-stats {
        gap: 10px;
    }
    .stat-item {
        padding: 12px;
        min-width: 80px;
    }
    .stat-value {
        font-size: 20px;
    }

    .pre-header {
        font-size: 12px;
        gap: 10px;
    }
    .city-selector {
        max-width: 60%;
    }
    .help-links {
        gap: 10px;
    }
    .geo-title {
        font-size: 22px;
    }
    .geo-page,
    .geo-add-page {
        margin: 20px auto;
    }

    .attributes-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .attributes-table .attr-name {
        width: 45%;
    }
    .attributes-table .attr-value {
        width: 55%;
    }
    .product-attributes h3 {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .checkout-block {
        padding: 15px 16px;
    }
    .delivery-tabs {
        grid-template-columns: 1fr;
    }
    .addr-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group-wide {
        grid-column: span 2;
    }
    .checkout-item {
        grid-template-columns: 36px 1fr auto;
        gap: 10px;
    }
    .checkout-item-qty {
        display: none;
    }
    .checkout-summary {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .checkout-total {
        align-items: center;
    }
    .btn-checkout-submit {
        width: 100%;
    }

    .variant-row {
        grid-template-columns: 48px 1fr auto;
        grid-template-areas:
            "thumb info  price"
            "thumb action action";
        gap: 8px 12px;
        padding: 10px 12px;
    }
    .variant-thumb {
        grid-area: thumb;
        width: 48px;
        height: 48px;
    }
    .variant-info {
        grid-area: info;
    }
    .variant-price {
        grid-area: price;
        font-size: 15px;
    }
    .variant-action {
        grid-area: action;
        margin-top: 4px;
    }
    .btn-variant-add {
        width: 100%;
        padding: 8px;
        font-size: 13px;
    }
    .variant-name {
        font-size: 14px;
    }
    .variant-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .order-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .order-card-meta {
        gap: 12px;
    }
    .order-item {
        grid-template-columns: 40px 1fr auto;
        gap: 10px;
    }
    .order-item-qty {
        display: none;
    }
    .order-item-img {
        width: 40px;
        height: 40px;
    }
    .order-detail-row {
        flex-direction: column;
        gap: 2px;
    }
    .order-detail-label {
        font-size: 12px;
    }

    .balance-card-value {
        font-size: 32px;
    }
    .phone-display {
        font-size: 18px;
        min-width: auto;
    }
    .btn-copy {
        width: 100%;
    }
    .balance-table th,
    .balance-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .balance-table th:nth-child(2),
    .balance-table td:nth-child(2) {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px;
    }
    .country-selector {
        gap: 8px;
        padding: 6px 10px;
    }
    .country-flag {
        width: 30px;
        height: 30px;
    }
    .country-select {
        font-size: 14px;
    }
    .phone-code-display {
        font-size: 18px;
        padding: 10px 8px 10px 12px;
    }
    .phone-input-group input {
        font-size: 14px;
        padding: 10px 12px;
    }
    .password-input-wrapper input {
        font-size: 14px;
        padding: 10px 12px;
    }
    .btn-auth-submit {
        font-size: 16px;
        padding: 12px;
    }

    .product-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .quantity-selector {
        justify-content: center;
        width: 100%;
    }
    .qty-input {
        flex: 1;
        max-width: none;
    }
    .btn-buy-large {
        width: 100%;
        padding: 0 20px;
    }

        .cart-item-quantity {
        height: 36px;
        border-radius: 10px;
    }
    .cart-qty-btn {
        width: 32px;
        font-size: 16px;
    }
    .cart-qty-input {
        width: 38px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .attributes-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .attributes-table .attr-name {
        width: 50%;
    }
    .attributes-table .attr-value {
        width: 50%;
    }
}

/* ============================================
   Корзина — мобильная адаптация
   ============================================ */
@media (max-width: 640px) {
    .cart-item {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        grid-template-areas:
            "img   info    remove"
            "img   qty     total";
        gap: 8px 12px;
        align-items: center;
        padding: 14px 0;
    }
    .cart-item-image {
        grid-area: img;
        flex: 0 0 auto;
        align-self: flex-start;
    }
    .cart-item-image img {
        width: 64px;
        height: 64px;
        object-fit: cover;
    }
    .cart-item-info {
        grid-area: info;
        min-width: 0;
    }
    .cart-item-name {
        font-size: 14px;
        line-height: 1.3;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cart-item-price {
        font-size: 13px;
        margin-top: 2px;
    }
    .cart-item-stock {
        font-size: 12px;
        margin-top: 2px;
    }
    .cart-item-quantity {
        grid-area: qty;
        justify-self: start;
        height: 36px;
    }
    .cart-item-total {
        grid-area: total;
        flex: 0 0 auto;
        font-size: 15px;
        font-weight: 700;
        text-align: right;
        white-space: nowrap;
    }
    .cart-item-remove {
        grid-area: remove;
        flex: 0 0 auto;
        align-self: flex-start;
    }
    .btn-remove {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* Селектор количества — компактнее */
    .cart-item-quantity {
        height: 36px;
        border-radius: 10px;
    }
    .cart-qty-btn {
        width: 32px;
        font-size: 16px;
    }
    .cart-qty-input {
        width: 40px;
        font-size: 14px;
    }
}

#authForm .form-group input {
	border:0;
	outline:none;
	box-shadow:none;
	font-size:18px;
}
#authForm .form-group input:focus {
	border:0;
	outline:none;
}