/* Основные стили */
body {
    padding-top: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.main-content {
    min-height: calc(100vh - 300px);
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Стили для центрированного меню на десктопе */
@media (min-width: 992px) {
    .navbar-center-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background-color: transparent;
    }
    
    .navbar-center-menu .nav-item {
        margin: 0 15px;
    }
    
    .navbar-center-menu .nav-link {
        font-weight: 500;
        font-size: 1.05rem;
        padding: 8px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-center-menu .nav-link:hover {
        background-color: rgba(139, 69, 19, 0.1);
        color: #8b4513;
    }
    
    .navbar-center-menu .nav-link.active {
        background-color: #8b4513;
        color: white !important;
    }
}

/* Правая часть меню */
.navbar-right-menu {
    display: flex;
    align-items: center;
    gap: 30px; /* Большое расстояние между элементами */
}

/* Корзина */
.navbar-right-menu .nav-link {
    position: relative;
    padding: 8px 15px;
    font-weight: 500;
}

.navbar-right-menu .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    min-width: 18px;
}

/* Кнопка входа */
.navbar-right-menu .btn-outline-primary {
    padding: 8px 25px;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}

.navbar-right-menu .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Кнопки */
.btn-primary {
    background-color: #8b4513;
    border-color: #8b4513;
    padding: 10px 30px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #6b3410;
    border-color: #6b3410;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-outline-primary {
    color: #8b4513;
    border-color: #8b4513;
}

.btn-outline-primary:hover {
    background-color: #8b4513;
    border-color: #8b4513;
    color: white;
}

/* Футер */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
}

footer a {
    text-decoration: none;
    transition: opacity 0.3s, transform 0.3s;
}

footer a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-center-menu {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }
    
    .navbar-center-menu .nav-item {
        margin: 5px 0;
    }
    
    .navbar-right-menu {
        width: 100%;
        justify-content: center;
        margin: 15px 0;
        gap: 20px;
    }
    
    .navbar-right-menu .nav-link,
    .navbar-right-menu .btn {
        margin: 5px 0;
    }
}
/* Стили для карточек товаров */
.product-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    background-color: #f8f9fa;
}

.product-image {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

/* Стили для навигации */
.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #8b4513 !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #8b4513 !important;
    font-weight: 600;
}

.btn-primary {
    background-color: #8b4513;
    border-color: #8b4513;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6b3410;
    border-color: #6b3410;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-outline-primary {
    color: #8b4513;
    border-color: #8b4513;
}

.btn-outline-primary:hover {
    background-color: #8b4513;
    border-color: #8b4513;
    color: white;
}

/* Стили для корзины */
.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-image-container {
        height: 220px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Уведомления */
.alert-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}