* {
    margin: 0;
    padding: 0;
}

header {
    margin: 0px;
    height: 100%;
    position: relative;
}

.categories {
    background-color: black;
    margin: 5px 0;
    border-radius: 100px;
}

.sub-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display:flex;
    justify-content:space-evenly;
    background-color: lightgray;
}
.categories {
    position: relative;
    display: flex;

}

.categories-List
 {
    text-decoration: none;
    font-weight: bolder;
    font-size: 20px;
    text-transform:capitalize;
    padding: 5px;
    display:none;
    color: black;
}

.list{
    display:none; /* Hide submenu by default */
    position: absolute;
    background-color: white; /* Background color for dropdown */
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
    z-index: 1000; /* Ensure it appears above other elements */
}

#Bar {

    width: 100%;
    list-style: none;
    display: flex;
    background-color: lightgray;
    justify-content: center;
    color: brown;
    cursor: pointer;
    font-weight: bold;
    font-size: 35px;
    text-transform: capitalize;


}

.nav {
    display: flex;
    justify-content: flex-start;
}

.nav {
    position: absolute;
    display: flexbox;
    top: 8px;
    /* Adjusted for better visibility */
    left: 10px;
    /* Adjusted for better visibility */
    width: 40px;
    height: 35px;

}

.cart-item-container {
    display:flex;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-image {
    width: 100px;
    height: 100%;
    object-fit:cover;
    margin-right: 10px;
}

#cart-items li {
    list-style: none;
    margin-bottom: 10px;
}

.cart-modal {
    display: none;
    position: absolute;
    top: 250%;
    left: 87%;
    transform: translate(-50%, -50%);
    background-color:antiquewhite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
}
.cart-modal .cart-content {
    text-align: left;
}
.cart-modal ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.cart-modal button {
    margin-top: 20px;
}

.cart {
    width: 30px;
    nav-left: 10px;
    display: flex;
    justify-content: flex-end;
}

.cart {
    position: absolute;
    display: flexbox;
    top: 75px;
    /* Adjusted for better visibility */
    right: 15px;
    /* Adjusted for better visibility */
    width: 40px;
    height: 35px;

}

.add-to-cart-btn:hover {
    background-color: #555;
}

.add-to-cart-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 20px 87px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#cart-count {
    background-color: red;
    color: white;
    font-size: 13px;
    border-radius: 50%;
    padding: 2px 6px;
    position: absolute;
    top: -10px;
    right: -10px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display:flex;
    justify-content:space-evenly;
    background-color: lightgray;
  
}


.menu-item {
    position: relative;
    display: flex;

}

.menu-item > a {
    text-decoration: none;
    font-weight: bolder;
    font-size: 20px;
    text-transform:capitalize;
    padding: 5px;
    display:flex;
    color: black;
}

.submenu {
    display:none; /* Hide submenu by default */
    position: absolute;
    background-color: white; /* Background color for dropdown */
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
    z-index: 1000; /* Ensure it appears above other elements */
}

.menu-item:hover .submenu {
    display: block; /* Show submenu on hover */
}

.submenu li {
    display: block; /* Make each item a block */
}

.submenu li a {
    padding: 10px;
    text-decoration: none;
    display: block; /* Block display for links */
    color: black; /* Text color */
}

.submenu li a:hover {
    background-color: #f0f0f0; /* Change background on hover */
}


.click {
    display: block;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
}

/* Add styles directly here if needed */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: lightgray;

}

.search-box {
    margin: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 500px;
}

.search-button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.search-button:hover {
    background-color: #0056b3;
}

main {
    height: 100%;
    width: 100%;
    

}

/* Login link styling */
.login-container {
    margin-left: auto;
    /* Pushes login link to the far right */
}

.login-link {
    position: absolute;
    display: flexbox;
    cursor: pointer;
    top: 5px;
    /* Adjusted for better visibility */
    right: 5px;
    /* Adjusted for better visibility */
    width: 41px;
    height: 35px;

}

/* -------main-------------------- */


/* Slider container */
.slider-container {
    width: 100%;
    height: 100%;
    /* Set a height for the slider */
    overflow: hidden;

}

/* Slides */
.slide {
    display: none;
    /* Hide all slides initially */
    width: 100%;
    height: 100%;
}



/* Slide images */
.slide img {
    width: 100%;
    height: 500px;
    ;
    object-fit: cover;
    display: block;
}

/* Navigation buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Background for visibility */
    border: none;
    border-radius: 50%;
    user-select: none;
    transform: translateY(150%);
    transition: background-color 0.3s ease;
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

/* Hover effects for buttons */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Slider navigation dots */
.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

/* Slider navigation dots */
.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot {
    background-color: black;
}

.block {
    padding: 20px;
}

#container {
    height: 100%;
    width: 100%;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.products {
    position: relative;
    border: 1px solid cadetblue;
    left: 15px;
    margin: 16px;
    height: 250px;
    width: 250px;
    border-radius: 20px;

}

.price {
    margin: -31px 9px -4px 194px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    ;
    text-align: justify;
}

.name {
    margin: 0px 123px -23px 32px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    ;
    text-align: center;
    text-transform: capitalize;

}



/* -----------footer------------ */

footer {
    background-color: cadetblue;
    height: 100%;
    width: 100%;

}

.shop {
    font-size: 30px;
    font-weight: bold;
    text-transform: capitalize;
    color: white;

}

.play {
    margin: 4px;
    width: 200px;
    height: 80px;
    display: flex;
    justify-content: flex-start;
}

.App {
    margin: 4px;
    width: 200px;
    height: 80px;
    display: flex;
    justify-content: flex-start;
}


#contact-info {
    margin-top: 150px;
    text-transform: capitalize;
    color: #000;

}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column; /* Stack items on small screens */
    }
    
    .products {
        width: 100%; /* Make products responsive */
        margin: 10px 0; /* Adjust margins */
    }

    .search-box {
        width: 100%; /* Make search box responsive */
    }
}
