/* 1. Контейнер пункта: убираем фикс-ширину и запрещаем переносы */
.header-menu .menu-item{
    display:flex;
    align-items:baseline;
    gap:4px;
    flex-wrap:nowrap;      /* чтобы ничего не переносилось */
    white-space:nowrap;   
}

/* 2. Ссылке-заглушке запрещаем растягиваться */
.header-menu .menu-item > a{
    flex:0 1 auto;
}

/* 3. Бейдж: гарантируем красный и не допускаем наследования */
.soon-badge{
    position:relative;
    top:-1.45em;          /* подберите величину: -0.25…-0.45em  */
    font-size:.7em;
    line-height:1;        /* чтобы внутри не было лишней высоты */
    color:red !important;
}

.main-page-layout{
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 3.5rem !important;
}

.hero-banner {
    position: relative;
    display: block;
    width: 100vw;
    height: 100vh; /* Changed from 450px to 100vh for full viewport height */
    margin-left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    z-index: 500;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-content {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100%; 
    text-decoration: none; 
    color: white; 
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.catalog-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.btn-light {
    background-color: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    color: inherit !important; 
}
.btn-light:hover {
    background-color: rgba(239, 239, 239, 0.393) !important; 
    border-color: transparent !important; 
    transform: translateY(-3px); 
}
@font-face {
    font-family: 'Hiragino Sans GB'; 
    src: url('../fonts/Hiragino Sans GB W05 W4.woff2') format('woff2'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

html, body {
    font-family: 'Hiragino Sans GB', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Apply the new font */
}
h1:focus {
    outline: none;
}
a, .btn-link {
    color: #0071c1;
}
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.25), 0 0 0 0.25rem black !important; /* ИЗМЕНЕНО: черный эффект */
}
.content {
    padding-top: 1.1rem;
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}
.invalid {
    outline: 1px solid red;
}
.validation-message {
    color: red;
}
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }
        .loading-progress circle:last-child {
            stroke: #000000; /* ИЗМЕНЕНО: с #1b6ec2 на черный */
            stroke-dasharray: calc(3.141592653589793 * 40%);
            stroke-dashoffset: 0;
            animation: loading-progress-animation 1s linear infinite;
        }
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
code {
    color: #c02d76;
}
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%; 
    max-width: 100rem;
    margin: 0 auto; 
}

.top-row {
    background-color: white; 
    justify-content: space-between; 
    height: 108px; /* ИЗМЕНЕНО: высота хедера */
    display: flex; 
    width: 100%; 
    align-items: center; /* Это свойство центрирует логотип по вертикали, создавая отступы */
    padding: 0 40px 0 1.5rem; /* Из предыдущих правок: top=0, right=40px, bottom=0, left=1.5rem */
    position: fixed; 
    top: 0; /* Добавлено для фиксации */
    left: 0; /* Добавлено для фиксации */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Из предыдущих стилей, можно оставить */
    z-index: 1050; /* Из предыдущих стилей, важно для меню */
    transition: transform 0.3s ease-in-out; 
}
.logo-container {
    padding-left: 10px; /* Отступ слева */;
    position: relative; /* Для позиционирования меню */
    height: 100%; /* Контейнер занимает всю высоту хедера */
    display: flex;
    align-items: center;
    cursor: pointer;
}
.logo_img {
    height: 80px; 
    width: 218px; 
    object-fit: fill; 
    max-height: 100%;
}

/* Когда меню открыто (общие стили для .open) */


/* Стили для пунктов всплывающего меню */





.actions {
    display: flex;
    gap: 40px; 
    padding-right: 20px;
}

.actions .btn {
    background-color: transparent !important;
    border: none !important;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative; /* ДОБАВЛЕНО: для позиционирования значка счетчика */
}




.actions .btn:hover {
    opacity: 0.7;
}
.main-content {
    flex: 1;
    padding: 20px; /* Оставляем боковые отступы */
    max-width: 1600px;
    width: 100%;
    margin: 0 auto; /* Центрируем */
    box-sizing: border-box;
    /* Убираем margin-top, если он был для отступа от хедера */
    /* margin-top: calc(100vh + 3.5rem); */ /* Этот стиль был для Hero Banner, вероятно, не нужен здесь */
}
/*@media (max-width: 991.98px) {*/
/*    .top-row .logo-container .header-menu { !* Точно нацеливаемся на DesktopMenu *!*/
/*        display: none !important;*/
/*    }*/
/*}*/

    /*!* --- Хедер (.top-row) --- *!*/
    /*.top-row {*/
    /*    padding: 0 1rem;*/
    /*    height: 60px;*/
    /*    display: flex; !* Уже есть, но подтверждаем для управления порядком *!*/
    /*    align-items: center;*/
    /*    justify-content: space-between; !* Распределяем элементы по краям *!*/
    /*}*/
    
    /*!* Контейнер логотипа и бургер-кнопки (слева) *!*/
    /*!* Для изменения порядка придется обернуть лого и бургер в один div или использовать order *!*/
    /*!* Проще всего будет поменять их местами в MainHeader.razor для мобильных, *!*/
    /*!* но если это невозможно, попробуем через CSS order, если .top-row - flex-контейнер. *!*/
    /*!* Предположим, что MainHeader.razor может быть изменен, чтобы бургер был слева от лого. *!*/
    /*!* Если нет, то через CSS: *!*/
    /*.logo-container {*/
    /*    order: 2; !* Логотип будет вторым *!*/
    /*    padding-left: 0.5rem; !* Небольшой отступ от бургера *!*/
    /*}*/
    
    /*.logo-container .logo_img {*/
    /*    height: 28px; !* Уменьшаем логотип *!*/
    /*    width: auto;*/
    /*}*/
    
    /*.navbar-toggler {*/
    /*    display: block !important;*/
    /*    order: 1; !* Бургер-кнопка будет первой (слева) *!*/
    /*    border: none; !* Убираем рамку *!*/
    /*    padding: 0.25rem; !* Уменьшаем паддинг для компактности *!*/
    /*    margin-right: 0.5rem; !* Отступ справа от логотипа *!*/
    /*}*/
    
    /*.navbar-toggler:focus {*/
    /*    outline: none;*/
    /*    box-shadow: none;*/
    /*}*/
    
    /*.navbar-toggler-icon {*/
    /*    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); !* Черная иконка *!*/
    /*    width: 1.2em;  !* Немного уменьшим иконку *!*/
    /*    height: 1.2em;*/
    /*}*/
    
    /*.actions {*/
    /*    order: 3; !* Иконки действий будут третьими (справа) *!*/
    /*    gap: 0.75rem;*/
    /*    padding-right: 0; !* Убираем лишний правый отступ, т.к. .top-row уже имеет padding *!*/
    /*}*/
    
    /*.actions .btn img {*/
    /*    height: 24px;*/
    /*    width: 24px;*/
    /*}*/
    
    /*.count-badge {*/
    /*    top: -4px;*/
    /*    right: -4px;*/
    /*    font-size: 0.55rem;*/
    /*    padding: 1px 3px;*/
    /*    min-width: 12px;*/
    /*    height: 12px;*/
    /*}*/

