@import url('/fonts/fonts.css');

/* ══ Tokens ═══════════════════════════════════════════════════════════════
   Light values live on :root, dark on .dark. The theme class is set by an
   inline script before first paint, so there is never a flash of the wrong one.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfcfd;
  --surface: #f2f5f8;
  --card: #ffffff;
  --fg: #1b2233;
  --muted: #667089;
  --border: #e2e8f0;

  --primary: #2f5bd0;
  --primary-fg: #ffffff;
  --primary-soft: rgba(47, 91, 208, 0.08);
  --accent: #21a8b8;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.05), 0 16px 40px rgba(47, 91, 208, 0.1);

  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Literata', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1200px;
  --header-h: 68px;
}

.dark {
  --bg: #12151f;
  --surface: #1a1f2e;
  --card: #1a1f2e;
  --fg: #eef1f6;
  --muted: #9aa5bd;
  --border: rgba(255, 255, 255, 0.11);

  --primary: #6f9bff;
  --primary-fg: #12151f;
  --primary-soft: rgba(111, 155, 255, 0.12);
  --accent: #45c8d6;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ══ Reset ═══════════════════════════════════════════════════════════════ */

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

* { margin: 0; }

/* The `hidden` attribute only works through the UA stylesheet's `display:none`,
   which ANY author-level `display` beats. Several components below set
   display:flex/grid, so without this they render while still marked hidden —
   the cart drawer would sit over the page on first load. Keep this rule above
   every component. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--primary); color: var(--primary-fg); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.2rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ══ Layout ══════════════════════════════════════════════════════════════ */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
main.wrap { flex: 1; padding-block: 48px 0; display: flex; flex-direction: column; gap: 72px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.ta-r { text-align: right; }
.footnote { font-size: 0.78rem; color: var(--muted); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 28px;
}
.section-head .count { margin-left: auto; }

.page-head { max-width: 680px; }
.page-head .lead { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ══ Header ══════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
}
/* The mark inherits `color`, so it follows the theme without a second asset.
   The global `svg { width:1em }` rule would crush it, hence the explicit size. */
.brand-mark { display: block; color: var(--fg); transition: transform 0.25s; }
.brand:hover .brand-mark { transform: scale(1.05); }
/* The full four-residue mark is ~3:1, so 26px tall is ~79px wide. */
.brand-mark svg { width: auto; height: 26px; }
.brand-text { white-space: nowrap; }

/* Below this the mark plus the Greek wordmark plus three buttons stop fitting.
   The mark is distinctive enough to stand alone, and the name is still in
   <title> and the footer, so nothing is lost but the pixels. */
@media (max-width: 560px) {
  .brand-text { display: none; }
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-desktop { display: flex; gap: 26px; margin-right: 10px; }

.nav-link {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-link.is-active { color: var(--primary); }

.icon-btn {
  position: relative;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 17px; height: 17px; }

.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--primary-fg);
  font-size: 0.65rem; font-weight: 700; display: grid; place-items: center;
}

.theme-icon-light { display: none; }
.dark .theme-icon-light { display: block; }
.dark .theme-icon-dark { display: none; }

.nav-toggle { display: none; }
.nav-mobile { border-top: 1px solid var(--border); }
.nav-mobile nav { display: flex; flex-direction: column; }
.nav-mobile .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.nav-mobile .nav-link:last-child { border-bottom: 0; }

@media (max-width: 780px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: grid; }
}

/* ══ Buttons ═════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: filter 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.2s; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--primary); margin-left: auto;
}
.link-more svg { width: 13px; height: 13px; transition: transform 0.2s; }
.link-more:hover svg { transform: translateX(3px); }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }
.back-link svg { width: 13px; height: 13px; transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }

/* ══ Hero ════════════════════════════════════════════════════════════════ */

