/* Общие стили */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #272A3E;
    color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-osx-font-smoothing: grayscale;
}

#app-container {
    max-width: 440px;
    margin: 0 auto;
    background-color: #272A3E;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-radius: 0px 0px 50px 50px;
    overflow: hidden;
    position: relative;
    padding-bottom: 99px;
}

/* Шапка приложения */
.app-header {
    background: #272A3E;
    color: #FFFFFF;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
}
.cart-button {
            background: transparent; /* Сделали фон прозрачным */
            border: none; /* Убрали границу */
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            /* Убрали фиксированные width/height и border-radius 50% */
            padding: 5px 10px; /* Добавили отступы для лучшего вида */
            border-radius: 5px; /* Немного скруглили углы, если нужно */
            transition: background-color 0.2s ease;
        }
        .cart-button:hover {
            background-color: rgba(255, 255, 255, 0.1); /* Легкий фон при наведении */
        }

        /* Стили для SVG иконки корзины */
        .cart-icon svg {
            width: 24px; /* Размер иконки */
            height: 24px;
            vertical-align: middle; /* Выравнивание по центру с текстом */
        }
        .cart-icon svg path {
            fill: rgb(157, 178, 206); /* ИЗМЕНЕНО: Цвет иконки */
        }
   

.cart-count {
    background-color: #393C50;
    color: #FFFFFF;
    font-size: 12px;
    border-radius: 50%;
    padding: 3px 7px;
    position: absolute;
    top: 0px;
    right: -5px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

/* Секции контента (базовые стили) */
section {
    padding: 20px;
    margin: 0 20px 15px 20px;
    background-color: #34374B;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: none;
}

section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

/* Слайдер баннеров */
.banner-slider {
    position: relative;
    width: auto;
    overflow: hidden;
    margin: 0 20px 15px 20px;
    padding: 0;
    background-color: #34374B;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: none;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slider-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
    height: 138px;
    overflow: hidden;
}

.slider-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(100%);
    z-index: 1;
    border-radius: 20px;
}

.slider-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.slider-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-content p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

.slider-content .action-button {
    background-color: #79B35E;
    color: #FFFFFF;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.action-button:hover {
    background-color: #6a9f52;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Секции контента (категории, товары, лояльность) */
.categories-section,
.featured-products-section,
.loyalty-section {
    margin: 15px 20px;
    padding: 20px;
    background-color: #34374B;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: none;
    text-align: center;
}

/* Секция категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    text-align: center;
}

.category-card {
    background-color: #34374B;
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(97, 132, 172, 1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #79B35E;
}

.category-card span {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #A6AAB7;
}

/* Секция товаров */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.product-card {
    background-color: #34374B;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
    border: 1px solid rgba(97, 132, 172, 1); 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #79B35E;
    margin-bottom: 10px;
}

.add-to-cart-button {
    background-color: #79B35E;
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.add-to-cart-button:hover {
    background-color: #6a9f52;
}

/* Секция лояльности */
.loyalty-info p {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #A6AAB7;
    font-family: 'Poppins', sans-serif;
}

.points-balance {
    font-size: 24px;
    font-weight: 700;
    color: #79B35E;
    font-family: 'Poppins', sans-serif;
}

.open-cases-button {
    background-color: #79B35E;
    color: #FFFFFF;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.open-cases-button:hover {
    background-color: #6a9f52;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Модальное окно подтверждения возраста */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #333;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #6184AC;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-content p {
    font-size: 15px;
    color: #ddd;
    margin-bottom: 25px;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.modal-button.confirm {
    background-color: #79B35E;
    color: #fff;
}

.modal-button.confirm:hover {
    background-color: #6a9f52;
    transform: translateY(-1px);
}

.modal-button.decline {
    background-color: #555;
    color: #fff;
}

.modal-button.decline:hover {
    background-color: #666;
    transform: translateY(-1px);
}

.category-header-with-back {
    display: flex;          /* Делает элементы внутри этого div располагаться в одну строку */
    align-items: center;    /* Выравнивает дочерние элементы по центру по вертикали */
    gap: 20px;              /* Добавляет отступ в 20px между дочерними элементами */
    margin-bottom: 20px;    /* Добавляет отступ снизу от этого блока */
}

/* Также убедитесь, что у заголовка h3 внутри этого блока нет лишних отступов */
.category-header-with-back h3 {
    margin: 0; /* Убирает стандартные внешние отступы у h3 */
}

/* Если ваша кнопка "Назад" имеет свои стили, убедитесь, что они не конфликтуют */
.back-link {
    /* Пример базовых стилей для кнопки, если они еще не заданы */
    padding: 8px 15px;
    background-color: #6c757d; /* Пример цвета */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #5a6268;
}


main {
    flex-grow: 1;
    /* Установите внутренний отступ снизу равный высоте футера, чтобы контент не перекрывался */
    padding-bottom: 99px;
}


.detail-page {
            background-color: #5cb85c; /* Зеленая кнопка */
            color: white;
            padding: 8px 15px; 
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.2s;
            font-size: 0.85em; /* Немного уменьшен размер шрифта */
            width: 90%; /* Ширина кнопки */
            box-sizing: border-box; /* Добавлено для корректного расчета ширины */
             max-width: 150px;
              white-space: nowrap; 
        }

.detail-page:hover {
            background-color: #4cae4c;
        }
        .detail-page:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
        }


