/* Customer pages (DECISIONS.md, "Visual design of the customer pages"):
   direction F - navy darks, light shopping pages, logo blue buttons, flame
   orange highlights, Cormorant Garamond headings + Manrope text.
   Admin pages keep css/style.css and don't load this file. */

:root {
  --ink: #111C2B;
  --body: #33404F;
  --muted: #556274;
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --line: #DDE3EA;
  --line-soft: #E8EDF2;
  --field: #CBD3DD;

  --night: #08111C;
  --band: #0B1624;
  --night-card: #12202F;
  --night-line: #22324A;
  --night-chip: #15243A;
  --night-text: #F2F5F9;
  --night-soft: #C9D3E0;
  --night-muted: #9AA8BA;

  --blue: #1E6FB0;
  --blue-dark: #154F80;
  --blue-tint: #E8F1FA;
  --flame: #F29618;
  --flame-text: #F5A23A;
  --flame-line: linear-gradient(90deg, #E5461A, #F29618 55%, #FFC53A);

  --ok: #1F7A45;
  --ok-dark: #7DD3A0;
  --supplier: #1F5FA8;
  --presale: #A15C00;
  --out: #556274;
  --danger: #B42318;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 { line-height: 1.15; }

.serif { font-family: var(--serif); font-weight: 600; }

/* English: hidden until i18n.js has translated the page. */
html.i18n-pending body { visibility: hidden; }

/* ---------- Header ---------- */
.topbar {
  background: var(--night);
  border-bottom: 1px solid #1A2638;
  font-size: 13px;
  color: var(--night-muted);
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar .left, .topbar .right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.topbar a { color: var(--night-muted); }
.topbar a:hover { color: var(--night-text); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid #2C3F5A;
  border-radius: 3px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: 0;
  color: var(--night-muted);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle button.active { background: var(--flame-text); color: var(--band); }
.lang-toggle button:hover:not(.active) { color: var(--night-text); }

.site-header { background: var(--night); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { display: block; flex: none; }
.logo img { height: 60px; width: auto; display: block; }

.search-bar {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 6px 0 14px;
  background: var(--bg);
  border-radius: 4px;
}
.search-bar svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
}
.search-bar input::placeholder { color: #7F8DA0; }
.search-bar button {
  border: 0;
  background: var(--blue);
  color: #fff;
  height: 36px;
  padding: 0 14px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.search-bar button:hover { background: var(--blue-dark); }

.cart-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  background: var(--night-chip);
  border-radius: 4px;
  color: var(--night-text);
  font-weight: 700;
  white-space: nowrap;
}
.cart-link:hover { color: #fff; background: #1C2E47; }
.cart-link svg { width: 20px; height: 20px; color: var(--flame-text); }
.cart-count {
  background: var(--flame);
  color: var(--band);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catnav {
  border-top: 1px solid #1A2638;
  border-bottom: 3px solid transparent;
  border-image: var(--flame-line) 1;
}
.catnav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 34px;
}
.catnav a {
  color: var(--night-text);
  padding: 14px 0 12px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.catnav a:hover { color: var(--flame-text); }
.catnav a.active { color: var(--flame-text); border-bottom-color: var(--flame-text); }

/* Checkout: the header without menu and search, only the flame line. */
.site-header.compact { border-bottom: 3px solid transparent; border-image: var(--flame-line) 1; }
.site-header.compact .cart-link { margin-left: auto; }

/* ---------- Dark page band (title, breadcrumb, steps) ---------- */
.page-band { background: var(--band); color: var(--night-text); }
.page-band .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
  padding-top: 28px;
  padding-bottom: 32px;
}
.page-band h1 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
}
.page-band p { margin: 10px 0 0; color: var(--night-muted); max-width: 620px; }
.breadcrumb { font-size: 13px; color: var(--night-muted); }
.breadcrumb a { color: var(--night-muted); }
.breadcrumb a:hover { color: var(--night-text); }

.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--night-muted); }
.steps li + li::before { content: ""; width: 36px; height: 1px; background: #2C3F5A; }
.steps .num {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #2C3F5A; font-weight: 800;
}
.steps .done, .steps .current { color: var(--night-text); }
.steps .done .num, .steps .current .num { background: var(--flame); border-color: var(--flame); color: var(--band); }

.page-main { padding-top: 32px; padding-bottom: 72px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn.buy, .btn.primary { background: var(--blue); color: #fff; }
.btn.buy:hover, .btn.primary:hover { background: var(--blue-dark); color: #fff; }
.btn.buy:disabled { background: #9DB5CC; cursor: default; }
.btn.detail, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.detail:hover, .btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.flame { background: var(--flame); color: var(--band); }
.btn.flame:hover { background: #FFAA35; color: var(--band); }
.btn.danger { background: #FDECEA; color: var(--danger); }
.btn.danger:hover { background: #F9D3CE; }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Cards and panels ---------- */
.panel, .admin-form-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h2, .section-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
}
.muted { color: var(--muted); font-size: 14px; }

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-text);
}

/* ---------- Product card ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.loading-msg, .empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .card-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  min-height: 0;
  padding: 26px;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--flame);
  color: var(--band);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 3px;
}
.badge.presale { background: var(--band); color: var(--flame-text); }
.card .card-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.card .name { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.card .name:hover { color: var(--blue); }
.card .type { font-size: 13px; color: var(--muted); }
.card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.card .price { font-size: 21px; font-weight: 800; line-height: 1.15; }
.eur { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

.stock {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  transform: translateY(-1px);
}
.stock.ok { color: var(--ok); }
.stock.supplier { color: var(--supplier); }
.stock.presale { color: var(--presale); }
.stock.out { color: var(--out); }

/* Status colours on dark bands */
.on-dark .stock.ok { color: var(--ok-dark); }
.on-dark .stock.supplier { color: #8DB8EC; }
.on-dark .stock.presale { color: var(--flame-text); }
.on-dark .stock.out { color: var(--night-muted); }
.on-dark .card .stock.ok { color: var(--ok); }
.on-dark .card .stock.supplier { color: var(--supplier); }
.on-dark .card .stock.presale { color: var(--presale); }
.on-dark .card .stock.out { color: var(--out); }

/* Cards on dark bands */
.dark-card {
  background: var(--night-card);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  color: var(--night-text);
}
/* Photo boxes keep their shape whatever the photo's proportions: the box
   has a fixed size or aspect ratio and the photo fits inside it. */
.plinth {
  display: block;
  overflow: hidden;
  min-height: 0;
  background: var(--bg);
  border-radius: 4px;
}
.plinth img, .card .card-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.plinth img { mix-blend-mode: multiply; }

/* ---------- Home ---------- */
.home-band { background: var(--band); color: var(--night-text); }
.home-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 20px;
}
.hero-main {
  flex: 2 1 640px;
  min-width: 0;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
}
.hero-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.hero-text h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 60px;
  line-height: 1;
}
.hero-text .hero-type { font-size: 18px; color: var(--night-soft); }
.hero-text .hero-desc { margin: 0; color: var(--night-muted); line-height: 1.6; }
.hero-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.hero-buy .price { font-size: 30px; font-weight: 800; }
.hero-buy .eur { color: var(--night-muted); }
.hero-img { flex: 1 1 260px; display: flex; justify-content: center; }
.hero-img .plinth { width: 340px; max-width: 100%; aspect-ratio: 1 / 1; padding: 26px; }
.hero-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-tile {
  flex: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--night-text);
}
.side-tile:hover { color: var(--night-text); border-color: #36506F; }
.side-tile .side-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.side-tile .side-title { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.side-tile .side-sub { font-size: 14px; color: var(--night-muted); }
.side-tile .plinth { width: 110px; height: 110px; flex: none; padding: 10px; }
.side-tile svg { width: 56px; height: 56px; color: var(--flame-text); flex: none; }

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 56px;
}
.cat-tile { padding: 18px; display: flex; flex-direction: column; gap: 14px; color: var(--night-text); }
.cat-tile:hover { color: var(--night-text); border-color: #36506F; }
.cat-tile .plinth { aspect-ratio: 16 / 10; padding: 16px; }
.cat-tile .cat-name { display: flex; justify-content: space-between; align-items: baseline; }
.cat-tile .cat-name span:first-child { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.cat-tile .cat-name span:last-child { font-size: 13px; color: var(--night-muted); }

.home-section { padding-top: 64px; padding-bottom: 24px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
}
.section-head a { font-size: 14px; font-weight: 700; }

.gems-band { background: var(--band); margin-top: 56px; }
.gems-band .container { padding-top: 64px; padding-bottom: 64px; }
.gems-band .section-head h2 { color: var(--night-text); }
.gems-band .section-head a { color: var(--flame-text); }
.gem { padding: 16px; display: flex; flex-direction: column; gap: 14px; color: var(--night-text); }
.gem:hover { color: var(--night-text); border-color: #36506F; }
.gem .plinth { aspect-ratio: 1 / 1; padding: 24px; }
.gem .gem-name { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.gem .gem-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gem .price { font-size: 18px; font-weight: 800; }
.gem .stock { margin-top: 0; }

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.trust div { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--ink); }
.trust strong { font-size: 15px; font-weight: 800; }
.trust span { font-size: 14px; color: var(--muted); line-height: 1.55; }

.welcome { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.welcome .container {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.welcome h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 36px; }
.welcome p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--body); }
.welcome .signature { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--blue); }

/* ---------- Category page ---------- */
.shop-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.shop-side { flex: 1 1 240px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 22px; }
.shop-content { flex: 999 1 560px; min-width: 0; }
.side-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 0;
}
.side-cats { display: flex; flex-direction: column; }
.side-cats a { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink); }
.side-cats a span { color: var(--muted); }
.side-cats a.active { color: var(--blue); font-weight: 800; }
.side-cats a.active span { color: var(--blue); }
.side-filter { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-side > div:first-child { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-filter label { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 14px; cursor: pointer; }
.side-filter label span { margin-left: auto; color: var(--muted); }
.side-filter input { width: 18px; height: 18px; accent-color: var(--blue); }
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.shop-toolbar label { display: flex; align-items: center; gap: 10px; }
.shop-toolbar select, .field select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  padding: 0 12px;
  color: var(--ink);
}

/* ---------- Product page ---------- */
.product-stage { background: var(--band); color: var(--night-text); }
.product-stage .container { padding-top: 24px; padding-bottom: 56px; }
.product-top { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; margin-top: 28px; }
.product-photo { flex: 1 1 480px; min-width: 0; aspect-ratio: 1 / 1; padding: 56px; border-radius: var(--radius); }
.product-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid #2C3F5A;
  color: var(--night-soft);
}
.chip.flame { background: var(--flame-text); border-color: var(--flame-text); color: var(--band); }
.product-info h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 58px; line-height: 1; }
.product-info .product-type { font-size: 19px; color: var(--night-soft); margin-top: -6px; }
.buy-box { padding: 24px; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.buy-box .price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.buy-box .price-big { font-size: 38px; font-weight: 800; line-height: 1.1; }
.buy-box .eur { color: var(--night-muted); font-size: 13px; }
.buy-box .stock { margin-top: 0; font-size: 15px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-row .btn { flex: 1 1 200px; min-height: 54px; font-size: 16px; }
.buy-note { font-size: 13px; color: var(--night-muted); }

.qty {
  display: flex;
  align-items: center;
  height: 54px;
  border: 1px solid #2C3F5A;
  border-radius: 4px;
  background: var(--band);
}
.qty button { width: 46px; height: 100%; background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; }
.qty input[type=number] { width: 40px; height: auto; padding: 0; text-align: center; border: 0; background: transparent; color: inherit; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.light { height: 44px; border-color: var(--field); background: var(--card); }
.qty.light button { width: 40px; font-size: 18px; }

.watch-box { padding: 16px 18px; border-radius: var(--radius); background: var(--night-chip); border: 1px solid var(--night-line); }
.watch-box p { margin: 0 0 10px; }
.watch-box .watch-note { margin: 10px 0 0; font-size: 13px; color: var(--night-muted); }
.watch-box a:not(.btn) { color: var(--flame-text); }
.watch-box .btn.detail { color: var(--night-text); border-color: var(--night-soft); }
.watch-box .btn.detail:hover { background: var(--night-text); color: var(--band); }

.product-details { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.product-details .description { flex: 2 1 560px; min-width: 0; }
.product-details aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.description p { margin: 0 0 14px; line-height: 1.75; color: var(--body); }
.description ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.75; color: var(--body); }
.params { margin: 0; font-size: 14px; }
.params div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.params div:last-child { border-bottom: 0; }
.params dt { color: var(--muted); }
.params dd { margin: 0; font-weight: 700; text-align: right; }
.ext-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.panel .side-label { margin-bottom: 12px; }
.price-chart-block { margin-top: 28px; }
.price-chart-block canvas { max-height: 320px; }
.chart-status-msg { color: var(--muted); font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.field, .admin-form-grid label {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
}
.field.full, .admin-form-grid .span-2 { flex-basis: 100%; }
.field.short, .admin-form-grid label.short { flex: 0 1 140px; }
.admin-form-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.admin-form-grid label br, .field br { display: none; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  border: 1px solid var(--field);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
input[type=text], input[type=email], input[type=password], input[type=tel], select { height: 48px; padding: 0 14px; width: 100%; }
textarea { width: 100%; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(30, 111, 176, 0.35); outline-offset: 0; border-color: var(--blue); }
.search-bar input:focus { outline: none; }
.check, .auth-check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.check input, .auth-check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.form-message { padding: 12px 14px; border-radius: var(--radius); margin: 10px 0; }
.form-message.ok { background: #E3F2E8; color: #14532D; }
.form-message.error { background: #FDECEA; color: #8A1C12; }
.hint {
  background: var(--blue-tint);
  border: 1px solid #C3DAF0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
}

/* ---------- Cart ---------- */
.two-col { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.two-col > .main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.two-col > aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cart-items { padding: 8px 28px 12px; }
.cart-items .count-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .plinth { width: 104px; height: 104px; padding: 10px; flex: none; }
.cart-row .cart-name { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-row .cart-name a { font-size: 17px; font-weight: 700; color: var(--ink); }
.cart-row .cart-name a:hover { color: var(--blue); }
.cart-row .cart-name .muted { font-size: 13px; }
.cart-row .stock { margin-top: 2px; }
.cart-row .line-total { width: 120px; text-align: right; font-size: 18px; font-weight: 800; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 4px; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--line-soft); color: var(--danger); }
.icon-btn svg { width: 18px; height: 18px; }
.summary { display: flex; flex-direction: column; gap: 14px; }
.summary h2 { margin: 0; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary .line span:first-child { color: var(--muted); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.summary .total strong { font-size: 28px; font-weight: 800; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.secure-note svg { width: 16px; height: 16px; flex: none; }
.why-us { background: var(--band); color: var(--night-text); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.why-us p { margin: 0; font-size: 14px; color: var(--night-soft); line-height: 1.6; }
.empty-cart { padding: 56px 28px; text-align: center; color: var(--muted); }
.empty-cart p { margin: 0 0 18px; font-size: 17px; }

/* ---------- Checkout ---------- */
.co-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.co-section h2 .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 14px; font-weight: 800;
}
.co-section h3 { margin: 22px 0 14px; font-size: 16px; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.radio-group label:hover { border-color: #AFC3D9; }
.radio-group label:has(input:checked) { border: 2px solid var(--blue); padding: 15px 17px; background: #F2F7FC; }
.radio-group input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin: 0; }
.radio-group .ship-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.checkout-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.checkout-note.warn { color: var(--danger); }
.pickup-selected {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 10px;
  background: var(--card);
}
.pickup-selected.chosen { border-color: var(--ok); }
.pickup-selected .ps-name { font-weight: 700; }
.pickup-selected .ps-warning { color: var(--danger); margin-top: 6px; }
.parcelshop-map { width: 100%; min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 900px) { .sticky-aside { position: sticky; top: 20px; } }
.checkout-summary h2 { margin: 0 0 6px; }
.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.checkout-line .line-name { display: flex; align-items: center; gap: 12px; }
.checkout-line .plinth { width: 52px; height: 52px; padding: 6px; flex: none; }
.checkout-line strong, .checkout-line > span:last-child { white-space: nowrap; }
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 800;
}
.checkout-summary-total strong { font-size: 30px; }
#checkout-error { color: var(--danger); }
.confirmation { max-width: 640px; margin: 0 auto; text-align: center; padding: 56px 32px; }
.confirmation h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; margin: 0 0 16px; }

/* ---------- Login, registration, account ---------- */
.auth-wrap { max-width: 520px; }
.auth-box { display: flex; flex-direction: column; gap: 16px; }
.auth-box form { display: flex; flex-direction: column; gap: 16px; }
.auth-box form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--body); }
.auth-box form label.auth-check { flex-direction: row; font-size: 14px; font-weight: 500; line-height: 1.5; align-items: flex-start; }
.auth-box form label.auth-check input { margin-top: 1px; }
.auth-links { font-size: 14px; }
.benefits { margin: 0; padding-left: 20px; line-height: 1.8; color: var(--body); }

.account-page { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.account-nav { flex: 1 1 240px; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.account-nav .who { padding: 6px 14px 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; word-break: break-all; }
.account-nav .who strong { display: block; color: var(--ink); }
.account-nav a { padding: 11px 14px; border-radius: 4px; font-weight: 700; color: var(--ink); }
.account-nav a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.account-content { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.account-content .panel > .muted:first-of-type { margin-top: -8px; }
.account-order-detail { padding: 10px 0; }

/* Tables (account orders and watches) */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--line-soft); padding: 12px 8px; text-align: left; font-size: 14px; vertical-align: middle; }
.cart-table th { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cart-table img { width: 56px; height: 56px; object-fit: contain; }
.table-scroll { overflow-x: auto; }

/* ---------- Payment return, terms ---------- */
.terms-text { max-width: 860px; line-height: 1.65; color: var(--body); }
.terms-text h2 { font-family: var(--sans); font-size: 18px; margin: 28px 0 10px; color: var(--ink); }
.terms-text .terms-title { font-family: var(--serif); font-size: 30px; margin-top: 0; }
.terms-text .terms-intro { color: var(--muted); }
.terms-text .terms-sub { margin-left: 28px; }
.terms-text .terms-date { margin-top: 24px; font-style: italic; }
.terms-en-note { background: #FFF6E0; border: 1px solid #F0D58C; padding: 12px 16px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
footer { background: var(--night); color: var(--night-muted); font-size: 13px; }
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}
footer a { color: var(--night-muted); }
footer a:hover { color: var(--night-text); }
footer .footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar .left { display: none; }
  .topbar .container { justify-content: flex-end; }
  .catnav .container { scrollbar-width: none; }
  .home-hero { padding-top: 16px; gap: 12px; }
  .hero-img { order: -1; flex-basis: 100%; }
  .hero-img .plinth { width: 100%; aspect-ratio: 4 / 3; padding: 16px; }
  .hero-side { gap: 12px; }
  .side-tile { padding: 16px; }
  .side-tile .plinth { width: 80px; height: 80px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 32px; }
  .cat-tile { padding: 10px; gap: 8px; }
  .cat-tile .plinth { padding: 8px; }
  .cat-tile .cat-name { flex-direction: column; gap: 0; }
  .cat-tile .cat-name span:first-child { font-size: 19px; }
  .gems-band .container { padding-top: 40px; padding-bottom: 40px; }
  .home-section { padding-top: 40px; }
  .trust { padding-top: 32px; padding-bottom: 32px; }
  .page-band .container { padding-top: 20px; padding-bottom: 24px; }
  .page-main { padding-top: 20px; padding-bottom: 48px; }
  .product-stage .container { padding-bottom: 32px; }
  .product-top { gap: 20px; margin-top: 16px; }
  .shop-side { padding: 14px 16px; gap: 0; }
  .shop-side > div:first-child { display: none; }
  .side-filter { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .side-filter legend { margin-bottom: 4px; }
  .side-filter label span { margin-left: 0; }
  .steps { display: none; }
  .cart-row { gap: 12px 16px; }
  .cart-row .plinth { width: 72px; height: 72px; padding: 6px; }
  .cart-row .cart-name { flex: 1 1 180px; }
  .buy-box .price-big { font-size: 32px; }
  .header-row { gap: 12px; }
  .logo img { height: 44px; }
  .search-bar { order: 3; flex-basis: 100%; }
  .cart-link { margin-left: auto; padding: 0 12px; }
  .cart-link .cart-label { display: none; }
  .catnav .container { gap: 0 20px; overflow-x: auto; flex-wrap: nowrap; }
  .catnav a { font-size: 13px; white-space: nowrap; }
  .page-band h1 { font-size: 36px; }
  .hero-main { padding: 20px; gap: 20px; }
  .hero-text h1 { font-size: 40px; }
  .section-head h2 { font-size: 32px; }
  .product-info h1 { font-size: 40px; }
  .product-photo { padding: 24px; }
  .panel, .admin-form-panel { padding: 20px; }
  .cart-items { padding: 4px 18px 8px; }
  .cart-row .line-total { width: auto; margin-left: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .card-img { padding: 14px; }
  .card .card-body { padding: 0 12px 12px; }
  .card .name { font-size: 14px; }
  .card .price { font-size: 17px; }
  .card .card-foot { flex-direction: column; align-items: stretch; }
  .badge { top: 8px; left: 8px; font-size: 11px; padding: 3px 7px; }
}
