* {
    margin: 0;
    padding: 0;
}

i {
    font-family: "Roboto Mono", monospace;
}

body, html {
    font-family: "Roboto Mono", monospace;
    background-color: #1C1C1C;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.cards {
    margin: 1%;
    width: 19%;
    background-color: #2C2C2C;
    color: #F5F0E6;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease;
    text-align: center;
    font-size: 3vw;
}

.cards img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.cards:hover {
    transform: scale(1.02);
}

.to-shop {
    justify-content: right;
    width: 100%;
    height: auto;
    display: flex;
}

.shopping-car {
    margin-top: 0.5vw;
    padding: 1vw;
    background-color: #1C1C1C;
    display: inline-flex;        /* Изменено с flex на inline-flex */
    align-items: center;         /* Центрируем по вертикали */
    border-radius: 50vw;
    transition: all 0.6s ease;
    
    /* Фиксированная ширина (только под иконку) */
    width: 3.2vw;
    overflow: hidden;
    white-space: nowrap;
    gap: 8px;
}

.cart-text {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shopping-car:hover {
    width: 100%;
    background-color: #fdff76;
    color: #1C1C1C;
}

.price-text {
    color: #F5F0E6;
    font-size: 16px;
    margin-right: 5px;  /* Отступ справа от цены до иконки */
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* ДОБАВЬ ЭТО В КОНЕЦ ФАЙЛА */
.price-text {
    color: #F5F0E6;
    font-size: 16px;
    margin-right: 5px;
}

.shopping-car:hover .price-text {
    opacity: 0;
}

.shopping-car:hover .cart-text {
    opacity: 1;
}