/* ═══════ PAGE ROUTER ══════════════════════════════════════ */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* ═══════ STICKY TOP NAV (non-home pages) ══════════════════ */
.top-nav {
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 60px);
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* HOME hero nav is absolute */
.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 60px);
  height: var(--nav-h);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    transparent 100%
  );
}
.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

/* Desktop nav links */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.main-nav > li {
  position: relative;
}
.main-nav > li > a,
.main-nav > li > button {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  height: var(--nav-h);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav > li > a:hover,
.main-nav > li > button:hover {
  color: var(--orange);
  text-shadow: 0 0 20px rgba(244, 123, 32, 0.3);
}
.main-nav > li > a.active-link {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}

.chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.main-nav > li:hover > button .chevron {
  transform: rotate(-135deg) translateY(-2px);
}

/* L1 dropdown */
.dropdown {
  position: absolute;
  top: calc(var(--nav-h) - 4px);
  left: 50%;
  min-width: 200px;
  background: rgba(10, 10, 10, 0.97);
  border-top: 2px solid var(--red);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}
.main-nav > li:hover .dropdown,
.main-nav > li:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown li {
  position: relative;
}
.dropdown li a,
.dropdown li button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.dropdown li a:hover,
.dropdown li button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--orange);
}
/* L2 dropdown */
.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 160px;
  background: rgba(18, 18, 18, 0.97);
  border-top: 2px solid var(--orange);
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.dropdown li:hover .sub-dropdown,
.dropdown li:focus-within .sub-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.sub-dropdown li a {
  display: block;
  padding: 11px 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background 0.15s,
    color 0.15s;
}
.sub-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--yellow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ═══════ MOBILE DRAWER ════════════════════════════════════ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #0a0a0a;
  z-index: 301;
  overflow-y: auto;
  transition: right 0.35s var(--ease);
}
.mobile-drawer.open {
  right: 0;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.drawer-head img {
  height: 36px;
  width: auto;
}
.close-btn {
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}
.drawer-nav a,
.drawer-nav button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.drawer-nav a:hover,
.drawer-nav button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--orange);
}
.drawer-sub {
  display: none;
  background: rgba(255, 255, 255, 0.02);
}
.drawer-sub.open {
  display: block;
}
.drawer-sub a {
  padding-left: 38px;
  font-size: 12px;
  font-weight: 500;
}
.drawer-sub-sub {
  background: rgba(255, 255, 255, 0.03);
}
.drawer-sub-sub a {
  padding-left: 52px;
  font-size: 11px;
}

/* ═══════ FOOTER ═══════════════════════════════════════════ */
/* Footer — sits on a very dark surface, top border accented with faint orange glow */
.site-footer {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 80px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(to bottom, #050505 0%, #000 60%);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 123, 32, 0.3),
    transparent
  );
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
  cursor: pointer;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.social-btn:hover {
  border-color: var(--orange);
  background: rgba(244, 123, 32, 0.1);
}
.footer-col-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}
.payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
}
.pay-badge {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════ CART ICON & NAV ACTIONS ══════════════════════════ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  transition: color 0.2s;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.cart-icon-btn:hover {
  color: var(--orange);
}
.cart-icon-btn svg {
  display: block;
  flex-shrink: 0;
}
.cart-count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--red);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  font-weight: 700;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

/* ═══════ SEARCH + WISHLIST NAV ICONS ══════════════════════ */
.search-icon-btn,
.wish-icon-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  position: relative;
  transition: color 0.2s;
}
.search-icon-btn:hover,
.wish-icon-btn:hover {
  color: var(--white);
}
.wish-icon-btn .wish-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ═══════ SEARCH OVERLAY ═══════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 4, 4, 0.95);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-overlay-inner {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) clamp(16px, 5vw, 40px) 40px;
}
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 18px;
  margin-bottom: 32px;
}
.search-bar-icon {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}
.search-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}
.search-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s;
}
.search-close-btn:hover {
  color: var(--white);
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}
.search-result-card {
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.search-result-card:hover {
  transform: translateY(-4px);
}
.search-result-img {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.search-result-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3px;
  line-height: 1.3;
}
.search-result-price {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}
.search-empty {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  padding: 40px 0;
}

/* ═══════ MOBILE BOTTOM NAV ════════════════════════════════ */
.mob-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 980;
  background: rgba(6, 6, 6, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: stretch;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 768px) {
  .mob-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .wa-float {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .scroll-top {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
}
.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.32);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.22s var(--ease);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
/* Active top-line indicator */
.mob-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition:
    opacity 0.25s,
    width 0.3s var(--ease);
}
.mob-nav-item.active {
  color: var(--white);
}
.mob-nav-item.active::before {
  opacity: 1;
  width: 28px;
}
.mob-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: stroke 0.22s;
}
.mob-nav-item.active svg {
  stroke: var(--orange);
}
.mob-nav-item:active {
  transform: scale(0.88);
  transition: transform 0.1s;
}
.mob-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 17px);
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
/* Centre Create FAB */
.mob-nav-create-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-create {
  position: absolute;
  top: -18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  box-shadow:
    0 0 0 3px rgba(6, 6, 6, 0.97),
    0 6px 24px rgba(232, 25, 44, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-create:active {
  transform: scale(0.88);
  box-shadow:
    0 0 0 3px rgba(6, 6, 6, 0.97),
    0 3px 10px rgba(232, 25, 44, 0.3);
}
.mob-nav-create svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}
.mob-nav-create-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 30px;
}

