.title{
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xl);
}

.warning{
    font-size: var(--fs-xs);
    margin-bottom: var(--space-m);
    margin-right: auto;
    width: 50%;
    margin-left: var(--space-5xl);
    color: #808080;
}

#shop-list{
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    width: 90%;
    justify-content: center;
    transition: var(--transition-base);

}

.hover-container{
    padding: var(--space-3xs);
}

.hover-container:hover .product-content-wrapper{
    transform: scale(1.02);
}

.product-content-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-s);
    gap: var(--space-3xs);
    background-color: var(--bg-white-norm);
    border-radius: var(--br-s);
    box-shadow: var(--inner-shadow-bl);
    box-shadow: var(--drop-shadow-green);
    transition: var(--transition-base); /* додано, щоб transform анімувався плавно */
}

.img-product {
    width: 100%;
    max-width: 160px;
    
    /* Робить елемент ідеальним квадратом 1:1 на будь-якому екрані */
    aspect-ratio: 1 / 1; 
    
    /* Обрізає зображення так, щоб воно повністю заповнило квадрат */
    object-fit: cover; 
    
    /* Центрує обрізку по центру (щоб важливі деталі не зникали) */
    object-position: center; 
    
    display: block;
}

.product-text{
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
    max-width: 160px;
    margin-right: auto;
    margin-top: var(--space-3xs);
}

.product-title {
    color: var(--text-dark-main);
    font-size: var(--fs-xs);    
    width: 100%;                
    
    /* Задаємо висоту рівно на 2 рядки */
    min-height: 2.6em; /* або height: 2.6em; */
    line-height: 1.3;
    
    /* Ваші поточні стилі для обрізання тексту */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price{
    color: var(--text-dark-main);
    font-weight: var(--fw-bold);
    font-size: var(--fs-s);    
    width: 100%;                
    overflow-wrap: break-word;  
    word-break: break-word;
}

.container-all-in-page > .container{
    margin-top: var(--space-3xl);

    padding-bottom: var(--space-5xl);
}
@media (min-width: 560px) and (max-width: 1024px){
        
    .warning{
        font-size: var(--fs-s);
        margin-bottom: var(--space-s);
        width: 70%;
    }

    #shop-list{
        width: 100%;
    }

    .warning{
        width: 80%;
        margin-left: var(--space-3xl);
    }

    .img-product{
        max-width: 160px;
    }

    .product-text{
        max-width: 160px;
        gap: var(--space-3xs);
    }

    .product-title{
        font-size: var(--fs-xs);
    }

    .product-price{
        font-size: var(--fs-s);
    }
}

@media (max-width: 560px) {
    .title{
        margin-bottom: var(--space-m);
    }

    .warning{
        width: 90%;
        margin: 0 auto var(--space-s);
        font-size: var(--fs-2xs);
    }

    #shop-list{
        gap: var(--space-xs);
        width: 100%;
    }

    .product-content-wrapper{
        padding: var(--space-2xs);
        gap: var(--space-3xs);
        border-radius: var(--br-m);
    }

    .img-product{
        max-width: 140px;
    }

    .product-text{
        max-width: 140px;
        gap: var(--space-3xs);
    }

    .product-title{
        font-size: var(--fs-xs);
    }

    .product-price{
        font-size: var(--fs-s);
    }

    .container-all-in-page > .container{
        margin-top: var(--space-xs);
        padding-bottom: var(--space-5xl);
    }
}