/* Цветовая схема Corporate UI Dashboard */
:root {
    /* Основные цвета Corporate UI */
    --roso-primary: #1e293b;          /* Фиолетовый - основной цвет */
    --roso-primary-dark: #1e293b;     /* Темно-фиолетовый */
    --roso-primary-light: #213fc5;    /* Светло-фиолетовый */
    --roso-secondary: #64748b;        /* Серый - вторичный цвет */
    --roso-accent: #55A6F8;           /* Голубой - акцент */
    --roso-success: #67C23A;          /* Зеленый */
    --roso-warning: #F19937;          /* Оранжевый */
    --roso-danger: #EA4E3D;           /* Красный */
    --roso-info: #55A6F8;             /* Голубой */
    --roso-dark: #1e293b;             /* Темно-синий */
    --roso-text: #1e293b;             /* Темно-синий для текста */
    --roso-text-light: #64748b;       /* Серый для текста */
    --roso-text-muted: #94a3b8;       /* Светло-серый */
    --roso-border: #dde0e5;           /* Серый для границ */
    --roso-border-light: #f1f5f9;     /* Светло-серый */
    --roso-white: #ffffff;            /* Белый */
    --roso-gray-light: #f8fafc;       /* Светло-серый фон */
    --roso-gray: #f1f5f9;             /* Серый фон */
    
    /* Градиенты Corporate UI */
    --roso-gradient-primary: linear-gradient(135deg, var(--roso-primary) 0%, var(--roso-primary-dark) 100%);
    --roso-gradient-secondary: linear-gradient(135deg, var(--roso-secondary) 0%, var(--roso-dark) 100%);
    
    /* Специальные цвета для хедера, футера и кнопок */
    --roso-button-color: #1e293b;     /* Фиолетовый для кнопок */
    --roso-header-footer: #1e293b;    /* Темно-синий для хедера и футера */
    
    /* Тени */
    --roso-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --roso-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --roso-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --roso-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --roso-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Общие стили */
body {
    font-family: 'Noto Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--roso-text);
    background-color: var(--roso-gray-light);
    line-height: 1.5;
    font-size: 14px;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 16px;
}

/* Стили для верхнего информационного бара */
.top-info-bar {
    background-color: var(--roso-header-footer);
    color: white;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 400;
}

.top-info-bar a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    transition: opacity 0.2s ease;
}

.top-info-bar a:hover {
    opacity: 0.8;
}

