/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.header__logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.header__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.header__nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-text);
  background: var(--color-bg-elevated);
}

/* ── Nav Dropdown ── */
.header__nav-dropdown {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  padding-top: var(--space-2);
  left: 0;
  width: 300px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 200;
  pointer-events: none;
}

.header__nav-dropdown:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.header__nav-dropdown:hover .header__nav-link--dropdown {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.header__nav-dropdown:hover .header__nav-chevron {
  transform: rotate(180deg);
}

.header__nav-chevron {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.header__dropdown-inner {
  padding: var(--space-2);
}

.header__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.header__dropdown-item:hover {
  background: var(--color-bg-elevated);
}

.header__dropdown-item--soon {
  opacity: 0.5;
  pointer-events: none;
}

.header__dropdown-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 2px;
}

.header__dropdown-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.header__dropdown-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.header__dropdown-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #9ca3af);
  padding: var(--space-1) var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-1);
}

.header__dropdown-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
}

.header__dropdown-all {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-primary);
  padding: var(--space-2);
  font-weight: 500;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
}

.header__cart:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.header__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ── Footer ── */
.footer {
  margin-top: var(--space-24);
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__brand-name {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: #94A3B8;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: #CBD5E1;
  transition: color var(--transition-fast);
}
.footer__link:hover { color: white; }

.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--container-pad) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: #64748B;
}

/* ── Page wrapper ── */
.page-content {
  min-height: calc(100vh - var(--header-height));
}

/* ── Mobile nav ── */
.header__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-xl);
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}