.products-page {
    text-align: center;
    font-size: 1.5rem;
    margin: 40px 0 30px;
    color: var(--primary);
    font-weight: bold;
}

.products-grid {
    display: flex;
    
    gap: 20px;
    
    max-width: 100%;
    overflow-x: hidden;
    flex-wrap: wrap;
    justify-content: center;
   
}
.product-card {
    background-color: var(--gray);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
    max-width: 300px;
    flex: 0 0 300px;
    height: auto;
}

.product-image {
    padding: 4px;
    background-color: rgb(49, 109, 97); /* зелёный */
    border-radius: 8px;
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
        display: block;
    }

.product-name {
    font-size: 1rem;
    margin-bottom: 8px;

}

.product-price {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: white;
}
.request-btn {
    margin-top: auto;
}

/* Адаптив для устройств до 768px */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 0 10px 30px;
    }

    .product-card {
        padding: 16px;
    }

    .product-image {
        height: 120px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 0.95rem;
    }
}

/* Для планшетов */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Два столбца для планшетов */
    }
}

@media (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Автоматическая настройка колонок */
    }
}


@media (max-width: 600px) {
        .product-image {
         height: auto;        /* не фиксируем высоту */
         }
        .product-image img {
         height: auto;        /* картинка сама задаёт высоту */
         width: 100%;         /* растягиваем на 100% ширины */
         object-fit: cover;   /* можно оставить cover, т.к. нет обрезки по высоте */
         }
}

.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: max-content;
    border-bottom: 2px solid rgb(49, 109, 97);
    margin-bottom: 10px;
    padding: 10px;
}
.tab-button {
    flex: 0 0 auto;
    font-size: 22px; /* размер шрифта */
    padding: 10px 16px; /* внутренние отступы сверху/снизу – 12px, слева/справа – 24px */
    border-radius: 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: rgb(49, 109, 97); /* если хотите оставить зелёный текст */
    transition: border-color 0.3s ease;
}

    /* Для активной вкладки можно сделать чуть подтянутее или изменить цвет */
    .tab-button.active {
        border-color:rgb(49, 109, 97);
        font-weight: bold;
        /* font-weight: bold;  если нужно сделать подчеркнутый шрифт */
    }

/* Если вам нужно увеличить кнопку "Подробнее" на странице каталога, найдите её селектор (например, .request-btn) и сделайте так же: */
.request-btn {
    font-size: 20px;
    padding: 14px 28px;
    line-height: 1.4;
}

.tab-content {
    display: none;
    font-size: 20px; /* увеличиваем размер текста */
    line-height: 1.6; /* делаем строки более читаемыми */
    padding: 10px 0; /* немного отступов сверху и снизу */
}
    .tab-content p {
        margin-bottom: 12px;
    }
    .tab-content h2 {
        font-size: 30px;
        margin-top: 20px;
    }

    .tab-content.active {
        display: block;
    }

.product-page-image {
    padding: 4px;
    background-color: rgb(49, 109, 97); /* зелёный фон */
    border-radius: 8px;
    max-width: 300px; /* ограничиваем максимальную ширину */
    margin-bottom: 15px;
    box-sizing: border-box;
}

.product-overview {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box; /* чтобы padding учитывался в ширине */
}

.product-page-image img {
    max-width: 300px; /* ограничиваем ширину картинки, чтобы не была слишком большой */
    height: auto;
    display: block;
}

.product-info {
    flex: 1; /* текст занимает всё оставшееся место */

}
.product-page-name {
    color: rgb(49, 109, 97);
    font-size: 3em; /* или font-size: 32px; */
    margin-bottom: 0.3em; /* небольшой отступ снизу для красоты */
}

.product-page-price, .product-page-shortdesc {
    color: white;
    font-size: 1.5em; /* стандартный размер для остальных */
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 768px) {
    .product-overview {
        flex-direction: column;
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .product-page-image img {
        max-width: 100%;
        height: auto;
    }

    .product-info {
        width: 100%;
        text-align: center;
    }
}
.product-overview,
#description,
#specs {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Для адаптива */
@media (max-width: 768px) {
    .product-overview,
    #description,
    #specs {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* полупрозрачный фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    font-family: inherit;
    color: rgb(49, 109, 97);
    border: 2px solid rgb(49, 109, 97);
    box-sizing: border-box;
}

    .modal-content h2 {
        font-size: 26px;
        margin-bottom: 20px;
        color: rgb(49, 109, 97);
        border-bottom: 2px solid rgb(49, 109, 97);
        padding-bottom: 8px;
    }

    .modal-content label {
        display: block;
        margin-bottom: 16px;
        font-size: 18px;
    }

    .modal-content input,
    .modal-content textarea {
        width: 100%;
        padding: 10px 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
        margin-top: 6px;
        transition: border-color 0.2s;
    }

        .modal-content input:focus,
        .modal-content textarea:focus {
            border-color: rgb(49, 109, 97);
            outline: none;
        }

    .modal-content button[type="submit"] {
        font-size: 20px;
        padding: 12px 28px;
        border: none;
        background: none;
        color: rgb(49, 109, 97);
        border-bottom: 3px solid transparent;
        cursor: pointer;
        transition: border-color 0.2s;
    }

        .modal-content button[type="submit"]:hover {
            border-bottom: 3px solid rgb(49, 109, 97);
        }

    .modal-content .close {
        float: right;
        font-size: 28px;
        font-weight: bold;
        color: rgb(49, 109, 97);
        transition: color 0.2s;
    }

        .modal-content .close:hover {
            color: crimson;
            cursor: pointer;
        }

.button-disabled {
    background-color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

#orderForm button[type="submit"] {
    border-radius: 30px; /* Чем больше число, тем более округлая кнопка */
    padding: 10px 20px; /* Немного увеличим отступы для красивой формы */
    transition: background-color 0.3s ease; /* Плавный эффект изменения цвета */
}

.tabs-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
    /* Для десктопов можно отменить скролл, если нужно */
    .tabs-scroll-wrapper {
        overflow-x: visible;
    }
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 4px 10px;
    font-size: 14px;
    border: 1px solid rgb(49, 109, 97);
    background-color: #000;
    color: #cccccc;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.pagination .current-page {
    background-color: rgb(49, 109, 97) ;
    color: #000;
    font-weight: bold;
    border-color: rgb(49, 109, 97) ;
}

.search-container button {
    background-color: rgb(49, 109, 97);
    color: #f0f8f6; /* светлый зелёноватый */
    border: 2px solid rgb(49, 109, 97);
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-container button:hover {
    background-color: #1e4039; /* тёмно-зелёный при наведении */
    color: white;
}