/* Section Heading */
.my-section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: #6A1B9A;
    margin-bottom: 30px;
    font-weight: bold;
    letter-spacing: 1.2px;
    position: relative;
}

.my-section-heading::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background: #6A1B9A;
    margin: 10px auto 0;
}

/* Container for the product cards */
.my-product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

/* Individual product card */
.my-product-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 400px; /* Set a max width for larger screens */
    padding: 25px;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    position: relative;
    height: 500px; 
    /* min-height: 100px;  */
}

.my-product-card:hover {
    transform: translateY(-5px);
}

/* Image wrapper */
.my-product-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product image */
.my-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product details on the left */
.my-product-details {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
    flex: 1;
    display: flex;
    align-items: center; /* Ensures the details are centered */
}

/* Category badge */
.my-category-badge {
    display: inline-block;
    background-color: #F39C12;
    color: #fff;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Product name */
.my-product-name {
    font-size: 1.3rem;
    color: #2C3E50;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Product description */
.my-product-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
    line-height: 1;
}

/* Product price */
.my-product-price {
    font-size: 1.2rem;
    color: #8e44ad;
    font-weight: bold;
}

/* Product type symbol */
.my-product-type {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
}

/* Add to cart button */
.CartBtn {
    width: 120px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background-color: #8e44ad;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-duration: 0.5s;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.103);
    position: relative;
    margin-top: 20px;
}

.IconContainer {
    position: absolute;
    right: -50px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #fff;
    transition: right 0.5s;
}

.icon {
    border-radius: 1px;
}

.text {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.04em;
    font-weight: 600;
    margin: auto;
}

.CartBtn:hover .IconContainer {
    right: 10px;
}

.CartBtn:hover .text {
    transform: translateX(-10px);
}

.CartBtn:active {
    transform: scale(0.95);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.1rem;
    padding: 0 10px;
}

.quantity-control span {
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    user-select: none;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .my-product-card {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .my-product-image-wrapper {
        margin: 15px 0;
 
    }

    .my-product-details {
        align-items: center;
        text-align: center;
    }

    .CartBtn {
        margin-top: 10px;
    }
    .my-product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    
}

/* Search box */
.my-search-box {
    margin-bottom: 20px;
    padding: 10px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
