.pilomaterials {
    display: flex;
    flex-direction: column;
    padding: 0 60px;
    gap: 70px;
}

.all-materials {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* По умолчанию 4 товара в строке */
    gap: 40px; /* Отступы между товарами */
}

.material {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.material-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
    margin-bottom: 0;
}

.information_material {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background-color: #FFF0CA;
    padding: 25px;
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    gap: 30px;
}

.price-service-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Отступ между ценой и выпадающим списком */
}
.price {
    font-size: 16px;
    color: #333;
    margin: 0;
    flex: 1; /* Занимает доступное пространство */
    text-align: left; /* Выравнивание по левому краю */
}

select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}
.selected-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

/* Иконка стрелки */
.arrow-icon {
    transition: transform 0.3s ease;
}

/* Активное состояние (когда выпадающий список открыт) */
.custom-select.open .arrow-icon {
    transform: rotate(180deg);
}
.corsina-wrapper {
    position: absolute; /* Выносим кнопку из основного потока */
    right: 0; /* Размещаем справа */
    top: 50%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Корректируем центрирование */
}

.corsina-button {
    background-color: #ebd294;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.corsina {
    width: 40px; /* Увеличиваем размер изображения */
    height: auto;
}
.not-logged-in-message {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}

.not-logged-in-message a {
    color: #1987fd;
    text-decoration: none;
}

.not-logged-in-message a:hover {
    text-decoration: underline;
}
@media (max-width: 1140px) {
    .information_material {
        padding: 15px;
    }
    .price {
        font-size: 12px;
    }
    select {
        font-size: 12px;
        padding: 6px;
    }
    .material-slider {
        font-size: 13px;
    }
}
@media (max-width: 1000px) {
    .material-slider {
        font-size: 12px;
    }
    .corsina-button {
        font-size: 12px;
    }
    .price {
        font-size: 11px;
    }
    select {
        font-size: 10px;
        padding: 5px;
    }
    .price-service-container {
        flex-direction: column;
    }
}
@media (max-width: 910px) {
    .material-slider {
        font-size: 11px;
    }
    .information_material {
        padding: 20px;
    }
    .price {
        font-size: 10px;
    }
    .not-logged-in-message {
        font-size: 10px;
    }
    select {
        font-size: 9px;
    }

}
@media (max-width: 768px) {
    .all-materials {
        grid-template-columns: repeat(3, 1fr);
    }
    .pilomaterials {
        padding: 0 20px;
    }
    .not-logged-in-message {
        font-size: 9px;
    }
    .price-service-container {
        flex-direction: row;
    }
    .information_material {
        padding: 15px;
    }
}
@media (max-width: 600px) {
    .price-service-container {
        flex-direction: column;
    }
}
@media (max-width: 500px) {
    .all-materials {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .pilomaterials {
        padding: 0 20px;
        gap: 40px;
    }
    .material-slider {
        font-size: 12px;
    }
    .information_material {
        padding: 15px;
    }
    .corsina {
        width: 17%;
    }
}
@media (max-width: 450px) {
    .all-materials {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .pilomaterials {
        padding: 0 20px;
        gap: 40px;
    }
    .material-slider {
        font-size: 10px;
    }
    .information_material {
        padding: 15px;
    }
    .corsina {
        width: 22%;
    }
    .price {
        font-size: 9px;
    }
    .not-logged-in-message {
        font-size: 8px;
    }
}
