/* Основные стили для интернет-магазина Баринов - Темная тема */

:root {
    --primary-color: #06b6d4;
    --primary-dark: #0891b2;
    --secondary-color: #22d3ee;
    --success-color: #34d399;
    --danger-color: #f87171;
    --warning-color: #fbbf24;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --bg-color: #1e293b;
    --bg-light: #0f172a;
    --bg-card: #334155;
    --border-color: #475569;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Светлая тема */
.theme-light {
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Исправление цвета текста кнопок для светлой темы - черный текст для всех */
/* Кнопка добавления в корзину */
.theme-light .add-to-cart.btn-primary {
    color: #1e293b !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 2px solid var(--primary-color) !important;
}

.theme-light .add-to-cart.btn-primary i {
    color: #1e293b !important;
}

.theme-light .add-to-cart.btn-primary:hover {
    color: #1e293b !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.2) 100%) !important;
}

.theme-light .add-to-cart.btn-primary:hover i {
    color: #1e293b !important;
}

/* Все остальные btn-primary - черный текст на светлом фоне */
.theme-light .btn-primary:not(.add-to-cart) {
    color: #1e293b !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 2px solid var(--primary-color) !important;
}

.theme-light .btn-primary:not(.add-to-cart):hover {
    color: #1e293b !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.25) 100%) !important;
}

/* Кнопки в формах */
.theme-light .filters-form .btn-primary:not(.add-to-cart),
.theme-light .contact-form .btn-primary:not(.add-to-cart),
.theme-light .profile-form .btn-primary:not(.add-to-cart),
.theme-light .btn-lg.btn-primary:not(.add-to-cart) {
    color: #1e293b !important;
}

/* Плавный переход для всех элементов при смене темы */
.theme-light *,
.theme-dark * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Плавный переход при загрузке - только для определенных элементов */
.header, .header *,
.footer, .footer *,
.product-card, .category-card,
.admin-header, .admin-sidebar,
.admin-card, .dashboard-card,
.stat-card, .action-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-home-contacts {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.08) 0%, rgba(14, 165, 233, 0.03) 100%);
    font-size: 0.875rem;
    color: var(--text-color);
}

.header-home-contacts__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    padding: 0.45rem 1rem;
    text-align: center;
}

.header-home-contacts__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    text-decoration: none;
    color: var(--text-color);
    line-height: 1.2;
}

.header-home-contacts__item i {
    color: var(--primary-color);
    font-size: 0.78rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.header-home-contacts__item--phone {
    font-weight: 600;
    white-space: nowrap;
}

.header-home-contacts__item--phone:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.header-home-contacts__item--address {
    color: var(--text-light);
    font-weight: 500;
}

.header-home-contacts__item--address span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-home-contacts {
        display: none;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    width: 200px;
    background: var(--bg-card);
    color: var(--text-color);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.header-search-wrap {
    position: relative;
}

.header-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    max-height: 360px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
}

.header-search-suggestions.is-open {
    display: block;
}

.header-search-suggestions .suggestions-list {
    padding: 0.5rem;
}

.header-search-suggestions .suggestion-item {
    padding: 0.75rem 1rem;
}

.header-search-suggestions .search-hint,
.header-search-suggestions .search-loading {
    padding: 1rem;
    margin: 0;
    text-align: left;
    font-size: 0.875rem;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s;
}

.user-menu-toggle:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.user-menu-toggle i {
    color: var(--primary-color);
}

.user-menu-toggle span {
    font-weight: 500;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 220px;
    display: none;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
    margin-top: 0.25rem;
}

.user-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-bottom: 0.5rem solid var(--bg-card);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown:hover {
    display: block;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.user-menu-dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
    transition: color 0.2s;
}

.user-menu-dropdown a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.user-menu-dropdown a:hover i {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background: var(--bg-color);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    /* КРИТИЧНО: Отступ снизу для системного меню телефона */
    /* Используем safe-area для iOS и фиксированный отступ для Android */
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.7rem;
    position: relative;
    min-width: 0;
}

.bottom-nav a.active {
    color: var(--primary-color);
}

.bottom-nav a.search-trigger {
    cursor: pointer;
}

.bottom-nav a.search-trigger:hover {
    color: var(--primary-color);
}

.bottom-nav .badge {
    position: absolute;
    top: 5px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.bottom-nav a i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.bottom-nav a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Модальное окно поиска */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.search-modal.active {
    display: block;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.search-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-modal-close:hover {
    background: var(--bg-card);
    color: var(--primary-color);
}

.search-modal-form {
    margin-bottom: 1.5rem;
}

/* Модальное окно «Запросить цену» */
.price-request-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.price-request-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.price-request-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.price-request-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.price-request-modal-dialog h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.price-request-modal-product {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.price-request-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0.375rem;
}

.price-request-modal__close:hover {
    color: var(--text-color);
    background: var(--bg-secondary, rgba(255, 255, 255, 0.06));
}

.price-request-modal-form .form-group {
    margin-bottom: 1rem;
}

.price-request-modal-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.price-request-modal-form input[type="text"],
.price-request-modal-form input[type="tel"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-color);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
}

.search-input-wrapper i.fa-search {
    color: var(--text-light);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.search-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-submit-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 0.5rem;
    font-size: 1rem;
}

.search-submit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.search-suggestions {
    min-height: 100px;
}

.search-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 2rem 0;
}

.search-loading {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 2rem 0;
}

.search-loading i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    gap: 1rem;
}

