@font-face {
  font-family: "VelaSans";
  src: url("../assets/fonts/VelaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Global zoom — applied via header.css which is loaded on all pages */
html { zoom: 1.25; }

/* ── Shared site header ───────────────────────────────────── */
.sh {
  background: #fff;
  border-bottom: 1px solid #e6e7eb;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.sh__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.sh__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.sh__logo img {
  height: 26px;
  display: block;
}

/* Nav */
.sh__nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: center;
}

/* Nav item */
.sh__item {
  position: relative;
}

.sh__link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s, background .15s;
  cursor: pointer;
}
.sh__link:hover,
.sh__item--has-dd:hover .sh__link {
  border-bottom-color: #111;
}

.sh__caret {
  font-size: 10px;
  opacity: .5;
  margin-top: 1px;
}

/* Avatar in header */
.sh__avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e6e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  flex-shrink: 0;
}
.sh__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sh__avatar svg {
  width: 14px;
  height: 14px;
}

/* Login button */
.sh__link--login {
  background: #111;
  color: #fff;
  border-radius: 999px;
  height: 34px;
  padding: 0 18px;
  margin: 0 8px;
  align-self: center;
  border-bottom: none !important;
}
.sh__link--login:hover {
  opacity: .88;
}

/* Dropdown */
.sh__dd {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #fff;
  border: 1px solid #e6e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  padding: 8px 6px 6px;
  z-index: 300;
}

.sh__item--has-dd:hover .sh__dd {
  display: block;
}

.sh__dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-radius: 8px;
  transition: background .1s;
  white-space: nowrap;
}
.sh__dd-item:hover {
  background: #f5f5f7;
}
.sh__dd-item--muted {
  color: #9aa0aa;
  font-size: 12px;
}
.sh__dd-item--logout {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  color: #e04040;
  text-align: left;
  font-family: inherit;
}
.sh__dd-item--logout:hover { background: #fff0f0; }

.sh__dd-divider {
  height: 1px;
  background: #e6e7eb;
  margin: 4px 0;
}
.sh__dd-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 6px;
  gap: 16px;
}
.sh__dd-balance-label {
  font-size: 12px;
  color: #9aa0aa;
  font-weight: 500;
}
.sh__dd-balance-val {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

/* Placeholder block so fixed header doesn't overlap content.
   ID selector beats any page-level body/element rules. */
#site-header {
  height: 52px;
  flex-shrink: 0;
}

/* Normalize font so header looks identical on every page */
.sh, .sh * {
  font-family: "VelaSans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

/* ── Cart icon ───────────────────────────────────────────── */
.sh__cart {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e6e7eb;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background .15s;
  flex-shrink: 0;
  margin-left: 12px;
  text-decoration: none;
}

.sh__cart:hover { background: #f5f5f7; }

.sh__cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.sh__cart-badge[hidden] { display: none; }

/* ── Notification bell (right edge of header) ────────────── */
.sh__bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 12px;
}

.sh__bell {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e6e7eb;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background .15s;
}

.sh__bell:hover {
  background: #f5f5f7;
}

.sh__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.sh__badge[hidden] { display: none; }

/* ── Notification panel ──────────────────────────────────── */
.sh__notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #e6e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 350;
  overflow: hidden;
}

.sh__notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.sh__notif-title {
  font-size: 13px;
  font-weight: 900;
  color: #111;
}

.sh__notif-mark-btn {
  font-size: 12px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
  transition: color .15s;
}

.sh__notif-mark-btn:hover {
  color: #111;
}

.sh__notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.sh__notif-empty {
  padding: 28px 16px;
  font-size: 13px;
  color: #9aa0aa;
  text-align: center;
}

.sh__notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid #f5f5f5;
}

.sh__notif-item:last-child {
  border-bottom: none;
}

.sh__notif-item:hover {
  background: #f9fafb;
}

.sh__notif-item.is-unread {
  background: #eff6ff;
}

.sh__notif-item.is-unread:hover {
  background: #dbeafe;
}

.sh__notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #e6e7eb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.sh__notif-text {
  flex: 1;
  min-width: 0;
}

.sh__notif-msg {
  font-size: 12px;
  color: #1f2937;
  line-height: 1.4;
}

.sh__notif-msg strong {
  font-weight: 800;
}

.sh__notif-time {
  font-size: 11px;
  color: #9aa0aa;
  margin-top: 2px;
}

.sh__notif-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.sh__notif-accept,
.sh__notif-decline {
  flex: 1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s;
}

.sh__notif-accept {
  background: #111;
  color: #fff;
  border-color: #111;
}

.sh__notif-accept:hover:not(:disabled) { opacity: 0.8; }

.sh__notif-decline {
  background: #fff;
  color: #555;
  border-color: #ddd;
}

.sh__notif-decline:hover:not(:disabled) { background: #f4f4f4; }

.sh__notif-accept:disabled,
.sh__notif-decline:disabled {
  opacity: 0.5;
  cursor: default;
}

.sh__notif-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.sh__notif-dismiss {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #b0b7c3;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  margin-left: 4px;
  opacity: 0;
}

.sh__notif-item:hover .sh__notif-dismiss {
  opacity: 1;
}

.sh__notif-dismiss:hover {
  background: #f0f0f0;
  color: #374151;
}

.sh__notif-dismiss:disabled {
  opacity: 0.3;
  cursor: default;
}
