/*
=========================================
================ IMPORTS ================ 
=========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Exo+2:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- css reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:lang(ar) {
    font-family: 'Cairo', sans-serif;
}

/* --- nav --- */
.navbar {
    height: 105px;
    font-family: 'Poppins', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.navbar a {
    color: #000;
    text-decoration: none;
}

.logo img{
    width: 190px;
    height: auto;
    margin-top: 7px;
}

.logo:hover {
    cursor: pointer;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-link {
    font-weight: 500;
    border: 2px solid transparent;
    background-color: transparent;
    border-radius: 25px;
    padding: 8px 25px;
    transition: 0.2s ease;
}

.nav-link:hover {
    background-color: black;
    color: white;
}

.nav-link.active {
    background-color: black;
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon a {
    position: relative;
    display: inline-block;
}

.cart-icon i {
    font-size: 2rem;
    font-weight: 400;
}

.cart-badge {
    position: absolute;
    top: 20px;
    right: 18px;

    width: 18px;
    height: 18px;

    background: #ff0000;
    color: white;

    font-size: 10px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
}

/* --- flash bar --- */
.flash-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.flash-message {
    font-family: 'Poppins', sans-serif;
    background: #111;
    color: #fff;
    min-width: 250px;
    text-align: center;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;

    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.3s ease forwards;
}

.flash-message.success {
    border-left: 3px solid #4CAF50;
}

.flash-message.error {
    border-left: 3px solid #ff4d4d;
}

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

/* --- main btn --- */
.btn {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    background-color: transparent;
    border-radius: 25px;
    padding: 8px 20px;
    transition: 0.2s ease;
}

.btn:hover {
    background-color: white;
    color: black;
}

/* --- footer --- */
.footer {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 1rem;
    background-image: url("/static/assets/background_image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0 10px;
    color: white;
}

.footer-btn {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    background-color: transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-tagline {
    width: 330px;
    height: auto;
    max-width: 90vw;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.footer-contact-text {
    font-size: 0.85rem;
    margin-top: 1rem;
}

.footer-contact-text a {
    color: white;
    text-decoration: none;
}

.footer-contact-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 1rem 0 1.2rem;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 105px;
        left: 0;
        width: 100%;
        height: calc(100vh - 105px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
    }
}
