* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  body {
    font-size: 16px;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #222;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
  }

  nav .logo {
    font-size: 26px;
    font-weight: bold;
  }

  #search-bar {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    width: 220px;
    transition: 0.3s;
    font-size: 15px;
  }

  #search-bar:focus {
    outline: none;
    width: 280px;
  }

  .nav-links {
    list-style: none;
    display: flex;
    transition: max-height 0.5s ease;
    overflow: hidden;
  }

  .nav-links li {
    margin: 0 18px;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: #FFD700;
  }

  .toggle-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    margin-left: 15px;
  }

  #cart-icon {
    font-size: 24px;
    cursor: pointer;
    position: relative;
    margin-left: 20px;
  }

  #cart-count {
    background: red;
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 14px;
  }

  #dark-mode-toggle {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 15px;
  }

  #dark-mode-toggle:hover {
    background-color: #555;
  }

  /* Responsive Styles */
  @media (max-width: 992px) {
    #search-bar {
      width: 150px;
    }

    .nav-links {
      flex-direction: column;
      width: 100%;
      max-height: 0;
    }

    .nav-links.active {
      max-height: 500px;
    }

    .nav-links li {
      margin: 15px 0;
    }

    .toggle-btn {
      display: block;
    }
  }

  @media (max-width: 768px) {
    #search-bar {
      width: 120px;
    }
  }

  @media (min-width: 1200px) {
    .nav-links {
      flex-direction: row;
      max-height: none !important;
    }
    .toggle-btn {
      display: none;
    }
  }

  /* Keep your previous CSS below this (Hero, Categories, Footer, etc.) */
  .hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(45deg, #4A90E2, #145DA0, #FF5733, #FFD700);
    background-size: 300% 300%;
    animation: gradientMove 8s infinite alternate;
    color: white;
  }

  @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }

  #typing-text { 
      
font-size: 40px;
font-weight: 700;
margin-bottom: 20px;
letter-spacing: 2px; /* Add spacing between letters */
}

   

  .hero p { font-size: 18px; margin-bottom: 30px; }

  .shop-now {
    padding: 14px 30px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 30px;
    transition: background 0.3s;
  }

  .shop-now:hover { background: darkred; }

  .categories {
    text-align: center;
    padding: 60px 20px;
  }

  .categories h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .category-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    width: 320px;
    text-align: center;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .card img { width: 100%; border-radius: 10px; margin-bottom: 15px; }

  .card h3 { font-size: 22px; margin: 15px 0; }

  .card:hover { transform: scale(1.05); box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); }

  .explore-btn {
    padding: 12px 25px;
    background: #1885eb;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .explore-btn:hover { background: #0c3e72; }

  footer {
    text-align: center;
    padding: 25px;
    background: #222;
    color: white;
    font-size: 15px;
  }

  .floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF5733;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 22px;
    border-radius: 50px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: 0.3s;
  }

  .floating-btn:hover { background: darkred; }

  html { scroll-behavior: smooth; }

  body.dark-mode { background: #121212; color: white; }