:root {
    --primary: #FFD700;
    --dark: #121212;
    --light: #f5f5f5;
    --gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--dark);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 10px;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-btn {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.cart {
    position: relative;
}

.cart-count {
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.logout-btn {
    color: #ff4444;
    text-decoration: none;
    margin-left: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Slider */
.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 500px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--dark);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    text-decoration: none;
    color: var(--dark);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 1rem;
    text-align: center;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-add-to-cart {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-add-to-cart:hover {
    background: #ffed4a;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.advantage-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-social h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social p {
    margin-bottom: 0.5rem;
}

.footer-social i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Forms */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #ffed4a;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.info {
    background: #3498db;
}

.notification.success {
    background: #2ecc71;
}

.notification.error {
    background: #e74c3c;
}

/* Catalog Filters */
.filters {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Cart */
.cart-container {
    max-width: 800px;
    margin: 4rem auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-total {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: right;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-total h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.btn-checkout {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 1rem;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Admin Panel */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 200px);
}

.admin-sidebar {
    background: var(--dark);
    color: white;
    padding: 2rem;
}

.admin-sidebar h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 0.5rem;
}

.admin-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--primary);
    color: var(--dark);
}

.admin-content {
    padding: 2rem;
    background: var(--light);
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-table th {
    background: var(--dark);
    color: white;
    padding: 1rem;
    text-align: left;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.admin-table tr:hover {
    background: #f9f9f9;
}
/* ============================================ */
/* ЛИЧНЫЙ КАБИНЕТ */
/* ============================================ */

/* Контейнер личного кабинета */
.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* Боковое меню профиля */
.profile-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.avatar-upload {
    margin-top: 0.5rem;
}

.avatar-upload label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--dark);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.avatar-upload label:hover {
    background: #ffed4a;
}

.avatar-upload input[type="file"] {
    display: none;
}

.profile-name {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-name h3 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.profile-name p {
    color: var(--gray);
    font-size: 0.9rem;
}

.profile-menu {
    list-style: none;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.profile-menu li {
    margin-bottom: 0.5rem;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.profile-menu a i {
    width: 20px;
    color: var(--gray);
}

.profile-menu a:hover {
    background: #f0f0f0;
}

.profile-menu a.active {
    background: var(--primary);
    color: var(--dark);
}

.profile-menu a.active i {
    color: var(--dark);
}

/* Основной контент профиля */
.profile-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    min-height: 500px;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.profile-section h2 i {
    color: var(--primary);
}

/* Формы профиля */
.profile-form {
    max-width: 500px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-requirements {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.password-requirements ul {
    list-style: none;
    margin-top: 0.25rem;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.password-requirements li.valid {
    color: #2ecc71;
}

.password-requirements li.invalid {
    color: #e74c3c;
}

/* История заказов */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.order-header:hover {
    background: #f0f0f0;
}

.order-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.order-number {
    font-weight: bold;
    color: var(--dark);
}

.order-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-total {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.order-details {
    display: none;
    padding: 1.5rem;
    background: white;
}

.order-details.active {
    display: block;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.order-item-price {
    color: var(--gray);
    font-size: 0.9rem;
}

.order-item-quantity {
    color: var(--gray);
    font-size: 0.9rem;
}

.order-item-total {
    font-weight: bold;
    color: var(--primary);
}

.order-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-summary-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-order-action {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-order-details {
    background: var(--primary);
    color: var(--dark);
}

.btn-order-repeat {
    background: var(--dark);
    color: white;
}

.btn-order-check {
    background: #3498db;
    color: white;
}

/* Чеки */
.receipt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.receipt-modal.active {
    display: flex;
}

.receipt-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--primary);
}

.receipt-header h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.receipt-store {
    color: var(--gray);
    font-size: 0.9rem;
}

.receipt-body {
    margin-bottom: 1.5rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.receipt-total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px dashed #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.receipt-footer {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.receipt-close {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

/* Обратная связь */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feedback-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.feedback-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.feedback-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-answered {
    background: #d4edda;
    color: #155724;
}

.status-waiting {
    background: #fff3cd;
    color: #856404;
}

.feedback-message {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
}

.feedback-response {
    padding: 1rem;
    background: #e8f4f8;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.feedback-response .response-header {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.feedback-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
}

.feedback-form h3 {
    margin-bottom: 1rem;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Индикатор загрузки */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

/* Валидация полей */
.form-group {
    position: relative;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #2ecc71;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.validation-icon.show {
    display: block;
}

.validation-icon.success {
    color: #2ecc71;
}

.validation-icon.error {
    color: #e74c3c;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .order-item {
        flex-wrap: wrap;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .btn-order-action {
        justify-content: center;
    }
}
/* Стили для dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, #ffed4a 100%);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark);
}

.stat-card i {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.dashboard-recent {
    margin-bottom: 2rem;
}

.dashboard-recent h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.recent-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.dashboard-action {
    flex: 1;
    padding: 1rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dashboard-action:hover {
    background: var(--primary);
    color: var(--dark);
}

/* История заказа */
.order-history {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.order-history h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.history-timeline {
    position: relative;
    padding-left: 20px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.history-item {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.history-date {
    font-size: 0.85rem;
    color: var(--gray);
    display: block;
    margin-bottom: 0.25rem;
}

.history-status {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.history-comment {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Информация о заказе */
.order-info-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.order-info-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.order-info-row span:first-child {
    width: 150px;
    color: var(--gray);
}

.order-info-row span:last-child {
    font-weight: 500;
}

.payment-status-pending {
    color: #856404;
}

.payment-status-paid {
    color: #155724;
}

.payment-status-failed {
    color: #721c24;
}

.payment-status-refunded {
    color: #0c5460;
}

/* Пагинация */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination-controls {
    display: inline-flex;
    gap: 0.5rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: bold;
}

.page-dots {
    padding: 0 10px;
    align-self: center;
}

/* Пустые сообщения */
.empty-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    font-style: italic;
}

/* ============================================ */
/* ОФОРМЛЕНИЕ ЗАКАЗА - CHECKOUT */
/* ============================================ */

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

/* Форма */
.checkout-form-section {
    animation: fadeInUp 0.5s ease;
}

.form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h3 i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #1a202c;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Способы оплаты */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-card {
    cursor: pointer;
}

.payment-method-card input[type="radio"] {
    display: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.payment-method-content:hover {
    border-color: #cbd5e0;
    background: #ffffff;
}

.payment-method-card input:checked + .payment-method-content {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.payment-method-content i {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-card input:checked + .payment-method-content i {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    animation: pulse 0.3s ease;
}

.payment-method-content strong {
    display: block;
    color: #1a202c;
    font-size: 1rem;
}

.payment-method-content small {
    color: #718096;
    font-size: 0.85rem;
}

/* Форма карты */
.card-payment-form {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    animation: slideDown 0.3s ease;
}

.card-payment-form .form-row {
    grid-template-columns: 2fr 1fr 1fr;
}

.card-note {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-note i {
    color: #48bb78;
}

/* Кнопка оформления */
.btn-checkout-submit {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 1rem;
}

.btn-checkout-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a1 100%);
}

.btn-checkout-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Сводка заказа */
.checkout-summary {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.checkout-summary h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f7fafc;
}

.summary-items {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
}

.summary-item-info img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.summary-item-info strong {
    display: block;
    font-size: 0.9rem;
    color: #1a202c;
}

.summary-item-info small {
    color: #718096;
    font-size: 0.8rem;
}

.summary-item > span {
    font-weight: 600;
    color: #1a202c;
}

.summary-totals {
    border-top: 2px solid #edf2f7;
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.summary-row.total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.2rem;
}

.summary-row.total strong {
    color: #667eea;
    font-size: 1.3rem;
}

.btn-back-cart {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.btn-back-cart:hover {
    color: #667eea;
    background: #f7fafc;
}

/* Алерты */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-error p {
    margin: 0;
    padding: 0.25rem 0;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================================ */
/* ПОДТВЕРЖДЕНИЕ ЗАКАЗА */
/* ============================================ */

.order-confirmation {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    box-shadow: 0 10px 40px rgba(72, 187, 120, 0.3);
    animation: scaleIn 0.5s ease 0.2s both;
}

.order-confirmation h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.order-number {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
    display: inline-block;
}

.order-number strong {
    color: #667eea;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
    margin: 2rem 0;
}

@media (max-width: 700px) {
    .order-details {
        grid-template-columns: 1fr;
    }
}

.order-info,
.order-items {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.order-info h3,
.order-items h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f7fafc;
    color: #1a202c;
}

.order-info p {
    padding: 0.4rem 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.order-info strong {
    color: #1a202c;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-item > div {
    flex: 1;
}

.order-item strong {
    display: block;
    font-size: 0.9rem;
    color: #1a202c;
}

.order-item small {
    color: #718096;
    font-size: 0.85rem;
}

.order-item > span {
    font-weight: 600;
    color: #1a202c;
}

.order-confirmation .btn {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.order-confirmation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.order-confirmation .btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    box-shadow: none;
}

.order-confirmation .btn-secondary:hover {
    background: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .order-confirmation {
        padding: 2rem 0.5rem;
    }
    
    .order-confirmation h2 {
        font-size: 1.4rem;
    }
    
    .confirmation-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .order-number {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        display: block;
    }
    
    .order-number strong {
        font-size: 1rem;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .order-info,
    .order-items {
        padding: 1rem;
    }
    
    .order-info p {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .order-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .order-item img {
        width: 40px;
        height: 40px;
    }
    
    .order-item > div {
        flex: 1;
        min-width: 150px;
    }
    
    .order-item > span {
        width: 100%;
        text-align: right;
    }
    
    .order-confirmation .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .order-confirmation {
        padding: 1.5rem 0.25rem;
    }
    
    .confirmation-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .order-confirmation h2 {
        font-size: 1.2rem;
    }
    
    .order-item {
        font-size: 0.85rem;
    }
    
    .order-item strong {
        font-size: 0.85rem;
    }
    
    .order-item small {
        font-size: 0.75rem;
    }
}