/* Основные стили */
:root {
    --primary: #1a1a1a;
    --secondary: #0a130f;
    --accent: #27ae60;
    --accent-dark: #219653;
    --light: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333;
    --border: #e0e0e0;
    --error: #eb5757;
    --warning: #f2c94c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Шапка */
header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/static/images/fpvest.jpeg') center/cover no-repeat;
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    color: white;
}

.header-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 16px;
    display: inline-block;
    max-width: 90%;
}

/* Поиск и корзина */
.header-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 1.5rem;
}

.search-form {
    display: flex;
    max-width: 400px;
    flex-grow: 1;
}

.search-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-form button {
    padding: 10px 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: var(--accent-dark);
}

.cart-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Фильтры */
.filters {
    margin-bottom: 2rem;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.category-btn {
    padding: 8px 16px;
    background: var(--gray);
    color: var(--dark-gray);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: var(--accent);
    color: white;
}

/* Карточки товаров */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 1rem 0;
}

.product {
    background: white;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    background: var(--accent);
    color: white;
}

.product-badge.out-of-stock {
    background: var(--error);
}

.product-image-container {
    width: 100%;
    height: 200px;
    background: var(--gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    flex-grow: 1;
}

.product-rating {
    color: var(--warning);
    margin-bottom: 5px;
    font-weight: bold;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
    margin: 10px 0;
}

.quantity-control {
    display: flex;
    margin: 10px 0;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: var(--gray);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.qty-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--accent);
}

.details-link {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

/* Страница товара */
.product-card {
    display: flex;
    gap: 40px;
    margin-bottom: 3rem;
}

.product-gallery {
    flex: 1;
}

.main-image {
    background: var(--gray);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.product-header {
    margin-bottom: 20px;
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge.in-stock {
    background: var(--accent);
    color: white;
}

.badge.out-of-stock {
    background: var(--error);
    color: white;
}

.badge.rating {
    background: var(--warning);
    color: #000;
}

.badge.sku {
    background: var(--gray);
    color: var(--dark-gray);
}

.price-block {
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--dark-gray);
    margin-left: 10px;
    font-size: 0.9rem;
}

.buy-form {
    margin: 20px 0;
}

.quantity-selector {
    margin-bottom: 15px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.qty-control {
    display: flex;
}

.qty-control input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border);
}

.buy-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: var(--accent-dark);
}

.product-tabs {
    margin-top: 30px;
}

.tab {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gray);
    color: var(--dark-gray);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
}

.tab.active {
    background: white;
    color: var(--accent);
    font-weight: bold;
}

.tab-content {
    background: white;
    padding: 20px;
    border-radius: 0 8px 8px 8px;
    margin-top: -1px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.specs-list li:last-child {
    border-bottom: none;
}

.related-products {
    margin-top: 50px;
}

.related-products h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Корзина */
.cart-items {
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--gray);
    border-radius: 8px;
    padding: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.item-price {
    color: var(--dark-gray);
    font-weight: bold;
}

.remove-btn {
    color: #ff4444;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #ff4444;
    color: white;
}

.cart-total {
    text-align: right;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 16px;
}

.cart-total h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.checkout-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: var(--accent-dark);
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
    background: white;
    border-radius: 16px;
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.continue-shopping {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.continue-shopping:hover {
    background: var(--accent);
}

.no-results {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--dark-gray);
    background: white;
    border-radius: 16px;
}

/* Футер */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    color: var(--dark-gray);
    border-top: 1px solid var(--border);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
    }
    
    .search-form {
        width: 100%;
    }
    
    .product-card {
        flex-direction: column;
    }
    
    .main-image {
        height: 300px;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-transition {
    animation: fadeIn 0.3s ease-in-out;
}
/* Стили для модального окна заказа */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary);
}

.close-modal {
    font-size: 1.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

.close-modal:hover {
    color: var(--error);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: white;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    margin-top: 30px;
    text-align: right;
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--accent-dark);
}

/* Стили для успешного оформления */
.order-success {
    text-align: center;
    padding: 30px;
}