/*    !* --- Мобильное меню (.header-menu) --- *!*/
/*    .header-menu {*/
/*        position: fixed;*/
/*        top: 0;*/
/*        left: 0; !* Убедитесь, что left: 0 для начальной точки перед transform *!*/
/*        transform: translateX(-105%); !* Изначально скрыто. Можно попробовать -110% или даже больше для гарантии. *!*/
/*        !* ... остальные ваши мобильные стили для .header-menu ... *!*/
/*        width: 85%;*/
/*        max-width: 300px; !* или 320px, как было ранее *!*/
/*        height: 100vh; !* На всю высоту экрана *!*/
/*        background-color: #ffffff;*/
/*        box-shadow: 3px 0px 15px rgba(0,0,0,0.15);*/
/*        padding: 1.5rem;*/
/*        opacity: 1 !important;*/
/*        visibility: visible !important;*/
/*        transition: transform 0.3s ease-in-out;*/
/*        overflow-y: auto;*/
/*        z-index: 1060; !* Должен быть выше оверлея и хедера *!*/
/*        display: flex;*/
/*        flex-direction: column;*/
/*        align-items: flex-start;*/
/*        gap: 0;*/
/*    }*/

/*    .header-menu.open {*/
/*        transform: translateX(0); !* Показываем меню *!*/
/*    }*/

/*    .header-menu .menu-item {*/
/*        width: 100%;*/
/*        display: flex;*/
/*        align-items: center;*/
/*        flex-wrap: nowrap;*/
/*    }*/

/*    .header-menu .menu-item > a {*/
/*        font-size: 1.1rem;*/
/*        font-weight: 400;*/
/*        color: #212529; !* Темный цвет текста *!*/
/*        padding: 0.8rem 0;*/
/*        display: block;*/
/*        flex-grow: 1;*/
/*        border-bottom: 1px solid #f0f0f0;*/
/*        white-space: normal;*/
/*        letter-spacing: normal;*/
/*    }*/
/*    .header-menu .menu-item:last-of-type > a {*/
/*        border-bottom: none;*/
/*    }*/
/*    .header-menu .menu-item > a.disabled-link {*/
/*        color: #adb5bd; !* Более светлый серый для неактивных ссылок *!*/
/*    }*/

/*    .header-menu .menu-item .soon-badge {*/
/*        position: static; !* Возвращаем в поток *!*/
/*        transform: none;*/
/*        font-size: 0.65em;*/
/*        line-height: 1;*/
/*        color: red !important;*/
/*        background-color: #fff0f0; !* Легкий фон для бейджа *!*/
/*        padding: 2px 5px;*/
/*        border-radius: 3px;*/
/*        margin-left: 0.5rem; !* Отступ от текста ссылки *!*/
/*        white-space: nowrap;*/
/*    }*/

/*    !* Оверлей для затемнения страницы *!*/
/*    .overlay.active {*/
/*        display: block;*/
/*        position: fixed; !* Убедимся, что он fixed *!*/
/*        top: 0;*/
/*        left: 0;*/
/*        width: 100%;*/
/*        height: 100%;*/
/*        background-color: rgba(0, 0, 0, 0.5); !* Затемнение *!*/
/*        z-index: 1055; !* Ниже мобильного меню (1060), но выше остального контента и хедера (1050) *!*/
/*    }*/
/*}*/


.cart-title, .order-title {
    margin-top: 70px; /* Одинаковый отступ сверху для всех заголовков  .favorites-title */
}


.cart-title-divider,
.order-title-divider,
.favorites-title-divider {
    border: none;
    background-color: #000000;
    width: 100%; /* Занимает 100% ширины своей колонки */
    height: 2px;
    margin: 30px 0;
}


.order-summary-details {
    /* padding-top: 120px; */ /* УДАЛЕНО */
    margin-bottom: 1rem;
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-checkout-button {
    margin-top: 30x; /* Отступ 160px до кнопки "Оформить заказ" */
    border-radius: 8px;
    /* ... existing styles ... */
}

/* ... rest of the cart styles ... */

/* Удаляем дублирующее правило для заголовков */
/* .cart-container h1,
.cart-container h2,
.cart-title {
    margin-top: 60px;
} */


/* Поборка товаров */

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две подборки на строку */
    gap: 2rem; /* Расстояние между подборками */
    margin-top: 2rem;
}
.collection {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Два товара на строку */
    gap: 1rem; /* Расстояние между товарами */
    margin-top: 1rem;
}

.card {
    border: none !important;
    box-shadow: none !important;
}s

.card h5 {
    margin: 1rem 0 0.5rem 0;
}

.card p {
    margin: 0.5rem 0;
}

.card-img-top {
    width: 100%;           
    height: 250px;          
    object-fit: contain;   
}
/*Каталог*/

