/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--border-color);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__logo {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-header__search-input {
  display: none;
}

.site-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 5px;
}

/* Bottom tab bar (mobile primary nav) */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--color-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xs) 0;
  z-index: 10;
}

.bottom-tab-bar__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-sm);
}

.bottom-tab-bar__icon svg,
.icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bottom-tab-bar__label {
  font-size: 10px;
  margin-top: 2px;
}

.bottom-tab-bar__tab.is-active {
  color: var(--color-primary);
}

.cart-badge--tab {
  top: -2px;
  right: 4px;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-xl);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  gap: var(--space-md);
}

.site-footer__info h3 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-primary);
}

.site-footer__info p {
  margin: var(--space-xs) 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.site-footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.site-footer__social a {
  color: var(--color-primary);
  font-weight: 600;
}

.site-footer__map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius-md);
}

/* Desktop breakpoint: swap bottom tab bar for header nav + inline search */
@media (min-width: 768px) {
  .site-header__search-input {
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    width: 220px;
  }

  .bottom-tab-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .site-footer__inner {
    grid-template-columns: 2fr 1fr;
  }
}
