body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    text-align: center;
    margin: 0;
    padding: 0;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.top-sell {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

h2 {
    color: #333;
}

.Top_products {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.Top_product {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 220px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    opacity: 0;
    transform: scale(0.9);
}

.Top_product img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.Top_product:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.Top_product img:hover {
    transform: rotate(3deg);
}

.Top_category {
    font-size: 14px;
    color: gray;
}

.Top_price {
    font-size: 18px;
    color: #27ae60;
    font-weight: bold;
}
.Top_btn-container{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.Top_add-to-cart {
    background: #2729ae;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 40%;
    transition: background 0.3s, transform 0.2s;
}
.Top_view-cart {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 40%;
    transition: background 0.3s, transform 0.2s;
}

.Top_add-to-cart:hover {
    background: #2729ae;
    transform: scale(1.1);
}
.Top_view-cart:hover {
    background: #27ae60;
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