/* Стили для основной навигации */
.main-nav {
    background-color: var(--roso-header-footer);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 16px 0;
    border-bottom: 1px solid var(--roso-border);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo img {
    height: 40px;
    width: auto;
}

.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box .input-group {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-box input {
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    background: var(--roso-white);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

.btn-search {
    background-color: var(--roso-button-color);
    color: white;
    border: none;
    padding: 12px 20px;
    transition: all 0.2s ease;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: var(--roso-shadow-sm);
}

.btn-search:hover {
    background-color: var(--roso-primary-dark);
    box-shadow: var(--roso-shadow-md);
    transform: translateY(-1px);
}

.btn-light{
    font-size: 16px;
    background: linear-gradient(135deg, var(--roso-primary) 0%, var(--roso-primary-dark) 100%);
    color: white;
}

.user-actions {
    display: flex;
    gap: 16px;
}

.action-link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.action-link:hover {
    background-color: rgba(0,0,0,0.1);
    color: inherit;
    text-decoration: none;
}

.action-link i {
    font-size: 20px;
    margin-bottom: 4px;
}

.action-link span {
    font-size: 12px;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

/* Стили для карточек товаров в стиле Corporate UI */
.product-card {
    border: 1px solid var(--roso-border);
    border-radius: 12px;
    background: var(--roso-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: var(--roso-shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--roso-primary-light);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--roso-border-light);
}

.product-card .card-body {
    padding: 12px;
}

.product-card .card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--roso-text);
    margin-bottom: 8px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .text-muted {
    font-size: 12px;
    color: var(--roso-text-muted);
    margin-bottom: 8px;
}

.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--roso-secondary);
    margin-bottom: 12px;
}

.product-card .btn {
    background: linear-gradient(135deg, var(--roso-primary) 0%, var(--roso-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: var(--roso-shadow-sm);
}

.product-card .btn:hover {
    background: linear-gradient(135deg, var(--roso-primary-dark) 0%, var(--roso-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--roso-shadow-md);
}

/* Стили для секций */
section {
    margin-bottom: 48px;
}

section h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--roso-text);
    text-align: left;
    margin-bottom: 24px;
    position: relative;
    padding-left: 0;
}

section h2::after {
    display: none;
}

.popular-products {
    background-color: var(--roso-gray);
    padding: 32px 0;
}

/* Стили для новостей в этническом стиле ROSO */


.news-card {
    border: 1px solid var(--roso-border);
    overflow: hidden;
    background: var(--roso-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--roso-shadow);
}

.news-card:hover {
    box-shadow: var(--roso-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--roso-accent);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    padding: 16px;
}

.news-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-description {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Стили для слайдера в стиле Ozon */
.carousel-item img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 24px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.carousel-caption h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
}

.carousel-caption p {
    font-size: 16px;
    margin-bottom: 20px;
}

.carousel-caption .btn {
    background: linear-gradient(135deg, var(--roso-primary) 0%, var(--roso-primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--roso-shadow-md);
}

.carousel-caption .btn:hover {
    background: linear-gradient(135deg, var(--roso-primary-dark) 0%, var(--roso-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--roso-shadow-lg);
}

/* Стили для мега-меню категорий */
.mega-menu {
    width: 250px;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1050;
    border: none;
}

.mega-menu-item {
    position: relative;
}

.mega-menu-item > a {
    padding: 15px 20px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.mega-menu-item:hover > a {
    background-color: var(--light-gray);
    color: var(--accent-color);
}

.mega-menu-item .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 20px;
    display: none;
    z-index: 1050;
}

.mega-menu-item:hover .submenu {
    display: block;
}

.submenu-title {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--roso-border);
    color: var(--roso-primary);
}

.submenu ul li {
    margin-bottom: 8px;
}

.submenu ul li a {
    color: var(--roso-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.submenu ul li a:hover {
    color: var(--roso-accent);
}

/* Новый футер ROSO */
/* ===== FOOTER STYLES ===== */
.footer-roso {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    color: #666;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    min-width: 200px;
}

.footer_logo {
    text-decoration: none;
}

.footer-logo-img {
    width: 140px;
    height: auto;
}

.footer-copyright-main {
    margin: 15px 0 10px 0;
    color: #999;
    font-size: 12px;
    letter-spacing: 0.7px;
}

.footer_icons {
    display: flex;
    gap: 15px;
}

.footer_icons a {
    display: inline-block;
    text-decoration: none;
}

.footer_icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.footer_icons .social-icon:hover {
    transform: scale(1.1);
    background-color: #007bff;
    color: white;
}

.footer_icons .social-icon.telegram:hover {
    background-color: #0088cc;
}

.footer_icons .social-icon.vk:hover {
    background-color: #4C75A3;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-links li a:hover {
    color: #B87333;
}

/* Мобильная адаптация футера */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-logo {
        align-items: center;
    }
}

@media (max-width: 1200px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info li i {
    margin-right: 12px;
    margin-top: 3px;
    color: var(--roso-secondary);
    width: 20px;
}

/* Стили для кнопок */
.btn-outline-primary {
    border-color: var(--roso-button-color);
    color: var(--roso-button-color);
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--roso-button-color);
    border-color: var(--roso-button-color);
    color: white;
    transform: translateY(-2px);
}

/* Стили для выпадающего меню в навигации */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0.25rem;
    z-index: 1050;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}

/* Стили для подменю, которое открывается влево */
.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 10px;
    border-radius: 0.25rem;
}

/* Стили для мобильного меню */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        margin-left: 15px;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
    
    .mega-menu-item .submenu {
        position: static;
        width: auto;
        box-shadow: none;
        margin-left: 15px;
    }
}

/* Дополнительные этнические стили */
.ethnic-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(139, 69, 19, 0.1) 10px,
        rgba(139, 69, 19, 0.1) 20px
    );
}

