/* Минималистичный дизайн для интернет-магазина с боковым меню */

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Основной Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Боковое меню */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #f8f9fa 10%, 
        #e9ecef 20%, 
        #dee2e6 30%, 
        #ced4da 40%, 
        #adb5bd 50%, 
        #ced4da 60%, 
        #dee2e6 70%, 
        #e9ecef 80%, 
        #f8f9fa 90%, 
        #ffffff 100%);
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sidebar .logo a {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}

.nav-link {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, transparent 100%);
    color: #2c3e50;
    border-left-color: #3498db;
    padding-left: 1.75rem;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.15) 0%, transparent 100%);
    color: #2c3e50;
    border-left-color: #3498db;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.user-info {
    padding: 0.5rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.user-role {
    font-size: 0.8rem;
    color: #6c757d;
}

.developer-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
}

.developer-info span {
    display: block;
}

.company-name {
    font-weight: 600;
    color: #3498db;
    margin-top: 0.25rem;
}

/* Основной контент с боковым меню */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    padding: 2rem;
}

/* Чистая страница для неавторизованных */
.clean-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

/* Верхнее меню для неавторизованных пользователей */
.header-top {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.top-nav {
    display: flex;
    gap: 1.5rem;
}

.top-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.top-nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Футер */
.footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    margin: 0.25rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Формы */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.form-footer a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

/* Вкладки */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-button {
    flex: 1;
    padding: 0.75rem;
    background: #ecf0f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-button.active {
    background: #2c3e50;
    color: white;
}

/* Уведомления */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Главная страница */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Статистика пользователя */
.stats-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s;
}

.stat-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Последние заказы */
.recent-orders-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.orders-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.order-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s;
}

.order-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.order-header h3 {
    margin: 0;
    color: #2c3e50;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-info {
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
    color: #495057;
}

.info-row .value {
    color: #2c3e50;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.view-all-orders {
    text-align: center;
}

.info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    padding: 1.5rem;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    text-align: center;
}

.info-card h3 {
    margin-bottom: 0.5rem;
}