.suggestion-item:hover,
.suggestion-item.selected {
    border-color: var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.suggestion-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-sku {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.suggestion-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.suggestion-arrow {
    color: var(--text-light);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.suggestion-item:hover .suggestion-arrow,
.suggestion-item.selected .suggestion-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white !important;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.checkout-form .btn-primary {
    font-size: 1.15rem;
    padding: 1.25rem 2rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    margin-top: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 80px;
}

.page-header {
    background: var(--bg-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--border-color);
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Auth Pages */
.auth-page {
    padding: 3rem 0;
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Более широкая форма для регистрации */
body.register-page .auth-container {
    max-width: 950px;
}

.auth-form-wrapper {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-form-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    background: var(--bg-card);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.auth-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.auth-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-link-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-link:hover {
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-1px);
}

.auth-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.auth-link-item:only-child .auth-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hero с видео-фоном */
.hero-section--video {
    background: #1a1a2e;
    padding: 4rem 0;
    min-height: 280px;
}
.hero-section__poster {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-section__poster--gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
.hero-section__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}
@media (max-width: 768px) {
    .hero-section--video .hero-section__video {
        display: none !important;
    }
    .hero-section--video .hero-section__poster {
        display: block;
    }
}
.hero-section__overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: var(--hero-overlay-opacity, 0.4);
    z-index: 1;
}
.hero-section__content {
    position: relative;
    z-index: 2;
}
.hero-section--video .hero-section__content h1,
.hero-section--video .hero-section__content p,
.hero-section--video .hero-section__content .btn {
    position: relative;
    z-index: 2;
}

/* Categories */
.categories-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-icon-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    color: var(--text-light);
    font-size: 3rem;
}

.category-icon-fallback i {
    opacity: 0.5;
}

.category-card .category-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-subcategories {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.category-subcategories small {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    display: block;
}

/* Подкатегории на странице категории */
.category-subcategories-section {
    margin-bottom: 3rem;
}

.category-subcategories-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subcategories-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0 0.75rem;
    margin-bottom: 1.25rem;
    scroll-snap-type: x proximity;
}

.subcategories-scroll::-webkit-scrollbar {
    height: 8px;
}

.subcategories-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.subcat-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.subcat-chip:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.subcat-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.45);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.subcategory-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.subcategory-image {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcategory-icon {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.subcategory-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.subcategory-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.category-card h2,
.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Products */
.products-section {
    margin-bottom: 4rem;
}

/* Товар дня (главная) */
.product-of-day-section .section-title {
    margin-bottom: 0.35rem;
}

.product-of-day-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0 auto 2rem;
    max-width: 36rem;
    line-height: 1.5;
}

.product-of-day-date {
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-color);
}

.product-of-day-slider {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    outline: none;
}

.product-of-day-slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.45);
    border-radius: 1rem;
}

