@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --orange: #e0601c;
  --orange-dark: #b94a12;
  --ink: #111;
  --gray: #dcdcdc;
  --gray-light: #f2f2f2;
  --gray-mid: #8a8a8a;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px); position: relative; z-index: 5;
}
.logo { font-family: var(--display); font-size: 1.7rem; letter-spacing: .02em; text-decoration: none; }
.logo-sm { font-size: 1.1rem; }
.site-header nav { display: flex; gap: 28px; font-size: .8rem; }
.site-header nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-color: var(--orange); }

.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid #e3e3e3; font-size: .75rem; color: #444;
}
.site-footer p { margin: 6px 0; max-width: 260px; }
.site-footer nav { display: flex; flex-direction: column; gap: 4px; }
.site-footer nav a { text-decoration: none; color: #555; }
.site-footer nav a:hover { color: var(--orange); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 520px; background: var(--gray);
  margin-top: -66px; padding-top: 66px; overflow: hidden;
}
.hero-feature-art {
  position: absolute; inset: 0 0 0 38%; display: block;
}
.hero-feature-art img { width: 100%; height: 100%; object-fit: contain; object-position: center 55%; mix-blend-mode: multiply; opacity: .95; }
.hero-copy {
  position: relative; z-index: 2; width: min(520px, 92%); margin: 56px 0 0 clamp(16px, 4vw, 48px);
  background: rgba(220, 220, 220, .78); padding: 24px 28px 28px; backdrop-filter: blur(3px);
}
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; }
.hero h1 mark { background: var(--ink); color: var(--orange); padding: 0 .2em; }
.hero p { margin: 0 0 14px; }
.hero .scroll-cue { color: var(--orange); font-weight: 700; text-decoration: none; }
.hero .scroll-cue:hover { text-decoration: underline; }

.featured-tag {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: 20px; z-index: 3; text-align: right;
  text-decoration: none; color: #fff; background: rgba(17, 17, 17, .78); padding: 10px 16px; font-size: .8rem;
}
.featured-tag strong { display: block; font-size: .95rem; }
.featured-tag:hover { background: var(--orange-dark); }

/* ---------- products ---------- */
.band { background: var(--orange); color: #fff; text-align: center; padding: 34px 16px; }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: .35em; margin: 0; padding-left: .35em; }

.products { max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 56px; }
.search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.search-box { position: relative; flex: 1 1 280px; max-width: 460px; }
.search-box input {
  width: 100%; font: inherit; padding: 12px 40px 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff;
}
.search-box input:focus { border-color: var(--orange); outline: none; }
.search-box button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font-size: 1.2rem; cursor: pointer; padding: 6px 10px; display: none;
}
.search-box button.show { display: block; }
.search-row select { font: inherit; padding: 12px; border: 2px solid var(--ink); border-radius: 0; background: #fff; }
.result-count { font-size: .85rem; color: var(--gray-mid); margin: 6px 0 22px; min-height: 1.3em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 1; background: var(--gray-light); overflow: hidden; margin-bottom: 12px; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.card:hover .thumb img { transform: scale(1.05); }
.card h3 { margin: 0; font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .by { font-size: .78rem; color: #555; margin: 8px 0 6px; }
.card .price { font-size: 1.25rem; font-weight: 700; color: var(--orange); }
.card .stock-low { font-size: .72rem; color: var(--orange-dark); }
.card:hover h3 { color: var(--orange); }
.empty { padding: 40px 0; text-align: center; color: #444; grid-column: 1 / -1; }
.empty strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.error-box { background: #fff3ec; border: 2px solid var(--orange); padding: 18px; margin: 24px 0; }

/* ---------- info pages ---------- */
.panel-page { background: var(--gray); }
.panel-page main { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; text-align: center; }
.panel-page h1, .panel-page h2 { font-family: var(--display); font-weight: 400; color: var(--orange); }
.panel-page h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin: 0 0 20px; }
.panel-page h2 { font-size: 2.4rem; margin: 40px 0 16px; }
.panel-page p { margin: 0 0 18px; }

.contact-card { max-width: 640px; margin: 40px auto; padding: 28px 32px; background: rgba(255,255,255,.55); }
.contact-card h1 { color: var(--ink); font-size: 2.2rem; margin-top: 0; text-align: center; }
.contact-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; align-items: start; }
.contact-row dt { font-weight: 700; font-size: 1.1rem; }
.contact-row dd { margin: 0; }
.contact-row dd a, .contact-row dd span { display: block; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 28px; text-align: left; margin-top: 24px; }
.member { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 56px; height: 56px; flex: none; background: var(--ink); color: var(--orange);
  display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem;
}
.member strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.member span { font-size: .8rem; color: #444; }

/* ---------- checkout ---------- */
.checkout { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px 64px; }
.crumbs { font-size: .8rem; margin: 8px 0 20px; }
.crumbs a { color: var(--orange-dark); }
.checkout h1 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; margin: 0 0 20px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.summary { background: var(--gray-light); padding: 20px; position: sticky; top: 16px; }
.summary .thumb { aspect-ratio: 1; background: #fff; margin-bottom: 14px; }
.summary .thumb img { width: 100%; height: 100%; object-fit: contain; }
.summary h2 { font-size: 1.1rem; margin: 0 0 4px; }
.summary .by { font-size: .8rem; color: #555; margin: 0 0 10px; }
.summary ul { margin: 10px 0 14px; padding-left: 18px; font-size: .85rem; color: #333; }
.line { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.line.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-size: 1.25rem; font-weight: 700; }
.line.total span:last-child { color: var(--orange); }

fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 12px; border: 2px solid #bbb; border-radius: 0; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline: none; }
.field .err { color: #b3261e; font-size: .8rem; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qty { display: inline-flex; border: 2px solid var(--ink); width: max-content; }
.qty button { width: 40px; border: 0; background: var(--gray-light); font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--orange); color: #fff; }
.qty input { width: 56px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay { display: flex; flex-direction: column; gap: 8px; }
.pay label { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px solid #bbb; cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--orange); background: #fff3ec; }
.btn {
  font: inherit; font-weight: 700; background: var(--orange); color: #fff; border: 0; padding: 15px 28px;
  cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.btn:hover { background: var(--orange-dark); }
.btn-block { width: 100%; }
.note { font-size: .78rem; color: #555; margin-top: 10px; }

.confirm { max-width: 560px; margin: 40px auto; padding: 32px; border: 3px solid var(--orange); text-align: center; }
.confirm h1 { color: var(--orange); }
.confirm dl { text-align: left; margin: 20px 0; }
.confirm .line { border-bottom: 1px solid #e3e3e3; }

@media (max-width: 800px) {
  .site-header nav { gap: 16px; }
  .hero { min-height: 560px; }
  .hero-feature-art { inset: 40% 0 0 0; }
  .hero-copy { margin-top: 24px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .thumb img { transition: none; }
}
