/* ---------------- GLOBAL STYLES ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: #fff;
}

/* ---------------- TOP BAR ---------------- */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 10px 5%;
  flex-wrap: wrap;
  text-align: center;
}

.top-bar .info {
  font-size: smaller;
  color: #727272;
}

/* ---------------- HEADER TOP ---------------- */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  border-bottom: 1px solid #ccc;
  background: #fff;
  position: relative;
  z-index: 1400;
}

/* --- LOGO --- */
.logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------------- HEADER ICONS ---------------- */
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1501;
}


.icon-link {
  position: relative;
  font-size: 20px;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.icon-link:hover {
  color: orange;
  transform: scale(1.1);
}

/* --- BADGE (Cart/Wishlist Count) --- */
.badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff6f00;
  color: #fff;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* ---------------- HAMBURGER MENU ---------------- */
#header-toggle,
.header-toggle {
  background: none;
  border: none;
  color: #000;
  font-size: 22px;
  cursor: pointer;
  z-index: 1500; /* highest so header button is always clickable */
  position: relative;
}
/* ---------------- NAV MENU ---------------- */
.main-nav {
  display: none;
  position: absolute;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ccc;
  z-index: 9999;
}

.nav-menu {
  list-style: none;
  text-align: center;
}

.nav-menu li {
  border-bottom: 1px solid #eee;
}

.nav-menu a {
  display: block;
  padding: 12px 0;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
}

.nav-menu a:hover {
  color: rgb(255, 0, 0);
}

.main-nav.active {
  display: block;
}

/* ---------------- FOOTER ---------------- */
footer {
  background-color: #111;
  color: #fffdfd;
  padding: 40px 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  flex: 1 1 250px;
  max-width: 300px;
}

.footer-brand h2 {
  font-size: 28px;
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  margin: 15px 0;
  line-height: 1.5;
}

.footer-brand strong {
  display: block;
  margin-top: 15px;
}

.footer-col {
  flex: 1 1 200px;
  margin-top: 20px;
}

.footer-col h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 12px;
}

.footer-col li a {
  color: #ccc;
  text-decoration: none;
}

.footer-col li a:hover {
  color: #fff;
}

/* ---------------- RESPONSIVE DESIGN ---------------- */

/* 💻 Desktop (≥900px) */
@media (min-width: 900px) {
  #header-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    border-top: none;
    text-align: center;
  }

  .nav-menu {
    display: inline-flex;
    gap: 60px;
    border: none;
  }

  .nav-menu li {
    border: none;
  }

  .nav-menu a {
    font-size: 15px;
    
  }

  .logo img {
    width: 140px;
  }

  .top-bar {
    gap: 5rem;
  }
}

/* 📱 Tablet (600px–899px) */
@media (max-width: 899px) and (min-width: 600px) {
  .logo img {
    width: 110px;
  }

  .icon-link i {
    font-size: 18px;
  }

  .header-icons {
    gap: 14px;
  }

  #header-toggle {
    font-size: 22px;
  }
}

/* 📱 Mobile (<600px) */
@media (max-width: 599px) {
  .header-top {
    padding: 8px 4%;
  }

  .logo img {
    width: 90px;
  }

  .icon-link i,
  #header-toggle i {
    font-size: 18px;
  }

  .header-icons {
    gap: 10px;
  }

  .badge {
    top: -4px;
    right: -7px;
    font-size: 9px;
  }
}

/* ---------------- GENERAL RESPONSIVE IMAGE HANDLING ---------------- */
img, svg {
  max-width: 100%;
  height: auto;
}


/* ================= HEADER ================= */
.header {
  width: 100%;
  background: #fff;
  padding: 8px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icons .icon {
  position: relative;
  color: #000;
  font-size: 18px;
}

.header-icons .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e63946;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header hamburger (top-right) */
#header-toggle {
  background: none;
  border: none;
  color: #000;
  font-size: 22px;
  cursor: pointer;
}


/* Make sure all icons + logo are in one line in every view */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: nowrap;
  }

  .logo img {
    height: 24px;
  }

  .header-icons {
    gap: 10px;
  }
}