.product-card {
    overflow: hidden;
    text-align: center;
    background-color: white;
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-image {
    width: 100%;
    height: auto; /* Фиксированная высота изображения */
    object-fit: cover;
}

.product-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.product-category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.product-price {
    font-size: 1rem;
    font-weight: bold;
    color: #1b6ec2;
}
@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr; /* Одна подборка на строку */
    }

    .products-grid {
        grid-template-columns: 1fr; /* Один товар на строку */
    }

        .top-row {
        height: 60px; /* Высота для мобильных */
        padding: 0 1rem; /* Отступы для мобильных */
        display: flex;
        align-items: center;
    }

    /* 1. Логотип всегда слева */
    .logo-container {
        flex-shrink: 0; /* Запрещаем логотипу сжиматься */
        padding-left: 0;
        /* Сбрасываем старые правила, если они были */
        order: initial; 
        flex-grow: 0;
        justify-content: flex-start;
    }
    .logo_img {
        height: 28px; /* Мобильный размер логотипа */
        width: auto;
    }

    /* 2. Блок с иконками "Избранное" и "Корзина" */
    .actions {
        margin-left: auto; /* Главный трюк: прижимает этот блок к правому краю */
        display: flex;
        align-items: center;
        gap: 1rem; /* Отступ между иконками */
    }


    /* 3. Кнопка-бургер */
    .navbar-toggler {
        display: block !important; /* Убеждаемся что бургер виден */
        border: none;
        padding: 0.25rem;
        margin-left: 0.75rem; /* Небольшой отступ от иконок */
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* 4. Бейдж на иконках */
    .count-badge {
        top: -5px;
        right: -5px;
        font-size: 0.6rem;
        padding: 1px 4px;
        min-width: 14px;
        height: 14px;
    }


    .logo-container {
    order: initial;
    flex-grow: 0;
    justify-content: flex-start;
    padding-left: 0;
    }

    .logo_img {
        height: 28px; /* Значительно уменьшаем логотип */
        width: auto;
    }

    /* 3. Иконки действий ставим на третье место и уменьшаем */
    .actions {
        order: 3;
        gap: 0.75rem; /* Уменьшаем расстояние между иконками */
        padding-right: 0;
    }

    .actions .btn img {
        height: 24px; /* Уменьшаем иконки */
        width: 24px;
        object-fit: contain;
    }

    /* 4. Уменьшаем и позиционируем бейдж для маленьких иконок */
    .count-badge {
        top: -5px;
        right: -5px;
        font-size: 0.6rem;
        padding: 1px 4px;
        min-width: 14px;
        height: 14px;
    }
}

/* Бандлы */

