/* Fonts are self-hosted (no request to Google = GDPR-safe) */
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0037FF;
  --black: #000;
  --white: #fff;
  --grey: #f0f0f0;
  --line: #e6e6e6;
  --muted: #777;
  --font: "Inter", system-ui, sans-serif;
  --display: "Archivo Black", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

html, body {
  width: 100%;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.fullscreen { height: 100%; }

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
a:hover { opacity: 0.7; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.display {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  z-index: 100;
  pointer-events: none;
}
header a { pointer-events: all; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
header .logo {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--black);
  text-decoration: none;
}
header .header-links { display: flex; gap: 20px; }
header .header-links { align-items: center; }
.lang-switch { display: flex; align-items: center; gap: 2px; pointer-events: all; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.lang-switch span { color: var(--muted); }
.lang-switch button {
  font: inherit; letter-spacing: inherit; color: var(--muted);
  background: none; border: none; padding: 6px 4px; margin: -6px 0; cursor: pointer;
}
.lang-switch button.active { color: var(--black); }
.lang-switch button:hover { color: var(--black); }
.lang-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.product-highlight { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
body:not(.fullscreen) header { background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ── FOOTER ── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 40px 22px 90px;
  font-family: var(--mono);
  font-size: 11px;
}
body.fullscreen footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 16px 22px;
  z-index: 100;
  pointer-events: none;
}
footer span, footer a { color: var(--black); pointer-events: all; text-decoration: none; }
footer a:hover { text-decoration: underline; opacity: 1; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }

/* ── MENU BUTTON ── */
.menu-btn {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--grey);
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}
.menu-btn:hover { background: #e0e0e0; }
.menu-btn.active { background: var(--blue); color: var(--white); }

/* ── MENU OVERLAY ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
}
.menu-overlay nav a {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(32px, 6vw, 64px);
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
  transition: color 0.15s;
}
.menu-overlay nav a:hover { color: var(--blue); opacity: 1; }
.menu-close {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── SHOP PAGE ── */
.page {
  min-height: 100vh;
  padding: 90px 40px 40px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}
.shop-title { margin-bottom: 40px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
}
.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover { opacity: 1; }
.product-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  background: #fafafa;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.product-img-wrap img.back { opacity: 0; }
.product-card:hover .product-img-wrap img.back { opacity: 1; }
.product-card:hover .product-img-wrap img { transform: scale(1.03); }
.product-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.product-price { font-size: 13px; color: #666; }

/* ── PRODUCT PAGE ── */
.product-page {
  min-height: 100vh;
  padding: 90px 40px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.product-images { display: flex; flex-direction: column; gap: 12px; }
.product-main-img {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #fafafa;
  overflow: hidden;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; }
.thumb {
  width: 84px; aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #fafafa;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--black); }
.product-info { position: sticky; top: 90px; }
.product-detail-name {
  font-size: clamp(24px, 3vw, 40px);
  margin-bottom: 8px;
  line-height: 1.05;
}
.product-detail-price { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.price-note { font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.price-note a { color: var(--muted); }
.product-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 28px;
  max-width: 440px;
}
.option-label { margin-bottom: 10px; }
.option-label b { color: var(--black); font-weight: 400; }
.colors { display: flex; gap: 10px; margin-bottom: 24px; }
.color-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--white);
}
.color-btn.active { border-color: var(--black); }
.sizes {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.size-btn {
  border: 1px solid #ccc;
  background: none;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}
.size-btn:hover, .size-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.btn {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 16px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn:hover { background: var(--blue); opacity: 1; }
.btn:disabled { background: #999; cursor: not-allowed; }
.form-msg { margin-top: 12px; font-size: 12px; min-height: 16px; }
.form-msg.ok { color: var(--blue); }
.form-msg.err { color: #c00; }
.details {
  margin-top: 36px;
  max-width: 440px;
  border-top: 1px solid var(--line);
}
.details details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.details summary::after { content: '+'; font-weight: 400; }
.details details[open] summary::after { content: '–'; }
.details p { font-size: 13px; line-height: 1.7; color: #444; margin-top: 10px; }

/* ── CART PAGE ── */
.cart-page {
  min-height: 100vh;
  padding: 90px 40px 40px;
  max-width: 720px;
  margin: 0 auto;
}
.cart-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 40px;
}
.cart-empty { font-size: 14px; color: #999; }
.cart-items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.cart-item {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cart-item-img {
  width: 100px; aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: #fafafa;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-name a { color: inherit; text-decoration: none; }
.cart-item-sub  { font-family: var(--mono); font-size: 11px; color: #999; margin-bottom: 10px; }
.cart-item-price { font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #ccc; border-radius: 2px; margin-bottom: 10px; }
.qty button { background: none; border: none; width: 30px; height: 30px; cursor: pointer; font-size: 15px; }
.qty span { font-family: var(--mono); min-width: 24px; text-align: center; font-size: 13px; }
.remove-btn { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; align-self: flex-start; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
}
.summary-row.total {
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid #000;
  margin-top: 8px;
  padding-top: 16px;
}
.summary-note { font-size: 12px; color: var(--muted); margin: 6px 0 24px; line-height: 1.6; }
.summary-note a { color: var(--muted); }
.zone-select {
  font-family: var(--font);
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: var(--white);
}
.cart-page .btn { max-width: none; }

/* ── LEGAL / TEXT PAGES ── */
.legal {
  min-height: 100vh;
  padding: 100px 40px 40px;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 14px;
}
.legal h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin-bottom: 8px; }
.legal .eyebrow { margin-bottom: 40px; }
.legal h2 { font-size: 15px; font-weight: 700; margin: 36px 0 10px; }
.legal h3 { font-size: 14px; font-weight: 600; margin: 22px 0 6px; }
.legal p, .legal ul, .legal ol, .legal address { margin-bottom: 12px; color: #222; }
.legal ul, .legal ol { padding-left: 20px; }
.legal address { font-style: normal; }
.legal .box { border: 1px solid var(--line); padding: 20px 22px; border-radius: 3px; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; margin-bottom: 16px; font-size: 13px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* Placeholder that MUST be filled in before going live */
.todo {
  background: #fff3a8;
  padding: 0 3px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  .product-page { grid-template-columns: 1fr; gap: 32px; padding: 80px 16px 40px; }
  .product-info { position: static; }
  .page, .cart-page, .legal { padding-left: 16px; padding-right: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  header { padding: 14px 16px; }
  header .logo { font-size: 15px; }
  header .header-links { gap: 14px; }
  footer { padding-left: 16px; padding-right: 16px; }
  footer nav { justify-content: flex-start; }
  /* home page: menu button sits in the middle, keep only the essentials */
  body.fullscreen footer > span { display: none; }
  body.fullscreen footer { justify-content: flex-start; padding-bottom: 80px; }
  body.fullscreen footer nav a:not(.core) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Header stays on one line with the DE/EN switch; on phones the Shop link moves to the menu */
header .logo, header .header-links a { white-space: nowrap; }
@media (max-width: 480px) {
  header .header-links a[href="shop.html"] { display: none; }
}