.ethnic-border {
    border: 2px solid var(--roso-secondary);
    position: relative;
}

.ethnic-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--roso-accent);
    z-index: -1;
}

/* Адаптивность футера */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer-roso {
        padding: 40px 0 20px;
    }
    
    .footer-columns {
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

 

/* Стили для карточек */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform .3s ease;
}

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

/* Стили для изображений */
.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.span2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для баннеров в стиле roso.art */
.banner-grid {
    padding: 0;
    background: #f8f9fa;
}

.banner-grid-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    gap: 0;
}

.banner-col {
    flex: 1 1 25%;
    max-width: 25%;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .banner-col {
        flex: 1 1 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .banner-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.banner-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
    padding: 25px;
    text-align: left;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    line-height: 1.4;
}

.banner-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 2;
}

.banner-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.banner-button:hover {
    background: #c0392b;
    color: white;
    transform: translateY(-2px);
}

/* Стили для слайдера */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 1140px;
    margin: 0 auto;
}

/* Отступы между секциями */
section {
    margin-bottom: 4rem;
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    .container {
        max-width: 960px !important;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
    
    .banner-item.odd .banner-title,
    .banner-item.even .banner-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px !important;
    }
    
    .nav-wrapper {
        gap: 15px;
    }
    
    .search-box {
        max-width: 300px;
    }
    
    .user-actions {
        gap: 15px;
    }
    
    .carousel-item img {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 30px 20px;
    }
    
    .carousel-caption h3 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .banner-item.odd .banner-title,
    .banner-item.even .banner-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px !important;
    }
    
    .top-info-bar {
        font-size: 12px;
    }
    
    .top-info-bar .top-links a {
        margin: 0 8px;
    }
    
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        max-width: 100%;
        order: 3;
    }
    
    .user-actions {
        order: 2;
        justify-content: center;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 20px 15px;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .banner-item {
        margin-bottom: 20px;
    }
    
    .banner-item.odd .banner-title,
    .banner-item.even .banner-title {
        font-size: 1.2rem;
    }
    
    .banner-item.odd .banner-subtitle,
    .banner-item.even .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-description {
        font-size: 13px;
    }
    
    .product-card .card-title {
        font-size: 15px;
    }
    
    .product-card .price {
        font-size: 16px;
    }
    
    .action-link span {
        display: none;
    }
    
    .cart-count,
    .wishlist-count {
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Дополнительные стили для улучшения визуала */
.text-muted {
    color: var(--roso-text-muted) !important;
}

.text-primary {
    color: var(--roso-primary) !important;
}

.bg-light {
    background-color: var(--roso-gray-light) !important;
}

.text-secondary {
    color: var(--roso-secondary) !important;
}

.text-ethnic-red {
    color: var(--roso-ethnic-red) !important;
}

/* Анимации для плавности */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для загрузки */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Улучшенные hover эффекты */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Стили для специальных баннеров */
.banner-item.odd .banner-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    text-align: center;
    pointer-events: none;
}

.banner-item.odd .banner-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.banner-item.odd .banner-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 5px;
    font-weight: 400;
    line-height: 1.4;
}

.banner-item.even .banner-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
    text-align: center;
    pointer-events: none;
}

.banner-item.even .banner-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.banner-item.even .banner-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 20px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 80%;
}

.banner-item.even .banner-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--roso-secondary);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
}

