@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

.main-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}
   
.minibasket_container {
    max-width: calc(15vw + 1rem * 2);
    margin-inline: auto;
    padding-inline: 1rem;
}

.minibasket_overlay {
    padding-top: 26px;
    height: 100vh;
    background-color: #ffffff;
    width: 15vw;
    width: 150px;
    position: fixed;
    right: 0;
    top: 0;
    -webkit-box-shadow: -7px 1px 8px -3px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: -7px 1px 8px -3px rgba(34, 60, 80, 0.2);
    box-shadow: -7px 1px 8px -3px rgba(34, 60, 80, 0.2);
    align-self: flex-start; /* Фиксируем высоту */
    flex-shrink: 0;
    z-index: 1000;
}

.price {
    font-family: "Barlow", sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    padding-bottom: 0.5rem;
}

.price-small-mini
{
    font-size: 14px;
    text-align: center;
    padding-top:35px;
}

.price__mark {
    font-size: 0.875rem;
    position: relative;
    bottom: 0.25rem;
    right: 0.1rem;
}

.buttons {
    display: flex;
    flex-direction: column;
    row-gap: 0.625rem;
}

.button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding-block: 0.625rem;
    font-family: "Barlow", sans-serif;
    border: none;
    border-radius: 0.25rem;
    background-color: #588157;
    color: white;
    cursor: pointer;

}

.button:hover {
    background-color: rgba(88, 129, 87, 0.87);
}

.button--outline {
    border: 2px solid #588157;
    color: #588157;
    background-color: transparent;
    margin-bottom: 0.75rem;
}

.button--outline:hover {
    background-color: rgba(88, 129, 87, 0.87);
    color: #fff;
}

.delivery {
    border-block: 1px solid #e5e5e5;
    padding-block: 1rem;
    line-height: 1.25rem;
}

.cart {
    margin-top: 1rem;
    flex: 1;
    min-height: 0;
}

.cart__items {
    max-height: 80vh; /* Фиксированная высота */
    overflow-y: auto; /* Вертикальный скролл */
    overflow-x: hidden;
    padding-right: 8px; /* Чтобы контент не прилипал к скроллбару */
}

/* Стили для скроллбара (опционально) */
.cart__items::-webkit-scrollbar {
    width: 6px;
}
.cart__items::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.cart__items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}
.cart__items::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.grid {
    margin-top: 1rem;
    display: grid;
    //grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    //gap: 1.5rem 1rem;
    justify-content: center;
    overflow-y: auto;
}

.card {
    position: relative;
}

.card__image {
    object-fit: cover;
    aspect-ratio: 1/1;
    width: 100%;
}

.card__price {
    font-size: 16px;
    font-family: Barlow, sans-serif;
    font-weight: 700;
    color: #588157;
    text-align: center;
    line-height: 2rem;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #588157;
    border-radius: 7px;
    padding: 4px;
}

.card__quantity {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 0.5rem;
}

.grid__item
{
        padding-bottom: 20px;
}

.green-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f5e9;
    padding: 0.3rem 0.4rem;
    border-radius: 0.25rem;
    height: 0.75rem;
}

.green-icon-div {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f5e9;
    padding: 0.3rem 0.4rem;
    border-radius: 0.25rem;
    gap: 0.5rem;
    min-width: 60%;
}

@media (max-width: 1000px) {
    .green-icon-div {
        gap: 0.1rem;
        padding: 0.2rem 0.3rem;
        min-width: 50%;
    }

    .overlay {
        width: 30vw;
        min-width: 180px;
    }
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.check-icon {
    left: 0.4rem;
    top: 0.4rem;
    position: absolute;
    z-index: 1;
}

.card__price .oldPrice
{
    font-size: 14px;
    color: #bbd9ce;
    text-decoration: line-through;
    padding-left: 10px;
}
