/* Reusable Product Card Component */

.product-card {
    flex: 0 0 250px;
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card .product-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-card .discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #288CCB, #49A644);
    color: white;
    padding: 4px 10px;
    border-radius: 4px 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-card .product-slider {
    position: relative;
}

.product-card .slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card .slider-image.active {
    opacity: 1;
    z-index: 5;
}

.product-card .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 30px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.product-card .slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D0D5DD;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.product-card .slider-dots .dot.active {
    background-color: #FFCB3B;
}

.product-card .product-info {
    padding: 16px;
    position: relative;
    border-top: 1px solid #D0D5DD;
}

.product-card .product-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1D2939;
    margin-bottom: 5px;
    line-height: 1.4;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card .stars {
    display: flex;
    gap: 2px;
}

.product-card .star {
    font-size: 2vh;
    color: #FFCB3B;
}

.product-card .star.empty {
    color: #E4E7EC;
}

.product-card .review-count {
    font-size: 12px;
    color: #475467;
}

.product-card .product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 5px;
}

.product-card .original-price {
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    text-decoration: line-through;
}

.product-card .sale-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: #F23434;
}

.product-card .sale-price .currency {
    font-size: 20px;
    font-weight: 500;
}

.product-card .sale-price .price-amount {
    font-size: 25px;
    font-weight: 700;
}

.product-card .add-to-cart {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    border: 1px solid #E4E7EC;
    background-color: #E4E7EC;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-card .add-to-cart:hover {
    background-color: rgb(103, 105, 107);
}

.product-card .add-to-cart img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.product-card .add-to-cart:hover img {
    filter: brightness(0) invert(1);
}
