﻿/* --- Сторінка "Про нас" --- */

.about-page {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.about-block--reverse {
    direction: ltr;
}

.about-block--reverse .about-block__image {
    order: -1;
}

.about-block__content {
    padding: 20px;
}

.about-block__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-block__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-block__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

/* Список інгредієнтів */
.ingredients-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.ingredient-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
}

.ingredient-item__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.ingredient-item__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Цінності */
.values-section {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.value-card__icon svg {
    width: 48px;
    height: 48px;
    color: var(--accent);
}

.value-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.value-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Сторінка "Контакти" --- */

.contacts-page {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Контактна інформація */
.contacts-info__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
}

.contact-item__icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-item__value {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.contact-item__value:hover {
    color: #5a3f31;
}

.contact-item__note {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #5a3f31;
}

/* Форма контактів */
.contacts-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
}

.contacts-form__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* .form-group, .form-label, .form-input, .form-textarea —
   визначені в style.css (єдине джерело, fix 2.5) */

/* Доставка та оплата */
.delivery-section {
    margin-top: 80px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.delivery-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
}

.delivery-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.delivery-option,
.payment-option {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.delivery-option:last-child,
.payment-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.delivery-option__name,
.payment-option__name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.delivery-option__desc,
.payment-option__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.delivery-option__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.delivery-note {
    background: #fff3cd;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
    margin-top: 20px;
}

.payment-security {
    background: #d4edda;
    padding: 16px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.security-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-security p {
    font-size: 13px;
    color: #155724;
    margin: 0;
}

/* Додаткова інформація */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.info-block {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
}

.info-block__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Пошук і фільтри --- */

.filters-panel {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filters-panel__search {
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.filters-panel__tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-tag:has(input:checked) {
    background: var(--accent);
    color: white;
}

.filter-tag input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.filter-tag span {
    font-size: 14px;
    font-weight: 500;
}

.filters-panel__price {
    display: flex;
    align-items: center;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.price-input {
    width: 80px;
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: var(--accent);
}

.price-separator {
    color: var(--text-secondary);
}

.price-currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn--reset {
    background: #f44336;
    color: white;
    margin-left: auto;
    /* Притискає кнопку до правого краю */
}

.btn--reset:hover {
    background: #d32f2f;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--text-secondary);
    background: var(--white);
    border-radius: 15px;
    grid-column: 1 / -1;
}

/* --- Листівка --- */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Адаптивність --- */

@media (max-width: 992px) {
    .about-block {
        grid-template-columns: 1fr;
    }

    .about-block--reverse .about-block__image {
        order: 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ingredients-list {
        grid-template-columns: 1fr;
    }

    .info-blocks {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-panel__search {
        width: 100%;
    }

    .filters-panel__tags {
        justify-content: center;
    }

    .filters-panel__price {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .about-block__title {
        font-size: 24px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        padding: 20px;
    }

    .price-filter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}