* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

body.light {
    background-color: #f5f5f5;
    color: #282626;
}

/* ========== ШАПКА ========== */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 20, 60, 0.3);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-left {
    flex: 1;
}

.main-nav .nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.main-nav .nav-menu li a {
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.main-nav .nav-menu li a i {
    color: #DC143C;
}

.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a.active {
    color: #DC143C;
}

.header-center {
    flex-shrink: 0;
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 30px;
    font-weight: 700;
    color: #e0e0e0;
}

.logo-text span {
    color: #DC143C;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 40px;
    padding: 10px 18px;
}

.search-box i {
    color: #DC143C;
    margin-right: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-size: 14px;
    width: 180px;
}

.action-icons {
    display: flex;
    gap: 15px;
}

.action-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.action-icon:hover {
    background: rgba(220,20,60,0.2);
    color: #DC143C;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #DC143C;
    color: white;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ ========== */
.user-profile {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px 6px 6px;
    border-radius: 40px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.3);
    color: #DC143C;
}

.profile-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.profile-btn .fa-chevron-down {
    font-size: 11px;
    transition: transform 0.3s;
}

.profile-dropdown:hover .profile-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: 52px;
    right: 0;
    background: #1e1e1e;
    border-radius: 16px;
    padding: 8px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(220, 20, 60, 0.15);
    z-index: 100;
}

.profile-dropdown:hover .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 12px;
}

.profile-dropdown-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.profile-dropdown-info {
    flex: 1;
    min-width: 0;
}

.profile-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-email {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 16px;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.profile-dropdown-menu a i {
    width: 20px;
    color: #DC143C;
    font-size: 15px;
}

.profile-dropdown-menu a:hover {
    background: rgba(220, 20, 60, 0.08);
    color: #DC143C;
}

.profile-dropdown-menu a.admin-link {
    color: #ff6b35;
}

.profile-dropdown-menu a.admin-link i {
    color: #ff6b35;
}

.profile-dropdown-menu a.admin-link:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.profile-dropdown-menu a.logout-link {
    color: #DC143C;
}

.profile-dropdown-menu a.logout-link i {
    color: #DC143C;
}

.profile-dropdown-menu a.logout-link:hover {
    background: rgba(220, 20, 60, 0.1);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,20,60,0.4);
}

/* ========== ВЫПАДАЮЩЕЕ МЕНЮ КАТАЛОГА ========== */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
    transition: color 0.3s;
    text-decoration: none;
}

.dropdown-trigger:hover {
    color: #DC143C;
}

.dropdown-trigger .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 850px;
    background: #1e1e1e;
    border-radius: 20px;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(220, 20, 60, 0.15);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: flex;
    gap: 30px;
}

.dropdown-col {
    flex: 1;
}

.dropdown-col h4 {
    color: #DC143C;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dropdown-col h4 i {
    margin-right: 8px;
}

.dropdown-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-col ul li {
    margin-bottom: 8px;
}

.dropdown-col ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: block;
    padding: 6px 0;
}

.dropdown-col ul li a:hover {
    color: #DC143C;
    padding-left: 8px;
}

.dropdown-banner {
    width: 220px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    color: white;
}

