* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #fff;
  
}

/* ====== Header ====== */
.header {
  background: url('Images/background.webp') center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 40px;
  position: relative;
  color: #fff;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 160px;
  height: 50px;
}

.brand {
  font-size: 28px;
  font-weight: 700;
  color: #007bff;
}

/* ===== Animated Zoom Text ===== */
.animated-banner {
  position: relative;
  width: 400px;
  text-align: center;
  overflow: hidden;
}

.zoom-text {
  font-size: 18px;
  font-weight: 600;
  color: #007bff;
  display: inline-block;
  animation: zoomInOut 2.5s ease-in-out infinite;
  white-space: nowrap;
}

.zoom-text i {
  margin-right: 8px;
  color: #007bff;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

/* ===== Right Icons ===== */
.header-icons {
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
}

.icon-link {
  text-decoration: none;
  color:#333;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.icon-link:hover {
  color: #33b2ff;
}

.icon-link i {
  font-size: 20px;
  color: #33b2ff;
}

.count-badge {
  background: #33b2ff;
  color: #fff;
  font-size: 11px;
  border-radius: 50%;
  padding: 3px 6px;
  margin-left: 4px;
}

.icon-wrapper {
  position: relative;
}

/* ===== Cart Dropdown ===== */
.dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 10px;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.icon-wrapper::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -10px;
  width: calc(100% + 20px);
  height: 25px;
  background: transparent;
  z-index: 5;
}

/* Dropdown items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  justify-content: space-between;
}

.dropdown-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.dropdown-info {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
}

.dropdown-info .name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-info .price {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.remove-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 14px;
  flex: 0 0 auto;
  margin-left: 8px;
  opacity: 0.95;
}

.dropdown-item:hover .remove-btn {
  opacity: 1;
}

.dark-mode-toggle {
  position: absolute;
  right:400px;
  top: 25px;
  cursor: pointer;
}

.dark-mode-toggle i {
  font-size: 22px;
  color: #33b2ff;
  transition: transform 0.3s ease, color 0.3s;
}

.dark-mode-toggle i:hover {
  transform: rotate(20deg);
  color: #ffce00;
}


/* ===== DARK MODE ===== */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .header {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .icon-link {
  color: #f1f1f1;
}

body.dark-mode .icon-link i {
  color: #66b3ff;
}

body.dark-mode .zoom-text,
body.dark-mode .zoom-text i,
body.dark-mode .brand {
  color: #66b3ff;
}

body.dark-mode .dropdown {
  background: #1f1f1f;
  border-color: #333;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown-info .name {
  color: #e5e5e5;
}

body.dark-mode .dropdown-info .price {
  color: #aaa;
}

body.dark-mode .remove-btn {
  color: #ff6b6b;
}

body.dark-mode .count-badge {
  background: #66b3ff;
  color: #fff;
}

body.dark-mode .dark-mode-toggle i {
  color: #08c8fd;
}


@media (max-width: 420px) {
  .dark-mode-toggle {
    position: absolute;
    top: 60px;
    right: 25px;
    z-index: 9999;
  }

  .dark-mode-toggle i {
    font-size: 20px;
  }
}

/* ✅ 2. Medium Devices (421px–600px) */
@media (min-width: 421px) and (max-width: 600px) {
  .dark-mode-toggle {
    position: absolute;
    top: 12px;       /* slightly higher */
    right: 100px;     /* more centered for medium phones */
    z-index: 999;
  }

  .dark-mode-toggle i {
    font-size: 21px;
  }
}

/* ✅ 3. Tablets (601px–768px) */
@media (min-width: 601px) and (max-width: 768px) {
  .dark-mode-toggle {
    position: absolute;
    top: 20px;       /* closer to header */
    right: 120px;    /* pushed a bit left */
    z-index: 999;
  }

  .dark-mode-toggle i {
    font-size: 22px;
  }
}



/* ==========================
   📱 Mobile Responsive Styles (No Toggle)
   ========================== */
@media (max-width: 768px) {
  .header {
    padding: 10px 20px;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }


  /* 🔹 Logo adjustments */
  .logo img {
    width: 160px;
    height: auto;
  }

  /* 🔹 Animated banner (zoom text smaller and centered) */
  .animated-banner {
    display: block;
    width: 100%;
    text-align: center;
  }

  .zoom-text {
    font-size: 8px;
    font-weight: 600;
    color: #33b2ff;
    animation: zoomInOut 2.5s ease-in-out infinite;
    white-space: nowrap;
  }

  .zoom-text i {
    font-size: 15px;
    margin-right: 5px;
  }

  /* 🔹 Right side icons */
  .header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .icon-link span {
    display: none; /* hide text under icons */
  }

  .icon-link i {
    font-size: 18px;
  }

  .count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 10px;
    padding: 2px 5px;
  }

  .icon-wrapper {
    position: relative;
  }

  /* 🔹 Dropdown repositioning */
  .dropdown {
    top: 40px;
    right: 0;
    width: 220px;
  }
}

