body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 1s ease-out; /* Add header fade-in animation */
}

header .logo {
    font-size: 24px;
    text-decoration: none;
    color: white;
}

header .navbar a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

header .icons a {
    color: white;
    margin: 0 15px;
    font-size: 20px;
}

.favorites {
    padding: 40px 20px;
    text-align: center;
    animation: slideUp 1s ease-out; /* Animation to slide the favorites section */
}

.favorites h1 {
    margin-top: 50px;
    font-size: 40px;
    margin-bottom: 20px;
}

.favorites h1 span {
    color: #ff6347;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    animation: fadeInUp 1.5s ease-out; /* Animation to fade-in the box container */
}

.box {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    opacity: 0; /* Initially hide the box for fade-in effect */
    animation: fadeInBox 0.5s ease-out forwards; /* Add fade-in animation to the boxes */
}

.box:hover {
    transform: translateY(-10px);
}

.image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.content {
    margin-top: 15px;
}



.content h3 {
    font-size: 20px;
    color: #333;
}

.content .price {
    font-size: 18px;
    color: #060201;
    margin: 10px 0;
}

.stars i {
    color: #ff6347;
}

.btn {
    color: #4d47ff;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

 .btn:hover {
    color: #782203;
}

/* Keyframe Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBox {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    header .navbar {
        display: none;
    }

    header .icons {
        display: flex;
    }

    .favorites h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .favorites h1 {
        font-size: 24px;
    }

    .box-container {
        grid-template-columns: 1fr;
    }
}
