﻿
.productfull {
    border: 1px solid #e0e0e0; /* Soft gray border */
    border-radius: 12px; /* Smooth rounded corners */
    background-color: #ffffff; /* Optional: adds clean white background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); /* Soft shadow for depth */
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}


.product-card {
    background-color: #F6F6F6;
    border-radius: 12px 12px 0 0;
    position: relative;
    padding: 10px;
}



.product-card .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #e63946;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.product-card img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: contain;
    background-size: cover;
    border-radius: 8px;
}

.product-card .btn-plus {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .product-card .btn-plus .bi {
        font-size: 1.3rem;
        color: #333;
    }
/*
.
{
    padding: 12px;
    text-align: left;
}
*/
.price {
    margin-bottom: 2px;
    font-size: 0.9rem;
}

    .price .old {
        text-decoration: line-through;
        color: #888;
        margin-left: 6px;
        font-size: 0.9rem;
    }

    .price .new {
        color: black;
        font-weight: 700;
        font-size: 0.9rem;
    }

.title {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
    display: -webkit-box;
    /* limit to 2 lines */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; /* hide overflow text */
    text-overflow: ellipsis; /* show “…” */
    line-height: 1.2em; /* adjust to your design */
    max-height: calc(1.2em * 2); /* ensures exactly 2 lines of height */
}







.cart-btn-area {
    background-color: white;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border-radius: 50%;
}
.btn-round {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    transition: none;
    cursor: pointer;
    text-decoration: none;
    text-shadow: none;

}

    .btn-round,
    .btn-round:visited,
    .btn-round:hover,
    .btn-round:active,
    .btn-round:focus {
        color: #333 !important;
        text-decoration: none;
    }




/* Keep qty number inline and centered */
.qty-number {
    width: 32px;
    height: 32px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Align horizontally */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: end;
    background-color: #fff;
    border-radius:20px;

    /* No animation by default */
}

    .qty-control.animate-entry {
        animation: fadeSlideIn 0.25s ease-out forwards;
    }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.qty-control.animate-exit {
    animation: fadeSlideOut 0.2s ease-in forwards;
}

@keyframes fadeSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(10px);
    }
}

.btn-qty-badge {
    width: 32px;
    height: 32px;
    background-color: #eee;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-radius: 50%;
}




.image-wrapper {
    width: 100%;
    height: 130px;
    position: relative;
}

.skeleton, .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.skeleton {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s infinite;
}


/* Skeleton shimmer loader */


@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

/* Hide image until loaded */
.product-img {
    display: none;
    width: 100%;
    height: 130px;
    object-fit: contain;
}



/* Prevent page overflow */
body {
    overflow-x: hidden;
}