.product-of-day-viewport {
    overflow: hidden;
    border-radius: 1rem;
}

.product-of-day-slider:not(.product-of-day-slider--single) .product-of-day-viewport {
    margin-left: 2.75rem;
    margin-right: 2.75rem;
}

.product-of-day-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.product-of-day-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-of-day-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--primary-color);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.product-of-day-nav:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.product-of-day-nav--prev {
    left: 0.35rem;
}

.product-of-day-nav--next {
    right: 0.35rem;
}

@media (max-width: 768px) {
    .product-of-day-slider:not(.product-of-day-slider--single) .product-of-day-viewport {
        margin-left: 2.35rem;
        margin-right: 2.35rem;
    }

    .product-of-day-nav {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .product-of-day-nav--prev {
        left: 0.2rem;
    }

    .product-of-day-nav--next {
        right: 0.2rem;
    }
}

.product-of-day-slider--single .product-of-day-viewport {
    margin: 0;
}

.product-of-day-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.product-of-day-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.product-of-day-dot:hover,
.product-of-day-dot:focus-visible {
    background: var(--primary-color);
    outline: none;
}

.product-of-day-dot.is-active {
    background: var(--primary-color);
    transform: scale(1.15);
}

.product-of-day-discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.product-of-day-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr);
    gap: 0;
    align-items: stretch;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.product-of-day-media {
    position: relative;
    background: var(--bg-color);
    min-height: 280px;
}

.product-of-day-media > a {
    display: block;
    min-height: 280px;
    position: relative;
}

.product-of-day-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    object-position: center;
}

.product-of-day-media .no-image {
    position: absolute;
    inset: 0;
    min-height: 280px;
}

.product-of-day-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.product-of-day-badge i {
    margin-right: 0.35rem;
    opacity: 0.95;
}

.product-of-day-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-of-day-body h3 {
    font-size: 1.35rem;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.product-of-day-body h3 a {
    color: inherit;
    text-decoration: none;
}

.product-of-day-body h3 a:hover {
    color: var(--primary-color);
}

.product-of-day-spotlight {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-color);
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    .product-of-day-card {
        grid-template-columns: 1fr;
    }

    .product-of-day-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.product-card:hover .add-to-cart {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.4);
}

.add-to-cart {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.3);
}

.add-to-cart i {
    transition: transform 0.3s;
}

.add-to-cart:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    display: block;
    background: var(--bg-color);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
    color: var(--text-light);
    font-size: 3.5rem;
    opacity: 0.5;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 3em;
    display: flex;
    align-items: flex-start;
}

