/* Shared stylesheet. Extracted from the 10 inline <style> blocks (Phase 1).
   Per-page visual variants are scoped with a body.page-* class, so every rule
   here reproduces the original desktop rendering exactly. */

:root {
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-border: #E0E0E0;
    --color-green-accent: #2E7D32;
    --color-orange-accent: #D87D4A;
    --color-pastel-green: #F4F9F4;
    --color-text-secondary: #666666;
    --radius-sm: 8px;
    --radius-md: 12px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-width: 1100px;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.5;
    /* Full-height flex column so that on short pages (cart, 404, a filtered
       product list) the footer is pushed to the bottom of the viewport instead
       of floating up right after the content. `main` grows to absorb the slack
       via `main { flex: 1 }` below; taller-than-viewport pages are unaffected. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

header {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--color-white);
    z-index: 100;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--color-black);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-small {
    height: 28px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--color-green-accent);
}

nav a.active {
    color: var(--color-green-accent);
    font-weight: 600;
}

body.page-index footer,
body.page-about footer,
body.page-news footer,
body.page-products footer,
body.page-story footer,
body.page-venue footer,
body.page-privacy footer,
body.page-terms footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
    background: var(--color-white);
}

body.page-index .footer-inner,
body.page-about .footer-inner,
body.page-news .footer-inner,
body.page-products .footer-inner,
body.page-story .footer-inner,
body.page-venue .footer-inner,
body.page-cart .footer-inner,
body.page-privacy .footer-inner,
body.page-terms .footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    /* Without this the flex items stretch, so the logo centres itself in the
       row while the link text sits on the first line - the two drift apart. */
    align-items: center;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.footer-links a {
    color: var(--color-green-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 12px;
}

.cart-count {
    font-weight: 600;
    color: var(--color-green-accent);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
}

.lang-switch svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lang-select {
    border: none;
    /* Declaring color-scheme keeps the OS-rendered option list light. Without
       it a device in dark mode draws a black popup with this black text,
       making the list unreadable. */
    color-scheme: light;
    background: var(--color-white);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-black);
    cursor: pointer;
    outline: none;
    direction: ltr;
    padding: 0;
}

/* The dropdown popup is painted by the OS, so the options need their own
   colours rather than inheriting the transparent select background. */
.lang-select option {
    background-color: var(--color-white);
    color: var(--color-black);
}

[dir="rtl"] .footer-links a {
    margin-left: 0;
    margin-right: 12px;
}

/* ---- per-page variants ---- */
body.page-about {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.5;
    overflow-x: hidden;
}

body.page-products {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.5;
    width: 100%;
    /* Matches the base body, including the dvh override below: this selector is
       more specific, so a plain `100vh` here would outrank it and pin the
       footer to the taller viewport on mobile. */
    min-height: 100vh;
    min-height: 100dvh;
}

body.page-404 footer {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    background: var(--color-white);
}

body.page-cart footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
    background: var(--color-white);
    margin-top: 80px;
}

body.page-404 .footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Fills the space between header and footer on short pages. */
main {
    flex: 1;
}

/* 404-only */
.error-code {
    font-size: 96px;
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--color-black);
}

/* 404-only */
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
