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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    padding: 15px;
    max-width: 100%;
    margin: 0 auto;
}

/* Шапка */
.header {
    background-color: #24a00b;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.logo-icon {
    font-size: 48px;
    color: white;
}

.logo {
    font-size: 24px;
    margin: 0;
    font-weight: normal;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav ul li {
    margin: 5px 10px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Каталог */
.catalog {
    padding: 20px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.product-info {
    padding: 8px;
}

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

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.2;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 4px;
}

.product-status {
    font-size: 14px;
    margin-top: 2px;
}

.in-stock {
    color: #24a00b;
}

.out-of-stock {
    color: #f44336;
}

/* Контакты */
.contacts {
    background-color: #f5f5f5;
    padding: 20px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.contact-item i {
    font-size: 20px;
    color: #24a00b;
}

/* График работы */
.schedule {
    padding: 20px 0;
}

.schedule-info {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

/* Подвал */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Медиа-запросы для планшетов */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Медиа-запросы для десктопов */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Фильтры */
.filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-select:hover {
    border-color: #4CAF50;
}

.filter-select:focus {
    outline: none;
    border-color: #24a00b;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Категория товара */
.product-category {
    display: inline-block;
    padding: 2px 6px;
    background-color: #24a00b;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 4px;
}

/* Сообщение об отсутствии товаров */
.no-products {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0 8px;
}

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

.modal-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

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

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #24a00b;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    align-self: flex-start;
}

.modal-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.modal-composition {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.modal-composition h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.modal-composition p {
    color: #666;
    line-height: 1.6;
}

.modal-price {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.modal-status {
    font-size: 16px;
}

/* Модальное окно контактов */
.contact-modal {
    padding: 30px;
}

.contact-modal .contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .contact-modal .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-modal .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.contact-modal .contact-item:hover {
    transform: translateY(-2px);
}

.contact-modal .contact-item i {
    font-size: 24px;
    color: #4CAF50;
    margin-top: 5px;
}

.contact-details h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.contact-details p {
    margin: 0;
    color: #666;
}

.contact-note {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    color:#24a00b;
    font-size: 24px;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #388E3C;
}

.contact-map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Модальное окно графика работы */
.schedule-modal {
    padding: 30px;
}

.schedule-modal .schedule-info {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.schedule-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
}

.day-group h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.schedule-details {
    color: #666;
}

.schedule-details .days {
    font-weight: bold;
    margin-bottom: 5px;
}

.schedule-details .hours {
    color: #4CAF50;
    font-size: 18px;
}

.day-group.working {
    border-left: 4px solid #24a00b;
}

.day-group.weekend {
    border-left: 4px solid #FFA726;
}

.schedule-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background-color: #FFF3E0;
    border-radius: 8px;
    margin-top: 20px;
}

.schedule-note i {
    color: #FFA726;
    font-size: 20px;
}

.schedule-note p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.delivery-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #E8F5E9;
    border-radius: 8px;
}

.delivery-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    color: #333;
}

.delivery-info i {
    color: #4CAF50;
}

.delivery-info ul {
    margin: 0;
    padding-left: 20px;
}

.delivery-info li {
    color: #666;
    margin-bottom: 8px;
}

.delivery-info li:last-child {
    margin-bottom: 0;
}

/* Информация о наличии */
.availability-info {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
}

.availability-info.in-stock {
    background-color: #E8F5E9;
}

.availability-info.out-of-stock {
    background-color: #FFEBEE;
    color: #f44336;
    text-align: center;
    font-weight: bold;
}

.availability-info p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.availability-info ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style-type: none;
}

.availability-info li {
    position: relative;
    padding: 2px 0;
    color: #666;
    line-height: 1.3;
}

.availability-info li:before {
    content: "•";
    color: #24a00b;
    position: absolute;
    left: -15px;
}

.modal-availability {
    margin-top: 20px;
}

.modal-availability .availability-info {
    margin-top: 0;
}

/* Стили для выбора магазина */
.filter-group select option[value="all"] {
    font-weight: bold;
}

.filter-group select:focus option:checked {
    background-color: #24a00b;
    color: white;
}

/* Заголовок каталога */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #24a00b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.filter-button:hover {
    background-color: #24a00b;
}

.filter-button i {
    font-size: 18px;
}

/* Модальное окно фильтров */
.filters-modal .modal-content {
    max-width: 500px;
}

.filters-modal .modal-body {
    padding: 20px;
}

.filters-modal .filter-group {
    margin-bottom: 20px;
}

.filters-modal .filter-group:last-child {
    margin-bottom: 0;
}

.filters-modal .filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.filters-modal button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.filters-modal .reset-filters {
    background-color: #f5f5f5;
    color: #666;
}

.filters-modal .reset-filters:hover {
    background-color: #e0e0e0;
}

.filters-modal .apply-filters {
    background-color: #24a00b;
    color: white;
}

.filters-modal .apply-filters:hover {
    background-color: #24a00b;
}

/* Активные фильтры */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #E8F5E9;
    border-radius: 20px;
    font-size: 14px;
    color: #1B5E20;
}

