:root {
  color-scheme: light;
  --ink: #f6f4ee;
  --muted: #b8bdb8;
  --line: #303832;
  --paper: #050606;
  --surface: #101311;
  --green: #153f35;
  --green-2: #276955;
  --terracotta: #b85b3e;
  --brass: #c99b45;
  --blue: #315d7c;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(21, 63, 53, 0.94);
  color: #fff;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brass);
  color: #1c211d;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, 0.7);
}

.nav-links,
.hero-actions,
.category-tabs,
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.cart-toggle,
.primary-button,
.secondary-button,
.secondary-light-button,
.tab-button,
.text-button,
.qty-button,
.add-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.cart-toggle {
  position: fixed;
  top: 16px;
  right: clamp(16px, 4vw, 42px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: #fff;
  color: var(--green);
}

.cart-toggle span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.82rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 23, 20, 0.92), rgba(13, 23, 20, 0.58) 42%, rgba(13, 23, 20, 0.1)),
    linear-gradient(0deg, rgba(13, 23, 20, 0.55), rgba(13, 23, 20, 0.03) 38%);
}

.hero-content {
  position: relative;
  display: grid;
  align-content: center;
  width: min(1040px, calc(100% - 32px));
  min-height: inherit;
  margin: 0 auto;
  padding: 54px 0 90px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5.6vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.primary-button,
.secondary-button,
.secondary-light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

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

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.secondary-light-button {
  border: 1px solid var(--line);
  background: #151a17;
  color: var(--ink);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 46px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.service-strip div {
  padding: 16px;
  background: rgba(15, 25, 22, 0.28);
}

.service-strip dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.service-strip dd {
  margin: 6px 0 0;
  font-weight: 850;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.intro p,
.muted {
  color: var(--muted);
  line-height: 1.75;
}

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

.category-tabs {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tab-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #101311;
  color: var(--muted);
}

.tab-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

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

.product-card,
.order-panel,
.cart-panel,
.visit-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  display: grid;
  min-height: 250px;
  padding: 16px;
}

.product-visual {
  display: grid;
  width: 100%;
  aspect-ratio: 1.55;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--item-color), color-mix(in srgb, var(--item-color), #fff 72%));
  color: #fff;
  font-size: 2.1rem;
  font-weight: 900;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.product-card p {
  min-height: 42px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.add-button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--blue);
  color: #fff;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.order-panel,
.cart-panel {
  padding: 22px;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d0c;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
}

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

textarea {
  min-height: 88px;
  padding-top: 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(39, 105, 85, 0.16);
}

.panel-heading {
  justify-content: space-between;
}

.text-button {
  min-height: 34px;
  padding: 0 10px;
  background: #1a201c;
  color: var(--ink);
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 118px;
  margin: 18px 0;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row strong {
  display: block;
  margin-bottom: 4px;
}

.cart-row small {
  color: var(--muted);
}

.qty-controls {
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d0c;
}

.qty-button {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: #171d19;
  color: var(--ink);
}

.qty-controls span {
  text-align: center;
  font-weight: 900;
}

.empty-state {
  display: grid;
  min-height: 118px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.totals {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.grand-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.18rem;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 22px;
  margin-bottom: 54px;
  padding: 28px;
}

.store-actions,
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

address {
  margin-bottom: 16px;
  font-style: normal;
  color: var(--muted);
}

.hours-list {
  display: grid;
  gap: 12px;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #151a17;
}

.hours-list span {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100% - 36px));
  transform: translateY(18px);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  padding: 14px 16px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.receipt-dialog {
  width: min(680px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.receipt-dialog::backdrop {
  background: rgba(10, 18, 15, 0.58);
}

.receipt-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101311;
  box-shadow: var(--shadow);
  padding: 22px;
}

.receipt-body {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.receipt-number {
  width: fit-content;
  border-radius: 8px;
  background: #1a201c;
  color: var(--ink);
  font-weight: 900;
  padding: 8px 10px;
}

.receipt-body pre {
  max-height: 380px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050606;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.admin-hero {
  padding: 34px 0 24px;
}

.admin-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 18px;
}

.admin-stats article,
.domain-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-stats article {
  padding: 18px;
}

.admin-stats span {
  color: var(--muted);
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d0c;
  padding: 14px;
}

.admin-item p {
  margin-bottom: 4px;
  color: var(--muted);
}

.admin-item small {
  color: var(--muted);
}

.admin-item-side {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.domain-box {
  margin: 14px 0;
  padding: 16px;
  color: var(--brass);
  font-size: 1.5rem;
  font-weight: 900;
}

.setup-list {
  color: var(--muted);
  line-height: 1.65;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-section,
  .intro,
  .visit-section,
  .admin-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100vw;
    padding-right: 118px;
  }

  .nav-links {
    order: 3;
    justify-content: flex-start;
    grid-column: 1 / -1;
  }

  .cart-toggle {
    top: 14px;
    right: 16px;
    justify-self: end;
    width: 88px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  h1 {
    max-width: min(100%, 330px);
    font-size: clamp(1.65rem, 7.8vw, 1.95rem);
    word-break: break-all;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 690px;
    width: calc(100vw - 32px);
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(13, 23, 20, 0.9), rgba(13, 23, 20, 0.48));
  }

  .service-strip,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .primary-button,
  .secondary-button,
  .secondary-light-button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
