:root {
  /* === UNVENTO DESIGN TOKENS — Peerspace-inspired redesign === */
  /* These tokens are for the new redesign. Existing styles are not affected. */

  /* Brand Colors */
  --uv-cream: #F1EFE7;
  --uv-cream-soft: #E8E5DA;
  --uv-cream-pure: #FAF8F2;
  --uv-black: #0F0F0F;
  --uv-black-soft: #1F1F1F;
  --uv-red: #e63946;
  --uv-red-deep: #c92e3a;
  --uv-red-soft: #fce7e9;

  /* Neutrals */
  --uv-gray-900: #2A2A2A;
  --uv-gray-700: #4D4D4D;
  --uv-gray-500: #8A8580;
  --uv-gray-300: #D6D2C8;
  --uv-gray-200: #E5E1D6;
  --uv-gray-100: #EDE9DE;

  /* Typography Families */
  --uv-font-display: 'League Spartan', sans-serif;
  --uv-font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale */
  --uv-s-1: 4px;
  --uv-s-2: 8px;
  --uv-s-3: 12px;
  --uv-s-4: 16px;
  --uv-s-5: 24px;
  --uv-s-6: 32px;
  --uv-s-7: 48px;
  --uv-s-8: 64px;
  --uv-s-9: 96px;

  /* Border Radius */
  --uv-r-sm: 8px;
  --uv-r: 12px;
  --uv-r-lg: 16px;
  --uv-r-pill: 999px;

  /* Easing */
  --uv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --uv-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════════════════════════════════════════════════════════════════════
   Unvento — Shared Header & Footer (SINGLE SOURCE OF TRUTH)
   Do not override these rules in per-page CSS. The whole point of this
   file is that the header and footer look identical on every page.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Header shell ── */
#site-header {
    position: sticky;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000;
    height: 64px !important;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0 !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #111111 !important;
    box-sizing: border-box !important;
}
#site-header *, #site-header *::before, #site-header *::after { box-sizing: border-box; }

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

/* ── Logo — LOCKED, NEVER CHANGES ── */
.site-logo {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    line-height: 1 !important;
    color: #111111 !important;
    text-decoration: none !important;
    flex-shrink: 0;
    display: inline-block;
    user-select: none;
}
.site-logo .logo-accent {
    color: #e63946 !important;
    font-family: inherit !important;
    font-weight: inherit !important;
}
.site-logo:hover { color: #111111 !important; }

/* ── Center navigation ── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    margin-left: 32px;
    min-width: 0;
}
.site-nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #666666;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
    padding: 4px 2px;
    line-height: 1;
}
.site-nav-link:hover { color: #e63946; }
.site-nav-link.active { color: #000000; }

/* ── Right actions cluster ── */
.site-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.site-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.site-action-link:hover { color: #e63946; }

.site-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.15s;
    text-decoration: none;
}
.site-icon-btn:hover { background: rgba(0,0,0,0.06); }

.site-cart-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #e63946;
    border-radius: 50%;
    border: 2px solid #ffffff;
}
.site-cart-dot[hidden] { display: none; }

