@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  min-height: 100vh;
  height: 100%;
  margin: 0;
  padding: 0;
}
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  height: 100%;
}
main {
  flex: 1;
}

/* HEADER CSS */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #18142b 0%, #1b1150 100%);
  padding: 12px 40px;
  height: 64px;           /* Set max height of navbar */
  padding: 0 24px;
}
.nav-left {
  display: flex;
  align-items: center;
}
.nav-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}
.nav-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: #ff882e;
}
.nav-search {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 32px;
  max-width: 540px;
}
.nav-search input {
  width: 400px;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 1rem;
}
.nav-search button {
  width: 65px;
  border: none;
  background: #2f3f55;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.nav-icons {
  display: flex;
  gap: 18px; /* slightly tighter gap to match compact icon row */
  align-items: center;
}

/* Common icon link style */
.nav-icon {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

/* Hover / focus affordance */
.nav-icon:hover,
.nav-icon:focus {
  background: rgba(59,130,246,0.08);
  color:#ff7b2c;
  transform: translateY(-1px);
}

/* Specific icon spacing tweaks (if needed) */
.nav-icon-heart { font-size: 1.08rem; width: 36px; height: 36px; }
.nav-icon-bell  { font-size: 1.08rem; width: 36px; height: 36px; }
.nav-icon-cart  { font-size: 1.2rem;  width: 42px; height: 42px; }
.nav-icon-user  { font-size: 1.1rem;  width: 36px; height: 36px; }

/* Cart badge - small orange circular badge overlapping the cart icon */
/* Adjusted to closely match the sample: small round orange badge at top-right of cart */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff6f14; /* bright orange */
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 18px;
  border: 2px solid rgba(24,20,43,1); /* border to visually separate from navbar bg */
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
  display: inline-block;
}

/* When there are zero items we still keep small circle; you can hide it via JS if desired */
.cart-badge.zero {
  opacity: 0.95;
}

/* Prevent icon contents from being selected accidentally */
.nav-icon i {
  pointer-events: none;
}

/* nav-logo duplicate rule in original was large; keep consistent but not change overall layout */
.nav-logo {
  height: 100px;           /* Make the logo bigger */
  width: auto;
  object-fit: contain;    /* Prevent distortion */
  margin-right: 16px;     /* Spacing */
}

/* FOOTER CSS */
.custom-footer {

  background: linear-gradient(90deg, #18142b 0%, #1b1150 100%);

  border-top: 2px solid #eee;
  padding: 32px 0 0 0;
  font-family: Arial, sans-serif;
  margin-top: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  text-align: left;
  gap: 55px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 26px;
  flex-wrap: wrap;
}
.footer-links > div {
  min-width: 140px;
  flex: 1 1 180px;
}
.footer-links h4 {
  font-size: 1.12rem;
  margin-bottom: 12px;
  font-weight: bold;
  color: #f5f3f3;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  font-size: 1rem;
  color: #bebebe;
  margin: 4px 0;
  cursor: pointer;
}
.footer-links ul li:hover {
  text-decoration: underline;
  color: #ff882e;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 0 14px 0;
  font-size: 0.98rem;
  color: #bebebe;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social span {
  margin-right: 6px;
  color: #bebebe;
}
.footer-social a {
  display: inline-block;
  color: #5db97a;
  margin: 0 4px;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #222;
}

/* ------------------------ Responsive ------------------------ */
@media (max-width: 1000px) {
  .custom-navbar {
    padding: 12px 10px;
    gap: 0;
  }
  .nav-title {
    font-size: 1.1rem;
  }
  .nav-search {
    max-width: 420px;
    min-width: 100px;
    flex: 2 1 140px;
    margin: 0 8px;
  }
  .nav-search input {
    width: 100%;
    font-size: 0.97rem;
    padding: 10px 10px;
  }
  .nav-icons {
    font-size: 1.1rem;
    gap: 18px;
  }
  .footer-links {
    gap: 30px;
    padding-bottom: 18px;
  }
  .footer-bottom {
    padding: 12px 0 12px 0;
  }
}

@media (max-width: 600px) {
  .custom-navbar {
    padding: 7px 2px;
  }
  .nav-logo {
    height: 28px;
    width: 28px;
    margin-right: 5px;
  }
  .nav-title {
    font-size: 0.98rem;
  }
  .nav-search {
    min-width: 30px;
    max-width: 130px;
    flex: 2 1 60px;
    margin: 0 2px;
  }
  .nav-search input {
    font-size: 0.91rem;
    padding: 6px 6px;
  }
  .nav-search button {
    width: 54px;
    font-size: 1.1rem;
  }
  .nav-icons {
    gap: 12px;
    font-size: 1rem;
  }
  .cart-badge {
    min-width: 13px;
    font-size: 0.69rem;
    right: -10px;
    top: -5px;
    padding: 0 3px;
    height: 16px;
    line-height: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 0 !important;
  }
  .footer-links > div {
    width: 100%;
    min-width: unset;
    flex: none;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.93rem;
    padding: 6px 0 4px 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .footer-social {
    margin-top: 6px;
  }
  .custom-footer {

    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
