.horizontal-product-grid {

    background-color: var(--second-cards-color);
    width: 100%;
    /* height: 220px; */
    border-radius: 4px;
    padding: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.horizontal-product-grid div {
    display: flex;
    /* align-items: center; */

}

.horizontal-product-grid .product-image {
    overflow: hidden;
}

.horizontal-product-grid .product-image a.image {
    display: block;
}

.horizontal-product-grid .product-image img {
    height: 100% !important;
    width: 100% !important;
    margin: auto;
    object-fit: cover;
    aspect-ratio: 196/156 !important;
    position: relative;
}

.horizontal-product-grid:hover .product-image img {
    opacity: 0.8;
}



/* .horizontal-product-grid .product-image:hover img {
    transform: scale(1.15);
} */

.horizontal-product-grid .product-discount-label {
    color: #fff;
    text-align: center;
    background: #DB3D26;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 16px;
    padding: 4px 8px 4px 8px;
    border-radius: 4px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.horizontal-product-grid .product-vegen-type {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;

}

.horizontal-product-grid .product-vegen-type img {
    object-fit: contain !important;
    aspect-ratio: 2/2 !important;
}

.horizontal-product-grid .product-image .image-container {
    position: relative;
}

.horizontal-product-grid .product-links {
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    /* Adjusted to be closer to the image */
    z-index: 1;
    transition: all .2s ease-in-out 0.2s;
    text-align: center;
}

.horizontal-product-grid:hover .product-links {
    opacity: 1;
}

/* Rest of your CSS remains unchanged */


.horizontal-product-grid .product-links li {
    margin: 0 0 6px;
    display: block;
    transform: translateX(30px);
    transition: all 0.5s ease-out 0s;
}

.horizontal-product-grid .product-links li:nth-child(2) {
    transform: translateX(50px);
}

.horizontal-product-grid .product-links li:nth-child(3) {
    transform: translateX(70px);
}

.horizontal-product-grid .product-links li:last-child {
    transform: translateX(90px);
}

.horizontal-product-grid .product-links li:last-child {
    margin: 0;
}

.horizontal-product-grid:hover .product-links li {
    transform: translateX(0);
}

.horizontal-product-grid .product-links li a {
    color: #2a3640;
    background: #fff;
    font-size: 16px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50px;
    display: block;
    position: relative;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, .06);
    transition: all 0.5s ease-out 0s;
    /* padding: 10px; */
}

.horizontal-product-grid .product-links li a:hover {
    color: #fff;
    background: var(--secondary-color);
}

.horizontal-product-grid .product-links li a:before,
.horizontal-product-grid .product-links li a:after {
    content: attr(data-tip);
    color: #fff;
    background: var(--secondary-color);
    font-size: 12px;
    line-height: 20px;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    display: none;
    transform: translateY(-50%);
    position: absolute;
    right: 45px;
    top: 50%;
}

.horizontal-product-grid .product-links li a:after {
    content: '';
    height: 15px;
    width: 15px;
    padding: 0;
    border-radius: 0;
    transform: translateY(-50%) rotate(45deg);
    right: 43px;
    z-index: -1;
}

.horizontal-product-grid .product-links li a:hover:before,
.horizontal-product-grid .product-links li a:hover:after {
    display: block;
}

.horizontal-product-grid .horizontal-product-content {

    display: flex;
    flex-direction: column;
    /* margin-left: 10px; */
    justify-content: space-between;
}

.horizontal-product-grid .horizontal-product-content .horizontal-product-head {
    display: flex;
    flex-direction: column;
    height: 100px;
    justify-content: space-between;
}

.horizontal-product-grid .horizontal-product-content .horizontal-product-head p {
    font-size: 14px;
    font-weight: 400;
}

.horizontal-product-grid .horizontal-product-content .horizontal-product-head .horizontal-product-price {
    font-size: 16px;
    font-weight: 700;
    margin-top: 30px;
    color: var(--font-color);
}

.horizontal-product-grid .horizontal-product-content .horizontal-product-head .horizontal-product-title {
    display: flex;
    flex-direction: column;


}

.horizontal-product-grid .horizontal-product-content .horizontal-product-head .horizontal-product-title .rating-container {
    display: flex;
    align-items: center;
    color: var(--font-color);
}

.horizontal-product-grid .horizontal-product-content .horizontal-product-head .horizontal-product-title .rating-container p {

    font-size: 14px;
    color: gray;
    margin: 2px 8px;

}

.horizontal-product-grid .horizontal-product-content .horizontal-product-buttons {
    display: flex;
    flex-direction: column;
}

.horizontal-product-grid .horizontal-product-content .horizontal-product-buttons .qty-button {
    display: flex;
    gap: 6px;
    border-radius: 4px;
    padding: 8px;
    align-items: center;
    font-size: 16px;
    background-color: var(--buttons-background-color);
    color: var(--font-color);
    justify-content: space-between;

}

.horizontal-product-grid .horizontal-product-content .horizontal-product-buttons .price-button {
    margin-top: 12px;
    background-color: #55AE7B12;
    color: var(--secondary-color);
    display: flex;
    gap: 6px;
    border-radius: 4px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.horizontal-product-grid .horizontal-product-content .horizontal-product-buttons .price-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.horizontal-product-grid .title {
    color: #2a3640;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    width: 100%;
    max-height: 1em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--font-color);
    transition: all 0.3s ease 0s;
}



.horizontal-product-grid .title:hover {
    cursor: pointer;
    color: var(--secondary-color)
}

.horizontal-product-grid .rating {
    color: var(--font-color);
    font-size: 12px;

    margin: 0 0 4px;
    align-items: center;
    display: flex;

}

.horizontal-product-grid .rating p {
    font-size: 14px;
    color: gray;
    margin: 2px 8px;
}

.horizontal-product-grid .rating .disable {
    color: #a3a3a3;
}

.horizontal-product-grid .price {
    color: var(--font-color);
    font-size: 16px;
    font-weight: 600;
    /* margin-top: 10px; */
    /* padding: 12px 12px 0px 12px; */

}

.horizontal-product-grid .price span {
    color: #868c93;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    text-decoration: line-through;
    margin: 4px;
    /* margin: 5px; */
}



.horizontal-cart-count-btn {
    /* padding: 12px; */
    font-size: 16px;
    margin-top: 12px;
    display: flex;
    border-radius: 4px;
    background-color: var(--body-background);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .product-btn .dropdown-toggle {
    padding: 12px;
    font-size: 16px;
    margin: 5px 0px;
    display: flex;
    width: 100%;
    border-radius: 4px;
    background-color: #F2F5F7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--font-color);
    border: none;
} */

@media screen and (max-width: 990px) {
    .horizontal-product-grid {
        margin-bottom: 30px;
    }
}

.filledStar {
    color: #ffcc00;
    font-size: 14px;
}

.emptyStar {
    color: #dcdcdc;
    font-size: 14px;
}

.horizontal-cart-count-btn input {
    text-align: center;
    background: transparent;
    width: 100%;
}

.horizontal-cart-count-btn button {
    height: 38px !important;
    width: 27px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    padding: 7px 10px;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
}

.horizontal-card-variant-out-of-stock {
    font-size: 16px;
    color: #DB3D26;
    font-weight: 900;
    display: flex;
    /* justify-content: end; */
    /* width: 100%; */
    height: 92px;
    align-items: center;
}