/* ── User menu ── */
.site-user-wrap { position: relative; margin-left: 4px; }
.site-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 4px 4px 4px 12px;
    line-height: 0;
    background: #ffffff;
    cursor: pointer;
    color: #111111;
    transition: box-shadow 0.15s;
    font-family: 'DM Sans', sans-serif;
}
.site-user-btn:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.10); }
.site-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #717171;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s;
    overflow: hidden;
}
.site-user-btn:hover .site-user-avatar { background: #e63946; }
.site-user-avatar.is-logged-in { background: #e63946; }

.site-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px 0;
    z-index: 9999;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    border: 1px solid #f0f0f0;
    font-family: 'DM Sans', sans-serif;
}
.site-user-menu[hidden] { display: none; }
.site-user-menu-item {
    display: block;
    padding: 11px 20px;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    transition: background 0.12s;
    line-height: 1.2;
}
.site-user-menu-item[hidden] { display: none; }
.site-user-menu-sep[hidden] { display: none; }
.site-user-menu-item:hover { background: #f7f7f7; }
.site-user-menu-primary { font-size: 14px; font-weight: 700; color: #111111; }
.site-user-menu-danger { color: #e63946; font-weight: 600; }
.site-user-menu-sep { border: none; border-top: 1px solid #f0f0f0; margin: 4px 0; }

/* ── Mobile ── */
.site-mobile-nav-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.site-mobile-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 20px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'DM Sans', sans-serif;
}
.site-mobile-drawer[hidden] { display: none; }
.site-mobile-link {
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    border-radius: 8px;
}
.site-mobile-link:hover { background: #f7f7f7; }
.site-mobile-link.active { color: #e63946; }
.site-mobile-sep { border: none; border-top: 1px solid #f0f0f0; margin: 8px 0; }

@media (max-width: 900px) {
    .site-header-inner { padding: 0 16px; gap: 8px; }
    .site-nav { display: none; }
    .site-action-vendor,
    .site-action-saved,
    .site-user-wrap { display: none; }
    .site-mobile-nav-btn { display: inline-flex; }
    .site-actions { gap: 2px; }
}

/* ── Dashboard chrome: simplified header (logo + hamburger only) ──
   Apply by adding class="dashboard-chrome" to <body>. */
body.dashboard-chrome #site-header .site-nav,
body.dashboard-chrome #site-header .site-action-link,
body.dashboard-chrome #site-header .site-icon-btn,
body.dashboard-chrome #site-header .site-user-wrap { display: none !important; }
body.dashboard-chrome #site-header .site-mobile-nav-btn { display: inline-flex !important; }

/* Dashboard pages force the hamburger visible on desktop. The default mobile
   drawer is a full-width strip, which overlays the dashboard layout on desktop.
   Render the drawer as a compact top-right dropdown instead. */
@media (min-width: 901px) {
    body.dashboard-chrome #siteMobileDrawer {
        left: auto;
        right: 16px;
        width: 280px;
        top: 60px;
        border: 1px solid #f0f0f0;
        border-radius: 14px;
        box-shadow: 0 16px 48px rgba(0,0,0,0.14);
        padding: 8px;
    }
    body.dashboard-chrome #siteMobileDrawer .site-mobile-link {
        padding: 11px 14px;
        font-size: 14px;
    }
}

/* ════════════════════════════════════════════════════
   Footer — SINGLE SOURCE OF TRUTH
   Peerspace-style cream palette (Stage 11)
   ════════════════════════════════════════════════════ */

#site-footer {
    background: #F1EFE7 !important;
    color: #0F0F0F !important;
    font-family: 'DM Sans', sans-serif !important;
    padding: 80px 24px 32px !important;
    border-top: 1px solid #E5E1D6 !important;
}

#site-footer *,
#site-footer *::before,
#site-footer *::after {
    box-sizing: border-box;
}

.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 64px;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
}

.site-footer-logo {
    color: #0F0F0F !important;
    font-family: 'League Spartan', sans-serif !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    margin-bottom: 16px;
}

.site-footer-logo .logo-accent {
    color: #e63946 !important;
}

.site-footer-tagline {
    color: #4D4D4D;
    font-size: 14px;
    line-height: 1.65;
    max-width: 320px;
    margin: 0;
    font-weight: 400;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer-heading {
    color: #0F0F0F;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    margin: 0 0 6px 0;
    line-height: 1;
}

.site-footer-link {
    color: #4D4D4D;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 200ms cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
    line-height: 1.4;
}

.site-footer-link:hover {
    color: #e63946;
}

.site-footer-bottom {
    border-top: 1px solid #E5E1D6;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer-bottom p {
    color: #8A8580;
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    #site-footer {
        padding: 56px 20px 28px !important;
    }
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }
    .site-footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }
    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ── Ensure header is always visible above page content ── */
body.site-has-header { padding-top: 0; } /* reserved for future use if needed */

/* ── Hide legacy inline header/footer that still exists in any page ── */
body > header.site-legacy,
body > nav.site-legacy,
body > footer.site-legacy { display: none !important; }
