/* public/css/styles.css */
body {
        overflow-x: hidden;
}

.product-img {
        width: 100%;
        height: 100%;
        max-width: 500px;
        max-height: 500px;
        object-fit: cover;
        object-position: center;
        cursor: pointer;
        transition: transform 0.3s ease;
}

.product-img:hover {
        transform: scale(1.05);
}

.click-able {
        cursor: pointer;
}

.ratting-star {
        cursor: pointer;
        font-size: 0.8rem;
}

/* Make dropdown open on hover */
.user-profile.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
}

/* Ensure dropdown is absolutely positioned */
.navbar .dropdown-menu {
        position: absolute !important;
        top: 100%;
        left: auto;
        right: 0;
        z-index: 1050;
}

/* Prevent cutoff at small screens */
.dropdown-menu {
        max-width: 90vw;
        word-wrap: break-word;
}

.fade-in {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease-out forwards;
}

.rating-input {
        direction: rtl;
        display: inline-flex;
        gap: 6px;
}

.rating-input input {
        display: none;
}

.rating-input label {
        font-size: 32px;
        color: #ddd;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover~label {
        color: #ffc107;
        transform: scale(1.1);
}

.rating-input input:checked~label {
        color: #ffc107;
}

.pop-up-footer {
        position: absolute;
        bottom: -40px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        padding: 10px;
        text-align: center;
        cursor: pointer;
        transition: 0.3s ease-in-out bottom;
}

.product-card:hover .pop-up-footer {
        bottom: 0;
}

@keyframes fadeInUp {
        to {
                opacity: 1;
                transform: translateY(0);
        }
}