:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4bb543;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.hero-section {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 100px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin-top: 15px;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    color: var(--dark);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.features-section {
    padding: 80px 0;
    background-color: var(--light);
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.testimonial-card {
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.client-name {
    font-weight: 700;
    color: var(--dark);
}

.auth-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    background: white;
}

.auth-toggle {
    display: flex;
    margin-bottom: 25px;
    border-radius: 30px;
    overflow: hidden;
    background: #f8f9fa;
}

.auth-toggle-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-toggle-btn.active {
    background: var(--primary);
    color: white;
}

footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-title:after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary);
    margin-top: 15px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 50px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.logged-in .user-menu {
    display: flex;
    align-items: center;
}

.logged-in .auth-buttons {
    display: none;
}

.lolotip {
    height: 48px;
}

/* Catalog */

.catalog-header {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
}

.filter-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.price-range {
    margin-top: 10px;
}

.pagination {
    margin-top: 40px;
    justify-content: center;
}

.page-link {
    color: var(--primary);
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    margin: 0 5px;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.sorting-options {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sort-label {
    margin-right: 10px;
    font-weight: 600;
}

.sort-select {
    border-radius: 30px;
    padding: 8px 15px;
    border: 1px solid #dee2e6;
}

.results-count {
    font-weight: 600;
    color: var(--dark);
}

.catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.catalog-tag {
    background: #e9ecef;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.catalog-tag:hover, .catalog-tag.active {
    background: var(--primary);
    color: white;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.card-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.card-features li i {
    color: var(--primary);
    margin-right: 10px;
}
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem;
    font-weight: bold;
}

.user-menu {
    display: none;
}

/* Карточка товара */

.breadcrumb {
    background-color: transparent;
    padding: 15px 0;
}

.product-section {
    padding: 40px 0;
}

.product-gallery {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: white;
}

.swiper {
    width: 100%;
    height: 400px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-thumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.swiper-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.product-info {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark);
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 25px;
    color: #6c757d;
}

.product-features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.feature-item i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 18px;
}

.product-actions {
    margin-top: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--dark);
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.meta-item i {
    margin-right: 8px;
    color: var(--primary);
}

.product-tabs {
    margin-top: 50px;
}

.nav-tabs .nav-link {
    padding: 15px 25px;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    background: transparent;
}

.tab-content {
    padding: 30px;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin: 30px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid #e9ecef;
}

.specs-table td {
    padding: 15px 10px;
}

.specs-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--dark);
}

.related-products {
    margin-top: 80px;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin-top: 15px;
}

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card-img {
    height: 200px;
    object-fit: cover;
}

.product-card-title {
    font-weight: 700;
    color: var(--dark);
}

.product-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 768px) {
    .swiper {
        height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary {
        width: 100%;
    }
}

/* Профиль */

.dashboard-header {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
}

.dashboard-nav {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.dashboard-nav .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.dashboard-nav .nav-link i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.dashboard-nav .nav-link.active {
    background: var(--primary);
    color: white;
    border-radius: 0;
}

.dashboard-nav .nav-link:last-child {
    border-bottom: none;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.dashboard-card .card-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.dashboard-card .card-title i {
    margin-right: 10px;
    color: var(--primary);
}

.order-card {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-completed {
    background: #e8f5e9;
    color: var(--success);
}

.status-processing {
    background: #e3f2fd;
    color: var(--primary);
}

.status-pending {
    background: #fff8e1;
    color: var(--warning);
}

.status-cancelled {
    background: #ffebee;
    color: var(--danger);
}

.order-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.stats-box {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.stats-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stats-label {
    color: #6c757d;
    font-weight: 600;
    font-size: 12px;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e3f2fd;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}