

/* Automatically hide on medium screens */
/*@media (max-width: 992px) {
    .floating-toggle-btn {
        display: flex !important;
    }
}*/


top-bar {
    background: #f8f9fa;
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-dropdown {
    min-width: 320px;
    max-width: 420px;
}

.cart-item {
    display: flex;
    gap: .75rem;
    align-items: center;
}

    .cart-item img {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
    }

    .cart-item .item-title {
        font-size: .95rem;
        margin-bottom: 0;
    }

    .cart-item small {
        color: #6c757d;
    }



/* Sidebar default (visible on lg, hidden on sm) */
#sidebar-wrapper {
    width: 250px;
    transition: margin 0.3s ease;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

/* Right sidebar */
#right-sidebar {
    width: 250px;
    position: fixed;
    top: 56px; /* height of navbar */
    right: -250px;
    height: 100%;
    transition: right 0.3s ease;
    z-index: 1040;
}

    #right-sidebar.show {
        right: 0;
    }

/* On small screens auto-hide sidebar */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: -250px;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

/* Make topbar always full width */
#page-content-wrapper {
    width: 100%;
}


/* Card hover effect */
.product-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

/* Product image wrapper */
.product-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden; /* ensures hover icons stay inside */
    border-radius: 8px;
}

    /* Product image */
    .product-image-wrapper img.product-img {
        width: 100%;
        height: auto; /* maintain aspect ratio */
        display: block;
        object-fit: cover; /* crop if needed, maintain ratio */
        border-radius: inherit;
        transition: transform 0.2s ease;
    }

/* Hover icons */
.hover-icons {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-image-wrapper:hover .hover-icons {
    opacity: 1;
    transform: translateY(0);
}

/* New badge */
.product-image-wrapper .mud-badge {
    z-index: 2; /* ensure it’s above the image */
    top: 10px;
    left: 10px;
    position: absolute;
}
.product-image-wrapper img.product-img {
    max-height: 250px; /* adjust as needed */
    object-fit: contain; /* prevent excessive cropping */
}

/* Optional: smaller image height for very small screens */
@media (max-width: 576px) {
    .product-image-wrapper img.product-img {
        max-height: 250px; /* adjust as needed */
        object-fit: contain; /* prevent excessive cropping */
    }
}



/*Price ribbon*/


.price-ribbon {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #2196f3, #1565c0); /* blue gradient */
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

    .price-ribbon::before {
        content: "";
        position: absolute;
        top: 0;
        left: -10px;
        width: 0;
        height: 0;
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        border-right: 10px solid #0d47a1; /* darker edge for depth */
    }

.price-text {
    color: white !important;
    font-weight: bold;
}