.order-success-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.order-success h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.order-success p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.back-to-shop {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.back-to-shop:hover {
    background: var(--accent);
}

/* Адаптивность */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
    }
    
    .submit-btn {
        width: 100%;
    }
}
/* Стили для страницы оформления заказа */
.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.order-summary h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 26px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group textarea {
    min-height: 120px;
    border-radius: 18px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.submit-order {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 26px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-order:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Обязательные поля */
.form-group.required label:after {
    content: " *";
    color: var(--error);
}

/* Ошибки */
.error-message {
    color: var(--error);
    background: #ffebeb;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 15px;
}
a {
    text-decoration: none;
}
/* Auth styles */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.auth-btn:hover {
    background: var(--accent-dark);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--dark-gray);
}

.auth-link a {
    color: var(--accent);
    font-weight: bold;
}

/* Base Template Styles */
.header-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.slogan {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-link {
    position: relative;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

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

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn, .register-btn {
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.login-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.register-btn {
    background: #27ae60;
    color: white;
    border: 1px solid #27ae60;
}

.login-btn:hover {
    background: rgba(255,255,255,0.2);
}

.register-btn:hover {
    background: #219653;
    border-color: #219653;
}

.main-nav {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #27ae60;
}

.nav-link i {
    margin-right: 5px;
}

/* Flash messages */
.flash-messages {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 15px;
}

.flash-messages div {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.flash-success {
    background: #d4edda;
    color: #155724;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
}

.flash-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section a {
    display: block;
    color: #ecf0f1;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #27ae60;
}

.footer-section p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    background: rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.regular {
    background: #3498db;
    color: white;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 40px;
}

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

.profile-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.info-label {
    width: 150px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    flex: 1;
    font-weight: 500;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn i {
    width: 20px;
    text-align: center;
}

.action-btn.logout {
    background: #f5f5f5;
    color: #e74c3c;
}

.action-btn.logout:hover {
    background: #e74c3c;
    color: white;
}

.action-btn.shop {
    background: #f5f5f5;
    color: #27ae60;
}

.action-btn.shop:hover {
    background: #27ae60;
    color: white;
}

.orders-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.order-meta {
    display: flex;
    flex-direction: column;
}

.order-number {
    font-weight: bold;
    color: #2c3e50;
}

.order-date {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.order-status.new {
    background: #3498db;
    color: white;
}

.order-status.processing {
    background: #f39c12;
    color: white;
}

.order-status.shipped {
    background: #9b59b6;
    color: white;
}

.order-status.completed {
    background: #27ae60;
    color: white;
}

.order-details {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
}

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

.order-items {
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.item-image {
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 5px;
}

.item-info {
    flex: 1;
}

.item-name {
    margin: 0 0 5px;
    font-size: 0.95rem;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.order-summary {
    border-left: 1px solid #f5f5f5;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .order-summary {
        border-left: none;
        border-top: 1px solid #f5f5f5;
        padding-left: 0;
        padding-top: 20px;
        margin-top: 20px;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-actions {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn.repeat-order {
    background: #f5f5f5;
    color: #3498db;
}

.btn.repeat-order:hover {
    background: #3498db;
    color: white;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-orders i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.no-orders p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.primary-btn {
    background: #27ae60;
    color: white;
}

.primary-btn:hover {
    background: #219653;
}
/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.2s;
}

.user-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.user-menu-toggle i {
    font-size: 1.2rem;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 10px 0;
}

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

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    gap: 10px;
}

.user-menu-dropdown a:hover {
    background: #f5f5f5;
}

.user-menu-dropdown i {
    width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* User Orders Page */
.user-orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.order-status.new {
    background: #3498db;
    color: white;
}

.order-status.processing {
    background: #f39c12;
    color: white;
}

.order-status.shipped {
    background: #9b59b6;
    color: white;
}

.order-status.completed {
    background: #27ae60;
    color: white;
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.product-image {
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 5px;
}

.product-details {
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #7f8c8d;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-total {
    font-weight: bold;
}

.total-price {
    font-size: 1.1rem;
    color: #27ae60;
}

.repeat-order {
    background: #f5f5f5;
    color: #3498db;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.repeat-order:hover {
    background: #3498db;
    color: white;
}

.no-orders {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-orders i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.no-orders p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Reviews Page */
.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.add-review-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rating-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    direction: rtl;
}

.stars input {
    display: none;
}

.stars label {
    color: #ddd;
    cursor: pointer;
    font-size: 1.5rem;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
    color: #f39c12;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 15px;
}

.submit-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #219653;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-reviews i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

/* About Page */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.about-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-section h2 {
    color: #2c3e50;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.member {
    text-align: center;
}

.member-photo {
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
}

.member h3 {
    margin: 0 0 5px;
}

.member p {
    color: #7f8c8d;
    margin: 0;
}
/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon {
    position: relative;
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-icon:hover {
    background: rgba(255,255,255,0.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.user-icon-container {
    position: relative;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.user-icon:hover {
    background: rgba(255,255,255,0.2);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 10px 0;
}

.user-icon-container:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    gap: 10px;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

.user-dropdown i {
    width: 20px;
    text-align: center;
    color: #7f8c8d;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 8px 15px;
}
/* User Menu - Pure CSS Solution */
.user-menu {
    position: relative;
}

.menu-toggle {
    display: none;
}

.user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-icon:hover {
    background: rgba(255,255,255,0.2);
}

.user-icon i {
    font-size: 1.2rem;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 50px;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.menu-toggle:checked ~ .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    gap: 10px;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
    color: #7f8c8d;
}
/* User Menu Styles */
.user-menu {
    position: relative;
    display: inline-block;
}

.menu-toggle {
    display: none;
}

.user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 50px;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.menu-toggle:checked ~ .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

.user-dropdown i {
    width: 20px;
    margin-right: 10px;
    color: #7f8c8d;
}

.menu-divider {
    height: 1px;
    background: #eee;
    margin: 8px 15px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon {
    position: relative;
    color: white;
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}
.header-overlay a,
.header-controls a,
.sidebar a,
.sidebar-item {
  color: white !important; /* Переопределяем цвет */
  text-decoration: none !important;
}
/* ========== FIX SIDEBAR LINK COLORS ========== */
.sidebar,
.sidebar-menu,
.sidebar-item,
.sidebar a {
  color: #333 !important; /* Стандартный темный цвет */
}

.sidebar-item:hover,
.sidebar a:hover {
  color: var(--accent) !important; /* Цвет при наведении */
  text-decoration: none !important;
}

/* Иконки в сайдбаре */
.sidebar-item i {
  color: #7f8c8d !important; /* Серый цвет иконок */
}

.sidebar-item:hover i {
  color: var(--accent) !important; /* Цвет иконок при наведении */
}