/* Enhanced Product Cards and Image Standardization */

.banner-overlay {
    background-color: rgba(24, 118, 54, 0.7);
}

.products-section {
    padding: 10px 0;
    background-color: #f9f9f9;
}

.products-wrapper {
    max-width: 1450px; /* Increased max-width to accommodate 3 columns */
    margin: 0 auto;
    padding: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns */
    gap: 30px; /* Збільшений відступ між картками */
}

/* Enhanced card styling */
.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px; /* Збільшений внутрішній відступ */
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Standardized image container - збільшений розмір */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f6f6;
    height: 300px; /* Збільшена висота для кращої видимості */
    margin-bottom: 20px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Standardized image sizing - збільшені зображення */
.slide img {
    max-width: 115%;
    max-height: 115%;
    object-fit: contain;
    padding: 10px;
}

/* Improved slider controls */
.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 10px;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary);
    font-size: 22px; /* Збільшений розмір кнопок слайдера */
    width: 40px; /* Збільшений розмір кнопок слайдера */
    height: 40px; /* Збільшений розмір кнопок слайдера */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Enhanced product info styling */
.product-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-title {
    color: var(--primary);
    font-size: 22px; /* Збільшений розмір заголовка */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Technical specifications styling */
.tech-specs-header {
    font-size: 18px; /* Збільшений розмір заголовка секції */
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #e3f2fd;
    padding: 12px 15px;
    border-radius: 6px;
}

.tech-specs-header .toggle-icon {
    font-size: 22px; /* Збільшений розмір іконки */
}

.tech-specs-content {
    margin-bottom: 20px;
    font-size: 16px; /* Збільшений розмір тексту */
    line-height: 1.6;
    color: #333;
}

.tech-specs-content p {
    margin-bottom: 10px;
}

.tech-specs-content ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 10px;
}

.tech-specs-content li {
    margin-bottom: 8px;
}

/* Order information styling */
.order-info-header {
    font-size: 18px; /* Збільшений розмір заголовка */
    font-weight: 600;
    color: #2c3e50;
    margin: 15px 0 10px;
    cursor: pointer;
}

/* Product table styling */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 15px;
    font-size: 15px; /* Збільшений розмір тексту в таблиці */
}

.product-table th {
    background-color: #3498db;
    color: white;
    text-align: left;
    padding: 10px;
    font-weight: 600;
}

.product-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
}

.product-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.product-table tr:hover {
    background-color: #e9f7fe;
}

/* Utility classes */
.text-accent {
    color: #3498db;
}

.mt-2 {
    margin-top: 15px;
}

/* Уніфікація стилів заголовків секцій */
.section-header {
    font-size: 18px; /* Збільшений розмір заголовка секції */
    font-weight: 600;
    color: #191c23;
    padding: 12px 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: rgba(24, 118, 54, 0.7);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.section-header:hover {
    background-color: rgba(24, 118, 54, 0.6);
}

.section-header .toggle-icon {
    font-size: 22px; /* Збільшений розмір іконки */
    transition: transform 0.3s ease;
}

/* Стилі для контенту секцій */
.section-content {
    font-size: 16px; /* Збільшений розмір тексту */
    line-height: 1.6;
    color: #333;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-content.collapsed {
    max-height: 0;
    margin-bottom: 0;
}

/* Стилі для таблиці замовлення */
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 15px;
    font-size: 15px; /* Збільшений розмір тексту в таблиці */
}

.order-table th {
    background-color: rgba(24, 118, 54, 0.7);
    color: white;
    text-align: left;
    padding: 10px;
    font-weight: 600;
}

.order-table td {
    padding: 6px;
    border: 1px solid #ddd;
}

.order-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.order-table tr:hover {
    background-color: rgba(168, 181, 166, 0.5);
}

/* Responsive breakpoints - змінені для відображення 1 колонки на планшетах */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 колонка для планшетів */
        gap: 20px; /* Збільшений відступ між картками */
    }

    .slider-container {
        height: 350px; /* Ще більша висота для планшетів */
    }

    .product-title {
        font-size: 24px; /* Більший заголовок для планшетів */
    }

    .section-header {
        font-size: 20px; /* Більший заголовок секції для планшетів */
    }

    .section-content, .tech-specs-content {
        font-size: 18px; /* Більший текст для планшетів */
    }
    .product-card{
        width: 80%;
        margin: 0 auto;
    }

    .slide img{
        max-height: 127%;
    }
    .product-title{
        text-align: center;
    }
}

@media (max-width: 1020px) {
    .product-card{
        width: 87%;
    }

    .product-title {
        font-size: 22px;
    }

    .section-header {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобільних */
    }

    .slider-container {
        height: 280px; /* Адаптивна висота для мобільних */
    }
    .product-card{
        width: 90%;
    }

    .product-title {
        font-size: 21px;
    }

    .section-header {
        font-size: 18px;
        margin-bottom: 9px;
    }

    .section-content, .tech-specs-content {
        font-size: 16px;
    }


}

@media (max-width: 676px) {
    .product-card{
        width: 93%;
    }

    .section-header {
        margin-bottom: 5px;
    }
    .order-table{
        font-size: 14px;
    }

    .section-content {
        overflow-x: auto;
    }

    .section-content .order-table,
    .section-content .product-table {
        display: table;
        width: 100%;
        table-layout: auto; /* дозволяє автоматичне масштабування */
        white-space: nowrap; /* не переносити текст у комірках */
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 220px; /* Менша висота для малих екранів */
    }

    .product-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .section-header {
        font-size: 17px;
        margin-bottom: 0;
    }

    .section-content, .tech-specs-content {
        font-size: 16px;
    }

    .product-card{
        width: 100%;
        padding: 13px;
    }
    .product-info{
        margin-top: 0;
        padding-top: 7px;
    }

    .order-table{
        font-size: 14px;
    }
}