/* Профиль */
.profile-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.info-group {
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    gap: 1rem;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group label {
    font-weight: 500;
    min-width: 200px;
}

/* Каталог товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}


.stock-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.stock-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-available {
    background: rgba(39, 174, 96, 0.9);
    color: white;
    backdrop-filter: blur(10px);
}

.stock-unavailable {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    backdrop-filter: blur(10px);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-to-cart-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-group {
    flex: 1;
}

.quantity-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
}

.btn-description {
    width: 100%;
}

.btn-disabled {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close {
    color: #6c757d;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #2c3e50;
}

.modal-product-title {
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-product-title h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.modal-image-container {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-price {
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.modal-stock {
    font-size: 12px;
    color: #495057;
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}


.modal-actions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.modal-actions .add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-actions .quantity-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-actions .quantity-group label {
    font-weight: 500;
    color: #495057;
    font-size: 12px;
}

.modal-actions .quantity-input {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.btn-add-to-cart {
    padding: 0.75rem;
    font-size: 12px;
    font-weight: 600;
}



.modal-description-section {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #3498db 0%, transparent 100%);
}

.section-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
}

.modal-description {
    color: #495057;
    line-height: 1.6;
    font-size: 12px;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}


.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    text-align: right;
}

.empty-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Корзина - минималистичный стиль */
.breadcrumbs {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumbs span:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

.btn-continue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-continue:hover {
    background: #2980b9;
}

.btn-icon {
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}


.empty-cart h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.empty-cart p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.cart-items-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.section-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.cart-items {
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.3s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: #f8f9fa;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f4;
    color: #6c757d;
    font-size: 0.9rem;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.cart-item-category {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-control input {
    width: 60px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 1rem;
    background: white;
}

.cart-item-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.price-per-item {
    font-size: 0.9rem;
    color: #6c757d;
}

.price-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.cart-item-actions {
    flex-shrink: 0;
}

.btn-remove {
    padding: 0.5rem 1rem;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #c0392b;
}

.cart-summary-section {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 2rem;
}

.summary-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #495057;
    font-weight: 500;
}

.summary-value {
    color: #2c3e50;
    font-weight: 600;
}

.delivery-free {
    color: #27ae60 !important;
}

.summary-total {
    border-top: 2px solid #e9ecef;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.1rem;
}

.summary-total .summary-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.summary-total .summary-value {
    font-size: 1.3rem;
    color: #3498db;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.secure-payment {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Оформление заказа */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.summary-items {
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid #2c3e50;
    font-size: 1.3rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.radio-label:hover {
    border-color: #2c3e50;
}

.radio-label input[type="radio"] {
    margin: 0;
}

/* Заказы - минималистичный стиль */
.orders-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filters-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.95rem;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-apply,
.btn-reset {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-apply {
    background: #3498db;
    color: white;
}

.btn-apply:hover {
    background: #2980b9;
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
}

.new-order-section {
    flex-shrink: 0;
}

.btn-new-order {
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-new-order:hover {
    background: #2980b9;
}

.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}


.empty-orders h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.empty-orders p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.orders-list {
    display: grid;
    gap: 1rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.order-number h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.status-badge,
.payment-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: #d1ecf1;
    color: #0c5460;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.payment-pending {
    background: #fff3cd;
    color: #856404;
}

.payment-paid {
    background: #d4edda;
    color: #155724;
}

.payment-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-content {
    margin-bottom: 1.5rem;
}

.order-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.amount-label {
    color: #495057;
    font-weight: 500;
}

.amount-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.order-payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.payment-method {
    font-weight: 500;
}

.bonus-info {
    color: #27ae60;
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-details,
.btn-pay,
.btn-download {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-details {
    background: #6c757d;
    color: white;
}

.btn-details:hover {
    background: #5a6268;
}

.btn-pay,
.btn-download {
    background: #3498db;
    color: white;
}

.btn-pay:hover,
.btn-download:hover {
    background: #2980b9;
}

/* Детали заказа */
.order-info-section,
.order-items-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.order-items-table th,
.order-items-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.order-items-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.order-items-table tfoot td {
    font-weight: bold;
    border-top: 2px solid #2c3e50;
}

/* Оплата */
.payment-container,
.message-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.payment-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.payment-buttons {
    margin: 2rem 0;
}

.payment-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.payment-note ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.payment-note li {
    margin: 0.5rem 0;
}

/* Результат оплаты */
.payment-result-page {
    text-align: center;
    padding: 2rem 0;
}

.success-message,
.error-message {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-icon {
    color: #27ae60;
}

.error-icon {
    color: #e74c3c;
}

.success-text,
.error-text {
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

/* Бейджи */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-paid {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.badge-new {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-processing {
    background: #fff3cd;
    color: #856404;
}

.badge-completed {
    background: #d4edda;
    color: #155724;
}

/* Админ-панель */
.admin-page h1 {
    margin-bottom: 1.5rem;
}

.admin-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-card.stat-warning {
    border-left: 4px solid #f39c12;
}

.stat-card.stat-info {
    border-left: 4px solid #3498db;
}

.stat-card.stat-success {
    border-left: 4px solid #27ae60;
}

.stat-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
}

.recent-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.admin-table th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-actions {
    margin-bottom: 1.5rem;
}

.admin-form {
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.current-image {
    margin-bottom: 1rem;
}

.order-admin-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.order-admin-info,
.order-admin-items {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.order-dates {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Кнопка мобильного меню (скрыта по умолчанию) */
.mobile-menu-btn {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Боковое меню на мобильных */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    /* Кнопка мобильного меню */
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: #2c3e50;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 4px;
        cursor: pointer;
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .order-admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Адаптивность каталога */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .modal-image-container {
        height: 250px;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .modal-price {
        font-size: 2rem;
    }
    
    .modal-description {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .add-to-cart-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quantity-group {
        width: 100%;
    }
    
    /* Адаптивность корзины */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-item-controls {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .cart-item-price-info {
        align-items: flex-start;
    }
    
    .cart-item-actions {
        align-self: flex-end;
    }
    
    /* Адаптивность заказов */
    .orders-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .new-order-section {
        text-align: center;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-status {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .order-actions {
        justify-content: center;
    }
}