/* Bundle styling */
.bundles-section {
    padding: 4rem 0;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.bundles-grid {
    display: grid;
    grid-template-columns: 1fr; /* <--- Одна колонка */
    gap: 4rem 0; /* Вертикальный отступ */
    padding: 0 2rem;
    margin: 0 auto;
}

.bundle-container {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.bundle-images {
    position: relative;
    overflow: hidden;
}

.bundle-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.bundle-heart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #000;
    font-size: 1.2rem;
    opacity: 0.7;
    cursor: pointer;
}

.bundle-heart:hover {
    opacity: 1;
}

.bundle-info {
    text-align: center;
    margin-top: 1rem;
}

.bundle-collection {
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.bundle-description {
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.bundle-price {
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* Стили для десктопа (>= 992px) */
@media (min-width: 992px) {

    
    .navbar-toggler {
        display: none !important; /* Скрываем бургер на десктопе */
    }

    .logo-container {
        order: initial;
        padding-left: 10px;
    }

    .actions {
        order: initial;
        gap: 40px;
        padding-right: 20px;
        align-items: center; /* Добавлено для идеального выравнивания */
    }

    .logo-container .logo_img {
        height: 80px;
    }

    /* Правильные, отлаженные ранее размеры для иконок */
    .actions .btn-favorite img {
        height: 50px;
        width: 50px;
        object-fit: contain; /* Используем contain, чтобы не искажать */
    }
    
    .actions .btn-cart img {
        height: 60px;
        width: 60px;
        object-fit: contain; /* Используем contain, чтобы не искажать */
    }

    .count-badge {
        top: -8px;
        right: -8px;
        font-size: 0.7rem;
        padding: 2px 6px;
        min-width: 18px;
        height: 18px;
    }

    /* Тут должны быть стили для десктопного меню, если они есть */
    .header-menu {
        /* Ваши стили для десктопного выпадающего меню */
    }

    .bundles-grid {
        grid-template-columns: repeat(2, 1fr); /* <--- Две колонки на десктопе */
        gap: 6rem 7.5rem; /* Ваши десктопные отступы */
    }
    .favorites-extra-spacing {
    padding-top: 7rem !important; /* <-- Укажите здесь нужное вам значение */
    }

    .catalog-extra-spacing {
    padding-top: 2rem !important; /* <-- Укажите здесь нужное вам значение */
    }
}

@media (max-width: 768px) {
    .bundles-grid {
        grid-template-columns: 1fr; /* One bundle per row on mobile */
        gap: 4rem 0;
    }
}
.favorite-active {
    filter: brightness(0) saturate(100%);
}



.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

.favorite-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.favorite-icon:hover img {
    opacity: 1;
}

.favorite-icon img.favorite-active {
    opacity: 1;
}

.product-images-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* Если блок должен быть как-то отцентрован, или если он шире, это не так важно */
    position: relative; /* Может быть полезно, если transform должен работать относительно этой колонки */
    /* width: 20rem; */
     /* <-- сюда «уйдёт» место для кнопок */
    /* gap: 10%; */
}

.product-image-scroll-wrapper {
    display: flex;
    overflow: visible;
    justify-content: center;
    position: relative;
    width: 100% !important; 
    padding: 0 0.2rem;  
    height: auto;
    /* gap: 30px; */
}

/* Стили для одиночного изображения, если оно отображается */
/* В вашем CSS есть ошибка: width: 856x; - должно быть 856px */


.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Вертикальное центрирование */
    background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон для лучшей видимости */
    color: white; /* Белые стрелки */
    border: none;
    font-size: 20px; /* Размер символа стрелки, можно настроить */
    cursor: pointer;
    border-radius: 50%; /* Круглые кнопки */
    width: 44px;  /* Ширина кнопки */
    height: 44px; /* Высота кнопки */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Поверх изображений */
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7; /* Немного прозрачные по умолчанию */
}

.scroll-button:hover:not(:disabled) {
    /* background-color: rgba(230, 230, 230, 0.9); */ /* УДАЛЕНО: hover-эффект для фона */
    color: #000; /* ИЗМЕНЕНО: Затемнение стрелки при наведении */
}

.scroll-button:disabled {
    /* opacity: 0.5; */ /* Заменено на изменение цвета для лучшей читаемости */
    color: #ccc;    /* ИЗМЕНЕНО: Цвет неактивной стрелки */
    cursor: not-allowed;
}



.bundle-image-display-container { /* Новый класс для контейнера изображения бандла */
    width: fit-content; /* Позволяет контейнеру подстраиваться под размер изображения */
    position: relative; /* Контекст для позиционирования, хорошая практика при использовании transform */
    transform: translateX(-140px); /* Смещение влево, аналогично странице продукта */
    margin-bottom: 1rem; /* Отступ снизу для согласованности */
}

.product-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 120px; /* Space between images */
    width: 100%;
}

.product-image-item {
    width: 370px;
    height: auto;
    aspect-ratio: 1 / 1; /* Make images square */
    object-fit: cover; /* Or contain, depending on preference */
    border-radius: 4px; /* Optional rounded corners */
}

.single-product-image {
     max-width: 80%; /* Adjust size for single image */
     height: auto;
     display: block;
     margin: 0 auto; /* Center single image */
}



/* .product-title,
.product-set-info,
.product-production-time,
.product-price-display {
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important; 
} */

/* Для кнопки "К коллекции" уберем верхний отступ, так как нижний отступ */
/* от кнопки "В корзину" уже создаст нужное расстояние. */
.btn-to-collection {
    margin-top: 0 !important;
}

/* Последнему элементу в колонке нижний отступ не нужен, чтобы не было лишнего пространства снизу */
.product-details-column > *:last-child {
    margin-bottom: 0 !important;
}

.product-heart-icon {
    width: 24px;  /* Уменьшен размер иконки */
    height: 24px; /* Уменьшен размер иконки */
    object-fit: contain;
    cursor: pointer;
}

.product-heart-icon:hover {
    opacity: 0.7;
}

.form-label.product-label { /* Уточненный селектор для метки */
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0.3rem; /* Отступ между меткой и выпадающим списком */
    display: block;
    font-weight: 500; /* Средняя жирность */
}

.form-select.product-select { /* Уточненный селектор для выпадающего списка */
    border-radius: 0.25rem; /* Стандартный радиус скругления */
    border: 1px solid #ced4da; /* Стандартный цвет рамки Bootstrap */
    padding: 0.5rem 0.75rem;   /* Внутренние отступы */
    font-size: 1rem;
    background-color: #fff;    /* Белый фон */
    color: #212529;         /* Стандартный цвет текста Bootstrap */
    /* width: 100%; */      /* Класс form-select должен это обрабатывать */
}

.product-select:focus {
    box-shadow: none;
    border-color: #888;
}




/* Button "К коллекции" */
.btn.btn-to-collection { /* Уточненный селектор */
    background-color: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    padding: 0.85rem 1rem;    /* Соответствует другой кнопке */
    font-size: 0.9rem;        /* Соответствует другой кнопке */
    font-weight: 600;         /* Соответствует другой кнопке */
    text-transform: uppercase;
    border-radius: 8px;      /* <-- Главное изменение */
    letter-spacing: 0.05em;   /* Небольшой межбуквенный интервал */
    /* Класс w-100 обрабатывает ширину */
    /* Класс mt-3 в Razor (1rem) обрабатывает отступ сверху, что приемлемо */
}


.btn.btn-to-collection:hover {
    background-color: #f1f1f1 !important; /* Очень светло-серый при наведении */
    color: #000000 !important;
}
.back-to-catalog {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    text-align: center; /* На всякий случай для выравнивания */

    /* Стили, унифицированные с .btn-to-collection */
    background-color: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px; /* <-- Главное изменение */
    transition: background-color 0.2s ease; /* Добавляем плавный переход */
}

.back-to-catalog:hover {
    background-color: #f1f1f1 !important; /* Такой же hover, как у .btn-to-collection */
    color: #000000 !important;
    text-decoration: none;
}
.back-to-catalog:active {
	position:relative;
	top:1px;
}

/* Стили для разделителя на странице избранного */
.favorites-divider {
    margin-top: 0.5rem;      /* Уменьшенный отступ сверху (после h3) */
    margin-bottom: 1.5rem;   /* Отступ снизу до контента, можно настроить */
    border: none;
    height: 3px;
    background-color: #000000;
    width: 100%;
}


.favorite-active {
    filter: brightness(0) saturate(100%);
}




.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

.favorite-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.favorite-icon:hover img {
    opacity: 1;
}

.favorite-icon img.favorite-active {
    opacity: 1;
}

/* Product Page Specific Styles */
.product-page-container {
    width: 100%;
    max-width: 1600px; /* Ограничиваем максимальную ширину */
    margin: 0px auto 3rem auto; /* Отступ сверху, центрирование, отступ снизу */
    padding: 0 40px; /* Боковые отступы для безопасности на узких экранах */
    box-sizing: border-box;
}

/* Cart Page Specific Styles */
.cart-page-container {
    width: 100%;
    max-width: 1600px; /* Ограничиваем максимальную ширину */
    margin: 0px auto 3rem auto; /* Отступ сверху, центрирование, отступ снизу */
    padding-left: 15.5rem; /* 250px в rem */
    padding-right: 10.5rem; /* 170px в rem */
    box-sizing: border-box;
}

/* Favorites Page Specific Styles */
.favorites-page-container {
    width: 100%;
    max-width: 1600px; /* Ограничиваем максимальную ширину */
    margin: 0px auto 3rem auto; /* Отступ сверху, центрирование, отступ снизу */
    padding-left: 15.625rem; /* 250px в rem */
    padding-right: 15.625rem; /* 250px в rem */
    box-sizing: border-box;
}


/* @media (max-width: 1199.98px) {
    .cart-page-container {
        padding-left: 3rem; 
        padding-right: 3rem;
    }
} */

@media (max-width: 991.98px) {
    .cart-page-container {
        padding-left: 2rem; /* Еще меньше на мобильных */
        padding-right: 2rem;
    }
}

@media (max-width: 767.98px) {
    .cart-page-container {
        padding-left: 1rem; /* Минимальные отступы на телефонах */
        padding-right: 1rem;
    }
}

/* Адаптивные стили для избранного */
/* @media (max-width: 1199.98px) {
    .favorites-page-container {
        padding-left: 3rem; 
        padding-right: 3rem;
    }
} */

@media (max-width: 991.98px) {
    .favorites-page-container {
        padding-left: 2rem; /* Еще меньше на мобильных */
        padding-right: 2rem;
    }
}

@media (max-width: 767.98px) {
    .favorites-page-container {
        padding-left: 1rem; /* Минимальные отступы на телефонах */
        padding-right: 1rem;
    }
}


.product-option{
    margin-bottom: 0.55rem !important;
}

.product-details-column {
    /* На десктопе выравниваем контент по верху */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4.125rem; /* Отступ сверху для выравнивания с картинками */
    padding-left: 3.125rem;
}

/* .product-images-container {
    position: relative;
} */

/* .product-image-scroll-wrapper {
    position: relative; 
    display: flex;
    gap: 2%; 
    width: 100%;
} */

.product-image-item-pair {
    width: 100%; /* Две картинки, каждая по 49% ширины + 2% отступ = 100% */
    height: auto;
    /* aspect-ratio: 1 / 1; */
    object-fit: cover;
}

.single-image-in-scroller {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: contain; /* ИЗМЕНЕНИЕ: было 'cover', стало 'contain' */
    border-radius: 4px;
}

/* Специальные стили для изображения бандла */
.bundle-single-image {
    width: 100%;
    max-width: 600px; /* Увеличиваем максимальную ширину для бандлов */
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}


/* Позиционирование стрелок ОТНОСИТЕЛЬНО БЛОКА С КАРТИНКАМИ */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    /* Стили изменены для лучшей видимости */
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

.scroll-button:hover:not(:disabled) {
    background-color: white;
}

.prev-button {

    left: 0.01rem !important; 
}

.next-button {
    right:  0.01rem !important; 
}


.bundle-image-display-container { /* Новый класс для контейнера изображения бандла */
    width: fit-content; /* Позволяет контейнеру подстраиваться под размер изображения */
    position: relative; /* Контекст для позиционирования, хорошая практика при использовании transform */
    transform: translateX(-140px); /* Смещение влево, аналогично странице продукта */
    margin-bottom: 1rem; /* Отступ снизу для согласованности */
}


.single-product-image {
     max-width: 80%; /* Adjust size for single image */
     height: auto;
     display: block;
     margin: 0 auto; /* Center single image */
}

.product-heart-icon {
    width: 24px;  /* Уменьшен размер иконки */
    height: 24px; /* Уменьшен размер иконки */
    object-fit: contain;
    cursor: pointer;
}

.product-heart-icon:hover {
    opacity: 0.7;
}


.form-label.product-label { /* Уточненный селектор для метки */
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0.3rem; /* Отступ между меткой и выпадающим списком */
    display: block;
    font-weight: 500; /* Средняя жирность */
}

.form-select.product-select { /* Уточненный селектор для выпадающего списка */
    border-radius: 0.25rem; /* Стандартный радиус скругления */
    border: 1px solid #ced4da; /* Стандартный цвет рамки Bootstrap */
    padding: 0.5rem 0.75rem;   /* Внутренние отступы */
    font-size: 1rem;
    background-color: #fff;    /* Белый фон */
    color: #212529;         /* Стандартный цвет текста Bootstrap */
    /* width: 100%; */      /* Класс form-select должен это обрабатывать */
}

.product-select:focus {
    box-shadow: none;
    border-color: #888;
}

.catalog-item-wrapper {
    margin-bottom: 1.5rem; /* Это значение по умолчанию для класса .mb-4 в Bootstrap */
}





.product-add-to-cart-btn {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    padding: 0.85rem 1rem; /* Слегка увеличены вертикальные отступы */
    font-size: 0.9rem;     /* Немного уменьшен шрифт для заглавных букв */
    font-weight: 600;      /* Полужирное начертание */
    text-transform: uppercase;
    border-radius: 8px;      /* <--- ПРОБЛЕМА ЗДЕСЬ */
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    /* Класс w-100 обрабатывает ширину */
}

.product-add-to-cart-btn:hover {
    background-color: #2a2a2a !important; /* Слегка светлее при наведении */
    border-color: #2a2a2a !important;
}

.product-add-to-cart-btn:disabled {
    background-color: #cccccc !important; /* Светло-серый для неактивной кнопки */
    border-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
}


.favorite-active {
    filter: brightness(0) saturate(100%);
}

.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

.favorite-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.favorite-icon:hover img {
    opacity: 1;
}

.favorite-icon img.favorite-active {
    opacity: 1;
}

.scroll-button {
    background-color: transparent; /* ИЗМЕНЕНО: Убран фон */
    border: none;                  /* ИЗМЕНЕНО: Убрана рамка */
    color: #333;                   /* ИЗМЕНЕНО: Цвет стрелки */
    font-size: 28px;               /* ИЗМЕНЕНО: Размер стрелки, подберите по вкусу */
    cursor: pointer;
    padding: 5px;                  /* ИЗМЕНЕНО: Небольшой отступ для кликабельной области */
    transition: color 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
    /* УДАЛЕНЫ: width, height, line-height, border-radius для простого вида стрелок */
}

.scroll-button:hover:not(:disabled) {
    /* background-color: rgba(230, 230, 230, 0.9); */ /* УДАЛЕНО: hover-эффект для фона */
    color: #000; /* ИЗМЕНЕНО: Затемнение стрелки при наведении */
}

.scroll-button:disabled {
    /* opacity: 0.5; */ /* Заменено на изменение цвета для лучшей читаемости */
    color: #ccc;    /* ИЗМЕНЕНО: Цвет неактивной стрелки */
    cursor: not-allowed;
}



.bundle-image-display-container { /* Новый класс для контейнера изображения бандла */
    width: fit-content; /* Позволяет контейнеру подстраиваться под размер изображения */
    position: relative; /* Контекст для позиционирования, хорошая практика при использовании transform */
    transform: translateX(-140px); /* Смещение влево, аналогично странице продукта */
    margin-bottom: 1rem; /* Отступ снизу для согласованности */
}

.single-product-image {
     max-width: 80%; /* Adjust size for single image */
     height: auto;
     display: block;
     margin: 0 auto; /* Center single image */
}

/* Стили для заголовка действий на странице продукта (контейнер для иконки избранного) */
.product-actions-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.65rem; 
    position: relative;
    align-self: flex-start; /* Гарантирует выравнивание по левому краю */
}

