
:root {
    --primary: #ff5722;
    --secondary: #2196f3;
    --dark: #333;
    --light: #f5f5f5;
    --danger: #f44336;
    --success: #4caf50;
    --warning: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9f9f9;
}

header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--dark);
    color: white;
}

.top-bar .flash-deals {
    animation: flash 1s infinite;
    font-weight: bold;
}

@keyframes flash {
    0% {color: yellow;}
    50% {color: white;}
    100% {color: yellow;}
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.trust-badges {
    display: flex;
    align-items: center;
}

.trust-badge {
    margin-left: 10px;
    font-size: 12px;
    padding: 3px 8px;
    background-color: #e8f5e9;
    color: var(--success);
    border-radius: 4px;
}

nav {
    background-color: var(--primary);
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
}

.main-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    color: white;
    text-decoration: none;
    padding: 15px 15px;
    display: flex;
    align-items: center;
}
.discount-banner {
    position: relative;
    background-color: var(--warning);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    animation: slide 0.5s ease;
}
.close-banner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
nav .active{
    background-color: var(--danger);
}


.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
}
#search-bar {
    width: 300px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

#search-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 16px;
}

#search-button {
    height: fit-content;
    border: none;
    padding: 0 20px;
    font-size: 18px;
    cursor: pointer;
    height: 100%;
}
#fullscreen-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    
    z-index: 9999; /* Ensure it's on top of other content */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    display: none; /* Enable flexbox layout */
    color: white;
    text-align: center;
}

/* Popup content */
#popup-content {
    background-color: var(--dark);
    padding: 30px;
    border-radius: 10px;
    width: 80%; /* Adjust the width as necessary */
    max-width: 600px;
}

/* Close button */
#close-btn {
    background-color: var(--warning);
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
@media (max-width: 888px) {
    .hamburger {
        display: block;
    }

    .main-menu {
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;

        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-in-out;
    }

    .main-menu.show {
        max-height: 500px; /* You can adjust this based on content */
    }

    .user-actions {
        flex-direction: column;
        width: 100%;
        background-color: var(--primary);
       
    }
    header{
        position: sticky;
    }
    .user-actions a {
        padding: 10px 20px;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    #search-bar{
        display: none;
    }
    header{
        position:relative;
    }
}

