/* ============================================================
   REPLICATE — Layout CSS (header, drawer, search, footer)
   ============================================================ */

#custom-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: #1a1a1a;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: sans-serif;
}

#header-menu-btn {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  background: none; border: none; padding: 0;
}
.hamburger-line {
  width: 22px; height: 1.5px;
  background: #fff;
  transition: all .3s ease;
  display: block;
}
#header-menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#header-menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
#header-menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
#header-logo img {
  height: 36px; width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

#header-icons { display: flex; align-items: center; gap: 4px; }
.header-icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: #fff; position: relative;
  border-radius: 50%;
  transition: background .15s;
}
.header-icon-btn:hover { background: rgba(255,255,255,0.1); }
.header-icon-btn svg { width: 20px; height: 20px; }

#header-cart-badge {
  position: absolute;
  top: 6px; right: 6px;
  background: #e00; color: #fff;
  font-size: 9px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
}
#header-cart-badge.visible { display: flex; }

#nav-drawer {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100vh;
  background: #1a1a1a;
  z-index: 8800;
  transition: left .3s ease;
  display: flex;
  flex-direction: column;
  padding: 80px 0 32px;
  font-family: sans-serif;
}
#nav-drawer.open { left: 0; }

.nav-drawer-links {
  flex: 1;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-drawer-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-drawer-link-arrow { font-size: 14px; color: rgba(255,255,255,0.3); }
.nav-drawer-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 12px 24px; }
.nav-drawer-bottom { padding: 0 24px; }
.nav-drawer-contact { display: flex; flex-direction: column; gap: 10px; }
.nav-drawer-contact a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-drawer-contact a:hover { color: rgba(255,255,255,0.7); }

#drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 8799;
}
#drawer-overlay.open { display: block; }

#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
#search-overlay.open { display: flex; }
.search-overlay-inner { width: 100%; max-width: 600px; padding: 0 24px; }
.search-overlay-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px; font-family: sans-serif;
}
.search-overlay-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 32px;
  font-family: sans-serif;
  padding: 12px 0; outline: none;
  caret-color: #fff;
}
.search-overlay-input::placeholder { color: rgba(255,255,255,0.2); }
.search-overlay-hint { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 12px; font-family: sans-serif; }
.search-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%; font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.search-close-btn:hover { background: rgba(255,255,255,0.2); }

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(.95); }
}