.filter-tag i {
    cursor: pointer;
    font-size: 16px;
}

.filter-tag i:hover {
    color: #D32F2F;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-item.active {
    color: #007AFF;
}

/* Добавляем отступ для контента, чтобы он не перекрывался навигацией */
main {
    padding-bottom: 80px;
}

/* Анимация при нажатии */
.nav-item:active {
    transform: scale(0.95);
}

.store-selector {
    margin-bottom: 30px;
}

.store-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.store-info {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.store-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-contact h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #24a00b;
    margin: 0;
}

.store-contact p {
    margin: 0;
    color: #666;
    font-size: 16px;
    padding-left: 28px;
}

.schedule-page {
    padding: 20px 0;
}

.schedule-page .store-selector {
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.schedule-page .store-info {
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.schedule-page .store-info p {
    line-height: 1.1;
}

.schedule-page .schedule-info {
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.schedule-page .schedule-details {
    line-height: 1.1;
}

.schedule-page .schedule-note p {
    line-height: 1.1;
}

.error-message {
    text-align: center;
    padding: 20px;
    background-color: #FFEBEE;
    color: #D32F2F;
    border-radius: 8px;
    margin: 20px 0;
}

/* Страница вакансий */
.vacancies-page {
    padding: 20px 0;
}

.vacancies-grid {
    display: grid;
    gap: 20px;
    padding: 20px 0;
}

.vacancy-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vacancy-title {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.vacancy-salary {
    font-size: 18px;
    font-weight: bold;
    color: #24a00b;
}

.vacancy-store {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin-bottom: 15px;
}

.vacancy-store i {
    color: #24a00b;
}

.vacancy-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.vacancy-details {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.requirements h4,
.conditions h4 {
    color: #333;
    margin-bottom: 10px;
}

.requirements ul,
.conditions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements li,
.conditions li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #666;
}

.requirements li:before,
.conditions li:before {
    content: "•";
    color: #24a00b;
    position: absolute;
    left: 0;
}

.apply-button {
    width: 100%;
    padding: 12px;
    background-color: #24a00b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.apply-button:hover {
    background-color: #1a7708;
}

.no-vacancies {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

@media (min-width: 768px) {
    .vacancy-details {
        grid-template-columns: 1fr 1fr;
    }
}

/* Стили для страницы новостей */
.news-container {
    padding: 20px;
    margin-bottom: 70px;
}

.news-filters {
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.news-card:active {
    transform: scale(0.98);
}

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

.news-content {
    padding: 16px;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.news-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Стили для модального окна новости */
.news-modal .modal-content {
    max-width: 600px;
}

.news-modal .modal-body {
    padding: 20px;
}

.news-modal .news-image {
    height: 300px;
    margin-bottom: 20px;
}

.news-modal .news-date {
    margin-bottom: 16px;
}

.news-modal .news-title {
    font-size: 24px;
    margin-bottom: 16px;
}

.news-modal .news-description {
    font-size: 16px;
    line-height: 1.6;
}

/* Стили для модального окна с изображением */
.image-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    box-shadow: none;
}

.image-modal .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    padding: 0;
    z-index: 1;
}

.image-modal .modal-close {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.2s;
}

.image-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.image-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal .full-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Курсор для кликабельных изображений */
.news-image {
    cursor: pointer;
} 