/* Myntra Style Product Card */
.myntra-card {
    list-style: none;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.myntra-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.myntra-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.myntra-image-container {
    position: relative;
    overflow: hidden;
}

.myntra-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    border-radius: 50%;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.myntra-details {
    padding: 10px 12px;
}

.myntra-title a {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.myntra-desc {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

.myntra-rating {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 6px;
}

.myntra-rating .star {
    color: #ffb400;
    margin: 0 3px;
}

.myntra-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.myntra-price .new-price {
    font-weight: 700;
    font-size: 16px;
    color: #222;
}

.myntra-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.myntra-price .discount {
    color: #ff5722;
    font-size: 14px;
    font-weight: 600;
}

/* Add to Cart Hover Button */
.hover-add-to-cart {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.myntra-image-container:hover .hover-add-to-cart {
    bottom: 10px;
    opacity: 1;
}

.hover-add-to-cart a.button {
    background: #2874f0;
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.hover-add-to-cart a.button:hover {
    background: #1a5ec6;
}

/* Rating Badge on Image */
.rating-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rating-badge .star {
    color: #028a0f; /* Green star like Myntra */
    font-size: 14px;
}

.rating-badge .rating-count {
    color: #666;
    font-size: 12px;
}

a.added_to_cart.view-cart-myntra {
    display: block !important;
    background-color: #ff3e6c;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-top: 8px;
}
/* Style the View Cart button */
a.added_to_cart {
    display: block;
    background-color: #ff3e6c; /* Myntra pink */
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 12px;
    border-radius: 4px;
    width: 100%;
    margin-top: 8px;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

a.added_to_cart:hover {
    background-color: #e0355c; /* Slightly darker hover */
}
.added-to-cart-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745; /* Green */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.product-added .added-to-cart-badge {
    opacity: 1;
}
