/* ==============================
   BEST SELLERS / PRODUCT CARD
============================== */
.heading{
    text-align: center;
}
.paragraph{
    text-align: center;
}

.best-sellers .product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    overflow: hidden;
    position: relative;
}

.best-sellers .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

/* Product Image wrapper */
.best-sellers .product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Default + hover image swap */
.best-sellers .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.best-sellers .product-image .hover-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
}

.best-sellers .product-card:hover .hover-image {
    opacity: 1;
}

.best-sellers .product-card:hover .default-image {
    opacity: 0;
}

/* Product tags (New, Sale, Sold Out) */
.best-sellers .product-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.best-sellers .badge {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 5px;
    font-weight: 500;
}

.badge.bg-accent {
    background: #0d6efd !important;
    color: #fff;
}

.badge.bg-sale {
    background: #ff3d3d !important;
    color: #fff;
}

.badge.bg-sold-out {
    background: #343a40 !important;
    color: #fff;
}

/* Quick action buttons */
.product-actions {
    position: absolute;
    top: 12px;
    right: -45px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    transition: 0.3s ease;
}

.product-card:hover .product-actions {
    right: 12px;
}

.product-actions button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    cursor: pointer;
}

.product-actions button:hover {
    background: #0d6efd;
    color: #fff;
}

/* PRODUCT INFO SECTION */
.product-info {
    padding: 18px;
    text-align: center;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    height: 2.4rem;
    overflow: hidden;
}

.product-title a {
    color: #222;
    text-decoration: none;
    transition: 0.3s;
}

.product-title a:hover {
    color: #0d6efd;
}

/* Price area */
.product-price {
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.product-price .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #0d6efd;
}

.product-price .original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #777;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-rating i {
    color: #fbc02d;
    font-size: 15px;
    margin-right: 2px;
}

.rating-count {
    margin-left: 4px;
    font-size: 13px;
    color: #666;
}

/* Add to cart button */
.btn-add-to-cart {
    width: 100%;
    background: #0d6efd;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    border: none;
    transition: 0.3s ease;
}

.btn-add-to-cart i {
    font-size: 1rem;
}

.btn-add-to-cart:hover {
    background: #0b5ed7;
}

/* Disabled add to cart */
.btn-disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 767px) {
    .best-sellers .product-card {
        max-width: 320px;
        margin: 0 auto;
    }
}
