*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root { --black: #0e0e0e; --white: #ffffff; --grey: #888; --border: #222; }
    html { scroll-behavior: smooth; }
    body { background: var(--black); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
    a { color: inherit; text-decoration: none; cursor: pointer; }

    /* ── NAV ── */
    nav { position: sticky; top: 0; z-index: 100; background: var(--black); border-bottom: 1px solid var(--border); padding: 0 20px; display: flex; align-items: center; height: 48px; }
    .nav-logo { font-size: 13px; font-weight: 500; letter-spacing: 0.05em; margin-right: 8px; white-space: nowrap; flex-shrink: 0; }
    .nav-sep { color: var(--border); margin: 0 2px; flex-shrink: 0; }
    .nav-links { display: flex; list-style: none; flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links li { flex-shrink: 0; }
    .nav-links li a { font-size: 13px; color: var(--grey); padding: 0 8px; transition: color 0.1s; }
    .nav-links li a:hover { color: var(--white); }
    .nav-links li a.active { color: var(--white); }
    .nav-links li:not(:last-child)::after { content: '/'; color: var(--border); }
    .nav-cart { font-size: 13px; color: var(--grey); margin-left: auto; white-space: nowrap; transition: color 0.1s; }
    .nav-cart:hover { color: var(--white); }

    /* ── ACCESSIBILITY: INVERT COLOURS TOGGLE ── */
    .invert-toggle { background: none; border: 1px solid var(--border); color: var(--grey); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; cursor: pointer; margin-left: 12px; padding: 0; font-family: inherit; flex-shrink: 0; transition: color 0.15s, border-color 0.15s; }
    .invert-toggle:hover { color: var(--white); border-color: var(--white); }
    html.inverted { filter: invert(1) hue-rotate(180deg); }
    html.inverted img { filter: invert(1) hue-rotate(180deg); }

    /* ── NAV DROPDOWN (horticultural observations) ── */
    .nav-links li.nav-dropdown { position: relative; }
    .nav-links li.nav-dropdown > a::after { content: ' \25be'; font-size: 8px; opacity: 0.6; }
    .nav-dropdown-menu { position: fixed; background: var(--black); border: 1px solid var(--border); min-width: 190px; list-style: none; padding: 4px 0; display: none; z-index: 300; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu li { padding: 0; }
    .nav-dropdown-menu li::after { content: none; }
    .nav-dropdown-menu li a { display: block; padding: 9px 14px; font-size: 12px; white-space: nowrap; }
    .nav-dropdown-menu li a:hover { background: rgba(255,255,255,0.06); }

    @media (max-width: 900px) {
      nav { flex-wrap: wrap; height: auto; padding: 12px 16px; row-gap: 8px; }
      .nav-sep { display: none; }
      .nav-links { order: 3; flex-basis: 100%; width: 100%; overflow-x: visible; white-space: normal; flex-wrap: wrap; row-gap: 6px; }
      .nav-links li a { font-size: 12px; padding: 0 6px 0 0; }
      .nav-logo { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
      .nav-links li:not(:last-child)::after { margin-right: 6px; }
      .nav-dropdown-menu { min-width: 170px; }

      footer { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 16px; }
      .creations-footer { position: static; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
      .page#page-creations { min-height: 100vh; }
    }

    /* ── PAGES ── */
    .page { display: none; flex: 1; flex-direction: column; }
    .page.active { display: flex; flex-direction: column; flex: 1; }

    hr { border: none; border-top: 1px solid var(--border); margin: 0 20px; }

    /* ── HOME ── */
    .intro { padding: 60px 20px 48px; }
    .intro p { font-size: 13px; color: var(--grey); max-width: 560px; line-height: 1.7; }

    .section { padding: 40px 20px 32px; }
    .section-head { margin-bottom: 24px; }
    .section-head h2 { font-size: clamp(18px, 3vw, 26px); font-weight: 400; }
    .section-head h2 a { border-bottom: 1px solid var(--border); transition: border-color 0.15s; }
    .section-head h2 a:hover { border-color: var(--white); }
    .section-head p { margin-top: 10px; font-size: 13px; color: var(--grey); max-width: 500px; line-height: 1.7; }

    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px; }
    .item-img { position: relative; aspect-ratio: 3/4; background: #161616; overflow: hidden; cursor: pointer; }
    .item-img svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.12; width: 56px; height: 56px; }
    .item-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
    .item-photo-base { opacity: 1; }
    .item-photo-hover { opacity: 0; }
    @media (hover: hover) and (pointer: fine) {
      .item-img:hover .item-photo-hover { opacity: 1; }
    }
    .item-overlay { position: absolute; inset: 0; background: rgba(14,14,14,0.5); opacity: 0; transition: opacity 0.25s; display: flex; align-items: flex-end; padding: 14px; }
    @media (hover: hover) and (pointer: fine) {
      .item-img:hover .item-overlay { opacity: 1; }
    }
    @media (hover: none), (pointer: coarse) {
      .item-overlay { opacity: 1; background: linear-gradient(to top, rgba(14,14,14,0.75), rgba(14,14,14,0) 60%); }
    }
    .add-btn { font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; background: var(--white); color: var(--black); border: none; padding: 7px 14px; cursor: pointer; font-weight: 500; transition: opacity 0.15s; }
    .add-btn:hover { opacity: 0.8; }
    .sold .item-img { opacity: 0.35; }
    .sold-label { position: absolute; top: 10px; left: 10px; font-size: 10px; letter-spacing: 0.05em; color: var(--grey); text-transform: uppercase; }
    .item-info { padding: 10px 20px 0 0; }
    .item-name { font-size: 13px; color: var(--white); line-height: 1.4; }
    .item-price { font-size: 12px; color: var(--grey); margin-top: 2px; }
    .item-desc { font-size: 11px; color: #666; line-height: 1.6; margin-top: 6px; max-width: 220px; }
    .item-weight { font-size: 11px; color: #666; margin-top: 4px; }

    .teaser-row { display: flex; align-items: baseline; gap: 12px; padding: 40px 20px 32px; }
    .teaser-row h2 { font-size: clamp(18px, 3vw, 26px); font-weight: 400; }
    .teaser-row h2 a { border-bottom: 1px solid var(--border); transition: border-color 0.15s; }
    .teaser-row h2 a:hover { border-color: var(--white); }
    .teaser-row span { font-size: 12px; color: var(--grey); }

    .newsletter { padding: 36px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
    .newsletter span { font-size: 13px; color: var(--grey); white-space: nowrap; }
    .nl-form { display: flex; flex: 1; min-width: 220px; }
    .nl-input { flex: 1; background: transparent; border: 1px solid var(--border); border-right: none; color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 13px; padding: 9px 12px; outline: none; }
    .nl-input::placeholder { color: var(--grey); }
    .nl-input:focus { border-color: #444; }
    .nl-btn { background: var(--white); color: var(--black); border: 1px solid var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; padding: 9px 18px; cursor: pointer; font-weight: 500; transition: opacity 0.15s; }
    .nl-btn:hover { opacity: 0.8; }

    /* ── SUBPAGE SHARED ── */
    .page-header { padding: 48px 20px 32px; }
    .page-header h1 { font-size: clamp(18px, 3vw, 26px); font-weight: 400; margin-bottom: 10px; }
    .page-header p { font-size: 13px; color: var(--grey); max-width: 500px; line-height: 1.7; }
    .sub-heading { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }

    /* ── GLASSHOUSES ── */
    .contact-line a:hover { border-color: var(--white); }

    /* ── CREATIONS (Geoponika style) ── */
    #page-creations { background: #000000; }
    #page-creations nav { background: #000000; border-bottom-color: #1a1a1a; }
    #page-creations nav .nav-logo,
    #page-creations nav .nav-links li a,
    #page-creations nav .nav-cart { color: #333; }
    #page-creations nav .nav-links li a.active,
    #page-creations nav .nav-links li a:hover,
    #page-creations nav .nav-cart:hover { color: #fff; }
    #page-creations nav .nav-sep,
    #page-creations nav .nav-links li::after { color: #1a1a1a; }

    .creations-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 40px 100px; min-height: calc(100vh - 48px); }
    .creations-title { font-size: clamp(48px, 10vw, 110px); font-weight: 300; letter-spacing: -0.02em; line-height: 0.95; margin-bottom: 48px; color: #fff; }
    .creations-title span { display: block; }
    .creations-divider { width: 1px; height: 48px; background: #222; margin: 0 auto 40px; }
    .creations-sub { font-size: 11px; letter-spacing: 0.14em; color: #555; margin-bottom: 48px; line-height: 2; }
    .creations-sub span { display: block; }
    .creations-link { font-size: 11px; letter-spacing: 0.1em; color: #fff; border-bottom: 1px solid #333; padding-bottom: 2px; transition: border-color 0.15s; display: inline-block; }
    .creations-link:hover { border-color: #fff; }
    .creations-footer { position: fixed; bottom: 0; left: 0; right: 0; border-top: 1px solid #1a1a1a; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; background: #000; }
    .creations-footer span { font-size: 11px; color: #333; letter-spacing: 0.04em; }
    .creations-footer-links { display: flex; gap: 10px 20px; list-style: none; flex-wrap: wrap; }
    .creations-footer-links a { font-size: 11px; color: #333; transition: color 0.1s; }
    .creations-footer-links a:hover { color: #fff; }

    /* ── FOOTER (shared) ── */
    footer { border-top: 1px solid var(--border); padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: auto; }
    footer span { font-size: 12px; color: var(--grey); }
    .foot-links { display: flex; gap: 12px 16px; list-style: none; flex-wrap: wrap; }
    .foot-links a { font-size: 12px; color: var(--grey); transition: color 0.1s; }
    .foot-links a:hover { color: var(--white); }
    .foot-icon { display: inline-flex; align-items: center; }

    /* ── TOAST ── */
    .toast { position: fixed; bottom: 20px; right: 20px; background: var(--white); color: var(--black); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 16px; transform: translateY(50px); opacity: 0; transition: all 0.25s ease; pointer-events: none; z-index: 999; }
    .toast.show { transform: translateY(0); opacity: 1; }

    /* ── TYPE GRID ── */
    .type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 220px)); justify-content: start; gap: 2px; margin-bottom: 16px; max-width: 1120px; }
    .type-card { cursor: default; }
    .type-img { aspect-ratio: 3/4; background: #161616; display: flex; align-items: center; justify-content: center; }
    .type-img svg { width: 44px; height: 44px; opacity: 0.12; }
    .type-name { font-size: 12px; color: var(--grey); padding: 8px 0 0; line-height: 1.4; }
    .view-all { font-size: 12px; color: var(--white); transition: opacity 0.15s; display: inline-block; margin-top: 4px; cursor: pointer; }
    .view-all:hover { opacity: 0.6; }
    @media (max-width: 500px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }

    /* ── JAPANESE TEXT ── */
    .ja { font-family: 'Noto Sans JP', sans-serif; font-size: 10px; font-weight: 300; color: #444; letter-spacing: 0.05em; line-height: 2; display: block; margin-top: 6px; }

    /* ── SHIPPING MODAL ── */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
    .modal-overlay.open { opacity: 1; pointer-events: all; }
    .modal { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 480px; background: var(--black); border-left: 1px solid var(--border); z-index: 201; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; display: flex; flex-direction: column; }
    .modal.open { transform: translateX(0); }
    .modal-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--black); z-index: 1; }
    .modal-header h2 { font-size: 13px; font-weight: 400; letter-spacing: 0.02em; }
    .modal-close { font-size: 13px; color: var(--grey); cursor: pointer; transition: color 0.1s; background: none; border: none; font-family: inherit; padding: 0; }
    .modal-close:hover { color: var(--white); }
    .modal-body { padding: 32px 20px; flex: 1; }
    .modal-section { margin-bottom: 36px; }
    .modal-section:last-child { margin-bottom: 0; }
    .modal-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; display: block; }
    .modal-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .modal-row:first-of-type { border-top: 1px solid var(--border); }
    .modal-row span:first-child { font-size: 13px; color: var(--white); }
    .modal-row span:last-child { font-size: 13px; color: var(--grey); }
    .modal-note { font-size: 12px; color: var(--grey); line-height: 1.8; margin-top: 14px; }
    .modal-note + .modal-note { margin-top: 10px; }
    .modal-alert { font-size: 12px; color: var(--white); line-height: 1.8; margin-top: 16px; padding: 14px; border: 1px solid var(--border); }
    .modal-ja { font-family: 'Noto Sans JP', sans-serif; font-size: 10px; font-weight: 300; color: #444; display: block; margin-top: 4px; }

    /* ── CART DRAWER ── */
    #cartDrawer .modal-body { display: flex; flex-direction: column; height: 100%; padding: 20px; }
    .cart-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
    .cart-line-info { flex: 1; }
    .cart-line-name { font-size: 13px; color: var(--white); }
    .cart-line-price { font-size: 12px; color: var(--grey); margin-top: 2px; }
    .cart-line-qty { display: flex; align-items: center; gap: 10px; }
    .cart-line-qty button { background: none; border: 1px solid var(--border); color: var(--white); width: 24px; height: 24px; cursor: pointer; font-size: 13px; font-family: 'Space Grotesk', sans-serif; }
    .cart-line-qty button:hover { border-color: var(--white); }
    .cart-line-qty span { font-size: 13px; min-width: 16px; text-align: center; }
    .cart-line-remove { background: none; border: none; color: var(--grey); font-size: 16px; cursor: pointer; padding: 0 4px; }
    .cart-line-remove:hover { color: var(--white); }
    #cartEmptyMsg { font-size: 13px; color: var(--grey); padding: 40px 0; text-align: center; }
    .cart-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
    .cart-total-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--white); margin-bottom: 16px; }
    .checkout-btn { width: 100%; background: var(--white); color: var(--black); border: none; padding: 14px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; font-weight: 500; transition: opacity 0.15s; }
    .checkout-btn:hover { opacity: 0.8; }
    .checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ── VEGETATION MAP WIDGET (NASA GIBS NDVI) ── */
    #veg-widget .veg-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
    #veg-widget .veg-nav { display: flex; align-items: center; gap: 10px; }
    #veg-widget .veg-nav button { background: none; border: 1px solid var(--border); color: var(--white); padding: 4px 14px; cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-size: 12px; line-height: 1.4; transition: background 0.15s, color 0.15s; }
    #veg-widget .veg-nav button:hover:not(:disabled) { background: var(--white); color: var(--black); }
    #veg-widget .veg-nav button:disabled { opacity: 0.3; cursor: default; }
    #veg-widget .veg-nav span { font-variant-numeric: tabular-nums; min-width: 15ch; text-align: center; font-size: 12px; color: var(--grey); }
    #veg-widget .veg-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
    #veg-widget .veg-presets span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
    #veg-widget .veg-presets button { background: none; border: 1px solid var(--border); color: var(--white); padding: 4px 12px; cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-size: 12px; line-height: 1.4; transition: background 0.15s, color 0.15s; }
    #veg-widget .veg-presets button:hover { background: var(--white); color: var(--black); }
    #veg-widget .veg-presets button.active { background: var(--white); color: var(--black); }
    #veg-map { height: 440px; border: 1px solid var(--border); background: var(--black); margin-top: 16px; }
    #veg-widget .veg-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; font-size: 11px; color: var(--grey); }
    #veg-widget .veg-scale { flex: 0 0 140px; height: 8px; background: linear-gradient(to right,#c9b380,#d8d38a,#a8c66c,#5da046,#1e6b23,#00441b); }
    #veg-widget .veg-credit { margin-left: auto; }
    #veg-widget .veg-credit a { color: var(--grey); border-bottom: 1px solid var(--border); }
    #veg-widget .veg-credit a:hover { color: var(--white); }
    #veg-map .leaflet-control-zoom a { background: var(--black); color: var(--white); border-color: var(--border); }
    #veg-map .leaflet-control-zoom a:hover { background: var(--white); color: var(--black); }
    #veg-map .leaflet-control-attribution { background: rgba(14,14,14,0.7); color: var(--grey); font-size: 10px; }
    #veg-map .leaflet-control-attribution a { color: #bbb; }

    /* ── SOIL WIDGET (Open-Meteo) ── */
    #soil-widget .soil-cities { display: flex; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 4px; }
    #soil-widget .soil-city { flex: 1; background: var(--black); padding: 14px 16px; }
    #soil-widget .soil-city h3 { font-size: 13px; font-weight: 400; }
    #soil-widget .soil-city .ja { margin-top: 0; margin-bottom: 2px; }
    #soil-widget .soil-temp { font-size: 1.2em; font-weight: 400; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
    #soil-widget .soil-depth { font-size: 11px; color: var(--grey); }
    #soil-widget .soil-surface { font-size: 12px; color: #bbb; margin-top: 10px; min-height: 1em; }
    #soil-widget .soil-note { font-size: 11px; margin-top: 8px; color: var(--grey); }
    #soil-widget .soil-note.on { color: #a8c66c; }
    #soil-widget .soil-foot { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; font-size: 11px; color: var(--grey); }
    #soil-widget .soil-foot a { border-bottom: 1px solid var(--border); }
    #soil-widget .soil-foot a:hover { color: var(--white); border-color: var(--white); }
    #soil-widget .soil-credit { margin-left: auto; }
    @media (max-width: 560px) { #soil-widget .soil-cities { flex-direction: column; } }

    /* ── BLOOM WIDGET (iNaturalist) ── */
    #bloom-widget .bloom-city + .bloom-city { margin-top: 28px; }
    #bloom-widget h3 { font-size: 13px; font-weight: 400; }
    #bloom-widget .bloom-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px; margin-top: 12px; }
    #bloom-widget .bloom-card { background: #161616; display: block; }
    #bloom-widget .bloom-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; filter: saturate(0.9); transition: filter 0.2s; }
    #bloom-widget .bloom-card:hover img { filter: none; }
    #bloom-widget .bloom-meta { padding: 8px 10px 12px; }
    #bloom-widget .bloom-name { font-size: 12px; }
    #bloom-widget .bloom-sci { font-size: 11px; color: var(--grey); font-style: italic; }
    #bloom-widget .bloom-date { font-size: 10px; color: #666; margin-top: 4px; }
    #bloom-widget .bloom-empty { padding: 14px; font-size: 12px; color: var(--grey); border: 1px solid var(--border); }
    #bloom-widget .bloom-foot { padding-top: 18px; font-size: 11px; color: var(--grey); }
    #bloom-widget .bloom-foot a { border-bottom: 1px solid var(--border); }
    #bloom-widget .bloom-foot a:hover { color: var(--white); border-color: var(--white); }

    /* ── PRODUCT IMAGE LIGHTBOX ── */
    .lightbox { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.96); width: 90%; max-width: 480px; max-height: 85vh; background: var(--black); border: 1px solid var(--border); z-index: 301; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; overflow-y: auto; }
    .lightbox.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
    .lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(14,14,14,0.7); border: 1px solid var(--border); color: var(--white); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; line-height: 1; font-family: inherit; transition: background 0.15s, color 0.15s; }
    .lightbox-close:hover { background: var(--white); color: var(--black); }
    .lightbox-img { width: 100%; aspect-ratio: 3/4; background: #161616; position: relative; overflow: hidden; }
    .lightbox-img svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.15; width: 140px; height: 140px; }
    .lightbox-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .lightbox-info { padding: 18px 20px 24px; }
    .lightbox-info .lb-name { font-size: 15px; color: var(--white); }
    .lightbox-info .lb-price { font-size: 13px; color: var(--grey); margin-top: 4px; }
    .lightbox-info .lb-desc { font-size: 13px; color: var(--grey); line-height: 1.7; margin-top: 12px; }
    .lightbox-info .lb-desc a { color: var(--white); border-bottom: 1px solid var(--border); }
