/* ==========================================================
   HEADER — GLOBAL STYLING
========================================================== */

.site-header,
.site-footer {
  padding: 1.4rem 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}

/* --- Sticky header with consistent height --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  min-height: 64px; /* fixes height shift */
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(10px);
}

.logo a {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.logo svg {
	width: 230px;
	position: absolute;
	top: 9px;
	filter: drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.6));
}

.start-color {
      stop-color: var(--text);
    }

.end-color {
      stop-color: var(--muted);
}
/*.content { background: radial-gradient(circle at top, #111 0, #050505 45%, #000 100%);
}*/
/* ==========================================================
   NAVIGATION
========================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  width: 100%;
  border-radius: 3px;
  transition: 0.25s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  font-size: 0.9rem;
  line-height: 1; /* prevents height jump */
}

/* ==========================================================
   CART BUTTON + DROPDOWN
========================================================== */

.cart-wrapper {
  position: relative;
}

.cart-toggle {
  background: var(--bg-card);
  border: 0;
}

.cart-icon {
  width: 22px;
  height: 22px;
  color: white;
  opacity: 0.9;
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  background: #1f8fff;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Cart dropdown sits ABOVE sticky header --- */
.cart-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  width: 310px;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  display: none;
  z-index: 10000 !important;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  animation: fadeInCart .2s ease-out;
}

@keyframes fadeInCart {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-dropdown.open { display: block; }

[data-cart-empty] {
  padding: 14px;
  margin-bottom: 6px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
}

.cart-footer {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 12px;
  padding-top: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: #fff;
}

.cart-items {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-item strong {
  font-size: 14px;
  color: #fff;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background: #1f8fff;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

/* ==========================================================
   SEARCH ICON + OVERLAY
========================================================== */

.header-icon-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  transition: background 0.16s ease, transform 0.16s ease;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.site-search-overlay.is-open { display: flex; }

.site-search-panel {
  position: relative;
  width: min(720px, 90vw);
  background: rgba(10,10,10,0.96);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 20px 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.site-search-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.site-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.site-search-input {
  flex: 1;
  padding: 0.85rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5,5,5,0.95);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.site-search-submit { white-space: nowrap; }

/* ==========================================================
   MOBILE NAV
========================================================== */

.mobile-header-right {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* --- Mobile menu hidden by default --- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 64px; /* under sticky header */
  left: 0;
  right: 0;
  text-transform: uppercase;
  padding: 3rem 1.2rem;
  border-bottom: 1px solid var(--border);
  z-index: 9998;
  transform: translateY(-8px);
}

/* --- Mobile menu OPEN (CRITICAL FIX) --- */
.mobile-nav.mobile-nav.open {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
	height: calc(100vh - 64px);
	justify-content: center;
	gap: 10%;
}

/* ==========================================================
   HERO VIDEO / FALLBACK IMAGE
========================================================== */

.hero-video,
.hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-image {
  background-size: cover;
  background-position: center;
}

.hero-video-toggle {
  position:absolute;
  bottom:20px;
  right:20px;
  background:rgba(0,0,0,0.5);
  border:none;
  color:#fff;
  font-size:20px;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  z-index:5;
}

.full-hero {
  position:relative;
  overflow:hidden;
}

#heroFallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -3;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* ==========================================================
   BREAKPOINTS
========================================================== */

@media (max-width: 780px) {
  .desktop-nav { display: none !important; }
  .hamburger { display: flex !important; }
  .mobile-header-right { display: flex !important; }
	.main-nav a {font-size: 2rem;}
}

/* ==========================================================
   PROFILE MENU
========================================================== */

.profile-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 !important;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s ease;
  line-height: 1;
}

.profile-toggle:hover {
  background: rgba(255,255,255,0.07);
}

.icon-user {
  width: 26px;
  height: 26px;
}

/* Dropdown ABOVE sticky header */
.profile-dropdown {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 165px;
  background: rgba(20,20,20,0.96);
  border-radius: 12px;
  padding: .35rem 0;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  z-index: 10000 !important;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown a {
  display: block;
  padding: .55rem 1rem;
  color: var(--text);
  font-size: .9rem;
  text-decoration: none;
}

.profile-dropdown a:hover {
  background: rgba(255,255,255,0.07);
}

/* MOBILE PROFILE DROPDOWN */
.mobile-profile .profile-dropdown {
  right: 0 !important;
}

@media (max-width: 780px) {
	.logo svg {
	width: 130px;
	position: absolute;
	top: 15px;
}
	
  .mobile-profile .profile-dropdown {
    left: auto;
    right: 0;
    transform: translateX(0);
  }
	
	.cart-wrapper {
  position: relative;
  margin: 0 8px 0 0;
}
}

/* ============================================
   HEADER WIDTH CONSTRAINT — BEST PRACTICE
   ============================================ */
.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
	padding: 0 5vw;
}

/* let mobile/tablet behave normally */
@media (max-width: 1400px) {
    .header-inner {
        padding: 0 2vw;
    }
}