/* Extra small devices (under 480px) */
@media (max-width: 480px) {
  .logo img {
    width: 140px;
  }

  .zoom-text {
    font-size: 12px;
    animation: none;
  }

  .icon-link i {
    font-size: 16px;
  }

  .header {
    padding: 8px 15px;
  }
}



/* ===== Navbar ===== */
.navbar {
      background: #002b5c;
      height: 55px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 1000;
    }

    .nav-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      list-style: none;
      padding: 0 40px;
      margin: 0;
      width: 100%;
      max-width: 1200px;
      height: 55px;
      font-family: 'Poppins', sans-serif;
      transition: all 0.3s ease;
    }

    .nav-container li {
      color: #fff;
      font-size: 15px;
      font-weight: 500;
      display: flex;
      align-items: center;
      position: relative;
    }

    .nav-container li a {
      color: #fff;
      text-decoration: none;
      padding: 0 8px;
      transition: 0.3s;
    }

    .nav-container li a:hover {
      color: #33b2ff;
    }

    /* 📞 Contact Info */
    .contact-info {
      font-weight: 600;
      background: linear-gradient(90deg, #33b2ff, #33b2ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: 50px;
      white-space: nowrap;
    }

    .contact-info i {
      color: #33b2ff;
      font-size: 16px;
    }

    .nav-container li.right {
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .nav-container li.right i {
      color: #33b2ff;
    }

    /* ===== Home Dropdown ===== */
    .home-dropdown .home-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: #1a90d8;
      list-style: none;
      margin: 0;
      min-width: 83px;
      z-index: 999;
    }

    .home-dropdown .home-dropdown-menu li a {
      display: block;
      color: #fff;
      padding: 8px 15px;
      font-weight: 500;
    }

    .home-dropdown .home-dropdown-menu li a:hover {
      background: #33b2ff;
    }

    .home-dropdown:hover .home-dropdown-menu {
      display: block;
    }

    .home-dropdown .arrow {
      margin-left: 5px;
      cursor: pointer;
      font-size: 18px;
      color: #33b2ff;
    }

    /* ===== Hamburger ===== */
    .menu-toggle {
      display: none;
      position: absolute;
      left: 20px;
      color: #33b2ff;
      font-size: 26px;
      cursor: pointer;
      z-index: 1001;
    }

    /* ============================
       📱 Mobile Responsive Design
       ============================ */
    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }

      .nav-container {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: #002b5c;
        width: 100%;
        position: absolute;
        top: 55px;
        left: 0;
        padding: 10px 0;
      }

      .nav-container.show {
        display: flex;
      }

      .nav-container li {
        width: 100%;
        padding: 12px 20px;
        background: #002b5c;
        color: white;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }

      .nav-container li a {
        width: 100%;
        display: block;
      }

      /* Home dropdown for mobile */
          .home-dropdown .home-dropdown-menu {
        display: none;
        position: relative;
        background: #004b8d;
        width: 100%;
      margin-top: -48px;
      margin-left: -200px;
      }

      .home-dropdown .home-dropdown-menu li a {
        background-color: #33b2ff;
      }

      .home-dropdown.active .home-dropdown-menu {
        display: block;
      }

      /* Hide phone number duplicate */
      .contact-info {
        display: flex;
        color: white;
        justify-content: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      /* Track My Order should be last */
      .nav-container li.right {
        width: 100%;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }
          /* Move Dark Mode to LEFT on mobile */
.dark-mode-toggle {
  left: 20px;
  right: auto;
  position: absolute;
  z-index: 1002;
}

/* Move Hamburger to RIGHT on mobile */
.menu-toggle {
  right: 20px;
  left: auto;
  position: absolute;
  font-size: 26px;
  display: block;
  z-index: 1003;
}

    }

