/* ========== Global Mobile Reset ========== */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 15px;
  }

  /* ====== Navigation Bar ====== */
  nav {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }

  nav ul li {
    margin: 10px 0;
  }

  /* ====== Slider / Hero Section ====== */
  .slider,
  .slide img {
    width: 100%;
    height: auto;
  }

  .slide-text {
    position: static;
    padding: 20px 0;
    text-align: center;
  }

  /* ====== Product Cards ====== */
  .product-grid,
  .category-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .product-card {
    width: 100%;
    text-align: center;
  }

  .product-card img {
    width: 90%;
    height: auto;
  }

  /* ====== Product Page ====== */
  .product-page {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .product-images {
    width: 100%;
    margin-bottom: 20px;
  }

  .product-description {
    width: 100%;
    text-align: center;
  }

  /* ====== Cart & Checkout ====== */
  .cart-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
  }

  .cart-item img {
    width: 80%;
    margin-bottom: 10px;
  }

  .btn,
  .btn-checkout,
  .add-to-cart-btn {
    width: 90%;
    margin: 10px auto;
    font-size: 14px;
  }

  /* ====== Forms (Contact, Checkout) ====== */
  form {
    width: 100%;
  }

  input,
  textarea,
  select {
    width: 100%;
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* ====== Featured Categories Section ====== */
  .featured-categories {
    padding: 20px;
  }

  .featured-categories h2 {
    font-size: 20px;
  }

  .category-grid a h4 {
    font-size: 16px;
  }

  /* ====== Footer ====== */
  footer {
    text-align: center;
    font-size: 14px;
    padding: 20px;
  }
}
/* Base styles */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-top: 1px solid #ddd;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 10px 20px;
  }

  .nav-links li a {
    color: black;
    text-decoration: none;
    display: block;
  }

  .dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #f8f8f8;
    padding-left: 20px;
  }

  .dropdown.show .dropdown-menu {
    display: flex;
  }
}

/* ================= MOBILE NAVIGATION FIX ================= */
@media (max-width: 768px) {
  .main-navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    position: relative;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 26px;
    cursor: pointer;
    z-index: 1001;
    color: black;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 65px;
    left: 0;
    padding: 15px 20px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    width: 100%;
  }

  .nav-links li a {
    width: 100%;
    display: block;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background-color: #f5f5f5;
    padding-left: 15px;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.show .dropdown-menu {
    display: block;
  }
}