.product-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-sku {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.product-categories {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.product-price {
    margin: auto 0 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.current-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.price-hidden {
    color: var(--text-light);
    font-style: italic;
    padding: 1rem 0;
    text-align: center;
}

.discount-info {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--success-color);
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(52, 211, 153, 0.15);
    border-radius: 0.375rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.product-stock {
    margin: 0.75rem 0;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    width: fit-content;
}

.product-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.product-stock.in-stock {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.product-stock.in-stock::before {
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.product-stock.low-stock {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.product-stock.low-stock::before {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.product-stock.out-of-stock {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.product-stock.out-of-stock::before {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-form textarea {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), 0 4px 6px rgba(6, 182, 212, 0.2);
    transform: translateY(-1px);
}

.checkout-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, transparent 100%);
    transition: width 0.3s;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateX(5px);
}

.radio-label:hover::before {
    width: 100%;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    margin: 0;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label span {
    position: relative;
    z-index: 1;
    transition: color 0.3s, font-weight 0.3s;
    flex: 1;
}

.radio-label input[type="radio"]:checked ~ span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Cart */
.cart-page {
    margin-bottom: 2rem;
}

.cart-empty,
.no-results,
.no-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.cart-empty i,
.no-results i,
.no-orders i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cart-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.btn-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item-card {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    align-items: start;
    transition: box-shadow 0.3s;
}

.cart-item-card:hover {
    box-shadow: var(--shadow-lg);
}

.cart-item-image-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
}

.cart-item-image-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
    color: var(--text-light);
    font-size: 2.5rem;
    opacity: 0.5;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cart-item-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.cart-item-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.cart-item-name a:hover {
    color: var(--primary-color);
}

.btn-remove-item {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-remove-item:hover {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger-color);
}

.cart-item-sku {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    font-family: 'Courier New', monospace;
}

.cart-item-categories {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.cart-item-stock-info {
    margin-top: 0.5rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.stock-status.in-stock {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.stock-status.low-stock {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.stock-status.out-of-stock {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    min-width: 200px;
}

.cart-item-price-section,
.cart-item-total-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.price-label,
.total-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.price-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-quantity-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.quantity-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.quantity-input {
    width: 70px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-card);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cart-summary {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    width: 100%;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total-row {
    border-bottom: none;
    font-size: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.discount-amount {
    color: var(--success-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.alert-success {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.alert ul {
    margin-left: 1.5rem;
}

/* Product Page */
.product-page {
    padding: 2rem 0;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Product Image Section */
.product-image-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: zoom-in;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-main-image.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
    border-radius: 0;
    border: none;
    margin: 0;
    overflow: auto;
}

.product-main-image.zoomed img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(1);
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-main-image.no-image {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
    min-height: 400px;
}

.product-main-image.no-image i {
    font-size: 5rem;
    color: var(--text-light);
    opacity: 0.3;
}

/* Product Gallery */
.product-gallery {
    width: 100%;
}

.product-main-media {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: zoom-in;
    position: relative;
    margin-bottom: 1rem;
}

.product-main-media img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-main-media video {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    background: #000;
}

.product-main-media:hover img {
    transform: scale(1.05);
}

.product-main-media.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
    border-radius: 0;
    border: none;
    margin: 0;
    overflow: auto;
}

.product-main-media.zoomed img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(1);
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-media-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.media-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.media-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.media-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.thumbnail-video {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
    color: var(--primary-color);
}

.thumbnail-video i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.thumbnail-video .thumbnail-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-meta-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-meta-label {
    color: var(--text-light);
    font-weight: 500;
}

.product-meta-value {
    color: var(--text-color);
    font-weight: 400;
}


/* Price Block */
.product-price-block {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.product-old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.product-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.product-discount-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.product-price-hidden {
    text-align: center;
    padding: 1.5rem;
}

.product-price-hidden p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Actions Block */
.product-actions-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
}

.quantity-controls .quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls .quantity-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.quantity-controls input {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-card);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.quantity-max {
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-add-to-cart {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-out-of-stock-message,
.product-login-message {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.product-out-of-stock-message i {
    font-size: 2.5rem;
    color: var(--warning-color);
    margin-bottom: 0.75rem;
    display: block;
}

.product-out-of-stock-message p,
.product-login-message p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Description Block */
.product-description-block {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.description-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.description-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    white-space: normal;
}

/* Similar Products Section */
.similar-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.similar-products h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image-section {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .product-main-image {
        max-width: 100%;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-current-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 1rem 0;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-current-price {
        font-size: 1.75rem;
    }
    
    .product-main-image.no-image i {
        font-size: 5rem;
    }
    
    .similar-products h2 {
        font-size: 1.5rem;
    }
}

/* Дополнительные стили для темной темы */
.category-filters,
.search-filters {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filters-collapsible {
    margin-bottom: 1rem;
}

.filters-collapsible > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    font-weight: 700;
}

.filters-collapsible > summary::-webkit-details-marker {
    display: none;
}

.filters-collapsible > summary::after {
    content: '▾';
    opacity: 0.7;
    transform: translateY(-1px);
    transition: transform 0.15s ease;
}

.filters-collapsible[open] > summary::after {
    transform: rotate(180deg);
}

.filters-collapsible > summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.45);
}

.filters-collapsible .category-filters {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-form-large input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-card);
    color: var(--text-color);
    font-size: 1rem;
}

.search-form-large input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results-header {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Checkout Page */
.checkout-page {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 300px);
}

.checkout-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.checkout-form-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.checkout-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
}

.checkout-form-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-form-section h2::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-radius: 2px;
}

.checkout-form,
.profile-form,
.contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.checkout-summary {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
}

.checkout-summary h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-summary h2::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-radius: 2px;
}

.order-preview {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--bg-color);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.order-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.order-item-info .sku {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    font-family: 'Courier New', monospace;
}

.order-item-quantity {
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.order-item-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
}

.order-totals {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.order-totals .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    color: var(--text-color);
    font-size: 1.05rem;
}

.order-totals .total-row.discount-row {
    color: var(--text-light);
}

.order-totals .total-row.discount-row .discount-amount {
    color: var(--success-color);
    font-weight: 600;
}

.order-totals .total-row.final-total {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
}

/* Order Page */
.order-page {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 300px);
}

.order-details {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-info,
.info-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card h3::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-radius: 2px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.2s;
}

.info-row:hover {
    padding-left: 0.5rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: var(--text-color);
    font-weight: 600;
    min-width: 140px;
}

.info-row span {
    color: var(--text-light);
    text-align: right;
    flex: 1;
}

.order-actions {
    margin-top: 0;
}

.order-items-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.order-items-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
}

.order-items-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-items-section h3::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-radius: 2px;
}

.order-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border: none;
    margin-bottom: 2rem;
}

.order-items-table thead {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
    border-radius: 0.75rem;
}

.order-items-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.order-items-table th:first-child {
    border-top-left-radius: 0.75rem;
}

.order-items-table th:last-child {
    border-top-right-radius: 0.75rem;
    text-align: right;
}

.order-items-table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table tbody tr:hover {
    background: var(--bg-color);
}

.order-items-table tbody tr:last-child {
    border-bottom: none;
}

.order-items-table td {
    padding: 1.25rem 1.25rem;
    color: var(--text-color);
    vertical-align: middle;
}

.order-items-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-items-table td strong {
    color: var(--text-color);
    font-weight: 600;
}

.order-back {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-start;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0.15) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.status-confirmed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-shipped {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25) 0%, rgba(34, 211, 238, 0.15) 100%);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.4);
}

.status-delivered {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25) 0%, rgba(52, 211, 153, 0.15) 100%);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-cancelled {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.25) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.order-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-card-body {
    margin-bottom: 1rem;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.order-card-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.profile-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    height: fit-content;
    box-shadow: var(--shadow);
}

.profile-stats {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.profile-stats h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.stat-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.2s;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item:hover {
    padding-left: 0.5rem;
}

.stat-item strong {
    display: block;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.profile-nav .nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.profile-nav .nav-item:hover,
.profile-nav .nav-item.active {
    background: var(--bg-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.profile-nav .nav-item.active {
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1.25rem - 3px);
}

.profile-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.profile-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.discount-stat {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    margin-top: 1rem;
}

.discount-stat strong {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contacts-page {
    padding: 2rem 0;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info,
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.orders-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive - Планшеты */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        gap: 1.5rem;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-page-content {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        margin-bottom: 2rem;
    }
}

/* Responsive - Мобильные устройства */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .main-nav,
    .search-form {
        display: none;
    }
    
    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .search-form {
        display: none;
    }
    
    .cart-link {
        margin-right: 0.75rem;
        position: relative;
    }
    
    .cart-count {
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        z-index: 10;
    }
    
    .user-menu-toggle span {
        display: none;
    }
    
    .user-menu-toggle {
        padding: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        color: var(--text-color);
        font-size: 1.5rem;
        padding: 0.5rem;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav a {
        display: block;
        padding: 1rem;
        text-decoration: none;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
        transition: background 0.3s;
    }
    
    .mobile-nav a:hover {
        background: var(--bg-card);
    }
    
    .mobile-nav a:last-child {
        border-bottom: none;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    /* Контент */
    .container {
        padding: 0 1rem;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
    }
    
    .main-content {
        padding-bottom: 100px;
    }
    
    /* Страница контактов - адаптация для планшетов */
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Grids */
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card,
    .product-card {
        padding: 1rem;
    }
    
    .category-card h3,
    .product-card h3 {
        font-size: 0.95rem;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Формы авторизации */
    .auth-page {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-form-wrapper {
        padding: 1.5rem;
    }
    
    .auth-form-wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-form .form-group {
        margin-bottom: 1.25rem;
    }
    
    .auth-form .form-group input {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Страница товара */
    .product-page {
        padding: 1rem 0;
    }
    
    .product-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        order: 1;
    }
    
    .product-main-media {
        max-width: 100%;
    }
    
    .product-media-thumbnails {
        gap: 0.5rem;
    }
    
    .media-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-main-image {
        min-height: 200px;
        max-height: 70vh;
    }
    
    .product-main-image img {
        max-height: 70vh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    .product-main-media img,
    .product-main-media video {
        max-height: 70vh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    .product-info {
        order: 2;
    }
    
    .product-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-price-section {
        margin: 1.5rem 0;
    }
    
    .product-current-price {
        font-size: 1.75rem;
    }
    
    .product-actions-block {
        gap: 1rem;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-controls input {
        flex: 1;
        max-width: 100px;
    }
    
    /* Корзина */
    .cart-content {
        gap: 1.5rem;
    }
    
    .cart-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-card {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-info h3 {
        font-size: 0.95rem;
    }
    
    .cart-item-controls {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cart-item-price-section,
    .cart-item-total-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-item-quantity-section {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
    
    .summary-title {
        font-size: 1.25rem;
    }
    
    /* Checkout */
    .checkout-page {
        padding: 1.5rem 0 4rem;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-form-section,
    .checkout-summary {
        padding: 1.5rem;
    }
    
    .checkout-form-section h2,
    .checkout-summary h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .order-info,
    .info-card,
    .order-items-section {
        padding: 1.25rem;
    }
    
    .order-items-table {
        font-size: 0.85rem;
    }
    
    .order-items-table th,
    .order-items-table td {
        padding: 0.5rem;
    }
    
    /* Фильтры */
    .category-filters,
    .search-filters {
        padding: 1rem;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Пагинация */
    .pagination {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .pagination .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* User Menu Dropdown */
    .user-menu-dropdown {
        right: -1rem;
        min-width: 200px;
    }
    
    /* Кнопки */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
    
    /* Таблицы */
    .cart-table {
        font-size: 0.85rem;
    }
    
    .cart-item-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Алерты */
    .alert {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Поиск */
    .search-form-large {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-form-large input {
        width: 100%;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .header-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .categories-grid,
    .products-grid,
    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .category-card,
    .product-card {
        padding: 0.875rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .product-current-price {
        font-size: 1.5rem;
    }
    
    .cart-item-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cart-item-image-wrapper {
        width: 100%;
        height: 200px;
        margin: 0 auto;
        max-width: 250px;
    }
    
    .auth-form-wrapper {
        padding: 1.25rem;
    }
    
    .auth-form-wrapper h2 {
        font-size: 1.25rem;
    }
    
    .checkout-form-section,
    .checkout-summary {
        padding: 1rem;
    }
    
    .checkout-form-section h2,
    .checkout-summary h2 {
        font-size: 1.1rem;
    }
    
    /* Страница контактов - адаптация для мобильных */
    .contacts-page {
        padding: 1.5rem 0;
        padding-bottom: 6rem; /* Отступ для нижней навигации */
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }
    
    .contact-item i {
        font-size: 1.25rem;
        margin-top: 0.125rem;
    }
    
    .contact-item strong {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .contact-item p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .contact-form .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-form label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    .contact-form textarea {
        min-height: 120px;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .bottom-nav a {
        padding: 0.5rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .bottom-nav a i {
        font-size: 1.15rem;
        margin-bottom: 0.2rem;
    }
    
    .bottom-nav a span {
        font-size: 0.65rem;
    }
    
    .search-modal-content {
        padding: 1.25rem;
        border-radius: 1.25rem 1.25rem 0 0;
    }
    
    .search-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .suggestion-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .suggestion-image {
        width: 50px;
        height: 50px;
    }
    
    .suggestion-name {
        font-size: 0.95rem;
    }
    
    .suggestion-sku {
        font-size: 0.8rem;
    }
    
    .suggestion-price {
        font-size: 0.95rem;
    }
    
    /* Страница контактов - адаптация для очень маленьких экранов */
    .contacts-page {
        padding: 1rem 0;
        padding-bottom: 6rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1rem;
    }
    
    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }
    
    .contact-item {
        padding: 0.625rem 0;
        gap: 0.625rem;
    }
    
    .contact-item i {
        font-size: 1.1rem;
    }
    
    .contact-item strong {
        font-size: 0.85rem;
    }
    
    .contact-item p {
        font-size: 0.8rem;
    }
}

/* Landscape ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .auth-page {
        padding: 1.5rem 0;
    }
}

/* Profile Page Mobile Adaptation */
@media (max-width: 768px) {
    .profile-page {
        padding: 1rem 0;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-sidebar {
        padding: 1.5rem;
        order: 2;
    }
    
    .profile-main {
        order: 1;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .profile-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-stats {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .profile-stats h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
    
    .stat-item span {
        font-size: 0.85rem;
    }
    
    .profile-nav {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .profile-nav .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
        justify-content: center;
    }
    
    .profile-nav .nav-item i {
        width: auto;
        font-size: 1rem;
    }
    
    .profile-nav .nav-item span {
        margin-left: 0.5rem;
    }
    
    .profile-nav .nav-item:hover,
    .profile-nav .nav-item.active {
        transform: translateY(-2px);
    }
    
    .profile-nav .nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        padding-left: 1rem;
        padding-bottom: calc(0.75rem - 3px);
    }
    
    .discount-stat {
        padding: 1rem;
        margin-top: 0.75rem;
    }
    
    .discount-stat strong {
        font-size: 1.75rem;
    }
    
    .profile-form .form-group {
        margin-bottom: 1rem;
    }
    
    .profile-form .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-form .form-group input,
    .profile-form .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .profile-form button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .profile-page {
        padding: 0.5rem 0;
    }
    
    .profile-content {
        gap: 1rem;
    }
    
    .profile-sidebar {
        padding: 1rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .profile-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .profile-stats h3 {
        font-size: 1rem;
    }
    
    .stat-item {
        padding: 0.875rem 0;
    }
    
    .stat-item strong {
        font-size: 1.35rem;
    }
    
    .stat-item span {
        font-size: 0.8rem;
    }
    
    .profile-nav .nav-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
        min-width: calc(50% - 0.25rem);
    }
    
    .profile-nav .nav-item span {
        font-size: 0.8rem;
    }
    
    .discount-stat {
        padding: 0.875rem;
    }
    
    .discount-stat strong {
        font-size: 1.5rem;
    }
    
    .profile-form .form-group label {
        font-size: 0.85rem;
    }
    
    .profile-form .form-group input,
    .profile-form .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .profile-form button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

