:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #0f1c24;
  --muted: #5a6b76;
  --line: #e3e9ee;
  --brand: #0b3d5c;
  --brand-2: #1677a0;
  --accent: #7ec8e3;
  --ok: #1a7f4b;
  --err: #b42318;
  --warn: #9a6700;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 28, 36, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.55; min-height: 100vh;
  display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; height: auto; }
/* Media frames force cover; do not let height:auto break them */
.card-media img,
.gallery-main img,
.hero-card img,
.thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
}
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--brand); }
.logo img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 560; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-2); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch.lang-pills,
.lang-pills {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .1rem .15rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .2rem .35rem;
  background: var(--surface); max-width: 100%;
}
.lang-pill {
  border: none; background: transparent; color: var(--muted);
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .28rem .45rem; border-radius: 999px; cursor: pointer; line-height: 1;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  pointer-events: auto; -webkit-appearance: none; appearance: none;
}
a.lang-pill { color: var(--muted); text-decoration: none; }
.lang-pill:hover { color: var(--brand); text-decoration: none; }
.lang-pill[aria-current="true"],
.lang-pill[aria-pressed="true"] {
  background: var(--brand); color: #fff;
}
a.lang-pill[aria-current="true"],
a.lang-pill[aria-pressed="true"] { color: #fff; }
.lang-sep { color: var(--line); font-size: .75rem; user-select: none; padding: 0 .05rem; }
.lang-switch select { display: none; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; color: var(--ink);
}
.cart-badge {
  position: absolute; top: -.25rem; right: -.25rem; min-width: 1.15rem; height: 1.15rem;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem;
  display: grid; place-items: center; padding: 0 .25rem; font-weight: 700;
}
.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: .45rem .7rem; font: inherit;
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(126,200,227,.35), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15; margin: 0 0 .8rem; color: var(--brand);
}
.hero p.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 1.4rem; max-width: 38ch; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-card { aspect-ratio: 1 / 1; }
.hero-card img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; height: 100%; background: #f4f7f9; }

/* Trust */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1.5rem 0 0;
}
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem;
  font-size: .9rem; color: var(--muted);
}
.trust-item strong { display: block; color: var(--ink); margin-bottom: .15rem; }

/* Sections */
.section { padding: 2.5rem 0; }
.section h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 1.2rem; color: var(--brand); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  min-height: 100%; box-shadow: 0 4px 16px rgba(15,28,36,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-media {
  aspect-ratio: 1 / 1; width: 100%; min-height: 0; flex: 0 0 auto;
  background: #f4f7f9; display: block; overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  background: #f4f7f9; display: block;
}
.card-body {
  padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem;
  flex: 1 1 auto; min-height: 0;
}
.card-body .muted {
  margin: 0; font-size: .9rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.card-actions {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: auto; padding-top: .75rem;
}
.card-actions .btn { width: 100%; }
.card-actions .btn-primary {
  padding: .9rem 1rem; font-size: .95rem; font-weight: 700;
}
.card-actions .btn-secondary,
.card-actions .btn-quiet {
  padding: .5rem .85rem; font-size: .8rem; font-weight: 560;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.card-actions .btn-secondary:hover,
.card-actions .btn-quiet:hover {
  color: var(--brand); border-color: var(--brand-2); background: #fff;
}
.card-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; min-height: 2.6em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--brand); }
.price .was { font-weight: 500; color: var(--muted); text-decoration: line-through; font-size: .9rem; margin-left: .35rem; }
.tax { font-size: .8rem; color: var(--muted); }
.ship-chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem;
  background: #eef7fb; color: var(--brand); border-radius: 999px; padding: .25rem .65rem;
}
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
}
.why-item h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; border-radius: 999px; padding: .75rem 1.25rem; font: inherit; font-weight: 650;
  cursor: pointer; text-decoration: none; transition: .15s ease;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #072c42; color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-paypal {
  background: #ffc439; color: #003087; width: 100%; font-weight: 700; font-size: 1.02rem;
  border: 1px solid #f0b90b; display: inline-flex; align-items: center; justify-content: center;
  gap: .65rem; padding: 1rem 1.35rem; margin-top: .35rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,48,135,.08);
}
.btn-paypal:hover:not(:disabled) { filter: brightness(.97); }
.btn-paypal img { height: 22px; width: auto; flex-shrink: 0; display: block; }