.product-heart-icon {
    width: 24px;  /* Уменьшен размер иконки */
    height: 24px; /* Уменьшен размер иконки */
    object-fit: contain;
    cursor: pointer;
}

.product-heart-icon:hover {
    opacity: 0.7;
}

.product-set-info {
    font-size: 0.9375rem; /* Скорректирован размер шрифта */
    color: #6c757d;     /* Стандартный "приглушенный" цвет Bootstrap */
    line-height: 1.4;
    margin-bottom: 0.35rem !important;
}

.product-title {
    font-size: 1.6785rem; /* Скорректирован размер шрифта */
    font-weight: 600;   /* Полужирное начертание */
    color: #000000;
    margin-top: 0;      
    line-height: 1.3;
}


.form-label.product-label { /* Уточненный селектор для метки */
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0.3rem; /* Отступ между меткой и выпадающим списком */
    display: block;
    font-weight: 500; /* Средняя жирность */
}

.form-select.product-select { /* Уточненный селектор для выпадающего списка */
    border-radius: 0.25rem; /* Стандартный радиус скругления */
    border: 1px solid #ced4da; /* Стандартный цвет рамки Bootstrap */
    padding: 0.5rem 0.75rem;   /* Внутренние отступы */
    font-size: 1rem;
    background-color: #fff;    /* Белый фон */
    color: #212529;         /* Стандартный цвет текста Bootstrap */
    /* width: 100%; */      /* Класс form-select должен это обрабатывать */
}