.banner-item.even .banner-button {
    display: inline-block;
    background: var(--roso-button-color);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

/* Стили для ссылок в баннерах */
.banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.banner-link:hover {
    text-decoration: none;
    color: inherit;
}

.btn-news-all {
    background-color: #980000;
    color: white;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-news-all:hover {
    background-color: var(--roso-primary-dark);
    color: white;
}

/* Дополнительные стили в стиле Corporate UI */
.btn-primary {
    background: linear-gradient(135deg, var(--roso-primary) 0%, var(--roso-primary-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--roso-shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--roso-primary-dark) 0%, var(--roso-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--roso-shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--roso-secondary) 0%, var(--roso-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--roso-shadow-sm);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--roso-dark) 0%, var(--roso-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--roso-shadow-md);
    color: white;
}

/* Стили для карточек */
.card {
    border: 1px solid var(--roso-border);
    border-radius: 12px;
    box-shadow: var(--roso-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--roso-shadow-lg);
    transform: translateY(-2px);
}

/* Стили для форм */
.form-control {
    border: 1px solid var(--roso-border);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--roso-shadow-sm);
}

.form-control:focus {
    border-color: var(--roso-primary);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
    outline: none;
}

/* Анимация для уведомлений */
.alert.position-fixed {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для кнопок избранного */
.wishlist-toggle {
    transition: all 0.3s ease;
}

.wishlist-toggle:hover {
    transform: scale(1.1);
}

.wishlist-toggle.active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* Стили для гамбургер-иконки каталога */
#catalog_toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#catalog_toggle:hover {
    text-decoration: none;
}

.catalog-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    color: #8B4513;
    align-items: center;
    width: 30px;
    height: 30px;
}

/* ============================================
   МЕГА-МЕНЮ КАТАЛОГА В СТИЛЕ OZON
   ============================================ */

/* Header позиционирование для каталога */
.header-grid {
    position: relative;
}

/* Всплывающий каталог */
.catalog-popup {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeInCatalog 0.2s ease;
    padding: 0;
}

@keyframes fadeInCatalog {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.catalog-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 95%;
    height: 800px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: slideDownCatalog 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    margin: 10px auto;
}

@keyframes slideDownCatalog {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Заголовок каталога */
.catalog-header {
    display: none;
}

.catalog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.catalog-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Тело каталога (две панели) */
.catalog-body-ozon {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Левая панель - категории 1-го уровня */
.catalog-sidebar {
    width: 320px;
    background: #fafafa;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    flex-shrink: 0;
}

.catalog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.catalog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.catalog-sidebar::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.catalog-categories-list {
    padding: 12px 0;
}

.catalog-category-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    border-bottom: none;
    transition: all 0.15s ease;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    margin: 3px 10px;
    border-radius: 8px;
}

.catalog-category-item i:first-child {
    color: #666;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 12px;
}

.catalog-category-item i.fa-chevron-right {
    font-size: 10px;
    color: #999;
    opacity: 0;
    transition: all 0.15s ease;
}

.catalog-category-item:hover {
    background: white;
    color: #005bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.catalog-category-item:hover i {
    color: #005bff;
}

.catalog-category-item:hover i.fa-chevron-right {
    opacity: 1;
}

.catalog-category-item.active {
    background: white;
    color: #005bff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.catalog-category-item.active i {
    color: #005bff;
}

.catalog-category-item.active i.fa-chevron-right {
    opacity: 1;
}

/* Правая панель - подкатегории */
.catalog-content {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 32px 40px;
}

.catalog-content::-webkit-scrollbar {
    width: 8px;
}

.catalog-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.catalog-content::-webkit-scrollbar-thumb {
    background: var(--roso-primary);
    border-radius: 10px;
}

.catalog-content::-webkit-scrollbar-thumb:hover {
    background: var(--roso-primary-dark);
}

.catalog-subcategories-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-header-title {
    margin-bottom: 24px;
}

.category-header-title h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.category-header-title h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-header-title h4 a:hover {
    color: #005bff;
}

/* Секция подкатегорий */
.subcategories-section {
    margin-bottom: 28px;
    padding: 20px;
    background: transparent;
    border-radius: 0;
    border: none;
}

.subcategories-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.subcategories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s ease;
}

