/* Shared chrome: header, overlay, nav, page-hero, footer.
   Used by pages whose mocks left this as a "copy from about" comment. */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #111827;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
}
/* Fade line + 24px gap before and after (padding, so margins do not collapse). */
div.divider {
  display: block;
  box-sizing: border-box;
  height: 49px;
  margin: 0;
  padding: 24px 0;
  border: 0;
  background-image: linear-gradient(to right, transparent 0%, #eeeeee 30%, #eeeeee 70%, transparent 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-origin: content-box;
  background-clip: content-box;
  background-size: 100% 1px;
  flex-shrink: 0;
}
.spacer {
  display: block;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  flex-shrink: 0;
}
.spacer-64 { height: 64px; }
.divider + *:not(.divider) { margin-top: 0; }
*:not(.divider):has(+ .divider) { margin-bottom: 0; }
.header-left { display: flex; align-items: center; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: #111827; }
.logo .red { color: #dc2626; }
.logo .cart { color: #111827; }
.header-right { display: flex; align-items: center; gap: 24px; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #111827;
  border-radius: 2px;
  transition: 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #4b5563;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.avatar svg,
.menu-avatar svg,
.avatar-sm svg,
.avatar-lg svg {
  display: block;
  color: inherit;
}
.avatar svg { width: 20px; height: 20px; }
.menu-avatar svg { width: 40px; height: 40px; }
.avatar:hover { background: #d1d5db; }
.icon-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #dc2626;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 98;
}
.overlay.active { opacity: 1; pointer-events: auto; }

html.nav-open,
html.nav-open body {
  overflow: hidden;
  height: 100%;
}
body.nav-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid #eee;
  padding: 40px 32px;
  transition: right 0.3s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.03);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  overflow-y: auto;
}
.nav-menu.open { right: 0; }
.menu-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 500;
  color: #2b2b2b;
  border: 2px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.menu-avatar:hover { background: #e0e0e0; }
.nav-menu a {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: #222;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: #dc2626; }
.nav-menu a.active { color: #dc2626; }
.nav-menu .nav-highlight { color: #dc2626; font-weight: 600; }

.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}
.breadcrumb a { color: #6b7280; transition: color 0.2s; }
.breadcrumb a:hover { color: #dc2626; }
.breadcrumb span { color: #111827; }
.nav-menu a.menu-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  font-size: 32px;
  line-height: 0;
  color: #2b2b2b;
}

.page-hero {
  padding: 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 18px;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

footer {
  padding: 0 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-brand .logo { font-size: 22px; font-weight: 700; }
.footer-brand .logo .red { color: #dc2626; }
.footer-brand .logo .cart { color: #111827; }
.footer-brand p { margin-top: 8px; font-size: 14px; color: #6b7280; max-width: 240px; }
.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111827;
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #dc2626; }
.footer-links a.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin-bottom: 12px;
}
.footer-links a.avatar:hover { color: #4b5563; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal a { color: #6b7280; transition: color 0.2s; }
.footer-bottom .legal a:hover { color: #dc2626; }

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-right { gap: 16px; }
  .page-hero h1 { font-size: 34px; }
  .nav-menu { width: 100%; right: -100%; border-left: none; padding: 40px 16px; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column-reverse; align-items: center; text-align: center; gap: 16px; }
  .footer-bottom .legal { gap: 16px; }
}
@media (max-width: 480px) {
  .page-hero h1 { font-size: 28px; }
}
