@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("fonts/montserrat-900.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 300; font-display: swap; src: url("fonts/roboto-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("fonts/roboto-700.woff2") format("woff2"); }

:root {
  --ink: #261f29;
  --dark: #28262c;
  --muted: #6b6670;
  --line: #e4e2e8;
  --bg: #fafaff;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Montserrat", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0; }
strong, b { font-weight: 700; }

.bar { background: var(--dark); color: var(--white); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; }
header.site { background: var(--white); border-bottom: 1px solid var(--line); padding: 18px 20px; text-align: center; }
header.site img { height: 22px; display: inline-block; }

.hero { position: relative; min-height: 0; aspect-ratio: 1.87; display: grid; place-items: center; text-align: center; color: var(--white); background: #111 url("img/hero.jpg") center/cover no-repeat; padding: 80px 20px; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(40px, 8vw, 96px); }

.wrap { max-width: 760px; margin: 0 auto; padding: 64px 20px; }
.wrap.wide { max-width: 1040px; }
.lead { font-size: 19px; }
.muted { color: var(--muted); }

.btn { display: inline-block; font-family: "Roboto", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 16px 30px; border: 2px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.links a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); }

footer.site { text-align: center; font-size: 13px; color: var(--muted); padding: 40px 20px 60px; }

/* Order page */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 32px; }
.product { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); padding: 12px; }
.product .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h3 { font-size: 17px; }
.product p { margin: 0; font-size: 14px; color: var(--muted); }
.price { font-weight: 700; font-size: 17px; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 34px; height: 34px; border: 0; background: var(--white); font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--bg); }
.qty output { min-width: 30px; text-align: center; font-weight: 700; }
.soldout { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product.unavailable img { opacity: .45; }

.summary { margin-top: 40px; background: var(--white); border: 1px solid var(--line); padding: 24px; }
.summary table { width: 100%; border-collapse: collapse; font-size: 15px; }
.summary td { padding: 6px 0; }
.summary td:last-child { text-align: right; white-space: nowrap; }
.summary tr.total td { border-top: 2px solid var(--ink); padding-top: 12px; font-weight: 700; font-size: 18px; }
.summary td.empty { color: var(--muted); text-align: left; }

form.details { margin-top: 32px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; align-content: start; font-size: 14px; font-weight: 700; }
label span.opt { font-weight: 300; color: var(--muted); margin-left: 4px; }
.label-text { display: block; }
input, textarea, select { font: inherit; font-weight: 300; padding: 12px 14px; border: 1px solid #cfccd4; background: var(--white); color: var(--ink); border-radius: 0; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
textarea { min-height: 90px; resize: vertical; }
.note { font-size: 14px; color: var(--muted); }
.status { margin-top: 8px; font-weight: 700; }
.status.ok { color: #1e7a3c; }
.status.err { color: #a12a2a; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; }
  .wrap { padding: 44px 18px; }
}
@media (max-width: 600px) {
  .product img { aspect-ratio: auto; height: 200px; }
}
