﻿@import url('https://fonts.googleapis.com/css2?family=poppins:wght@400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}
nav {
    display: flex;
    width: 100%;
    background: #0a5071;
    position: relative;
    justify-content: space-between;
    text-align: center;
    padding: 5px 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
   
    z-index: 1000; /* Ensures it stays above other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.card-scroll {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #28a745 #f1f1f1;
}

.card-scroll::-webkit-scrollbar {
    height: 8px;
}

.card-scroll::-webkit-scrollbar-thumb {
    background-color: #28a745;
    border-radius: 4px;
}

.card-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fixed-bottom-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    border-top: 1px solid #ccc;
}

.card-item {
    flex: 0 0 120px;
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    text-align: center;
    padding: 2px;
    border: none;
}

    .card-item img {
        width: 30px;
        height: 30px;
        margin-bottom: 0px;
    }

    .card-item label {
        display: block;
        font-size: 0.85rem;
        position: relative;
        top: -2px;
        margin: 0;
    }

nav .icon {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    margin-right: 20px;
}
    nav ol {
        display: flex;
        list-style: none;
        margin: auto 0;
    }
        nav ol li {
            margin: 0 2px;
        }

            nav ol li a {
                color: #fff;
                font-size: 18px;
                text-decoration: none;
                text-transform: capitalize;
                letter-spacing: 1px;
                padding: 5px 10px;
            }
            nav ol li:hover a{
                background: #fff;
                color: #0a5071;
            }
    nav .search_box {
        display: flex;
        margin: auto 0;
        height: 35px;
        line-height: 35px;
    }

nav form .search_box input {
    border: none;
    outline: none;
    background: #fff;
    height: 100%;
    padding: 0 10px;
    font-size: 20px;
    width: 350px;
}


nav form .search_box span {
    color: #0a5071;
    font-size: 20px;
    background: #fff;
    height: 100%;
    padding: 8px;
    position: relative;
    cursor: pointer;
    z-index: 1;
}
    nav form .search_box span::after {
        height: 100%;
        width: 0%;
        content: '';
        background: #ff003c;
        position: absolute;
        top: 0;
        right: 0;
        z-index: -1;
        transition: 0.3s;
    }

    nav form .search_box span:hover {
        color: #fff;
    }
                nav .search_box span:hover::after {
                    width: 100%;
                }

    nav .bar {
        position: relative;
        margin: auto;
        display: none;
    }

        nav .bar span {
            position: absolute;
            color: #fff;
            font-size: 35px;
        }

input[type="checkbox"] {
    -webkit-appearance: none;
    display: none;
}
@media screen and (max-width:1250px) {
    nav {
        display: block;
        padding: 0;
    }

        nav .icon {
            display: inline-block;
            padding: 1px 5px;
            text-align: center;
            margin: auto;
            font-size:25px;
        }
        nav form {
            padding:0;
            width: 90%!important;
        }
        nav form .search_box {
            width: 90%;
            display: inline-flex;
            justify-content: center;
            margin-bottom: 15px
        }

            nav form .search_box input {
                width: 90%
            }

        nav ol {
            display: flex;
            flex-direction: column;
            height: 0;
            visibility: hidden;
            background: #fff;
        }

            nav ol li {
                text-align: center;
                transition: 0.3s 0.1s all;
                opacity: 0;
            }

                nav ol li a {
                    color: #000000;
                    font-size: 20px;
                    padding: 5px;
                    display: block;
                }

        nav .bar {
            display: block;
            position: absolute;
            top: 10px;
            right: 40px;
            cursor: pointer;
           
        }

        nav .Cart {
            display: block;
            position: absolute;
            top: 10px;
            right: 80px;
            cursor: pointer;
            font-size: 25px;
        }
            nav .bar #times {
                display: none;
                font-size: 25px;
            }

    #check:checked ~ nav .bar #times {
        display: block;
        font-size: 25px;
    }

    #check:checked ~ nav .bar #bars {
        display: none;
        font-size: 25px;
    }

    #check:checked ~ nav ol {
        visibility: visible;
        height: 300px;
        background:#808080;
        
    }

        #check:checked ~ nav ol li:nth-child(1),
        #check:checked ~ nav ol li:nth-child(2),
        #check:checked ~ nav ol li:nth-child(3),
        #check:checked ~ nav ol li:nth-child(4),
        #check:checked ~ nav ol li:nth-child(5) {
            transform: translateX(0);
            opacity: 1;
        }
}
    