/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #f3f4f7, #dfe3ee);
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Title */
.section_tittle h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4b6cb7;
    text-shadow: 2px 2px #182848;
    animation: fadeIn 2s ease-in;
}

.section_tittle h2 span {
    display: block;
    font-size: 1.5rem;
    color: #182848;
}

/* Navigation */
nav div {
    padding: 10px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

nav div:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Product Section */
.best_product_slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
}

.single_product_item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
    padding: 20px;
}

.single_product_item img {
    width: 100%;
    border-radius: 10px;
}

.single_product_item h4 {
    font-size: 1.5rem;
    color: #333;
    margin: 10px 0;
    animation: fadeIn 1.5s ease-in;
}

.single_product_item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Dropdown Button */
.dropbtn {
    background: #4b6cb7;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dropbtn:hover {
    background: #182848;
    transform: scale(1.05);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1;
    bottom: 100%; /* Positioning the dropdown above the button */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background: #182848;
}

/* Footer */
footer {
    background: #182848;
    padding: 20px 0;
    text-align: center;
    color: white;
    animation: fadeInUp 2s ease-in;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section_tittle h2 {
        font-size: 2rem;
    }

    .best_product_slider {
        flex-direction: column;
        align-items: center;
    }

    .single_product_item {
        min-width: 90%;
        margin-bottom: 20px;
    }

    .dropbtn {
        font-size: 0.9rem;
    }
}
