:root {
    /* Colors */
    --color-primary: #B43F20;
    --color-primary-light: #db613f;
    --color-primary-dark: #8b311a;
    --color-text: #CCCCCC;
    --color-bg: #fff;
    --color-text-white: #fff;
    --color-overlay-dark: rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --border-radius-default: 30px;
    --border-radius-full: 50px;
    
    /* Animation Durations */
    --transition-fastest: 0.15s;
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --transition-slower: 0.8s;
    --hero-fade-ms: 600ms;
    
    /* Animation Easings */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat";
    scroll-behavior: smooth;
}

/* Smooth transitions for interactive elements */
a, button, input, textarea, select {
    transition: all var(--transition-normal) var(--ease-smooth);
}

/* Optimize animations for better performance */
button, a, .product-panel, .product-btn, .hero-nav-btn {
    will-change: transform;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background-color: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* Система единых отступов */
.main {
    max-width: 1350px;
    margin: 0 auto;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
}

/* Адаптивные отступы для .main */
@media (max-width: 768px) {
    .main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 15px !important;
    }
}

@media (max-width: 360px) {
    .main {
        padding: 12px !important;
    }
}

@media (max-width: 320px) {
    .main {
        padding: 10px 12px !important;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;

    /* управление высотой hero-фона (адаптивно через media queries ниже) */
    --hero-bg-height: 700px;

    /* важно: секция должна расти по контенту (каталог/футер) */
    min-height: var(--hero-bg-height);
    height: auto;

    /* создаём stacking context, чтобы фон с z-index:-1 не вылезал */
    isolation: isolate;
}


/* Убираем padding-top у .main внутри hero-section */
.hero-section > .main {
    padding-top: 0;
}

/* Объединенные медиа-запросы для hero-section */
@media (max-width: 480px) {
    .hero-section {
        --hero-bg-height: 650px;
    }
    
    .hero-bg-container {
        top: 65px;
        height: calc(var(--hero-bg-height) - 65px);
        border-radius: 0;
    }
    
    /* Скрываем вторую карточку на мобилке */
    .hero-slide-card--second {
        display: none !important;
    }
    
    .hero-bg-layer {
        background-size: cover !important;
        background-position: center !important;
    }
    
    .hero-bg {
        border-radius: 0;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .hero-top-content {
        margin-top: 0;
        border-radius: 0;
    }
    
    .hero-top-content {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 15px;
    }
    
    .hero-text-container {
        padding: 20px !important; /* Отступы со всех сторон на мобильных */
    }
    
    .hero-text-container .hero-title {
        font-size: 18px !important;
        margin-top: 10px;
        line-height: 1.2;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .hero-text-container .hero-text {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .hero-text-container .hero-text-old {
        font-size: 11px !important;
        max-width: 100%;
        margin-top: 6px;
        line-height: 1.3;
    }
    
    .hero-heshtag-container .hero-heshtag {
        font-size: 11px !important;
        padding: 5px 10px;
        min-width: 70px;
    }
    
    .hero-nav-container {
        padding: 4px;
        gap: 3px;
    }
    
    .hero-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .hero-nav-image {
        width: 16px;
        height: 16px;
    }
    
    /* Показываем category-tabs в виде сетки на маленьких экранах */
    .category-tabs-panel {
        display: block !important;
        background: rgba(255, 255, 255, 0.15);
        padding: 15px 10px;
        border-radius: 20px;
    }
    
    .category-tabs-scroll {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .category-tabs-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .category-tab-btn {
        font-size: 12px;
        padding: 8px 14px;
        white-space: nowrap;
        flex-shrink: 1;
    }
    
    /* Скрываем кастомный скролл-бар на мобильных */
    .category-tabs-scrollbar {
        display: none !important;
    }
}

/* Базовые стили для карточек слайдера */
.hero-slide-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-container {
    position: absolute;

    left: 0;
    right: 0;

    /* фон без отступов — ровно во весь экран */
    width: 100%;
    max-width: 100%;

    /* высота фона = высота hero минус высота header */
    height: calc(var(--hero-bg-height) - 80px);

    /* фон ВСЕГДА сзади */
    z-index: -1;
    pointer-events: auto; /* Разрешаем touch события для свайпа */
}

/* Текст hero поверх фона */
.hero-text-container {
    position: relative;
    z-index: 2;
    padding: 30px; /* Отступы со всех сторон по 30px */
    pointer-events: none; /* Отключаем события на тексте, чтобы свайп работал */
}

/* Включаем события для интерактивных элементов внутри текста */
.hero-text-container button,
.hero-text-container a {
    pointer-events: auto;
}

/* Слои для плавной смены фоновой картинки (React HeroSlider) */
.hero-bg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Быстрая анимация fade */
    transition: opacity 300ms ease-out;
    will-change: opacity;
    
    /* Улучшенное качество отображения изображений */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


/* Дешёвое затемнение вместо filter() */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 3;
    pointer-events: none;
}


.hero-bg-layer--current {
    opacity: 1;
    z-index: 1;
}

.hero-bg-layer--next {
    opacity: 0;
    z-index: 2;
}

.hero-bg-layer--next.is-visible {
    opacity: 1;
}

@media (max-width: 1024px) {
    .hero-section {
        --hero-bg-height: 600px;
    }
    
    .hero-top-content {
        padding-top: 80px;
        padding-bottom: 20px;
    }
}

@media (max-width: 425px) {
    .hero-section {
        --hero-bg-height: 600px;
    }

    .hero-text-inner {
        min-height: 180px;
    }

    .hero-top-content {
        padding-top: 70px;
        padding-bottom: 15px;
        margin-top: 0;
        border-radius: 0;
    }
    
    .hero-bg-container {
        border-radius: 0;
    }
    
    /* Скрываем вторую карточку на мобилке */
    .hero-slide-card--second {
        display: none !important;
    }
    
    .hero-bg-layer {
        background-size: cover !important;
        background-position: center !important;
    }
    
    .hero-bg {
        border-radius: 0;
        background-size: cover !important;
        background-position: center !important;
    }

    .hero-title {
        font-size: 36px;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-text {
        font-size: 16px;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    /* Скрываем кнопки навигации слайдера на мобильных */
    .hero-nav-container {
        display: none !important;
    }
}


@media (max-width: 360px) {
    .hero-section {
        --hero-bg-height: 570px;
    }

    .hero-bg-container {
        top: 58px;
        height: calc(var(--hero-bg-height) - 58px);
        border-radius: 0;
    }
    
    /* Скрываем вторую карточку на мобилке */
    .hero-slide-card--second {
        display: none !important;
    }
    
    .hero-bg-layer {
        background-size: cover !important;
        background-position: center !important;
    }
    
    .hero-bg {
        border-radius: 0;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .hero-top-content {
        margin-top: 0;
        border-radius: 0;
    }

    .hero-top-content {
        padding-left: 8px;
        padding-right: 8px;
        padding-bottom: 12px;
    }

    .hero-text-container {
        padding: 15px 0 0 15px !important; /* Еще меньшие отступы на очень маленьких экранах */
    }

    .category-tabs-panel {
        padding: 12px 8px;
        border-radius: 16px;
    }

    .category-tabs-buttons {
        gap: 6px;
    }

    .category-tab-btn {
        font-size: 11px;
        padding: 7px 12px;
    }

    .hero-text-container .hero-title {
        font-size: 16px !important;
        margin-top: 8px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-text-container .hero-text {
        font-size: 10px !important;
        margin-top: 5px;
        line-height: 1.3;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-heshtag-container .hero-heshtag {
        font-size: 10px !important;
        padding: 5px 9px;
        min-width: 60px;
    }

    .hero-text-inner {
        min-height: 140px;
    }

    .hero-heshtag-container {
        min-height: 36px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .hero-nav-container {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 3px;
        gap: 2px;
    }

    .hero-nav-btn {
        width: 24px;
        height: 24px;
    }

    .hero-nav-image {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 320px) {
    .hero-section {
        --hero-bg-height: 450px;
    }

    .hero-bg-container {
        top: 56px;
        height: calc(var(--hero-bg-height) - 56px);
        border-radius: 0;
    }
    
    /* Скрываем вторую карточку на мобилке */
    .hero-slide-card--second {
        display: none !important;
    }
    
    .hero-bg-layer {
        background-size: cover !important;
        background-position: center !important;
    }
    
    .hero-bg {
        border-radius: 0;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .hero-top-content {
        margin-top: 0;
        border-radius: 0;
    }

    .hero-top-content {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .hero-text-container .hero-title {
        font-size: 20px !important;
        margin-top: 10px;
        line-height: 1.2;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-text-container .hero-text {
        font-size: 9px !important;
        margin-top: 4px;
        line-height: 1.3;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-heshtag-container .hero-heshtag {
        font-size: 9px !important;
        padding: 4px 8px;
        min-width: 55px;
    }

    .hero-text-inner {
        min-height: 110px;
    }

    .hero-heshtag-container {
        min-height: 28px;
        gap: 3px;
    }

    .hero-nav-container {
        padding: 3px;
        gap: 2px;
    }

    .hero-nav-btn {
        width: 22px;
        height: 22px;
    }

    .hero-nav-image {
        width: 11px;
        height: 11px;
    }

    .product-panel-container {
        padding: 0 !important;
    }

    .category-tabs-panel {
        padding: 10px 6px;
        border-radius: 14px;
    }

    .category-tabs-buttons {
        gap: 5px;
    }

    .category-tab-btn {
        font-size: 10px;
        padding: 6px 10px;
    }
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: filter var(--hero-fade-ms, 600ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.main {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-container {
    margin-top: 0;
    width: 100%;
}

.hero-heshtag-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    /* фиксируем высоту строки, чтобы не было скачков */
    min-height: 56px;
}

.hero-heshtag {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-text-white);
    background: rgba(180, 63, 32, .75);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: var(--border-radius-full);

    /* чтобы блок не "прыгал" из-за разной длины текста */
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
    
    transition: all var(--transition-normal) var(--ease-smooth);
}

.hero-heshtag:hover {
    background: rgba(180, 63, 32, .9);
}

.hero-title {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: 52px;
    color: var(--color-text-white);
    text-transform: uppercase;
    max-width: 770px;
    margin-top: 30px;

    /* чтобы категории/инфо не прыгали от разной длины заголовка */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hero-text {
    font-weight: 400;
    font-size: 18px;
    color: white;
    max-width: 420px;
    margin-top: 10px;

    /* чтобы блок ниже не прыгал от разной длины текста */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hero-nav-container {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: var(--border-radius-full);
    display: none; /* Скрыто на мобильных */
    align-items: center;
    gap: 5px;
    justify-content: center;
    max-width: fit-content;
    
    /* Позиционирование вне карточек */
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    flex-direction: row; /* Горизонтальное расположение */
}

.hero-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal) var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: relative;
    overflow: hidden;
}

.hero-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    transform: scale(0);
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.hero-nav-btn:hover::before {
    transform: scale(1);
}

.hero-nav-btn:hover {
    transform: scale(1.08);
}

.hero-nav-btn:active {
    transform: scale(0.95);
    transition-duration: var(--transition-fastest);
}

.hero-nav-btn:active::before {
    background: rgba(255, 255, 255, 0.5);
}

.hero-nav-image {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.hero-nav-btn:hover .hero-nav-image {
    filter: brightness(1);
}

#right-arrow {
    transform: rotate(180deg);
}

.hero-bg {
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-heshtag,
.hero-title,
.hero-text {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-nav-btn {
    position: relative;
    overflow: hidden;
}

.hero-nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translate(-50%, -50%);
}

.hero-nav-btn:hover::after {
    width: 40px;
    height: 40px;
}

.hero-nav-btn:active::after {
    width: 35px;
    height: 35px;
}

.hero-top-content {
    /* hero (текст) + категории + инфо */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 40px;

    /* фиксируем высоту hero-зоны: hero-текст растягивается и центрируется */
    height: var(--hero-bg-height);
}

/* Большой контейнер под hero-текст: занимает пространство от header до категорий.
   Текст внутри — по вертикальному центру, но слева. */
.hero-top-content > .hero-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;

    /* вертикальный центр внутри выделенного пространства */
    justify-content: start;

    /* слева */
    align-items: flex-start;
}

/* Внутренний блок фиксированной высоты.
   Иначе при justify-content:center разная высота текста на слайдах даёт "прыжки". */
.hero-text-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    /* резервируем место под hashtag + title + text */
    min-height: 260px;
}

/* Индикаторы слайдов (точки) */
.hero-dots {
    display: flex; /* Показываем на маленьких экранах */
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Позиционирование внутри карточки */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

/* Скрываем точки на больших экранах */
@media (min-width: 768px) {
    .hero-dots {
        display: none !important;
    }
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot--active {
    background: #fff;
    border-color: #fff;
    width: 12px;
    height: 12px;
}

@media (max-width: 425px) {
    .hero-dots {
        display: flex; /* Показываем на мобильных */
        margin-top: auto;
        padding-top: 15px;
        padding-bottom: 8px;
        gap: 8px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-dot--active {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-dots {
        margin-top: auto;
        padding-top: 10px;
        padding-bottom: 6px;
        gap: 6px;
    }
    
    .hero-dot {
        width: 7px;
        height: 7px;
        border-width: 1.5px;
    }
    
    .hero-dot--active {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 1024px) {
    .hero-text-inner {
        height: 250px;
        min-height: auto;
    }
}

/* Медиа-запросы для hero перенесены выше, чтобы не переопределять мелкие экраны */

.food-categories-container {
    /* теперь в рамках .main, без растяжения на весь экран */
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.food-categories-panel {
    width: 100%;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px 20px;
    margin: 0;
    max-width: 100%;
}


.food-categories-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden;
}

.food-categories-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.food-categories-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.food-categories-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.food-categories-scroll-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.food-categories-btn-container {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.food-categories-btn {
    font-family: "Unbounded", Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--color-text-white);
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-full);
    border: none;
    padding: 10px 15px;
    transition: all var(--transition-normal) var(--ease-smooth);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.food-categories-btn:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.food-categories-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: var(--transition-fastest);
}

.food-categories-btn--disabled {
    background: transparent;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0;
}

.food-categories-btn--disabled:hover {
    background: transparent;
}

.food-categories-btn.active-food:hover {
    background: var(--color-primary-light);
}

.active-food {
    background: var(--color-primary);
}

.info-panel-container {
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 45px;
}

.info-panel {
    width: 100%;
    background: #C4684F;
    border-radius: 25px;
    border: 1px solid #FB997F;
    padding: 12px 15px;
    display: flex;
}

.info-icon {
    width: 65px;
    height: 65px;
    margin-right: 15px;
}

.info-title {
    font-family: "Unbounded";
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    color: #fff;
    max-width: 320px;
}

.info-text {
    font-size: 16px;
    color: rgba(255, 255, 255, .5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    padding: 20px;
}

.product-container {
    margin-top: 30px;
}

.product-title {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: 48px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-wrapper-title {
    font-family: "Unbounded";
    font-weight: 600;
    font-size: 24px;
    text-transform: uppercase;
    margin-top: 16px;
    padding-left: 24px;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    position: relative;
}

.product-wrapper-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.product-panel {
    width: 100%;
    background: #E4E4E4;
    border-radius: var(--border-radius-default);
    position: relative;
    overflow: hidden;

    /* одинаковая высота в рамках строки грида */
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* Smooth animations */
    transition: all var(--transition-normal) var(--ease-smooth);
    cursor: pointer;
}

.product-panel:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-panel:active {
    transform: translateY(-4px);
    transition-duration: var(--transition-fastest);
}

/* Бейдж популярного товара */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(180, 63, 32, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(180, 63, 32, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(180, 63, 32, 0.5);
    }
}

/* legacy id (оставляем, но без фиксированной высоты) */
#small-product-panel {
    height: auto;
}

.product-panel-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.product-panel:hover .product-panel-image .product-image {
    transform: scale(1.08);
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal) var(--ease-smooth);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.3);
}

.product-panel:hover .product-image-overlay {
    opacity: 1;
}

.product-image-icon {
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #B43F20;
    transform: scale(0.8);
    transition: transform var(--transition-normal) var(--ease-bounce);
}

.product-panel:hover .product-image-icon {
    transform: scale(1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow) var(--ease-smooth);
}

.product-panel-info {
    --product-info-padding: 16px;

    padding: var(--product-info-padding);
    flex: 1;
    display: flex;
    flex-direction: column;

    position: relative;

    /* чтобы элементы внутри не наезжали друг на друга */
    gap: 12px;
}

.product-panel-container {
    width: 100%;
    display: grid;

    /* максимум 4 карточки в ряд */
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: clamp(12px, 1.5vw, 20px);

    /* фиксит проблему "нет отступа справа" и делает сетку предсказуемой */
    padding: 20px 0;
    box-sizing: border-box;

    /* одинаковая высота карточек в строке */
    align-items: stretch;
    grid-auto-rows: 1fr;
}

@media (max-width: 1100px) {
    .product-panel-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .product-panel-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .product-panel-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .food-categories-panel {
        padding-bottom: 20px;
    }

    .product-container {
        margin-top: 30px;
    }

    .product-title {
        font-size: 36px;
    }

    .product-wrapper-title {
        font-size: 20px;
        margin-bottom: 18px;
        margin-top: 32px;
        padding-left: 20px;
    }
    
    .product-wrapper-title::before {
        width: 3px;
    }
}

@media (max-width: 480px) {
    .product-panel-container {
        padding: 12px 0;
    }

    .product-panel-info {
        --product-info-padding: 12px;
        padding: var(--product-info-padding);
    }
}

.product-panel-title-container {
    display: flex;
    align-items: flex-start;

    /* место справа под абсолютную граммовку */
    /* по умолчанию для 2+ строк */
    padding-right: 40px;
}

.product-panel-title {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: 16px;
    color: #000;
    text-transform: uppercase;

    /* важно для переноса внутри flex-контейнера */
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;

    /* чтобы карточки не "плясали" по высоте из-за длинных названий */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

}

/* Для одной строки - увеличиваем padding-right */
.product-panel-title-container.one-line {
    padding-right: 80px;
}

.product-panel-gram {
    font-size: 13px;
    font-weight: 400;
    color: #828282;

    position: absolute;
    top: var(--product-info-padding);
    right: var(--product-info-padding);

    margin-left: 0;
}

.product-text {
    font-size: 14px;
    color: #828282;
    font-weight: 400;
    margin-top: 0;

    /* ограничиваем описание, чтобы высота карточек была одинаковой */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-btn-container {
    /* кнопка всегда внизу карточки, но высота карточки остается адаптивной */
    margin-top: auto;

    /* чтобы кнопка не "прилипала" к описанию */
    padding-top: 16px;
}

.product-btn {
    font-family: "Unbounded";
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-white);
    text-transform: uppercase;
    background: var(--color-primary);
    border-radius: var(--border-radius-full);
    border: none;
    width: 100%;
    padding: 10px 14px;
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
    
    /* Располагаем цену и счетчик в одну строку */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: var(--transition-fastest);
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.1); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.number-container {
    background-color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Для кнопки товара - рядом с ценой */
.product-btn .number-container {
    position: relative;
    margin-left: 0;
    top: auto;
    right: auto;
}

/* Для Header - относительное позиционирование с отступом */
.cart-btn .number-container {
    position: relative;
    margin-left: 8px;
    top: auto;
    right: auto;
}

.number {
    color: #B43F20;
    font-size: 11px;
    font-weight: bold;
    margin: 0;
}

.number-container.show {
    animation: bounceIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.product-btn:active::after {
    width: 100px;
    height: 100px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-btn.added {
    animation: pulse 0.5s ease-in-out;
}


.checkmark-icon {
    font-size: 24px;
    font-weight: bold;
    animation: bounceIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


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

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

@keyframes rippleEffect {
    from {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    /* Улучшаем доступность */
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
}

.toast:focus, .toast:active {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.toast p {
    margin: 0;
    font-size: 13px;
    color: #333;
    flex: 1;
}

.toast-success p {
    color: #2e7d32;
}

.toast-warning p {
    color: #e65100;
}

.toast-error p {
    color: #c62828;
}

.toast-delivery {
    min-width: 350px;
}

.toast-delivery p {
    color: #333;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transform-origin: left;
}

.toast-progress-success {
    background: var(--color-primary);
}

.toast-progress-warning {
    background: var(--color-primary);
}

.toast-progress-error {
    background: var(--color-primary);
}

.toast-progress-delivery {
    background: var(--color-primary);
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 767px) {
    .toast-container {
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .toast-container {
        right: 15px;
        left: 15px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
    }
}

@media (max-width: 375px) {
    .toast-container {
        top: 80px;
    }
    
    .toast p {
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .toast-container {
        top: 70px;
        right: 12px;
        left: 12px;
    }
    
    .toast p {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .product-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .product-panel-title {
        font-size: 15px;
    }

    .product-text {
        font-size: 13px;
    }
}

/* Старый delivery блок удалён - используется AddressSearch компонент */

.image-slider-container {
    margin-top: 75px;
    position: relative;
    width: 900px;
    max-width: 95vw;
    height: 550px;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

.image-slider-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.image-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-slider-controller {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.image-slider-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.image-slider-btn:active {
    transform: scale(0.95);
}

.slider-image-indicator-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.image-slider-counter {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.image-slider-active {
    animation: slideIn 0.5s ease-out;
}

@media (max-width: 768px) {
    .image-slider-container {
        height: 450px;
        border-radius: 15px;
    }
    
    .image-slider-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .slider-image-indicator-container {
        bottom: 20px;
        padding: 8px 12px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .image-slider-counter {
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .image-slider-container {
        height: 350px;
        border-radius: 10px;
    }
    
    .image-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 0 10px;
    }
    
    .image-slider-controller {
        padding: 0 10px;
    }
    
    .slider-image-indicator-container {
        bottom: 15px;
        gap: 8px;
        padding: 6px 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .image-slider-counter {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

.image-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.image-slider-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.image-slider-img.loaded {
    background: none;
    animation: none;
}

@media (max-width: 1110px) {
    .food-categories-panel {
        background: none;
        backdrop-filter: blur(0px);
    }

    .food-categories-btn {
        background: #fff;
        color: #000;
        transform: scale(0.9);
    }

    .food-categories-btn.active-food {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .food-categories-container {
        margin-top: 20px;
    }
    
    .food-categories-panel {
        padding: 20px 15px;
        border-radius: 20px;

    }
    
    .food-categories-btn {
        font-size: 11px;
        padding: 8px 12px;
    }

    .info-container {
        margin-top: 100px;
    }

    .info-panel-container {
        padding: 15px;
    }

    .dilivery-text {
        font-size: 16px;
    }

    .dilivery-title {
        font-size: 24px;
    }

    .product-wrapper-title {
        font-size: 15px;
        margin-bottom: 12px;
        margin-top: 20px;
        padding-left: 16px;
    }
    
    .product-wrapper-title::before {
        width: 3px;
    }

    .product-title {
        font-size: 24px;
    }

    .food-categories-container {
        margin-top: 30px;
    }
}

@media (max-width: 540px) {
    .info-title {
        font-size: 12px;
    }

    .info-text {
        font-size: 10px;
        margin-top: 5px;
    }

    .info-icon {
        width: 55px;
        height: 55px;
    }

    .info-panel-container {
        border-radius: 30px;
    }

    .info-panel {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {        
    .food-categories-panel {
        padding: 15px 10px;
        border-radius: 15px;
    }
    
    .food-categories-btn {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .food-categories-btn-container {
        gap: 8px;
    }

    .info-container {
        margin-top: 125px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-wrapper-title {
        font-size: 14px;
        margin-bottom: 10px;
        margin-top: 16px;
        padding-left: 14px;
    }
    
    .product-wrapper-title::before {
        width: 2px;
        border-radius: 1px;
    }
}

@media (max-width: 400px) {
    .info-title {
        font-size: 10px;
    }
}

/* Product Modal Styles */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

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

.product-modal-content {
    background: white;
    border-radius: 30px;
    max-width: 1200px;
    cursor: default;
    z-index: 10002;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: modalSlideUp var(--transition-normal) var(--ease-smooth);
    box-shadow: var(--shadow-xl);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    border: none;
    background: var(--color-primary);
    color: var(--color-text-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-smooth);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-close:hover {
    background: var(--color-primary-light);
    color: var(--color-text-white);
    transform: rotate(90deg) scale(1.15);
}

.product-modal-close:active {
    transform: rotate(90deg) scale(1.05);
    transition-duration: var(--transition-fastest);
}

.product-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 1024px) {
    .product-modal-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
    }
    
    .product-modal-image {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .product-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }

    .product-modal-layout {
        padding: 24px 20px;
        gap: 20px;
    }

    .product-modal-info {
        gap: 20px;
    }

    .product-modal-title {
        font-size: 22px;
    }

    .product-modal-gram {
        font-size: 14px;
    }

    .product-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-modal-layout {
        padding: 20px 16px;
    }

    .product-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

.product-modal-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
}

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

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-between;
}

.product-modal-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-modal-title {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #000;
    text-transform: uppercase;
    margin: 0;
}

.product-modal-gram {
    font-size: 16px;
    font-weight: 400;
    color: #828282;
}

.product-modal-description {
    flex: 1;
}

.product-modal-subtitle {
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #000;
    margin: 0 0 12px 0;
}

.product-modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.product-modal-footer {
    margin-top: auto;
}

.product-modal-btn {
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--color-text-white);
    text-transform: uppercase;
    background: var(--color-primary);
    border-radius: var(--border-radius-full);
    border: none;
    width: 100%;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-btn:hover {
    background: #8B2F18;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 63, 32, 0.3);
}

/* Responsive для модалки */
@media (max-width: 768px) {
    .product-modal-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .product-modal-title {
        font-size: 20px;
    }

    .product-modal-subtitle {
        font-size: 16px;
    }

    .product-modal-text {
        font-size: 14px;
    }

    .product-modal-btn {
        font-size: 16px;
        padding: 14px 18px;
    }

    .product-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-modal-overlay {
        padding: 10px;
    }

    .product-modal-content {
        border-radius: 20px;
        max-height: 95vh;
    }

    .product-modal-layout {
        padding: 20px;
        gap: 20px;
    }
}

/* Category Info Banner - компактный инфо-блок для категорий (в стиле Toast) */
.category-info-banner {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.category-info-text {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .category-info-banner {
        margin: 10px 0 16px 0;
        padding: 10px 14px;
    }

    .category-info-text {
        font-size: 13px;
    }
}

/* Category Tabs Component - новый компонент с кастомным скролл-баром */

/* Responsive для CategoryTabs - показываем в разных местах в зависимости от экрана */
/* Desktop версия - только от 768px и выше */
.category-tabs-desktop {
    display: none; /* По умолчанию скрыта */
}

@media (min-width: 768px) {
    .category-tabs-desktop {
        display: block; /* Показываем от 768px */
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        padding: 0 30px 30px 30px; /* Отступы справа, слева и снизу по 30px */
    }
}

/* Mobile версия - от 0 до 767px */
.category-tabs-mobile {
    display: block; /* По умолчанию показана */
}

@media (min-width: 768px) {
    .category-tabs-mobile {
        display: none; /* Скрываем от 768px и выше */
    }
}

.category-tabs-container {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-tabs-panel {
    width: 100%;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px 20px 20px 20px;
    position: relative;
}

.category-tabs-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* Скрываем нативный скролл-бар */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.category-tabs-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.category-tab-btn {
    font-family: "Unbounded", Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: none;
    padding: 10px 15px;
    transition: 300ms;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab-btn:hover {
    background: rgba(255, 255, 255, .3);
}

.category-tab-btn.active {
    background: var(--color-primary);
}

.category-tab-btn.active:hover {
    background: var(--color-primary-light);
}

/* Стили для мобильной версии (425px - 767px) - сетка с wrap */
@media (min-width: 425px) and (max-width: 767px) {
    .category-tabs-mobile .category-tabs-panel {
        background: #f8f8f8;
        backdrop-filter: none;
        padding: 10px 10px 8px 10px;
        border-radius: 20px;
    }
    
    .category-tabs-mobile .category-tabs-scroll {
        overflow-x: visible;
    }
    
    .category-tabs-mobile .category-tabs-buttons {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }
    
    .category-tabs-mobile .category-tab-btn {
        background: #fff;
        color: #333;
        font-size: 11px;
        padding: 8px 12px;
        border-radius: 40px;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .category-tabs-mobile .category-tab-btn:hover {
        background: #f5f5f5;
    }
    
    .category-tabs-mobile .category-tab-btn.active {
        background: #B43F20;
        color: #fff;
    }
    
    .category-tabs-mobile .category-tab-btn.active:hover {
        background: #db613f;
    }
    
    /* Уменьшаем отступ между category-tabs и product-container */
    .product-container {
        margin-top: 8px;
    }
    
    .product-wrapper-title {
        font-size: 16px;
        margin-top: 16px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .category-tabs-mobile .category-tabs-panel {
        background: #f8f8f8;
        backdrop-filter: none;
        padding: 8px 8px 6px 8px;
    }
    
    .category-tabs-mobile .category-tab-btn {
        background: #fff;
        color: #333;
    }
    
    .category-tabs-mobile .category-tab-btn:hover {
        background: #f5f5f5;
    }
    
    .category-tabs-mobile .category-tab-btn.active {
        background: #B43F20;
        color: #fff;
    }
    
    .category-tabs-mobile .category-tab-btn.active:hover {
        background: #db613f;
    }
    
    .category-tabs-mobile .category-tabs-buttons {
        gap: 4px;
    }
}

@media (max-width: 375px) {
    .category-tabs-mobile {
        margin: 0;
        padding: 0;
    }
    
    .category-tabs-mobile .category-tabs-panel {
        background: #f8f8f8;
        padding: 0;
        border-radius: 14px;
    }
    
    .category-tabs-mobile .category-tabs-scroll {
        overflow-x: visible;
    }
    
    .category-tabs-mobile .category-tabs-buttons {
        flex-wrap: wrap !important;
        gap: 7px 4px !important;
        justify-content: space-between !important;
    }
    
    .category-tabs-mobile .category-tab-btn {
        background: #fff !important;
        color: #333 !important;
        font-size: 9px !important;
        padding: 8px 8px !important;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .category-tabs-mobile .category-tab-btn.active {
        background: #B43F20 !important;
        color: #fff !important;
    }
}

@media (max-width: 320px) {
    .category-tabs-mobile {
        margin: 0;
        padding: 0;
    }
    
    .category-tabs-mobile .category-tabs-panel {
        background: #f8f8f8;
        padding: 0;
        border-radius: 12px;
    }
    
    .category-tabs-mobile .category-tabs-scroll {
        overflow-x: visible;
    }
    
    .category-tabs-mobile .category-tabs-buttons {
        flex-wrap: wrap !important;
        gap: 6px 3px !important;
        justify-content: space-between !important;
    }
    
    .category-tabs-mobile .category-tab-btn {
        background: #fff !important;
        color: #333 !important;
        font-size: 8px !important;
        padding: 7px 7px !important;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .category-tabs-mobile .category-tab-btn.active {
        background: #B43F20 !important;
        color: #fff !important;
    }
}

/* Кастомный скролл-бар */
.category-tabs-scrollbar {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    margin-top: 10px;
    position: relative;
}

.category-tabs-scrollbar-thumb {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

@media (max-width: 1400px) {
    .category-tabs-panel {
        padding: 25px 20px 18px 20px;
    }
}

@media (max-width: 768px) {
    .category-tabs-panel {
        padding: 20px 15px 15px 15px;
    }
    
    .category-tab-btn {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .category-tabs-buttons {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .product-modal-overlay {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-modal-overlay {
        padding: 15px;
    }
}


/* 426px и выше уже настроены ранее */

/* Только для 376px - 425px */
@media (min-width: 376px) and (max-width: 425px) {
    .category-tabs-mobile {
        margin: 0;
        padding: 0;
    }
    
    .category-tabs-mobile .category-tabs-panel {
        background: #f8f8f8;
        padding: 0;
        border-radius: 14px;
    }
    
    .category-tabs-mobile .category-tabs-scroll {
        overflow-x: visible;
    }
    
    .category-tabs-mobile .category-tabs-buttons {
        flex-wrap: wrap !important;
        gap: 6px 4px !important;
        justify-content: space-between !important;
    }
    
    .category-tabs-mobile .category-tab-btn {
        background: #fff !important;
        color: #333 !important;
        font-size: 11px !important;
        padding: 8px 9px !important;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .category-tabs-mobile .category-tab-btn.active {
        background: #B43F20 !important;
        color: #fff !important;
    }
    
    .toast-container {
        top: 80px;
    }
    
    .toast p {
        font-size: 11px;
    }
}

/* Только для 321px - 375px */
@media (min-width: 321px) and (max-width: 375px) {
    .category-tabs-mobile {
        margin: 0;
        padding: 0;
    }
    
    .category-tabs-mobile .category-tabs-panel {
        background: #f8f8f8;
        padding: 0;
        border-radius: 14px;
    }
    
    .category-tabs-mobile .category-tabs-scroll {
        overflow-x: visible;
    }
    
    .category-tabs-mobile .category-tabs-buttons {
        flex-wrap: wrap !important;
        gap: 7px 4px !important;
        justify-content: space-between !important;
    }
    
    .category-tabs-mobile .category-tab-btn {
        background: #fff !important;
        color: #333 !important;
        font-size: 9px !important;
        padding: 8px 8px !important;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .category-tabs-mobile .category-tab-btn.active {
        background: #B43F20 !important;
        color: #fff !important;
    }
}

/* Стили для category-tabs-panel уже настроены в основном блоке мобильной версии выше */

@media (min-width: 426px) and (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-text {
        font-size: 16px;
    }
    
    .hero-hashtag {
        font-size: 13px;
    }
}


/* Category switch animation */
.category-change-anim {
    animation: categoryFadeSlide 220ms ease-out;
}

@keyframes categoryFadeSlide {
    from {
        opacity: 0.5;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Hero-слайдер с закруглениями для планшетов - 2 акции side-by-side */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        --hero-bg-height: 450px;
    }
    
    .hero-container {
        max-width: 1350px;
        margin: 0 auto;
    }
    
    .hero-top-content {
        position: relative;
        padding: 0;
        min-height: 450px;
        box-sizing: border-box;
        border-radius: 30px;
        overflow: visible; /* Чтобы навигация была видна */
        margin-top: 100px;
        display: flex;
        gap: 0;
    }
    
    .hero-nav-container {
        display: flex !important;
    }
    
    .hero-bg-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        border-radius: 30px;
        display: flex;
        gap: 0;
        overflow: hidden; /* Обрезаем содержимое */
    }
    
    /* 2 карточки side-by-side */
    .hero-slide-card {
        flex: 1;
        position: relative;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-slide-card:first-child {
        border-radius: 30px 0 0 30px;
    }
    
    .hero-slide-card:last-child {
        border-radius: 0 30px 30px 0;
    }
    
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        z-index: 0;
    }
    
    .hero-bg-layer {
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        transition: opacity 300ms ease-out;
    }
    
    .hero-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1;
    }
    
    .hero-text-container {
        position: relative;
        z-index: 2;
        height: 100%;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hero-title {
        font-size: 28px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .hero-text {
        font-size: 14px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .hero-heshtag {
        font-size: 12px !important;
    }
}

/* Desktop: 2 акции side-by-side */
@media (min-width: 1024px) {
    .toast-container {
        top: 140px;
    }
    
    .hero-section {
        --hero-bg-height: 600px;
    }
    
    .hero-container {
        max-width: 1350px;
        margin: 0 auto;
    }
    
    .hero-top-content {
        position: relative;
        padding: 0;
        min-height: 600px;
        box-sizing: border-box;
        border-radius: 30px;
        overflow: visible; /* Чтобы навигация была видна */
        margin-top: 140px;
        display: flex;
        gap: 0;
    }
    
    .hero-nav-container {
        display: flex !important;
    }
    
    .hero-bg-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        border-radius: 30px;
        display: flex;
        gap: 0;
        overflow: hidden; /* Обрезаем содержимое */
    }
    
    /* 2 карточки side-by-side */
    .hero-slide-card {
        flex: 1;
        position: relative;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-slide-card:first-child {
        border-radius: 30px 0 0 30px;
    }
    
    .hero-slide-card:last-child {
        border-radius: 0 30px 30px 0;
    }
    
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        z-index: 0;
    }
    
    .hero-bg-layer {
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        transition: opacity 300ms ease-out;
    }
    
    .hero-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1;
    }
    
    .hero-text-container {
        position: relative;
        z-index: 2;
        height: 100%;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hero-title {
        font-size: 32px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .hero-text {
        font-size: 16px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .hero-heshtag {
        font-size: 13px !important;
    }
}

/* Large Desktop: увеличенные шрифты */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 36px !important;
    }
    
    .hero-text {
        font-size: 18px !important;
    }
    
    .hero-heshtag {
        font-size: 14px !important;
    }
}

/* Скрываем вторую карточку hero на мобильных */
@media (max-width: 767px) {
    .hero-slide-card--second {
        display: none !important;
    }
}

/* Стили для селектора вариантов в модальном окне */
.product-modal-variants {
    margin-bottom: 20px;
}

.variant-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.variant-button {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #333;
}

.variant-button:hover {
    border-color: var(--color-primary);
    background: rgba(180, 63, 32, 0.05);
}

.variant-button.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.variant-size {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.variant-price {
    font-size: 14px;
    opacity: 0.9;
    color: #333;
}

.variant-button.active .variant-size,
.variant-button.active .variant-price {
    color: #fff;
}

@media (max-width: 768px) {
    .variant-button {
        min-width: 120px;
        padding: 12px 16px;
    }
    
    .variant-size {
        font-size: 14px;
    }
    
    .variant-price {
        font-size: 12px;
    }
}