.dropdown-banner h4 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.dropdown-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.banner-btn {
    display: inline-block;
    background: white;
    color: #DC143C;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========== СЛАЙДЕР ========== */
.slider-container {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    margin: 30px 0 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide:nth-child(1) .slide-bg {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.slide:nth-child(2) .slide-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.slide:nth-child(3) .slide-bg {
    background: linear-gradient(135deg, #2d1b2e 0%, #1a1a2e 50%, #16213e 100%);
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(220, 20, 60, 0.15), transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 60px;
    gap: 50px;
}

.slide-text {
    flex: 1;
    animation: fadeInLeft 0.8s ease;
}

.slide.active .slide-text {
    animation: fadeInLeft 0.8s ease;
}

.slide-badge {
    display: inline-block;
    background: rgba(220, 20, 60, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #DC143C;
    margin-bottom: 25px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slide-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(220, 20, 60, 0.5);
}

.btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.slide-image img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.slide.active .slide-image img {
    animation: float 3s ease-in-out infinite;
}

.slide-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #DC143C;
    transform: translateY(-50%) scale(1.1);
    border-color: #DC143C;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #DC143C;
    width: 60px;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #DC143C, #ff1a4a);
    width: 0%;
    transition: width 0.1s linear;
}

/* ========== ТОВАРЫ ========== */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-section {
    margin: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-all {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #DC143C;
    border-radius: 30px;
    color: #DC143C;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all:hover {
    background: #DC143C;
    color: white;
    transform: translateX(0);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #1e1e1e;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220,20,60,0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.favorite-btn:hover {
    background: #DC143C;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #DC143C;
}

/* ========== БЕЙДЖИ ПОПУЛЯРНЫХ ТОВАРОВ ========== */
.product-badges {
    position: absolute;
    top: 12px;
    right: 56px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.badge-popular {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-popular:first-child {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.badge-popular i {
    margin-right: 4px;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rating-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: #ffc107;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

.rating-badge i {
    margin-right: 4px;
}

.product-info {
    padding: 18px 20px 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.product-info p {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
    gap: 8px;
}

.product-category {
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 11px;
}

.product-reviews {
    color: #888;
}

.product-reviews i {
    margin-right: 4px;
}

.product-orders {
    color: #888;
}

.product-orders i {
    margin-right: 4px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #DC143C;
}

.price .old-price {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.no-products {
    text-align: center;
    padding: 60px;
    background: #1e1e1e;
    border-radius: 20px;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 48px;
    color: #DC143C;
    margin-bottom: 15px;
}

/* ========== ОТЗЫВЫ ========== */
.reviews-section {
    margin: 80px 0;
}

.btn-write-review {
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,20,60,0.4);
}

.reviews-stats {
    display: flex;
    gap: 50px;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stats-rating {
    text-align: center;
    flex: 1;
}

.rating-number {
    font-size: 64px;
    font-weight: 800;
    color: #DC143C;
    line-height: 1;
}

.rating-stars i {
    color: #ffc107;
    font-size: 20px;
    margin: 10px 2px;
}

.rating-count {
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

.rating-recommend {
    margin-top: 10px;
    padding: 6px 16px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 20px;
    display: inline-block;
    color: #4caf50;
    font-size: 13px;
    font-weight: 500;
}

.rating-recommend i {
    margin-right: 6px;
}

.stats-bars {
    flex: 2;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.stat-bar span:first-child {
    width: 45px;
    font-size: 14px;
}

.stat-bar .bar {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar .bar div {
    height: 100%;
    background: linear-gradient(90deg, #DC143C, #ff1a4a);
    border-radius: 4px;
}

.stat-bar span:last-child {
    width: 45px;
    font-size: 14px;
    color: #888;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.review-card {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220,20,60,0.15);
}

.review-card.my-review {
    border: 1px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.reviewer-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.review-rating i {
    color: #ffc107;
    font-size: 12px;
}

.verified-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.my-review-badge {
    background: rgba(220, 20, 60, 0.2);
    color: #DC143C;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.review-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #DC143C;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 15px;
}

.review-advantages,
.review-disadvantages,
.review-product {
    font-size: 13px;
    padding: 8px 0;
    border-top: 1px solid #333;
    color: #888;
}

.review-advantages i {
    color: #4caf50;
}

.review-disadvantages i {
    color: #f44336;
}

.review-product i {
    color: #DC143C;
}

.review-product a {
    color: #DC143C;
    text-decoration: none;
    transition: color 0.3s;
}

.review-product a:hover {
    color: #ff1a4a;
    text-decoration: underline;
}

.review-date {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.no-reviews {
    text-align: center;
    padding: 60px;
    background: #1e1e1e;
    border-radius: 20px;
}

.no-reviews i {
    font-size: 64px;
    color: #DC143C;
    margin-bottom: 20px;
}

.user-review-actions {
    display: flex;
    gap: 10px;
}

.btn-edit-review,
.btn-delete-review {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-edit-review:hover {
    background: #2196F3;
    color: white;
}

.btn-delete-review:hover {
    background: #DC143C;
    color: white;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
    border-radius: 30px;
    margin: 60px 0;
}

body.light .advantages-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.section-subtitle {
    color: #888;
    font-size: 18px;
}

.advantages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.advantage-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 20, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.advantage-card:hover::before {
    left: 100%;
}

.advantage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.2);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(255, 26, 74, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(255, 26, 74, 0.1));
}

.advantage-icon i {
    font-size: 40px;
    color: #DC143C;
}

.advantage-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.advantage-card p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.advantage-stats {
    font-size: 13px;
    color: #DC143C;
    font-weight: 600;
    padding: 8px 15px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 30px;
    display: inline-block;
}

/* ========== БОКОВЫЕ ПАНЕЛИ ========== */
.cart-sidebar, .favorites-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #1e1e1e;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

.cart-sidebar.active, .favorites-sidebar.active {
    right: 0;
}

.cart-sidebar-header, .favorites-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #DC143C;
}

.cart-sidebar-header h3, .favorites-sidebar-header h3 {
    color: #DC143C;
    margin: 0;
}

.close-cart, .close-favorites {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-cart:hover, .close-favorites:hover {
    color: #DC143C;
}

.cart-sidebar-content, .favorites-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart i {
    font-size: 64px;
    color: #DC143C;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 12px;
}

.cart-item-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #DC143C;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-minus, .cart-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #DC143C;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.cart-minus:hover, .cart-plus:hover {
    transform: scale(1.05);
}

.cart-qty {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.cart-remove {
    background: none;
    border: 1px solid #DC143C;
    color: #DC143C;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    margin-left: auto;
}

.cart-remove:hover {
    background: #DC143C;
    color: white;
}

.cart-total-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #333;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    text-align: right;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,20,60,0.4);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1e1e1e;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.small {
    max-width: 400px;
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #DC143C;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DC143C;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.rating-input {
    display: flex;
    gap: 10px;
    font-size: 30px;
    cursor: pointer;
}

.rating-input .star {
    color: #555;
    transition: all 0.2s;
}

.rating-input .star.active {
    color: #ffc107;
}

.rating-input .star:hover {
    transform: scale(1.1);
}

.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,20,60,0.4);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
}

.btn-cancel:hover {
    background: #333;
}

.btn-confirm {
    background: #DC143C;
    border: none;
    color: white;
}

.btn-confirm:hover {
    background: #ff1a4a;
    transform: translateY(-2px);
}

/* ========== ФУТЕР ========== */
footer {
    background: #0a0a0a;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #DC143C;
    margin-bottom: 20px;
}

.footer-section p {
    color: #888;
    margin: 10px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1e1e1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #DC143C;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #222;
    color: #666;
}

/* ========== КНОПКА ВВЕРХ ========== */
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #DC143C;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
}

#scrollToTopBtn:hover {
    transform: translateY(-3px);
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #DC143C, #ff1a4a);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 8px 25px rgba(220,20,60,0.3);
}

.notification.error {
    background: #333;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1024px) {
    .dropdown-menu {
        width: 700px;
        right: 0;
        left: auto;
    }
    
    .contacts-container {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-header {
        padding: 10px 0;
    }
    
    .header-container {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-left {
        order: 2;
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
    }
    
    .header-center {
        order: 1;
    }
    
    .header-right {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .main-nav .nav-menu {
        gap: 15px;
    }
    
    .main-nav .nav-menu li a span {
        display: none;
    }
    
    .main-nav .nav-menu li a {
        font-size: 18px;
        padding: 4px 8px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-icon i {
        font-size: 18px;
    }
    
    .action-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .badge {
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        top: -3px;
        right: -3px;
    }
    
    .profile-btn {
        padding: 4px 10px 4px 4px;
    }
    
    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .user-name {
        max-width: 60px;
        font-size: 13px;
    }
    
    .login-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .login-btn span {
        display: none;
    }
    
    .dropdown-menu {
        display: none;
    }
    
    .profile-dropdown-menu {
        min-width: 220px;
        right: -10px;
    }
    
    .slider-container {
        height: 520px;
        border-radius: 20px;
        margin: 20px 0 40px;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
        justify-content: center;
        gap: 15px;
    }
    
    .slide-text h1 {
        font-size: 30px;
    }
    
    .slide-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .slide-badge {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 15px;
    }
    
    .slide-buttons {
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 22px;
        font-size: 13px;
    }
    
    .slide-image {
        order: -1;
    }
    
    .slide-image img {
        max-height: 160px;
    }
    
    .slide-tag {
        font-size: 11px;
        padding: 4px 12px;
        top: -5px;
        right: -5px;
    }
    
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .dot {
        width: 25px;
        height: 3px;
    }
    
    .dot.active {
        width: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-badges {
        right: 48px;
    }
    
    .badge-popular {
        font-size: 9px;
        padding: 3px 10px;
    }
    
    .cart-sidebar, .favorites-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .reviews-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .advantages-container {
        grid-template-columns: 1fr;
    }
    
    .advantages-section {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .main-nav .nav-menu {
        gap: 10px;
    }
    
    .main-nav .nav-menu li a {
        font-size: 15px;
        padding: 3px 6px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-icon i {
        font-size: 14px;
    }
    
    .action-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .badge {
        font-size: 8px;
        min-width: 14px;
        height: 14px;
    }
    
    .profile-btn {
        padding: 3px 8px 3px 3px;
    }
    
    .profile-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .user-name {
        max-width: 40px;
        font-size: 11px;
    }
    
    .profile-btn .fa-chevron-down {
        font-size: 9px;
    }
    
    .slider-container {
        height: 420px;
        border-radius: 14px;
        margin: 15px 0 30px;
    }
    
    .slide-text h1 {
        font-size: 24px;
    }
    
    .slide-text p {
        font-size: 12px;
    }
    
    .slide-image img {
        max-height: 120px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .dot {
        width: 20px;
        height: 3px;
    }
    
    .dot.active {
        width: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-badges {
        right: 40px;
        top: 8px;
    }
    
    .badge-popular {
        font-size: 8px;
        padding: 2px 8px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 13px;
        height: 32px;
    }
    
    .product-info p {
        display: none;
    }
    
    .product-meta {
        display: none;
    }
    
    .price {
        font-size: 16px;
    }
    
    .add-to-cart-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .rating-badge {
        font-size: 11px;
        padding: 2px 10px;
        bottom: 8px;
        left: 8px;
    }
    
    .favorite-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 14px;
    }
    
    .avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .rating-number {
        font-size: 40px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-details i {
        margin-right: 5px;
    }
}