.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    margin-bottom: 50px;
}

.products-grid li {
    list-style: none;
}

.cards__title {
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


.cards__item,
.swiper_products .cards__item.swiper-slide {
    border-radius: 20px;
}

.cards__item {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    height: auto;
    flex-direction: column;
    border: 1px solid rgba(118, 81, 230, 0.05);
    text-decoration: none !important;
}

.cards__meta-wrap {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.cards__item:hover {
    text-decoration: none;
    outline: 2px solid #7651e6;
    transform: translateY(-4px);
}

.cards__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.cards__image-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #00000036;
}

.cards__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .cards__image-wrap img {
    transform: scale(1.05);
}

.product-info {
    width: 100%;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.product-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.product-bottom__format-wrap {
    display: flex;
    align-items: flex-end;
    margin-bottom: 12px;
}

.product-bottom__format-text {
    font-size: 14px;
    color: #000000;
    font-weight: 600;
}

.product-bottom__format-title {
    color: #000000;
    font-size: 14px;
}

.product_badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    z-index: 100;
    gap: 5px;
}

.product_badge-element {
    font-size: 12px;
    padding: 5px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    display: block;
}

.button.cards__button {
    padding: var(--space-2) var(--space-4);
    font-weight: 700;
    font-size: var(--font-size-sm);
}