/* Product */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: start; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #f4f7f9; aspect-ratio: 1 / 1; width: 100%;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f4f7f9; display: block;
}
.thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.thumbs button {
  border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: #f4f7f9; width: 72px; height: 72px; aspect-ratio: 1 / 1; flex: 0 0 auto;
}
.thumbs button[aria-current="true"] { border-color: var(--brand-2); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f4f7f9; display: block; }
.pdp-info h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5rem; color: var(--brand); }
.features { padding-left: 1.1rem; margin: 1rem 0; color: var(--muted); }
.buy-box {
  margin-top: 1.2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
}
.buy-box .qty-row { width: 100%; }
.buy-box .btn-primary {
  width: 100%; padding: .95rem 1.35rem; font-size: 1.02rem; font-weight: 700;
}
.buy-box .cart-link-text {
  display: inline-flex; justify-content: center; align-self: center;
  font-size: .88rem; font-weight: 550; color: var(--muted); text-decoration: none;
  padding: .25rem .5rem;
}
.buy-box .cart-link-text:hover { color: var(--brand); text-decoration: underline; }
.qty-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.qty-row input { width: 4.5rem; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* Cart / form */
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
}
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: .8rem; padding: .8rem 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.cart-line img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #f4f7f9; }
.cart-line .meta { font-size: .9rem; color: var(--muted); }
.totals { display: grid; gap: .4rem; margin-top: .8rem; font-size: .95rem; }
.totals .row { display: flex; justify-content: space-between; gap: 1rem; }
.totals .row.total { font-size: 1.15rem; font-weight: 700; color: var(--brand); border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .3rem; }
.form-grid { display: grid; gap: .85rem; }
.form-row { display: grid; gap: .35rem; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-row.phone { grid-template-columns: 110px 1fr; gap: .6rem; }
label { font-size: .88rem; font-weight: 600; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(22,119,160,.35); border-color: var(--brand-2); }
.field-error { color: var(--err); font-size: .8rem; min-height: 1em; }
.form-error {
  background: #fef3f2; color: var(--err); border: 1px solid #fecdca; border-radius: 10px;
  padding: .7rem .9rem; display: none;
}
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Legal / content */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.prose h1 { font-family: var(--serif); color: var(--brand); margin-top: 0; }
.prose h2 { font-size: 1.2rem; margin-top: 1.4rem; }
.company-block {
  margin-top: 1rem; padding: 1rem; background: #f3f7fa; border-radius: 12px;
  font-size: .9rem; line-height: 1.6;
}
.status-box { text-align: center; padding: 3rem 1rem; }
.status-box h1 { font-family: var(--serif); color: var(--brand); }
.muted { color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: auto; background: #0b3d5c; color: #d7e8f1; padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #d7e8f1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; }
.footer-grid h3 { margin: 0 0 .7rem; font-size: .95rem; color: #fff; letter-spacing: .02em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-legal {
  margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .82rem; color: #b7cfdb; line-height: 1.55;
}
.footer-copy { margin-top: .8rem; font-size: .8rem; color: #9bb6c5; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .pdp, .checkout-grid, .grid-3, .footer-grid, .trust { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    padding: 1rem; gap: .8rem;
  }
  .nav.open { display: flex; }
  .form-row.two, .form-row.phone { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line .line-total { grid-column: 2; }
  .lang-pills { gap: 0; padding: .15rem .25rem; }
  .lang-pill { padding: .22rem .36rem; font-size: .72rem; }
  .header-actions { gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
  .card-actions { flex-direction: column; }
}
