:root {
  --ink: #17202a;
  --muted: #68727d;
  --line: #d6dde2;
  --paper: #f3f5f7;
  --panel: #ffffff;
  --graphite: #17202a;
  --teal: #23858c;
  --teal-dark: #14666d;
  --amber: #f47b20;
  --amber-dark: #d95f0f;
  --danger: #ad2f2f;
  --shadow: 0 14px 34px rgba(31, 45, 57, 0.12);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f9fb 0, #eef2f5 540px, #f3f5f7 100%),
    repeating-linear-gradient(90deg, rgba(23, 32, 42, 0.035) 0, rgba(23, 32, 42, 0.035) 1px, transparent 1px, transparent 84px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(16px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--graphite) 0 58%, var(--amber) 58% 100%);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 12px;
  border-radius: 2px;
  text-decoration: none;
  color: #273037;
  font-size: 15px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #e8ecea;
}

.cart-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 4px;
  padding: 0 6px;
  color: #fff;
  background: var(--amber);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  min-height: calc(92vh - 59px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 68px) clamp(16px, 5vw, 64px) 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.5)),
    linear-gradient(135deg, rgba(244, 123, 32, 0.11), rgba(35, 133, 140, 0.08));
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.15;
}

.lead {
  max-width: 620px;
  color: #3c464d;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.76);
  border-left: 3px solid var(--amber);
  color: #33404a;
  font-size: 13px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1.32;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(17, 20, 23, 0.12);
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #b6c0c8;
  border-radius: 2px;
  background: #fff;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 20, 23, 0.12);
}

.button.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: #25313b;
}

.button.small {
  min-height: 38px;
  padding: 8px 13px;
  background: #25313b;
  border-color: #25313b;
  color: #fff;
}

.button.added {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.wide {
  width: 100%;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.stats-band,
.process-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(16px, 5vw, 64px) clamp(42px, 6vw, 74px);
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(31, 45, 57, 0.08);
}

.stats-band > div,
.process-band > div {
  min-height: 142px;
  padding: 24px;
  background: var(--panel);
}

.stats-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 27px;
  font-weight: 700;
}

.stats-band span,
.process-band p,
.muted {
  color: var(--muted);
}

.section-shell,
.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 42px 0 72px;
}

.page-shell {
  padding: 44px 0 76px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 9px 24px rgba(31, 45, 57, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 123, 32, 0.55);
  box-shadow: 0 18px 38px rgba(31, 45, 57, 0.16);
}

.product-media {
  position: relative;
  background: #e8ecea;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1.22;
  object-fit: cover;
}

.product-category {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  background: rgba(23, 32, 42, 0.86);
  color: #fff;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
}

.product-body {
  padding: 18px;
}

.product-body h3 {
  min-height: 48px;
  margin-bottom: 10px;
  font-weight: 700;
}

.product-body p {
  color: #59636a;
  line-height: 1.42;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #edf0ef;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.product-footer strong {
  font-size: 22px;
  font-weight: 700;
  color: #111820;
}

.process-band {
  margin-top: 0;
}

.step-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--amber);
  font-weight: 900;
}

.catalog-hero {
  max-width: 860px;
  margin-bottom: 28px;
}

.catalog-hero h1,
.page-shell > section > h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.chip.active,
.chip:hover {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}

.search-box {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cdd4d5;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 98px;
  resize: vertical;
  padding: 10px 12px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.cart-row {
  display: grid;
  grid-template-columns: 34px 96px minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.cart-row img {
  width: 96px;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 2px;
  background: #e8ecea;
}

.cart-row h2 {
  margin-bottom: 4px;
  font-size: 21px;
}

.cart-row p {
  margin: 0;
  color: var(--muted);
}

.cart-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--danger);
  cursor: pointer;
  font-size: 25px;
}

.checkout-panel,
.admin-login {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  margin-bottom: 18px;
  font-size: 22px;
}

.checkout-form,
.login-form {
  display: grid;
  gap: 13px;
}

.checkout-form label,
.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-result,
.form-message {
  margin-top: 14px;
  color: var(--teal-dark);
  line-height: 1.45;
}

.checkout-result strong,
.checkout-result span {
  display: block;
}

.empty-state {
  padding: 28px;
  background: #fff;
  border: 1px dashed #b9c2c4;
  border-radius: 3px;
}

.admin-shell {
  min-height: 70vh;
}

.admin-login {
  max-width: 460px;
  margin: 48px auto;
}

.orders-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.order-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.order-head,
.order-total,
.order-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.order-id {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.order-head time {
  color: var(--muted);
  font-size: 14px;
}

.customer-box {
  margin: 16px 0;
  padding: 14px;
  background: #f4f6f5;
  border-radius: 2px;
}

.customer-box span,
.customer-box p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
}

.order-items {
  display: grid;
  gap: 8px;
}

.order-item {
  padding: 10px;
  border: 1px solid #edf0ef;
  border-radius: 2px;
}

.order-item img {
  width: 58px;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 2px;
}

.order-item span {
  flex: 1;
  font-weight: 800;
}

.order-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
  line-height: 1.64;
}

.legal-page h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.legal-page h2 {
  margin-top: 30px;
  font-size: 25px;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 16px 36px;
  color: #5f686f;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image img {
    max-height: 520px;
  }

  .stats-band,
  .process-band,
  .product-grid,
  .product-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar,
  .catalog-tools,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .stats-band,
  .process-band,
  .product-grid,
  .product-grid.compact {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 30px 78px minmax(0, 1fr) 34px;
  }

  .cart-row strong {
    grid-column: 3 / 4;
  }

  .cart-row img {
    width: 78px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
