/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f9f9f9; /* Light background for better contrast */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #333;
    color: #fff;
    position: relative;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;  /* Ensure text color matches other links */
    transition: color 0.3s;
    text-decoration: none; /* Remove underline from the logo */
}

.navbar .logo a {
    text-decoration: none;  /* Remove underline from the anchor tag */
    color: inherit;  /* Ensure it inherits the logo's text color */
}

.navbar .logo:hover {
    color: #f4a261;  /* Change color on hover just like the links */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;  /* Ensure no underline on other links */
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f4a261;
}


/* Login Button and Dropdown */
.login {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.login:hover {
    color: #f4a261;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute; /* Positioned relative to navbar */
    top: 100%; /* Align directly below the login button */
    right: 0; /* Align to the right edge of the navbar */
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 10;
    min-width: 200px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f4a261;
    color: #fff;
}

/* Cart Button */
.cart {
    display: flex;
    align-items: center;
}

.cart button {
    background-color: #f4a261;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart button:hover {
    background-color: #e76f51;
}

/* Hero Section with Slider */
.hero {
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    width: 300%;
    animation: slide 10s infinite;
}

.slide img {
    width: 100%;
    height: auto;
}

@keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* Products Section */
.products {
    padding: 2rem;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.product {
    border: 1px solid #ccc;
    padding: 1rem;
    width: 200px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product button {
    background: #f4a261;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.product button:hover {
    background: #e76f51;
}

/* Footer */
.footer {
    padding: 1rem;
    text-align: center;
    background: #333;
    color: #fff;
    margin-top: 2rem;
}

.footer a {
    color: #f4a261;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer a:hover {
    color: #e76f51;
}
  /* Section Header */
  h2 {
    font-size: 1.5em;
    margin: 20px;
    color: #333;
}

/* Carousel Container */
.carousel-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    margin: 20px auto;
    max-width: 800px;
    position: relative;
}

/* Individual Carousel Item */
.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(100% * 5); /* Adjust to number of items */
}

.carousel-item {
    position: relative;
    flex: 1 0 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display:flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
}

/* Overlay Effect */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-item span {
    position: relative;
    z-index: 2;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}
.header, .content, .footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}
.header {
    background-color: #333;
    color: #fff;
}
.content {
    background-color: #f4f4f4;
}
.footer {
    background-color: #555;
    color: #fff;
}
.slider, .carousel {
    width: 100vw; /* 100% of the viewport width */
    overflow: hidden; /* Ensure no content spills outside */
}

img, video {
    max-width: 100%; /* Scale down large media */
    height: auto;
}
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
/* Categories Section */
.categories {
    margin: 40px 0;
    text-align: center;
}

.categories h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.category-item {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 10px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}
/* Basic Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
  }

  /* Advertisement Popup Styling */
  .advertisement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .advertisement-popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
  }

  .close-btn:hover {
    background: #ff0000;
  }