.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-glow {
  position: absolute; top: -140px; right: -110px; width: 420px; height: 420px;
  border-radius: 50%; filter: blur(80px); opacity: 0.22;
  background: radial-gradient(circle, var(--primary), transparent 70%);
}
.hero-inner {
  position: relative; display: grid; gap: 40px; padding: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  font-family: var(--font-mono); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill-sm {
  display: inline-block; padding: 4px 11px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}

.hero-title { text-wrap: balance; }
.hero-title .accent { color: var(--primary); }
.hero-lead { margin-top: 22px; max-width: 34rem; font-size: 1.08rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stats {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--border);
}
.stats dt {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.stats dd { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.hero-side { display: flex; align-items: center; }
.ship-card {
  width: 100%; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px);
}
.ship-icon { color: var(--accent); }
.ship-icon svg { width: 23px; height: 23px; }
.ship-title { font-family: var(--font-display); font-size: 1.4rem; margin-top: 16px; }
.ship-list { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.ship-list li { position: relative; padding-left: 18px; }
.ship-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.ship-contact { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 9px; }
.ship-contact a { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.ship-contact a:hover { color: var(--primary); }
.ship-contact svg { flex: none; width: 16px; height: 16px; }
.ship-contact span { overflow: hidden; text-overflow: ellipsis; }

/* ══ Cards ═══════════════════════════════════════════════════════════════ */

.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover, .cat-card:hover, .contact-card:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  box-shadow: var(--shadow-lift);
}
.card-hit { position: absolute; inset: 0; z-index: 2; }

.card-head { padding: 22px; border-bottom: 1px solid var(--border); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.tag {
  font-family: var(--font-mono); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary);
}
.card-arrow { color: var(--muted); opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.card-arrow svg { width: 15px; height: 15px; }
.card:hover .card-arrow { opacity: 1; transform: translate(2px, -2px); }
.card-title { transition: color 0.2s; }
.card:hover .card-title { color: var(--primary); }
.card-range { margin-top: 8px; font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.card-desc {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  font-size: 0.87rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.cat-card { padding: 30px; gap: 10px; }
.cat-card .link-more { margin-top: auto; padding-top: 18px; margin-left: 0; }
.cat-card .card-desc { padding: 0; border: 0; -webkit-line-clamp: 4; }

/* ══ Variant tables ══════════════════════════════════════════════════════ */

.v-table { font-size: 0.87rem; font-variant-numeric: tabular-nums; }
.v-table td, .v-table th { padding: 9px 22px; }
.v-table th {
  text-align: left; font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.v-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
.v-table tbody tr:last-child { border-bottom: 0; }
.v-table tbody tr.row-last { background: var(--surface); }
.card:hover .v-table tbody tr:not(.row-last) { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.v-label { color: var(--muted); }
.v-price { text-align: right; white-space: nowrap; font-weight: 600; }
.row-last .v-price { color: var(--primary); font-weight: 700; }
.v-add { width: 46px; text-align: right; }

.add-btn {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.add-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.add-btn svg { width: 14px; height: 14px; }

/* ══ Product detail ══════════════════════════════════════════════════════ */

.product-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 980px) { .product-layout { grid-template-columns: 1fr; } }

.detail-head { padding: 30px; border-bottom: 1px solid var(--border); }
.detail-head h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); margin-top: 10px; text-wrap: balance; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.detail-desc { padding: 22px 30px; border-bottom: 1px solid var(--border); color: var(--muted); }
.v-table-detail td, .v-table-detail th { padding: 11px 30px; }
.detail-foot { padding: 20px 30px; border-top: 1px solid var(--border); font-size: 0.87rem; }
.detail-foot a { color: var(--primary); font-weight: 600; }
.detail-foot a:hover { text-decoration: underline; }

.buy-box { padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.buy-box h2 { font-size: 1.15rem; }
.buy-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.buy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.buy-row.has-qty { border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: var(--primary-soft); }
.buy-info { min-width: 0; }
.buy-label { display: block; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-price { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.stepper { display: flex; align-items: center; gap: 3px; flex: none; }
.stepper button {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.stepper button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper button svg { width: 13px; height: 13px; }
.step-value { width: 28px; text-align: center; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ══ Filters ═════════════════════════════════════════════════════════════ */

.filter-bar {
  position: sticky; top: var(--header-h); z-index: 40;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-inline: -20px; padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--border);
}
.search-wrap { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.search-wrap > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-wrap input {
  width: 100%; padding: 9px 34px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card); font-size: 0.88rem;
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--primary); outline: none; }
.search-clear {
  position: absolute; right: 8px; display: grid; place-items: center;
  width: 22px; height: 22px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer;
}
.search-clear svg { width: 13px; height: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 15px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

.empty { padding: 64px 0; text-align: center; color: var(--muted); }
.cat-section[hidden] { display: none; }

/* ══ Cart drawer ═════════════════════════════════════════════════════════ */

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 14, 24, 0.5); backdrop-filter: blur(2px);
  animation: fade-in 0.2s both;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--bg); border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
  animation: slide-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--border); flex: none;
}
.drawer-head h2 { font-size: 1.1rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.drawer-foot { flex: none; padding: 18px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }

.cart-line { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-name { font-size: 0.87rem; font-weight: 600; }
.cart-line-variant { font-size: 0.76rem; color: var(--muted); }
.cart-line-price { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 3px; }
.cart-line-right { display: grid; gap: 6px; justify-items: end; flex: none; }
.cart-remove { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.72rem; }
.cart-remove:hover { color: var(--primary); }

.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.cart-partial { font-size: 0.72rem; color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.order-form { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.order-form label { display: grid; gap: 5px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.order-form input, .order-form textarea {
  padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); font-size: 0.88rem; font-weight: 400; color: var(--fg);
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--primary); outline: none; }
.form-hint { font-size: 0.72rem; color: var(--muted); }
.form-status { font-size: 0.8rem; text-align: center; min-height: 1.2em; }
.form-status.is-error { color: #d64545; }
.form-status.is-ok { color: var(--accent); }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ══ Contact / panels ════════════════════════════════════════════════════ */

.contact-card { padding: 30px; gap: 6px; }
.contact-icon { color: var(--primary); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-value { font-family: var(--font-display); font-size: 1.2rem; word-break: break-all; transition: color 0.2s; }
.contact-card:hover .contact-value { color: var(--primary); }

.panel {
  display: flex; gap: 18px; padding: 30px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.panel h2 { font-size: 1.2rem; margin-bottom: 10px; }
.legal { border-top: 1px solid var(--border); padding-top: 34px; }
.legal h2 { font-size: 1.05rem; margin-bottom: 10px; }

.copy-row { display: flex; align-items: center; gap: 8px; }
.copy-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.copy-btn:hover { color: var(--primary); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.is-done { color: var(--accent); }

/* ══ Footer ══════════════════════════════════════════════════════════════ */

.site-footer { margin-top: 96px; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .wrap { padding-block: 52px 28px; }
.footer-grid { display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.footer-note { font-size: 0.78rem; color: var(--muted); max-width: 30rem; }
.disclaimer { margin-top: 16px; padding-left: 13px; border-left: 2px solid var(--primary); display: grid; gap: 5px; }
.disclaimer p { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 34px; }
.footer-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 11px; }
.footer-cols a, .footer-cols .muted { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.footer-cols a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ══ 404 ═════════════════════════════════════════════════════════════════ */

.center-screen { text-align: center; padding: 80px 0; display: grid; gap: 12px; justify-items: center; }
.big-404 { font-size: 5rem; font-weight: 700; color: var(--primary); }

/* ══ Motion ══════════════════════════════════════════════════════════════
   .reveal only becomes hidden once app.js has confirmed IntersectionObserver
   support, so with JS disabled nothing is ever invisible.
   ════════════════════════════════════════════════════════════════════════ */

.js-reveal .reveal { opacity: 0; transform: translateY(14px); }
.js-reveal .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Out-of-stock marking. Only ever applied when the admin has switched public
   stock display on; otherwise nothing here is reachable. */
.oos {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  border-radius: 999px; background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
tr.is-out .v-label, tr.is-out .v-price { opacity: 0.55; text-decoration: line-through; }
tr.is-out .v-price .oos { opacity: 1; text-decoration: none; }
.buy-row.is-out { opacity: 0.6; }
.buy-row.is-out .buy-label { text-decoration: line-through; }

/* Coupon field in the cart drawer. */
.coupon-row { display: flex; gap: 8px; }
.coupon-row input {
  flex: 1; min-width: 0; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--fg); font-size: 0.88rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.coupon-row input:focus { border-color: var(--primary); outline: none; }
.coupon-row .btn { padding-inline: 14px; }
.coupon-msg { font-size: 0.76rem; min-height: 1.1em; color: var(--muted); }
.coupon-msg.is-error { color: #d64545; }
.coupon-msg.is-ok { color: var(--accent); }
.cart-line-sum {
  display: flex; justify-content: space-between;
  font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.cart-line-sum.is-discount { color: var(--accent); font-weight: 600; }

/* Final order report, shown before the customer commits. */
.report { display: grid; gap: 16px; }
.report-table { font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.report-table th {
  padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--border);
  font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.report-table th:first-child { text-align: left; }
.report-table td { padding: 7px 4px; text-align: right; border-bottom: 1px solid var(--border); }
.report-table .rp-name { text-align: left; }
.report-table .rp-list s { color: var(--muted); }
.report-table .rp-unit.is-cut { color: var(--accent); font-weight: 700; }
.report-table .rp-sum { font-weight: 600; }

.report-sums { display: grid; gap: 6px; }
.report-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.82rem; font-variant-numeric: tabular-nums;
}
.report-row.strike span:last-child { text-decoration: line-through; color: var(--muted); }
.report-row.good { color: var(--accent); font-weight: 600; }
.report-row.warn { color: #b3701f; }
.report-total {
  margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--border);
  font-size: 0.95rem; font-weight: 700;
}
.report-total strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--primary); }
.report-note { font-size: 0.72rem; color: #b3701f; }
.report-customer h3 { font-size: 0.85rem; margin-bottom: 6px; }
.report-customer p { font-size: 0.8rem; color: var(--muted); white-space: pre-line; }

.review-check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.8rem; cursor: pointer;
}
.review-check input { margin-top: 2px; flex: none; }

.pay-choice { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.pay-choice legend { padding: 0 6px; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pay-choice label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 400; color: var(--fg); padding: 3px 0; cursor: pointer; }
.pay-choice input { width: auto; }
.pay-note { color: var(--muted); font-size: 0.78rem; }
/* One available method: a statement rather than a choice of one. */
.pay-only { font-size: 0.85rem; padding: 3px 0; }
.pay-note-block { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

/* How to pay, in the order breakdown. Monospace on the IBAN because it is
   copied by eye, and a wrong digit sends the money somewhere else. */
.report-pay { margin-top: 18px; }
.report-pay h3 { font-size: 0.85rem; margin-bottom: 8px; }
.pay-fields {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  font-size: 0.8rem; padding: 10px 12px;
  background: var(--surface, rgba(127, 127, 127, 0.07));
  border-radius: var(--radius-sm);
}
.pay-fields dt { color: var(--muted); }
.pay-fields dd { font-family: ui-monospace, "SF Mono", Consolas, monospace; word-break: break-all; }

/* Guest-or-sign-in step at checkout. */
.choice-card {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); display: grid; gap: 10px;
}
.choice-card h3 { font-size: 1rem; }
.choice-or {
  display: flex; align-items: center; gap: 12px; margin: 14px 0;
  color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.choice-or::before, .choice-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn { gap: 10px; }
.google-btn svg { width: 16px; height: 16px; flex: none; }
.signed-as {
  padding: 8px 11px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
  font-size: 0.78rem; font-weight: 600;
}

/* ── Νομικές σελίδες ───────────────────────────────────────────────────── */
/* Μεγάλο κείμενο που πρέπει να διαβαστεί, όχι να σαρωθεί: στενή στήλη,
   άνετο ύψος γραμμής, καθαρή ιεραρχία επικεφαλίδων. */
.legal-doc { max-width: 68ch; }
.legal-doc h2 {
  font-size: 1.05rem; margin: 32px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.legal-doc h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-doc h3 { font-size: 0.92rem; margin: 20px 0 6px; }
.legal-doc p, .legal-doc li { font-size: 0.88rem; line-height: 1.75; color: var(--fg); }
.legal-doc p { margin: 0 0 10px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 20px; }
.legal-doc li { margin-bottom: 5px; }
.legal-doc code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.85em;
  background: rgba(127, 127, 127, 0.12); padding: 1px 5px; border-radius: 3px;
}
.legal-doc .disclaimer { margin: 12px 0 16px; }

/* Η νομική βάση κάθε επεξεργασίας, δίπλα στην επεξεργασία που αφορά — όχι
   στοιβαγμένη σε πίνακα στο τέλος που δεν διαβάζει κανείς. */
.legal-basis {
  font-size: 0.78rem !important; color: var(--muted);
  border-left: 2px solid var(--border); padding-left: 10px; margin: 0 0 14px !important;
}

.legal-id {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  font-size: 0.85rem; margin: 0 0 12px;
}
.legal-id dt { color: var(--muted); }
.legal-pending {
  font-size: 0.8rem !important; color: #b3701f;
  border: 1px dashed currentColor; border-radius: var(--radius-sm);
  padding: 9px 12px; margin: 0 0 14px !important;
}
