.ak-my-product-display {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ak-my-product-display.ak-columns-1 .ak-product-item {
    width: 100%;
}

.ak-my-product-display.ak-columns-2 .ak-product-item {
    width: calc(50% - 20px);
}

.ak-my-product-display.ak-columns-3 .ak-product-item {
    width: calc(33.333% - 20px);
}

.ak-my-product-display.ak-columns-4 .ak-product-item {
    width: calc(25% - 20px);
}

.ak-my-product-display.ak-columns-5 .ak-product-item {
    width: calc(20% - 20px);
}

.ak-add-to-cart-icon img {
    width: 14px;
    height: 14px;
    margin: -1px;
    margin-right: 5px;
}

.ak-product-item {
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* Ensure overflow is hidden */
}

.ak-product-image {
    text-align: center;
    margin-bottom: 10px;
    transition: opacity 0.15s ease-out; /* Smooth transition for hover effect */
}

.ak-product-title {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 18px;
	color: black;
    transition: opacity 0.15s ease-out; /* Smooth transition for hover effect */
}

.ak-product-description {
    font-size: 14px;
    margin-bottom: 10px;
    transition: opacity 0.15s ease-out; /* Smooth transition for hover effect */
    line-height: 18px;
}

.ak-price {
    transition: opacity 0.15s ease-out; /* Smooth transition for hover effect */
}

.ak-price-and-cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: space-between;
    transition: opacity 0.15s ease-out; /* Smooth transition for hover effect */
}

.ak-cart {
    transition: opacity 0.15s ease-out; /* Smooth transition for hover effect */
}

.ak-add-to-cart-icon {
    border: 1px solid #000; /* Black border */
    background-color: #fff; /* White background */
    color: #000; /* Black text */
    transition: background-color 1s ease, color 1s ease, opacity 0.15s ease-out; /* Smooth transition for hover effect */
    border-radius: 100px;
    display: none; /* Hidden by default */
    width: 70%;
    font-size: 14px;
    text-align: center;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    margin-bottom: 20px;
}

.ak-add-to-cart-icon:hover {
    background-color: #f0f0f0; /* Slightly darker background on hover */
    color: #000; /* Black text */
}

.ak-discount-badge {
    position: absolute;
    color: #fff;
    background-color: #DE1528;
    font-weight: bold;
    font-size: 14pt;
    border-radius: 100px;
    right: 10px;
    top: 0px;
    align-content: center;
    width: 60px;
    height: 60px;
    transition: opacity 0.15s ease-out; /* Smooth transition for hover effect */
}

.best-seller-badge{
	position: absolute;
	width: 100%;
	left:0px;
	top:15px;
}
@media (max-width: 767px) {
	.best-seller-badge{
	top:0px;
}
}

.ak-sale-price ins {
    color: red;
	text-decoration:none;
	font-weight: 600;
}

/* Hover effects */
.ak-product-item:hover .ak-product-description,
.ak-product-item:hover .ak-price,
.ak-product-item:hover .ak-price-and-cart {
    opacity: 0;
}

.ak-product-item:hover .ak-cart .ak-add-to-cart-icon {
    display: block;
    opacity: 1;
}

.ak-product-item:hover .ak-product-title,
.ak-product-item:hover .ak-product-image,
.ak-product-item:hover .ak-discount-badge {
    opacity: 1;
}

/* Media Queries for Mobile Optimization */
@media (max-width: 767px) {
    .ak-my-product-display.ak-columns-1 .ak-product-item,
    .ak-my-product-display.ak-columns-2 .ak-product-item,
    .ak-my-product-display.ak-columns-3 .ak-product-item,
    .ak-my-product-display.ak-columns-4 .ak-product-item,
    .ak-my-product-display.ak-columns-5 .ak-product-item {
        width: calc(50% - 10px);
    }

    .ak-product-item .ak-add-to-cart-icon {
        display: block !important; /* Always show add-to-cart button on mobile */
        opacity: 1 !important;
        position: static;
        transform: none;
        margin-bottom: 10px;
        width: 100%;
    }

    .ak-product-item .ak-product-description,
    .ak-product-item .ak-price,
    .ak-product-item .ak-price-and-cart {
        opacity: 1 !important; /* Ensure they stay visible */
    }

    .ak-product-item .ak-product-image,
    .ak-product-item .ak-discount-badge {
        opacity: 1; /* Ensure image and discount badge stay visible */
    }
	
	.ak-discount-badge{
		width: 50px;
		height:50px;
		font-size: 12pt;
	}
	
	.ak-product-item{
		padding:0px;
	}

    .ak-my-product-display {
        gap: 10px;
    }    
}