:root {
  --page: #eef0ed;
  --surface: #ffffff;
  --surface-soft: #e7ebe7;
  --ink: #17201c;
  --muted: #5f6964;
  --line: #b9c0bb;
  --line-soft: #d4d9d5;
  --signal: #ef4938;
  --healthy: #139b68;
  --warning: #b87308;
  --danger: #c84538;
  --route: #3188d8;
  --radius: 5px;
  --rail: 244px;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
input, select, textarea {
  min-height: 42px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.button.secondary, .button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.button.danger, button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.muted { color: var(--muted); }

.storefront-section {
  margin-top: 20px;
}
.storefront-heading {
  margin-bottom: 14px;
}
.storefront-heading h3 {
  margin-bottom: 4px;
}
.storefront-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.storefront-categories {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.storefront-category-title,
.storefront-category {
  display: block;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.storefront-category-title {
  background: var(--surface-soft);
  font-weight: 700;
}
.storefront-category:last-child {
  border-bottom: 0;
}
.storefront-category {
  text-decoration: none;
}
.storefront-category.active {
  border-left: 4px solid var(--healthy);
  background: #f4faf7;
  color: #08764d;
  font-weight: 700;
}
.storefront-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  min-width: 0;
}
.storefront-product,
.storefront-empty {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.storefront-empty {
  grid-column: 1 / -1;
  padding: 20px;
}
.storefront-product-header {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-soft);
}
.storefront-product-header h3 {
  margin: 0;
  font-size: 1.15rem;
}
.storefront-product-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 42%);
  min-height: 285px;
}
.storefront-product-features,
.storefront-product-price {
  min-width: 0;
  padding: 16px;
}
.storefront-product-features .list {
  margin: 0;
  padding-left: 20px;
}
.storefront-product-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 1px solid var(--line-soft);
  text-align: right;
}
.storefront-product-price .stats {
  overflow-wrap: anywhere;
}
.storefront-product-meta {
  margin-top: 8px;
  color: var(--muted);
}
.storefront-order-actions,
.storefront-order-form {
  margin-top: auto;
  padding-top: 14px;
}
.storefront-order-form {
  text-align: left;
}
.storefront-order-form .form-grid {
  grid-template-columns: 1fr;
}
.storefront-order {
  width: 100%;
  border-color: #08764d;
  background: var(--healthy);
  color: #fff;
}
.storefront-services {
  margin-top: 20px;
}

@media(max-width:1100px) {
  .storefront-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .storefront-products {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media(max-width:720px) {
  .storefront-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .storefront-categories {
    display: flex;
    overflow-x: auto;
  }
  .storefront-category-title {
    display: none;
  }
  .storefront-category {
    flex: 1 0 auto;
    border-bottom: 0;
  }
  .storefront-category.active {
    border-left: 0;
    border-bottom: 4px solid var(--healthy);
  }
  .storefront-product-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .storefront-product-price {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
    text-align: left;
  }
}

.pg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