.subcategory-item i:first-child {
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

.subcategory-item i.fa-chevron-right {
    font-size: 10px;
    color: #999;
    opacity: 0;
    transition: all 0.15s ease;
}

.subcategory-item:hover {
    background: white;
    border-color: #e8e8e8;
    color: #005bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.subcategory-item:hover i {
    color: #005bff;
}

.subcategory-item:hover i.fa-chevron-right {
    opacity: 1;
}

.subcategory-count {
    color: var(--roso-text-muted);
    font-size: 13px;
    font-weight: 400;
}

/* Сообщение об отсутствии подкатегорий */
.no-subcategories {
    text-align: center;
    padding: 60px 20px;
}

.no-subcategories p {
    color: var(--roso-text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Карточки товаров в каталоге */
.catalog-products-preview {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--roso-border-light);
}

.products-preview-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--roso-text);
    margin-bottom: 20px;
}

.products-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.catalog-product-card {
    display: block;
    background: var(--roso-gray-light);
    border: 1px solid var(--roso-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.catalog-product-card:hover {
    box-shadow: var(--roso-shadow-md);
    transform: translateY(-4px);
    border-color: var(--roso-primary);
}

.catalog-product-image {
    width: 100%;
    height: 160px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-product-info {
    padding: 12px;
}

.catalog-product-name {
    font-size: 14px;
    color: var(--roso-text);
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--roso-primary);
}

/* Адаптивность для мега-меню Ozon */
@media (max-width: 1200px) {
    .subcategories-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .catalog-content {
        padding: 28px 32px;
    }
    
    .products-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .catalog-sidebar {
        width: 240px;
    }
    
    .subcategories-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .subcategory-item {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .catalog-content {
        padding: 24px 28px;
    }
    
    .category-header-title h4 {
        font-size: 24px;
    }
    
    .products-preview-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .catalog-product-image {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .catalog-body-ozon {
        flex-direction: column;
    }
    
    .catalog-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--roso-border);
    }
    
    .catalog-categories-list {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .catalog-category-item {
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid #e8e8e8;
        min-width: 150px;
    }
    
    .catalog-category-item.active {
        border-left: none;
        border-bottom: 3px solid var(--roso-primary);
        padding-left: 20px;
        padding-bottom: 13px;
    }
    
    .catalog-content {
        padding: 20px;
    }
    
    .subcategories-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .subcategories-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .category-header-title {
        margin-bottom: 24px;
    }
    
    .category-header-title h4 {
        font-size: 20px;
    }
    
    .products-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .catalog-product-image {
        height: 120px;
    }
    
    .catalog-products-preview {
        margin-top: 32px;
        padding-top: 24px;
    }
}

@media (max-width: 576px) {
    .catalog-header {
        padding: 16px 20px;
    }
    
    .catalog-header h3 {
        font-size: 18px;
    }
    
    .catalog-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .catalog-content {
        padding: 16px;
    }
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #8B4513;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.icon-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
}

.icon-menu .hamburger-line {
    width: 18px;
    height: 2px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Стили для SVG иконок */
.search-icon svg,
.icon-cabinet svg,
.icon-wishlist svg,
.icon-cart svg,
.icon-search svg {
    display: block;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    color: #333;
}

/* Позиционирование иконок в шапке */
.top_icons {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.top_icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.top_icons a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

/* Стили для кнопки поиска */
.ut2-btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.ut2-btn-search:hover {
    background-color: #f5f5f5;
    color: #8B4513;
}

/* Всплывающий поиск */
.search-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    backdrop-filter: blur(4px);
}

.search-popup-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.search-form-container {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.search-form {
    flex: 1;
    margin-right: 15px;
}

.search-input-group {
    display: flex;
    border: 2px solid #8B4513;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-submit {
    background: #8B4513;
    border: none;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: #6B3410;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: #333;
}

.search-suggestions {
    padding: 20px;
}

.popular-searches h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.popular-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-items a {
    background: #f8f9fa;
    color: #666;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.popular-items a:hover {
    background: #8B4513;
    color: white;
    text-decoration: none;
}

/* Адаптивность для всплывающего поиска */
@media (max-width: 768px) {
    .search-popup {
        padding-top: 50px;
    }
    
    .search-popup-content {
        width: 95%;
    }
    
    .search-form-container {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .search-close {
        align-self: flex-end;
    }
}

/* Hover эффекты */
.ut2-btn-search:hover .search-icon svg,
.cabinet:hover .icon-cabinet svg,
.wishlist:hover .icon-wishlist svg,
.cart:hover .icon-cart svg {
    transform: scale(1.1);
    color: #8B4513;
}

/* Адаптивные размеры иконок */
@media (max-width: 768px) {
    .search-icon svg,
    .icon-cabinet svg,
    .icon-wishlist svg,
    .icon-cart svg,
    .icon-search svg {
        width: 22px;
        height: 22px;
    }
    
    .hamburger-line {
        width: 16px;
    }
    
    .icon-menu .hamburger-line {
        width: 16px;
    }
}

/* Дополнительные стили для карточек товаров с возможностью покупки */
/* Кнопки действий на карточке товара */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.btn-favorite, .btn-compare {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.btn-favorite:hover, .btn-compare:hover {
    background: white;
    color: #e74c3c;
    transform: scale(1.1);
}

.btn-favorite.active {
    background: #e74c3c;
    color: white;
}

/* Ссылка на изображение товара */
.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image-link:hover {
    text-decoration: none;
}

/* Код товара */
.product-code {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

/* Элементы управления покупкой */
.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-direction: row;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-input {
    border: none;
    width: 40px;
    text-align: center;
    font-weight: 600;
    outline: none;
    height: 30px;
    font-size: 14px;
}

.btn-buy {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 14px;
}

.btn-buy:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Стили для карусели товаров */
.products-carousel-wrapper {
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Аппаратное ускорение */
}

.products-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    transform: translateZ(0); /* Аппаратное ускорение */
}

.products-slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: fit-content;
    cursor: grab;
    user-select: none;
    will-change: transform;
    transform: translateZ(0); /* Включаем аппаратное ускорение */
}

.products-slider.grabbing {
    cursor: grabbing;
    transition: none;
}

.product-slide {
    flex: 0 0 auto;
    width: calc(20vw - 20px); /* Динамическая ширина с учетом отступов */
    min-width: 250px; /* Минимальная ширина карточки */
    max-width: 300px; /* Максимальная ширина карточки */
    padding: 0 10px;
    box-sizing: border-box;
    user-select: none;
    pointer-events: auto;
}

.products-carousel-prev,
.products-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 10;
    transition: all 0.3s ease;
}

.products-carousel-prev {
    left: 0;
}

.products-carousel-next {
    right: 0;
}

.products-carousel-prev:hover,
.products-carousel-next:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.products-carousel-prev .carousel-control-prev-icon,
.products-carousel-next .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Стили для блока "О маркетплейсе ROSO" */
.about-roso {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Адаптивность для карусели */
@media (max-width: 1200px) {
    .product-slide {
        width: calc(25vw - 20px); /* 4 товара в ряд */
        min-width: 220px;
        max-width: 280px;
    }
}

@media (max-width: 992px) {
    .product-slide {
        width: calc(33.333vw - 20px); /* 3 товара в ряд */
        min-width: 200px;
        max-width: 260px;
    }
    
    .products-carousel-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .product-slide {
        width: calc(50vw - 20px); /* 2 товара в ряд */
        min-width: 180px;
        max-width: 240px;
    }
    
    .products-carousel-wrapper {
        padding: 0 30px;
    }
    
    .products-carousel-prev,
    .products-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .product-slide {
        width: calc(100vw - 40px); /* 1 товар в ряд */
        min-width: 160px;
        max-width: 200px;
    }
    
    .products-carousel-wrapper {
        padding: 0 20px;
    }
    
    .about-content h2 {
        font-size: 1.75rem;
    }
}

/* Стили для страницы товара */
.product-gallery {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.product-info-wrapper {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Стили для зума изображения */
.image-zoom-container {
    position: relative;
    cursor: crosshair;
    overflow: hidden;
    border-radius: 8px;
}

.zoomable-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: none;
    width: 150px;
    height: 150px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.3), inset 0 0 0 2px rgba(255,255,255,0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.zoom-lens.active {
    opacity: 1;
}

.zoom-window {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 20px;
    width: 300px;
    height: 300px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    transform: translateX(10px);
}

.zoom-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.zoom-window::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    pointer-events: none;
}

.zoom-image {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    pointer-events: none;
    transform-origin: top left;
}

/* Информация о товаре */
.product-rating {
    display: flex;
    align-items: center;
}

.stars {
    display: flex;
    gap: 2px;
}

.rating-text {
    color: #666;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.rating-text:hover {
    color: var(--roso-primary);
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

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

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--roso-primary);
}

.old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.availability-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-badge.in-stock {
    background: #e8f5e8;
    color: #2d7d32;
}

/* Рендер HTML-описаний магазинов */
.store-description {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
}
.store-description img {
    max-width: 100%;
    height: auto;
}
.store-description iframe,
.store-description .video_block,
.store-description .video-wrapper {
    max-width: 100%;
    width: 100%;
}
.store-description iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

.seller-info {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.seller-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.seller-name a {
    font-weight: 600;
    color: var(--roso-primary);
    text-decoration: none;
}

.seller-name a:hover {
    text-decoration: underline;
}

.ask-question-btn {
    color: #666;
    font-size: 14px;
}

.ask-question-btn:hover {
    color: var(--roso-primary);
}

.quantity-section .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #f5f5f5;
    color: var(--roso-primary);
}

.qty-input {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.qty-input:focus {
    outline: none;
    box-shadow: none;
}

.cart-btn, .buy-now-btn {
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cart-btn {
    background: var(--roso-primary);
    border-color: var(--roso-primary);
}

.cart-btn:hover {
    background: var(--roso-secondary);
    border-color: var(--roso-secondary);
    transform: translateY(-1px);
}

.buy-now-btn {
    background: white;
    border: 2px solid var(--roso-primary);
    color: var(--roso-primary);
}

.buy-now-btn:hover {
    background: var(--roso-primary);
    color: white;
    transform: translateY(-1px);
}

.additional-actions {
    display: flex;
    gap: 20px;
}

.additional-actions .btn-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
}

.additional-actions .btn-link:hover {
    color: var(--roso-primary);
}

.product-details-wrapper {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--roso-primary);
}

.description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Адаптивность для зума */
@media (max-width: 1200px) {
    .zoom-window {
        right: -270px;
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 992px) {
    .zoom-window {
        right: -220px;
        width: 200px;
        height: 200px;
    }
    
    .zoom-lens {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .image-zoom-container {
        cursor: default;
    }
    
    .zoom-window,
    .zoom-lens {
        display: none !important;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .cart-btn, .buy-now-btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .product-gallery,
    .product-info-wrapper,
    .product-details-wrapper {
        margin-bottom: 20px;
    }
}

/* Слайдер категорий */
.categories-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.categories-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Мобильная версия - горизонтальный слайдер */
@media (max-width: 768px) {
    .categories-slider-wrapper {
        margin: 0 -15px; /* Растягиваем на всю ширину контейнера */
        padding: 0 15px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .categories-slider-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .categories-slider {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .categories-slider .category-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: auto;
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .categories-slider .category-btn:active {
        transform: scale(0.95);
    }
    
    .categories-slider .category-icon {
        width: 24px;
        height: 24px;
        object-fit: contain;
        margin-right: 8px !important;
    }
}