.header-inner,
.nav-inner,
.sticky-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  width: 100%;
}

.header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand);
  height: 92px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 72px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-search {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.2s;
}

.header-search:hover {
  color: var(--accent);
}

.header-search svg {
  width: 22px;
  height: 22px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
}

.find-order-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1.5px solid var(--sand);
  color: var(--charcoal);
  text-decoration: none;
  transition: all 0.2s;
}

.find-order-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.view-rentals-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 20px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.view-rentals-btn:hover {
  background: var(--accent-hover);
}

.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-cart svg {
  width: 22px;
  height: 22px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -9px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand);
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  list-style: none;
}

.main-nav ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: contents;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 14px;
  position: relative;
  transition: color 0.2s;
  display: block;
  white-space: nowrap;
}

.nav-inner > a::after,
.nav-inner > .mega-wrap > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-inner > a:hover {
  color: var(--accent);
}

.nav-inner > a:hover::after {
  transform: scaleX(1);
}

.nav-inner > a.active {
  color: var(--accent);
}

.nav-inner > a.active::after {
  transform: scaleX(1);
}

.main-nav .nav-divider {
  width: 1px;
  background: var(--sand);
  margin: 8px 4px;
  align-self: stretch;
}

.mega-wrap {
  position: relative;
}

.mega-wrap:hover > .nav-link {
  color: var(--accent);
}

.mega-wrap:hover > .nav-link::after {
  transform: scaleX(1);
}

.mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm-white);
  border-top: 2px solid var(--accent);
  border-left: 1px solid var(--sand);
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
  display: flex;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  white-space: nowrap;
}

.mega-wrap:hover .mega-panel {
  opacity: 1;
  visibility: visible;
}

.mega-col {
  min-width: 200px;
}

.mega-panel .mega-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--sand);
  transition: color 0.2s;
}

.mega-panel .mega-col-header:hover {
  color: var(--accent);
}

.mega-panel .mega-col-header::after {
  display: none !important;
}

.mega-panel .mega-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--warm-gray);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
  transition: color 0.2s;
}

.mega-panel .mega-link:last-child {
  border-bottom: none;
}

.mega-panel .mega-link::after {
  display: none !important;
}

.mega-panel .mega-link:hover {
  color: var(--accent);
}

.mega-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.mega-icon img,
.mega-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mega-icon svg {
  display: block;
}


.sticky-header {
  position: fixed;
  top: -80px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  height: 64px;
  transition: top 0.35s ease;
}

.sticky-header.visible {
  top: 0;
}

.sticky-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.sticky-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sticky-left .logo-link img {
  height: 48px;
}

.sticky-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  list-style: none;
}

.sticky-nav ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sticky-nav li {
  display: contents;
  list-style: none;
}

.sticky-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 12px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.sticky-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sticky-nav a:hover {
  color: var(--accent);
}

.sticky-nav a:hover::after {
  transform: scaleX(1);
}

.sticky-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.sticky-search {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.2s;
}

.sticky-search:hover {
  color: var(--accent);
}

.sticky-search svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.sticky-right .header-cart svg {
  width: 20px;
  height: 20px;
}


.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
  display: block;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 400px;
  height: 100%;
  background: var(--warm-white);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-shrink: 0;
}

.mobile-nav-header a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-nav-header img {
  height: 56px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
}

.mobile-nav-search {
  padding: 12px 20px;
  flex-shrink: 0;
}

.mobile-nav-search form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 10px 14px;
}

.mobile-nav-search svg {
  width: 18px;
  height: 18px;
  stroke: var(--taupe);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.mobile-nav-search input {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  width: 100%;
  padding: 0;
}

.mobile-nav-search input::placeholder {
  color: var(--taupe);
}

.mobile-nav-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--taupe);
  padding: 16px 20px 8px;
}

.mobile-nav-categories {
  padding-bottom: 8px;
}

.mobile-nav-categories .mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-nav-categories > :last-child {
  border-bottom: none;
}

.mobile-menu-item {
  border-bottom: 1px solid rgba(232, 224, 212, 0.5);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.mobile-menu-toggle:hover {
  background: var(--cream);
}

.mobile-menu-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.3px;
}

.mobile-menu-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--taupe);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.25s ease;
}

.mobile-menu-toggle.open .mobile-menu-chevron {
  transform: rotate(180deg);
}

.mobile-menu-link {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.mobile-menu-link:hover {
  background: var(--cream);
}

.mobile-submenu {
  display: none;
  padding: 0 20px 12px 32px;
  background: var(--cream);
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu-link {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  color: var(--warm-gray);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 224, 212, 0.3);
  transition: color 0.15s;
}

.mobile-submenu-link:last-child {
  border-bottom: none;
}

.mobile-submenu-link:hover {
  color: var(--accent);
}

.mobile-submenu-viewall {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.mobile-nav-info {
  background: var(--cream);
  padding-bottom: 24px;
}

.mobile-info-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(232, 224, 212, 0.5);
  transition: background 0.15s;
}

.mobile-info-link:last-child {
  border-bottom: none;
}

.mobile-info-link:hover {
  background: rgba(232, 224, 212, 0.3);
}

.mobile-info-link svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header {
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 990;
  }

  .logo-link img {
    height: 60px;
  }

  .header-search {
    display: none;
  }

  .find-order-btn {
    display: none;
  }

  .view-rentals-btn {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .sticky-header {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
  }
}