.product-select:focus {
    box-shadow: none;
    border-color: #888;
}

.product-production-time {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem; /* Уменьшен отступ сверху */
    margin-bottom: 0.7rem; /* Отступ перед ценой */
    line-height: 1.4;
}

.product-price-display {
    font-size: 1.6rem; /* Скорректирован размер шрифта */
    /* font-weight: bold; */
    color: #000000;
    /* margin-top: 0.5rem;  */
    margin-bottom: 1.0rem; /* Отступ перед кнопкой "В корзину" */
    line-height: 1.3;
}




.favorite-active {
    filter: brightness(0) saturate(100%);
}

.favorite-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}


.favorite-btn img {
    transition: all 0.2s ease;
    width: 1.875rem;
    height: 1.4375rem;
}

.favorite-btn:hover img {
    transform: scale(1.1);
}

.header-menu {
    display: block;
    position: absolute;
    top: 100%; /* Позиционируем сразу под хедером */
    left: -2rem; /* Смещаем меню влево на величину отступа родителя */
    background-color: white;
    /* Убираем рамку и тень, как на макете */
    border: none;
    box-shadow: none;
    padding: 0.5rem 9px 1rem 40px; /* Убедимся, что правый padding остается, а левый равен 0 */
    width: 385px; 
    z-index: 1051; /* Меню выше хедера */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease; /* Убираем transform из transition */
}

.header-menu.open {
    opacity: 1;
    visibility: visible;
    /* transform: translateY(0); */ /* Убираем, если есть */
}

.header-menu a {
    display: block;
    padding: 0.8rem 0; /* Вертикальные отступы между пунктами */
    color: #000; /* Черный цвет текста */
    text-decoration: none;
    font-size: 2rem; /* Увеличенный размер шрифта, подберите точнее */
    font-weight: 300; /* Тонкое начертание, если шрифт поддерживает */
    white-space: nowrap;
    transition: color 0.2s ease;
    letter-spacing: 0.03em; /* Небольшой разнос букв */
    /* Убираем фон при наведении */
    background-color: transparent !important;
}

.header-menu a:hover {
    color: #555; /* Цвет при наведении, если нужен */
}

.header-menu a.disabled-link {
    color: #aaa; /* Цвет неактивных ссылок */
    cursor: default;
    pointer-events: none;
}

/* Soon Label Styling */
.disabled-link .soon-label {
    font-size: 0.7rem !important;      /* Маленький размер шрифта */
    color: red !important;             /* Красный цвет текста */
    vertical-align: super !important;  /* Верхний индекс */
    margin-left: 4px !important;       /* Небольшой отступ слева */
    text-transform: lowercase !important; /* Текст "soon" строчными буквами */
    display: inline !important;        /* Для корректной работы vertical-align: super */
    font-weight: normal !important;    /* Обычная жирность (не наследовать от .disabled-link) */
    letter-spacing: normal !important; /* Обычный межбуквенный интервал */
    background: none !important;       /* Убрать фон, если он есть у родителя */
    border: none !important;           /* Убрать рамку, если она есть у родителя */
    opacity: 1 !important;             /* Полная непрозрачность, если родитель полупрозрачен */
    padding: 0 !important;             /* Убрать внутренние отступы, если они есть */
}

.soon-label {
    font-size: 0.7rem !important;      /* Маленький размер шрифта */
    color: red !important;             /* Красный цвет текста */
    vertical-align: super !important;  /* Верхний индекс */
    margin-left: 4px !important;       /* Небольшой отступ слева */
    text-transform: lowercase !important; /* Текст "soon" строчными буквами */
    display: inline !important;        /* Для корректной работы vertical-align: super */
    font-weight: normal !important;    /* Обычная жирность (не наследовать от .disabled-link) */
    letter-spacing: normal !important; /* Обычный межбуквенный интервал */
    background: none !important;       /* Убрать фон, если он есть у родителя */
    border: none !important;           /* Убрать рамку, если она есть у родителя */
    opacity: 1 !important;             /* Полная непрозрачность, если родитель полупрозрачен */
    padding: 0 !important;             /* Убрать внутренние отступы, если они есть */
}


