/* =====================================
   HEADER DESIGN (Reusable)
===================================== */

/* DESKTOP HEADER WRAPPER */
.main-header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  width: 100%;
  margin: 0;

  background: #000c6d;
  color: #fff;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  box-sizing: border-box;
  z-index: 1000;

  height: 70px;
}

/* LOGO */
.main-header-left .brand-logo {
  height: 42px;
  width: auto;
  border-radius: 50%;
  display: block;
}

/* RIGHT BUTTONS */
.main-header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 12px;
  transition: margin 0.3s ease;
}

/* ICON BUTTONS */
.header-btn {
  background: none;
  border: none;
  color: #fff;            /* laging puti */
  cursor: pointer;
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* ❌ tanggalin ang transition para walang zoom/color effect */
  transition: none;
}

/* SEARCH BUTTON */
.search-btn {
  color: #fff;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-right: -13px;
  transition: none; /* ❌ no hover animation */
}
.search-btn svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* CART BUTTON */
.cart-btn {
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: none; /* ❌ no hover animation */
}

/* HOVER EFFECTS - Override to do nothing */
.header-btn:hover,
.search-btn:hover,
.cart-btn:hover {
  color: #fff;        /* laging puti */
  transform: none;    /* walang zoom */
}


/* CART COUNTER BADGE */
#cart-count {
  position: absolute;
  top: 4px; 
  right: 4px;
  background: #ff3b3b;
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
  font-weight: bold;
}

/* SEARCH PANEL */
.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  border-bottom: 1px solid #ddd;
}
.search-box {
  width: 90%;
  max-width: 700px;
  display: flex;
  align-items: center;
  border: 2px solid #1f3a93;
  border-radius: 30px;
  background: #fff;
  padding: 6px 15px;
  gap: 0.5rem;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}
.search-box .do-search {
  background: #1f3a93;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.search-box .do-search svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}
.search-box .do-search:hover {
  background: #0056b3;
  transform: scale(1.05);
}
.search-box .close-search {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #1f3a93;
  transition: color 0.2s ease, transform 0.2s ease;
}
.search-box .close-search:hover {
  color: #0056b3;
  transform: scale(1.1);
}
@media (min-width: 1024px) {
  .search-box { width: 60%; }
}
@media (max-width: 1023px) {
  .search-overlay { height: 60px; }
  .search-box { width: 95%; }
  .search-box .do-search { width: 32px; height: 32px; }
  .search-box .do-search svg { width: 16px; height: 16px; }
}

/* HEADER SPACER */
.header-spacer {
  height: 70px; /* match header height */
}
