/* Дополнительные стили для интернет-магазина */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Унифицированный навбар */
.navbar {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
    border-bottom: 1px solid #495057;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #adb5bd !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: #495057;
    border-radius: 4px;
}

/* Унифицированные стили для панелей */
.sidebar {
    --bs-bg-opacity: 1;
    min-height: 100vh;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}

.sidebar .nav-link {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: #495057;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #495057;
}

.content-area {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Унифицированные карточки */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Унифицированные кнопки */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Унифицированные таблицы */
.table {
    background-color: #fff;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

/* Унифицированные модальные окна */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.old-price {
    text-decoration: line-through;
    color: #6c757d;
}

.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
}

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

.quantity-input {
    width: 80px;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.sidebar {
    min-height: 100vh;
    background-color: #343a40;
}

.sidebar .nav-link {
    color: #adb5bd;
}

.sidebar .nav-link:hover {
    color: #fff;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #495057;
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.content-area {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.rating {
    color: #ffc107;
}

.review-card {
    border-left: 4px solid #007bff;
}

.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Темный фон для панелей */
.col-md-10.bg-dark {
    min-height: 100vh;
    color: #fff;
    background-color: transparent !important;
}

.bg-dark .card {
    border-color: #495057 !important;
    color: #fff !important;
}

.bg-dark .card-header {
    background-color: #495057 !important;
    border-bottom-color: #6c757d !important;
    color: #fff !important;
}

.bg-dark .card-body {
    background-color: #343a40 !important;
    color: #fff !important;
}

.bg-dark .text-muted {
    color: #adb5bd !important;
}

.bg-dark .form-control {
    background-color: #495057;
    border-color: #6c757d;
    color: #fff;
}

.bg-dark .form-control:focus {
    background-color: #495057;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: #fff !important;
}

.bg-dark .spinner-border {
    color: #007bff !important;
}

.bg-dark .btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.bg-dark .btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

.bg-dark .form-label {
    color: #fff !important;
}

/* Футер */
.footer {
    background-color: #212529;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: auto;
}


.footer h5 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer h6 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer h6 i {
    color: #6c757d;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer .company-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.footer .company-info h6 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer .company-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #adb5bd;
}

.footer .company-info strong {
    color: #ffffff;
    font-weight: 600;
}

.footer .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer .footer-links > div {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links li {
    margin-bottom: 8px;
}

.footer .footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    text-align: center;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #495057;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: #6c757d;
    color: #ffffff;
    transform: translateY(-2px);
}


/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .product-image {
        height: 150px;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer .company-info {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .footer .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer .footer-links > div {
        padding: 15px;
        text-align: center;
    }
    
    .footer .social-links {
        gap: 10px;
    }
    
    .footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        text-align: center;
    }
    
    .footer h6 {
        font-size: 0.9rem;
        justify-content: center;
    }
}