@media (max-width: 768px) {

  /* Center all nav links */
  .nav-container li {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .nav-container li a {
    width: 100%;
    justify-content: center;
    display: flex;
    text-align: center;
  }

  /* Home dropdown stays centered */
  .home-dropdown {
    width: 100%;
    text-align: center;
    position: relative;
  }

  /* Correct dropdown container */
  .home-dropdown .home-dropdown-menu {
    display: none;                   /* hidden by default */
    position: relative !important;   /* remove desktop absolute */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    background: #33b2ff;
    text-align: center;
  }

  /* Show dropdown on .active */
  .home-dropdown.active .home-dropdown-menu {
    display: block !important;
  }

  /* Dropdown items */
  .home-dropdown .home-dropdown-menu li {
    width: 100%;
    padding: 10px 0;
    justify-content: center;
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .home-dropdown .home-dropdown-menu li:last-child {
    border-bottom: none;
  }

  /* Dropdown link alignment */
  .home-dropdown .home-dropdown-menu li a {
    width: 100%;
    justify-content: center;
    display: flex;
    color: #fff;
  }

  /* Fix arrow spacing */
  .home-dropdown .arrow {
    margin-left: 6px;
  }
}

@media (max-width: 768px) {

  /* CENTER ALL NAV LINKS */
  .nav-container li {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .nav-container li a {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  /* HOME DROPDOWN – CENTER FIX */
  .home-dropdown {
    width: 100%;
    text-align: center;
    position: relative;
  }

  /* DROPDOWN BOX MUST BE FULL WIDTH */
  .home-dropdown .home-dropdown-menu {
    display: none;
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #33b2ff;
    text-align: center;
  }

  /* SHOW DROPDOWN WHEN ACTIVE */
  .home-dropdown.active .home-dropdown-menu {
    display: block !important;
  }

  /* CENTER DROPDOWN ITEMS */
  .home-dropdown .home-dropdown-menu li {
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: center;
  }

  .home-dropdown .home-dropdown-menu li a {
    width: 100%;
    display: flex;
    justify-content: center;
    color: white;
  }

  /* FIX ARROW */
  .home-dropdown .arrow {
    margin-left: 6px;
  }
}

@media (max-width: 768px) {

  /* Center all nav links */
  .nav-container li {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .nav-container li a {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  /* Home dropdown wrapper */
  .home-dropdown {
    width: 100%;
    text-align: center;
    position: relative;
  }

  /* Dropdown menu centered and full width */
  .home-dropdown .home-dropdown-menu {
    display: none;
    position: relative;  
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #33b2ff;
    text-align: center;
  }

  /* Show dropdown ONLY when .active */
  .home-dropdown.active .home-dropdown-menu {
    display: block !important;
  }

  /* Dropdown items centered */
  .home-dropdown .home-dropdown-menu li {
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: center;
  }

  .home-dropdown .home-dropdown-menu li a {
    width: 100%;
    display: flex;
    justify-content: center;
    color: white;
  }

  /* Fix arrow */
  .home-dropdown .arrow {
    margin-left: 6px;
  }
}

/* ===============================
   MOBILE NAV FIX – FULLY CENTERED
=============================== */
@media (max-width: 768px) {

    /* Full width center for ALL nav items */
    #navMenu li,
    #navMenu li a {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* HOME DROPDOWN WRAPPER (must be full width) */
    .home-dropdown {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
    }

    /* CENTER HOME TEXT + ARROW */
    .home-dropdown > a {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 14px 0 !important;
        text-align: center !important;
    }

    /* FIX ARROW */
    .home-dropdown .arrow {
        margin-left: 6px !important;
        font-size: 18px;
    }

    /* DROPDOWN MENU BOX — FULL WIDTH CENTER */
    .home-dropdown .home-dropdown-menu {
        display: none;
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #33b2ff;
        text-align: center !important;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    /* SHOW WHEN ACTIVE */
    .home-dropdown.active .home-dropdown-menu {
        display: block !important;
    }

    /* CENTER EACH DROPDOWN ITEM */
    .home-dropdown .home-dropdown-menu li {
        width: 100% !important;
        padding: 20px 0 !important;
        display: flex !important;
        justify-content: center !important;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .home-dropdown .home-dropdown-menu li:last-child {
        border-bottom: none;
    }

    .home-dropdown .home-dropdown-menu li a {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
        color: #fff !important;
    }
}


@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
}

@media (max-width: 768px) {

    /* FIX HOME BUTTON SHIFT */
    .home-dropdown {
        width: 100% !important;
        padding: 0 0 0 15px !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Ensure the anchor itself is centered */
    .home-dropdown > a {
        display: flex !important;
        width: auto !important;        /* IMPORTANT FIX */
        margin: 0 auto !important;     /* IMPORTANT FIX */
        padding: 12px 0 !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .home-dropdown .arrow {
        margin-left: 6px !important;
    }
}




.about-header {
  background: url('Images/about_back.webp') no-repeat center right/cover;
  background-color: #dff6ff; /* fallback color */
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 100px;
  font-family: 'Poppins', sans-serif;
  color: #003366;
  position: relative;
}

.about-content {
  z-index: 2;
}

.about-header h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-header p {
  font-size: 18px;
  font-weight: 500;
}

.about-header i {
  margin-right: 6px;
}

.about-header span {
  margin: 0 6px;
}

/* Optional overlay to make text readable */
.about-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}


body.dark-mode .about-header {
  background: url('Images/about_back.webp') no-repeat center right/cover;
  background-color: #0d1b2a; /* darker fallback */
  color: #e6f1ff;
}

body.dark-mode .about-header::before {
  background: rgba(0, 0, 0, 0.55); /* dark overlay for readability */
}

body.dark-mode .about-header h1 {
  color: #33b2ff;
}

body.dark-mode .about-header p {
  color: #d0e3ff;
}

/* Responsive */
@media (max-width: 768px) {
  .about-header {
    padding: 0 30px;
    height: 200px;
    text-align: center;
    justify-content: center;
  }

  .about-header h1 {
    font-size: 28px;
  }

  .about-header p {
    font-size: 16px;
  }
}

.shop-container {
  display: flex;
  padding: 30px 50px;
  gap: 30px;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar .filter {
  margin-bottom: 25px;
}

.sidebar h3 {
  font-size: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

#category-list li {
  list-style: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

#category-list li:hover,
#category-list li.active {
  background: #007bff;
  color: white;
}

/* Products */
.products-section {
  flex: 1;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Product card container */
.product-card {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Product image wrapper */
.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.product-image img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

/* Overlay with wishlist icon (hidden by default) */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show overlay on hover */
.product-card:hover .overlay {
  opacity: 1;
}

/* Wishlist icon style */
.wishlist-icon {
  font-size: 26px;
  color: #33b2ff; /* Sky blue */
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Active heart (filled) */
.wishlist-icon.fa-solid {
  color: #33b2ff; /* Filled heart pink/red */
}

/* Hover animation */
.wishlist-icon:hover {
  transform: scale(1.1);
}


.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.product-card h4 {
  font-size: 16px;
  margin: 10px 0;
}

.product-card p {
  font-size: 14px;
  color: #666;
}

.price {
  font-size: 16px;
  color: #007bff;
  font-weight: bold;
}

.add-cart {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.add-cart:hover {
  background: #0056b3;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #007bff;
  background: white;
  color: #007bff;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.pagination button.active,
.pagination button:hover {
  background: #007bff;
  color: white;
}


.rating {
  color: #ffb400;
  margin: 5px 0;
  font-size: 14px;
}


/* 🌙 Dark Mode for Shop Page */
body.dark-mode .shop-container {
  background: #0d1724;
  color: #e2e8f0;
}

/* Sidebar */
body.dark-mode .sidebar {
  background: #1a2637;
  color: #e2e8f0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .sidebar h3 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode #category-list li {
  color: #cfd9e6;
}

body.dark-mode #category-list li:hover,
body.dark-mode #category-list li.active {
  background: #33b2ff;
  color: #fff;
}

/* Products Section */
body.dark-mode .products-section {
  color: #e2e8f0;
}

body.dark-mode .products-header {
  color: #e2e8f0;
}

/* Product Card */
body.dark-mode .product-card {
  background: #1b2a3a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-card h4 {
  color: #f1f5f9;
}

body.dark-mode .product-card p {
  color: #a0aec0;
}

body.dark-mode .price {
  color: #33b2ff;
}

body.dark-mode .wishlist-icon {
  background: #243447;
  color: #33b2ff;
  box-shadow: 0 0 10px rgba(51, 178, 255, 0.3);
}

/* Overlay on Product */
body.dark-mode .overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* Add to Cart Button */
body.dark-mode .add-cart {
  background: #33b2ff;
  color: #fff;
}

body.dark-mode .add-cart:hover {
  background: #0072e3;
}

/* Pagination */
body.dark-mode .pagination button {
  border: 1px solid #33b2ff;
  background: transparent;
  color: #33b2ff;
}

body.dark-mode .pagination button.active,
body.dark-mode .pagination button:hover {
  background: #33b2ff;
  color: #fff;
}

/* Rating Stars */
body.dark-mode .rating {
  color: #ffd54f;
}

/* Smooth transition for all elements */
body, body.dark-mode * {
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode select#sort {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  padding: 6px 10px;
  border-radius: 5px;
  outline: none;
}

body.dark-mode select#sort option {
  background: #1e1e1e;
  color: #fff;
}


/* 📱 Mobile Devices - Up to 768px */
@media (max-width: 768px) {

  /* Make layout vertical */
  .shop-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  /* Sidebar full width on top */
  .sidebar {
    width: 100%;
    padding: 15px;
    order: 1;
  }

  /* Product section below sidebar */
  .products-section {
    order: 2;
  }

  /* Header alignment */
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Grid - 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Product card adjustments */
  .product-card {
    padding: 10px;
  }

  .product-card img {
    height: 140px;
  }

  .product-card h4 {
    font-size: 14px;
  }

  .product-card p {
    font-size: 12px;
  }

  .price {
    font-size: 14px;
  }

  .add-cart {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* Hide overlay and position wishlist icon separately */
  .overlay {
    display: none !important;
  }

  /* Pagination smaller */
  .pagination {
    gap: 6px;
  }

  .pagination button {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* 📱 Very Small Devices - Up to 480px */
@media (max-width: 480px) {

  /* Single column layout */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .sidebar h3 {
    font-size: 14px;
  }

  #category-list li {
    font-size: 13px;
    padding: 6px;
  }

}


/* ===== Wishlist Icon Position for Mobile ===== */
@media (max-width: 768px) {
  .product-card {
    position: relative;
  }

  .product-card .wishlist-icon {
    display: block !important;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 18px;
    color: #555;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    cursor: pointer;
    transition: 0.3s ease;
  }

  .product-card .wishlist-icon.fa-solid {
    color: #e63946; /* Red when active */
  }

  .product-card .wishlist-icon:hover {
    transform: scale(1.1);
  }

  /* Hide overlay hearts on mobile */
  .product-card .overlay {
    display: none !important;
  }
}



    .footer {
  position: relative;
  background: url('Images/footer.webp') no-repeat center/cover;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 60px 80px 25px;
  overflow: hidden;
}

/* Blue overlay on top of image */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 28, 72, 0.7); /* Dark blue overlay (adjust opacity if needed) */
  z-index: 1;
}

/* Ensure footer content stays above overlay */
.footer * {
  position: relative;
  z-index: 2;
}


    .footer-container {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 40px;
    }

    /* ===== Column 1 ===== */
    .footer-logo {
      width: 150px;
      margin-bottom: 15px;
    }

    .footer p {
      font-size: 14px;
      color: #d7d7d7;
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .footer-contact li {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      color: #d7d7d7;
    }

    .footer-contact i {
      background: #00aaff;
      color: #fff;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-right: 10px;
      font-size: 14px;
    }

    /* ===== Headings ===== */
    .footer-col h3 {
      font-size: 18px;
      margin-bottom: 15px;
      color: #fff;
      position: relative;
    }

    .footer-col h3::after {
      content: "";
      display: block;
      width: 40px;
      height: 2px;
      background: #00aaff;
      margin-top: 5px;
    }

    .footer-col ul {
      list-style: none;
      padding: 0;
    }

    .footer-col ul li {
      margin: 8px 0;
    }

    .footer-col ul li a {
      color: #dcdcdc;
      text-decoration: none;
      transition: 0.3s;
    }

    .footer-col ul li a:hover {
      color: #00aaff;
    }

    /* ===== App Section ===== */
    .app-section p {
      font-size: 14px;
      color: #d7d7d7;
      margin-bottom: 15px;
    }

    .app-buttons {
      display: flex;
      gap: 5px;
      margin-bottom: 15px;
    }

    .app-buttons img {
      width: 120px;
      border-radius: 6px;
    }

    .payment-icons img {
      width: 150px;
      margin-right: 8px;
    }

    /* ===== Footer Bottom ===== */
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      font-size: 14px;
    }

    .footer-bottom span {
      color: #00aaff;
      font-weight: 500;
    }

    .footer-social {
      display: flex;
      gap: 15px;
      align-items: center;
    }

    .footer-social a {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;
      transition: 0.3s;
    }

    .footer-social a:hover {
      background: #00aaff;
    }

    .footer-social p {
      margin: 0;
      color: #dcdcdc;
    }

    /* ===== Responsive ===== */
    @media (max-width: 992px) {
      .footer-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .footer-container {
        grid-template-columns: 1fr;
      }

      .footer {
        padding: 40px 20px;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
      }
    }


.footer-truck {
  position: absolute;
  bottom: 70px;
  margin-left: 300px;
  width: 100%;
  height: 60px;
  overflow: visible;
  z-index: 3;
}

/* Truck icon */
.footer-truck i {
  position: absolute;
  font-size: 38px; /* slightly smaller */
  color: #33b2ff;
  animation: moveTruck 6s linear infinite;
  filter: drop-shadow(0 0 8px #33b2ff);
}

/* Text that follows truck */
.truck-text {
  position: absolute;
  font-size: 18px;
  font-weight: 600;
  color: #33b2ff;
  text-transform: uppercase;
  white-space: nowrap;
  left: -120px; /* moved closer to truck */
  top: 8px;
  filter: drop-shadow(0 0 8px #33b2ff);
  animation: moveTruck 6s linear infinite;
}

/* Glowing trail behind truck */
.footer-truck::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(51, 178, 255, 0.1) 0%,
    rgba(51, 178, 255, 0.6) 50%,
    rgba(51, 178, 255, 0.1) 100%
  );
  filter: blur(2px);
  animation: glowTrail 6s linear infinite;
}

/* Truck movement */
@keyframes moveTruck {
  0% {
    left: -100px;
    opacity: 1;
    transform: scaleX(1);
  }
  80% {
    left: calc(100% + 50px);
    opacity: 1;
    transform: scaleX(1);
  }
  81% {
    opacity: 0;
  }
  99% {
    left: -100px;
    opacity: 0;
  }
  100% {
    left: -100px;
    opacity: 1;
  }
}

/* Glowing trail movement */
@keyframes glowTrail {
  0% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
  }
  20% {
    opacity: 1;
    transform: scaleX(1);
  }
  80% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
  }
}


.wishlist-icon {
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.wishlist-icon.fa-solid {
  color: #ff4d4d; /* filled heart */
}

.wishlist-icon:hover {
  color: #ff4d4d;
}


/* ===== Responsive Footer - Mobile Devices ===== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* ===== Footer Contact Section ===== */
  .footer-contact {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
  }

  .footer-contact li {
    font-size: 13px;
    margin-bottom: 8px;
    justify-content: center;
  }

  .footer-contact i {
    width: 26px;
    height: 26px;
    font-size: 12px;
    margin-right: 8px;
  }

  .footer-logo {
    margin: 0 auto 15px;
    width: 130px;
  }

  .footer p {
    font-size: 13px;
    line-height: 1.5;
  }

  .footer-col h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-col ul li a {
    font-size: 13px;
  }

  .app-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .app-buttons img {
    width: 100px;
  }

  .payment-icons img {
    width: 120px;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-social {
    justify-content: center;
  }

  /* ===== Truck Animation Adjustments ===== */
  .footer-truck {
    bottom: 45px;
    margin-left: 0;
    width: 100%;
    height: 45px;
  }

  .footer-truck i {
    font-size: 28px;
    animation-duration: 7s;
  }

  .truck-text {
    font-size: 13px;
    top: 6px;
    left: -70px;
    animation-duration: 7s;
  }

  .footer-truck::before {
    top: 20px;
    height: 2px;
  }
}

/* ===== Extra Small Devices (under 480px) ===== */
@media (max-width: 480px) {
  .footer {
    padding: 30px 15px;
  }

  .footer-container {
    gap: 25px;
  }

  /* Smaller Contact Details */
  .footer-contact li {
    font-size: 12px;
  }

  .footer-contact i {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .footer p {
    font-size: 12px;
  }

  .footer-col h3 {
    font-size: 15px;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .footer-truck i {
    font-size: 24px;
  }

  .truck-text {
    font-size: 12px;
    top: 3px;
  }
}

/* Default hidden before scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* When visible */
[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Bounce Animations */
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes bounceInUp {
  0% { opacity: 0; transform: translateY(100px); }
  60% { opacity: 1; transform: translateY(-20px); }
  80% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}
@keyframes bounceInDown {
  0% { opacity: 0; transform: translateY(-100px); }
  60% { opacity: 1; transform: translateY(20px); }
  80% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
@keyframes bounceInLeft {
  0% { opacity: 0; transform: translateX(-120px); }
  60% { opacity: 1; transform: translateX(25px); }
  80% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}
@keyframes bounceInRight {
  0% { opacity: 0; transform: translateX(120px); }
  60% { opacity: 1; transform: translateX(-25px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

/* Animation class applied dynamically */
.animate.bounceIn     { animation: bounceIn 1.5s ease both; }
.animate.bounceInUp   { animation: bounceInUp 1.5s ease both; }
.animate.bounceInDown { animation: bounceInDown 1.5s ease both; }
.animate.bounceInLeft { animation: bounceInLeft 1.5s ease both; }
.animate.bounceInRight{ animation: bounceInRight 1.5s ease both; }

.added-msg {
  color: green;
  font-size: 14px;
  margin-top: 6px;
  transition: opacity 0.5s ease;
  text-align: center;
}


