/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background-color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: #1E90FF;
    color: #FFFFFF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
}

.tagline {
    font-size: 1rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #FFA500;
}

.cart-link {
    position: relative;
}

.cart-count {
    background-color: #FF6600;
    color: #FFFFFF;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.9rem;
    position: absolute;
    top: -10px;
    right: -10px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
}

/* Cookie уведомление */
.cookie-notice {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #333333;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
    transition: bottom 0.5s ease;
    z-index: 1000;
}

.cookie-notice.show {
    bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-btn.accept {
    background-color: #28A745;
    color: #FFFFFF;
}

.cookie-btn.customize {
    background-color: #007BFF;
    color: #FFFFFF;
}

.cookie-btn.decline {
    background-color: #FF6600;
    color: #FFFFFF;
}

/* Основной контент */
.main-banner {
    background-color: #F5F5F5;
    padding: 50px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.banner-text {
    flex: 1;
}

.banner-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin: 20px 0;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 1.2rem;
}

.banner-cta {
    display: flex;
    gap: 15px;
}

.cta-button {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.cta-button.primary {
    background-color: #28A745;
    color: #FFFFFF;
}

.cta-button.secondary {
    background-color: #007BFF;
    color: #FFFFFF;
}

.banner-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Продукты */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 40px 0;
    color: #000000;
}

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

.product-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.product-image {
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF6600;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.product-info p {
    font-size: 1rem;
    color: #333333;
    margin: 10px 0;
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: #999999;
}

.price-current {
    font-weight: 700;
    color: #28A745;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart, .btn-buy-now, .btn-view {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn-add-cart {
    background-color: #28A745;
    color: #FFFFFF;
}

.btn-buy-now {
    background-color: #007BFF;
    color: #FFFFFF;
}

.btn-view {
    background-color: #FFA500;
    color: #FFFFFF;
    text-decoration: none;
    text-align: center;
}

/* Страница продукта */
.product-detail {
    padding: 50px 0;
}

.product-detail-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* Исправление для адаптивности */
}

.product-detail-image {
    flex: 1;
    min-width: 300px;
}

.product-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.product-detail-info {
    flex: 1;
    min-width: 300px;
}

.product-detail-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.product-detail-price {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.product-detail-description {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 20px;
}

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

.product-composition h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.product-composition-list {
    list-style: disc;
    padding-left: 20px;
}

.product-composition-list li {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 10px;
}

/* Отзывы */
.reviews-section {
    margin-top: 40px;
}

.reviews-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review {
    background-color: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 700;
    color: #000000;
}

.review-rating {
    color: #FFA500;
}

.review-text {
    color: #333333;
}

/* Форма отзыва */
.review-form {
    margin-top: 30px;
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
}

.review-form h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #000000;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #FFA500;
}

.form-btn {
    background-color: #28A745;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

/* Корзина */
.cart-container {
    padding: 50px 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty {
    text-align: center;
    padding: 50px;
}

.cart-empty h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
}

.cart-empty p {
    font-size: 1.1rem;
    color: #333333;
    margin: 10px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 20px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
}

.cart-item-price {
    font-weight: 700;
    color: #28A745;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #007BFF;
    color: #FFFFFF;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
}

.remove-btn {
    background-color: #FF6600;
    color: #FFFFFF;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total {
    margin-top: 20px;
    text-align: right;
}

.cart-total h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

#total-price {
    color: #28A745;
}

/* Форма */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
}

/* Медицинский дисклеймер */
.medical-disclaimer {
    margin-top: 40px;
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 10px;
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.disclaimer-icon {
    font-size: 2rem;
    color: #FF6600;
}

.disclaimer-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
}

.disclaimer-text p {
    font-size: 1rem;
    color: #333333;
}

/* Преимущества */
.benefits {
    padding: 50px 0;
    background-color: #F5F5F5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
}

.benefit-card p {
    font-size: 1rem;
    color: #333333;
}

/* Советы */
.health-tips {
    padding: 50px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tip-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
}

.tip-card p {
    font-size: 1rem;
    color: #333333;
}

/* Футер */
.footer {
    background-color: #333333;
    color: #FFFFFF;
    padding: 50px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer-section h3, .footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-section p, .footer-section ul {
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #FFA500;
}

.contact-info p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #FFFFFF;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .banner-content {
        flex-direction: column;
    }

    .banner-image {
        text-align: center;
    }

    .banner-image img {
        max-width: 80%;
    }

    .product-detail-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .banner-text h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-detail-info h1 {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 15px;
    }
}