/* Оверлей */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Ниже хедера и меню */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Замените .cart-main-content-row на ваш актуальный класс */
.cart-main-content-row { /* Пример селектора, используйте ваш */
    align-items: flex-start !important; /* Выравнивание дочерних колонок по верху */
}

/* Убедимся, что у самого списка товаров нет лишнего верхнего отступа */
/* Замените .cart-items-list-container на ваш актуальный класс контейнера списка товаров */
.cart-items-list-container { /* Пример селектора, используйте ваш */
    padding-top: 0;
    margin-top: 0;
}

/* Styles for Cart Page Items */
.cart-item-row {
    display: flex;
    align-items: flex-start; /* ИЗМЕНЕНО: Выравнивание по верхнему краю, чтобы текст был выше */
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cart-item-row:last-child {
    border-bottom: none; /* Убрать линию у последнего элемента */
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-image-wrapper {
    flex-shrink: 0; /* Запретить сжатие обертки изображения */
    width: 200px;   /* Желаемая ширина изображения */
    height: 200px;  /* Желаемая высота изображения */
    margin-right: 1rem; /* ИЗМЕНЕНО: Уменьшен отступ справа от изображения товара */
    overflow: hidden;     /* Обрезать изображение, если оно больше обертки */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Опционально: скругленные углы для обертки */
}

.cart-item-image {
    max-width: 100%;
    max-height: 100%;
    width: 200px;
    height: auto;
    display: block;
    object-fit: cover; /* Масштабирование изображения для заполнения обертки, сохраняя пропорции */
    /* object-fit: contain; */ /* Альтернатива: показать все изображение, могут быть пустые поля */
}

.cart-item-details {
    flex-grow: 1; /* Позволить деталям занять оставшееся пространство */
    position: relative; /* Необходимо для абсолютного позиционирования кнопки удаления */
    display: flex;
    flex-direction: column; /* Расположить дочерние элементы вертикально */
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
    word-break: break-word; /* Перенос длинных слов, чтобы избежать горизонтального переполнения */
}

.cart-item-material,
.cart-item-size,
.cart-item-set,
.cart-item-coating {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

/* Стили для счетчика количества товаров */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.cart-quantity-btn {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}

.cart-quantity-btn:active {
    background-color: #dee2e6 !important;
    border-color: #6c757d !important;
    transform: scale(0.95);
}

.cart-quantity-display {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    min-width: 2rem;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.5rem; /* Отступ над ценой */
}

.cart-item-remove-btn {
    position: absolute; /* Абсолютное позиционирование относительно .cart-item-details */
    top: 0;
    right: 0;
    padding: 0.1rem 0.4rem; /* Небольшие отступы для кнопки */
    line-height: 1;
    font-size: 1.2rem; /* Размер крестика */
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
}
.cart-item-remove-btn:hover {
    color: #333;
}

/* Адаптивные стили для маленьких экранов */
@media (max-width: 576px) {
    .cart-item-row {
        flex-direction: column; /* Расположить изображение и детали вертикально */
        align-items: center;    /* Центрировать элементы */
        text-align: center;
    }

    .cart-item-image-wrapper {
        margin-right: 0;
        margin-bottom: 1rem; /* Отступ под изображением */
        width: 120px;        /* Можно увеличить изображение для вертикального вида */
        height: 120px;
    }

    .cart-item-details {
        align-items: center; /* Центрировать текстовый контент */
    }
    
    .cart-item-remove-btn {
        position: static; /* Сбросить абсолютное позиционирование */
        margin-top: 0.75rem; /* Добавить отступ сверху */
        align-self: center; /* Центрировать кнопку */
    }
}

/* Стили для значка счетчика */
.count-badge {
    position: absolute;
    top: -8px; 
    right: -8px; 
    background-color: black;
    color: white;
    border-radius: 50%;
    padding: 2px 6px; /* ИЗМЕНЕНО: Немного увеличены отступы */
    font-size: 0.7rem; 
    font-weight: bold;
    line-height: 1;
    min-width: 18px; /* Слегка увеличено для лучшего вида с новой набивкой */
    height: 18px;    /* Слегка увеличено для лучшего вида с новой набивкой */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; 
}


.cart-items-column-actual-class > hr + *,
.order-summary-column-actual-class > hr + * {
    margin-top: 0 !important;
    width: 55%;
}


.cart-items-list-wrapper, /* Замените на ваш класс */
.summary-details-wrapper { /* Замените на ваш класс */
    padding-top: 0;
    margin-top: 0; /* Убедитесь, что нет верхнего отступа */
}

@media (max-width: 991.98px) {

    /* --- 1. Адаптация ХЕДЕРА --- */
    .top-row {
        height: 60px;
        padding: 0 1rem;
    }
    
    .logo-container {
        padding-left: 0;
        flex-shrink: 0;
    }
    .logo_img {
        height: 28px;
        width: auto;
    }

    .actions {
        margin-left: auto;
        gap: 1rem;
    }
    .actions .btn img {
        height: 24px;
        width: 24px;
    }

    .navbar-toggler {
        display: block !important;
        border: none;
        padding: 0.25rem;
        margin-left: 0.5rem;
    }
    
    .count-badge {
        top: -5px;
        right: -5px;
        font-size: 0.6rem;
        padding: 1px 4px;
        min-width: 14px;
        height: 14px;
    }
    
    /* --- 2. Адаптация КОРЗИНЫ --- */
    

    .cart-title, .order-title {
        text-align: center;
    }
    
    .cart-title-divider,
    .order-title-divider {
        border: none;
        background-color: #000000;
        width: 100%;
        height: 2px;
        margin: 30px 0;
    }

    .cart-item-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item-image-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cart-item-details {
        align-items: center;
    }

    .cart-item-remove-btn {
        position: static;
        margin-top: 1rem;
    }
}

/* Дополнительные стили для самых маленьких экранов (телефоны) */
@media (max-width: 576px) {
    .cart-item-row {
        flex-direction: column; /* Картинка сверху, текст снизу */
        align-items: center;
        text-align: center;
    }

    .cart-item-image-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cart-item-details {
        align-items: center;
    }

    .cart-item-remove-btn {
        position: static;
        margin-top: 1rem;
    }

    .actions .btn-favorite img {
        height: 27px; /* Мобильный размер иконок */
        width: 27px;
        object-fit: contain;
    }
    
    .actions .btn-cart img {
        height: 27px; /* Мобильный размер иконок */
        width: 27px;
        object-fit: contain;
    }
}
@media (max-width: 767.98px) {

    .order-summary-column {
        margin-left: 0;
        margin-top: 3rem; /* Отступ между блоком товаров и блоком заказа */
    }

    .cart-title, .order-title {
        text-align: center; /* Центрируем заголовки на мобильных */
    }
    
    .cart-title-divider,
    .order-title-divider {
        width: 100%;
    }
    
    /* Товар в корзине: картинка сверху, текст снизу */
    .cart-item-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cart-item-image-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cart-item-details {
        align-items: center;
    }
    
    .cart-item-remove-btn {
        position: static;
        margin-top: 1rem;
    }

    .actions .btn-favorite img {
        height: 24px !important; /* Мобильный размер иконок */
        width: 24px !important;
        object-fit: contain;
    }
    
    .actions .btn-cart img {
        height: 26px !important; /* Мобильный размер иконок */
        width: 26px !important;
        object-fit: contain;
    }
}

@media (max-width: 1199.98px) {
    /* .order-summary-column {
        margin-left: 0;
    } */



    /* .cart-title, .order-title {
        text-align: center;
    } */

    /* .cart-title-divider,
    .order-title-divider {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    } */

}

@media (max-width: 767px) {
    .cart-item-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cart-item-image-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .cart-item-details {
        align-items: center;
    }
    .cart-item-remove-btn {
        position: static;
        margin-top: 1rem;
    }
}


/* Фикс для разделителей в корзине на десктопе */
.cart-title-divider,
.order-title-divider {
    width: auto; /* Позволяем им занимать ширину по контенту, но не более 100% */
}

/* Планшеты и мобильные устройства (< 992px) */
@media (max-width: 991.98px) {

    /* --- Хедер --- */
    .top-row { height: 60px; padding: 0 1rem; }
    .logo_img { height: 28px; width: auto; }
    .actions { margin-left: auto; gap: 1rem; }
    .actions .btn img { height: 24px; width: 24px; }
    .navbar-toggler { display: block !important; border: none; padding: 0.25rem; margin-left: 0.5rem; }
    .count-badge { top: -5px; right: -5px; font-size: 0.6rem; padding: 1px 4px; min-width: 14px; height: 14px; }

    /* --- Корзина --- */
    /* Выравниваем заголовки по центру и убираем отступ у правого блока */
    .order-summary-column { margin-left: 0; }
    .cart-title, .order-title { text-align: center; }

    /* Центрируем разделители и ограничиваем их ширину */
    .cart-title-divider,
    .order-title-divider {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }


}

@media (max-width: 767.98px) {
    /* --- Адаптация хедера --- */
    .top-row { height: 60px; padding: 0 1rem; }
    .logo_img { height: 28px; width: auto; }
    .actions { margin-left: auto; gap: 1rem; }
    .actions .btn img { height: 24px; width: 24px; }
    .navbar-toggler { display: block !important; border: none; padding: 0.25rem; margin-left: 0.75rem; }
    .count-badge { top: -5px; right: -5px; font-size: 0.6rem; padding: 1px 4px; min-width: 14px; height: 14px; }

    /* --- Адаптация корзины --- */
    /* Меняем порядок колонок: сначала итог, потом товары */
    .cart-items-column {
        order: 2; /* Товары идут вторыми */
        margin-top: 3rem; /* Отступ сверху от блока итога */
    }
    
    .order-summary-column {
        order: 1; /* Итог идет первым */
        margin-top: 0; /* Убираем отступ, так как теперь это первый блок */
    }
    
    .cart-title, .order-title {
        text-align: center;
    }
    .cart-title-divider,
    .order-title-divider {
        margin-left: auto;
        margin-right: auto;
    }
    .cart-item-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cart-item-image-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .cart-item-details {
        align-items: center;
    }
    .cart-item-remove-btn {
        position: static;
        margin-top: 1rem;
    }

        .bundle-image-display-container {
        transform: none; /* <-- Убираем transform */
    }

    .catalog-extra-spacing {
        padding-top: 2rem !important; /* <-- Укажите здесь нужное вам значение */
        }

    /* Центрируем одиночное изображение внутри контейнера */
    .single-product-image {
        max-width: 100%; /* Позволяем картинке занимать больше места */
        margin: 0 auto;
    }
}

@media (max-width: 991.98px) {
    /* --- Адаптация корзины --- */
    .order-summary-column {
        margin-top: 3rem; /* Отступ между блоками в мобильной версии */
    }

    .catalog-extra-spacing {
        padding-top: 2rem !important; /* <-- Укажите здесь нужное вам значение */
        }
    
    .cart-item-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item-image-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cart-item-details {
        align-items: center;
    }

    .cart-item-remove-btn {
        position: static;
        margin-top: 1rem;
    }

        
    .product-details-column {
        padding-left: 0;      
        padding-top: 0;       
        /* margin-top: 2.5rem;   */
    }

    /* Уменьшаем боковые отступы всей страницы для лучшего вида на мобильных */
    .product-page-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* На мобильных можно скрыть десктопные стрелки прокрутки, если они мешают */
    .scroll-button.prev-button,
    .scroll-button.next-button {
        display: none;
    }
    
    /* Растягиваем картинки, чтобы они лучше смотрелись в одной колонке */
    .product-image-scroll-wrapper {
        justify-content: space-between;
    }
}

.page-header-spacing {
    padding-top: 3rem; /* Отступ сверху для страницы продукта */
}

.bundle-extra-spacing {
    padding-top: 8rem; /* Отступ сверху для страницы бандла */
}

.catalog-extra-spacing {
    padding-top: 6rem !important; /* <-- Укажите здесь нужное вам значение */
    }