/* ============================================================
   NAVIGATION & FOOTER
   ============================================================ */

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

/* Hexagonal icon mark */
.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #FF3B5C 0%, #FF6B35 100%);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(255,59,92,0.4);
}

.nav-logo-mark svg { width: 16px; height: 16px; }

.nav-logo-a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  user-select: none;
}

/* Stacked wordmark */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
  justify-content: center;
  align-items: center;
}

.nav-logo-text b {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text, #0f0f14);
  line-height: 1;
}

.nav-logo-text span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted, #666);
  line-height: 1;
  display: block;
}

/* Legacy svg fallback */
.nav-logo > svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: right var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* Cart Icon */
.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition-spring);
}

.cart-badge.visible {
  transform: scale(1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.hamburger:hover { background: var(--color-surface-2); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: var(--space-3);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .nav-logo {
  color: white;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: white;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; position: fixed; top: 68px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  .nav-actions .btn { display: none; }
}
