* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  color: #111827;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Slim Header ───────────────────────────────────────── */

.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #111827;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo svg {
  width: 22px;
  height: 22px;
}

.site-logo:hover {
  color: #4f46e5;
}

/* ── Navigation ────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  transition: all 0.15s;
}

.site-nav a:hover {
  background: #f3f4f6;
  color: #111827;
}

.site-nav a.active {
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

/* ── User Bar (right side of header) ───────────────────── */

.user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.user-bar .user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 20px;
  background: #f3f4f6;
  text-decoration: none;
  color: #111827;
  transition: background 0.15s;
}

.user-bar .user-pill:hover {
  background: #e5e7eb;
}

.user-bar .user-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #d1d5db;
}

.user-bar .user-pill .user-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.user-bar .user-pill .pill-name {
  font-size: 13px;
  font-weight: 500;
}

.user-bar .sign-in-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #111827;
  transition: all 0.15s;
}

.user-bar .sign-in-btn:hover {
  background: #111827;
  color: #fff;
}

.user-bar .sign-in-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Cart icon link in header ──────────────────────────── */

.header-cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6b7280;
  transition: all 0.15s;
  position: relative;
}

.header-cart-link:hover {
  background: #f3f4f6;
  color: #111827;
}

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

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Page container ────────────────────────────────────── */

.page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px;
}

/* ── scandiweb Footer ──────────────────────────────────── */

.sw-footer {
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.sw-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.sw-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.sw-logo:hover {
  opacity: 0.7;
}

.sw-logo-word {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #111827;
}

.sw-footer-dot {
  color: #d1d5db;
  font-size: 14px;
}

.sw-footer-label {
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
}

/* ── Toast ─────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 640px) {
  .site-header-inner {
    padding: 0 16px;
    gap: 16px;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .user-bar .pill-name {
    display: none;
  }

  .user-bar .sign-in-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .page-container {
    padding: 20px 16px;
  }
}
