:root {
  color-scheme: light;
  --page: #f7f8f4;
  --white: #fff;
  --ink: #173429;
  --muted: #5c6c62;
  --line: #dbe2d9;
  --green: #143f30;
  --green-hover: #21533e;
  --lime: #dbf485;
  --tint: #eef4ea;
  --alert: #9f3927;
  --shadow: 0 21px 75px rgba(20,63,48,.13);
  font-family: Inter,system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size: 16px;
  background: var(--page);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .53;
}

button,a,input,textarea,summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid #568f45;
  outline-offset: 3px;
}

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

p {
  line-height: 1.7;
}

h1,h2,h3,p,dl,dd {
  margin: 0;
}

h2 {
  font-size: 1.22rem;
  letter-spacing: -.02em;
}

h3 {
  font-size: 1.02rem;
}

[hidden] {
  display: none!important;
}

.wrap {
  width: min(100% - 64px,1160px);
  margin-inline: auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--lime);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
}

.brand small {
  display: block;
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--muted);
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .87rem;
}

.top-actions button,.footer-inner button {
  padding: 8px 0;
  background: none;
  border: 0;
  color: inherit;
}

.top-actions a:hover,.top-actions button:hover,.footer-inner button:hover,.text-button:hover {
  text-decoration: underline;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 5px;
  margin-left: 3px;
  border-radius: 1rem;
  background: var(--tint);
  font-size: .75rem;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  gap: 11px;
  padding: 26px 0 20px;
  color: var(--muted);
  font-size: .84rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
  gap: clamp(28px,6vw,92px);
  align-items: start;
}

.gallery {
  min-width: 0;
}

.media-frame {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 22px;
  overflow: hidden;
  background: #dfebe6;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 11px;
  margin-top: 12px;
  min-height: 68px;
  flex-wrap: wrap;
}

.thumb {
  width: 69px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  background: #fff;
  overflow: hidden;
}

.thumb[aria-pressed="true"] {
  border: 2px solid var(--green);
  padding: 2px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-copy {
  padding-top: 10px;
}

.eyebrow {
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 9px;
  font-weight: 700;
}

.product-copy h1 {
  font-size: clamp(1.95rem,4.1vw,3.15rem);
  line-height: 1.14;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.description {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 14px;
}

.price-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  background: var(--tint);
  border-radius: 16px;
  margin: 24px 0;
  padding: 16px 19px;
}

.price-label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1px;
}

.price-panel strong {
  font-size: clamp(1.95rem,4.3vw,2.85rem);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.price-panel p {
  font-size: .85rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.option-title h2 {
  font-size: 1rem;
}

.option-title span {
  font-size: .84rem;
  color: var(--muted);
}

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

.variation {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 7px;
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.variation[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: #f1f7e8;
}

.variation span {
  font-size: .82rem;
  color: var(--muted);
}

.variation strong {
  font-size: .94rem;
}

.product-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: .94rem;
  line-height: 1.4;
  text-align: center;
}

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

.button.primary:hover:not(:disabled) {
  background: var(--green-hover);
}

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

.button.ghost:hover:not(:disabled) {
  background: var(--tint);
}

.button.wide {
  width: 100%;
}

.text-button {
  background: none;
  border: 0;
  color: var(--green);
  font-weight: 650;
  padding: 8px 0;
}

.share-button {
  grid-column: 1/-1;
  justify-self: start;
}

.product-notes {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
  font-size: .78rem;
  color: var(--muted);
}

.product-notes span::before {
  content: '✓';
  font-weight: 800;
  color: var(--green);
  margin-right: 7px;
}

.inline-feedback {
  font-size: .88rem;
  min-height: 0;
  margin-top: 6px;
}

.inline-feedback:empty {
  display: none;
}

.inline-feedback[data-error="true"] {
  color: var(--alert);
}

.product-details,.catalog {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 36px;
  scroll-margin-top: 20px;
}

.product-details p {
  color: var(--muted);
  margin-top: 9px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.specifications {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin-top: 17px;
}

.specification {
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .89rem;
}

.specification span {
  display: block;
  color: var(--muted);
  font-size: .77rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,240px));
  gap: 13px;
  margin-top: 15px;
}

.catalog-item {
  display: block;
  padding: 10px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
}

.catalog-item:hover {
  border-color: var(--green);
}

.catalog-item img {
  border-radius: 10px;
  aspect-ratio: 1.5;
  object-fit: cover;
  width: 100%;
  margin-bottom: 8px;
}

.catalog-item strong {
  display: block;
  font-size: .93rem;
}

.catalog-item span {
  font-size: .84rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

.footer-inner {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mobile-buy {
  display: none;
}

.flow-view {
  padding-top: 24px;
  min-height: 54vh;
}

.flow-view>h1 {
  font-size: clamp(1.8rem,4vw,2.65rem);
  margin: 10px 0 21px;
  letter-spacing: -.04em;
}

.back-link {
  color: var(--muted);
  font-size: .87rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(290px,1fr);
  align-items: start;
  gap: 17px;
}

.flow-stack {
  display: grid;
  gap: 15px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 19px;
  min-width: 0;
}

.card h2 {
  margin-bottom: 15px;
}

.order-lines {
  display: grid;
  gap: 11px;
}

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
  font-size: .9rem;
}

.order-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.order-line small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.cart-line-actions button {
  min-width: 28px;
  min-height: 32px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
}

.cart-line-actions button[data-remove] {
  padding: 0 6px;
  font-size: .75rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-grid .full {
  grid-column: 1/-1;
}

label {
  display: block;
  font-size: .9rem;
  font-weight: 650;
}

.field-grid input,.field-grid textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
}

input,textarea {
  min-width: 0;
  padding: 10px 11px;
  min-height: 43px;
  border: 1px solid #c9d5ca;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.input-action {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 6px;
}

.input-action input {
  width: 100%;
  flex: 1;
}

.input-action button {
  white-space: nowrap;
}

.totals {
  display: grid;
  gap: 9px;
  margin: 15px 0;
}

.totals div,.payment-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  line-height: 1.5;
}

.totals dt,.payment-list dt {
  color: var(--muted);
  font-size: .89rem;
}

.totals dd {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.totals .total {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  margin-top: 2px;
  font-weight: 750;
}

.totals .total dd {
  font-size: 1.3rem;
}

.muted {
  color: var(--muted);
  font-size: .86rem;
}

.checkout-summary .wide {
  margin-top: 13px;
}

.notice {
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 11px 13px;
  border-radius: 10px;
  line-height: 1.6;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.notice[data-error="true"] {
  background: #fff3ef;
  color: var(--alert);
  border-color: #edc9bf;
}

.order-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.order-heading h2 {
  margin-bottom: 3px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.order-actions .button {
  min-height: 38px;
  padding: 6px 10px;
}

.order-status {
  border-radius: 20px;
  padding: 5px 10px;
  background: var(--tint);
  font-size: .82rem;
  font-weight: 700;
}

.order-status.status-paid,.order-status.status-shipped,.order-status.status-completed {
  background: #deedbe;
}

.payment-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.payment-list dd {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: .89rem;
  font-weight: 700;
}

.payment-list button {
  border: 0;
  background: var(--tint);
  color: var(--green);
  border-radius: 6px;
  margin-left: 5px;
  padding: 4px 7px;
  font-weight: 650;
  font-size: .79rem;
}

.payment-card .notice,.proof-form {
  margin-top: 14px;
}

.proof-form input {
  width: 100%;
  margin-top: 6px;
}

.proof-form button {
  margin-top: 10px;
}

.proof-hint {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 6px;
}

.address-text {
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: .9rem;
}

.tracking-number {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.order-status-details {
  margin-top: 11px;
}

.order-data {
  display: grid;
  gap: 12px;
}

.card .steps {
  margin-bottom: 0;
}

.steps {
  padding-left: 22px;
  display: grid;
  gap: 12px;
  margin: 0 0 15px;
}

.steps p {
  font-size: .88rem;
  color: var(--muted);
  margin-top: 3px;
}

dialog {
  width: min(94%,490px);
  max-height: calc(100% - 28px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
  background: #fff;
  overflow: auto;
}

dialog::backdrop {
  background: rgba(14,32,23,.51);
}

dialog.fallback-open {
  position: fixed;
  z-index: 10;
  inset: 10vh auto auto 3vw;
}

dialog .order-lines {
  margin-top: 15px;
}

.dialog-head,.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
}

.dialog-head {
  margin-bottom: 12px;
}

.dialog-foot {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.close-button {
  border: 0;
  background: var(--tint);
  color: var(--ink);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
  flex: none;
}

.sr-only {
  position: absolute!important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

@media (max-width:760px) {
  .wrap {
    width: min(100% - 30px,1160px);
  }
  .topbar {
    min-height: 61px;
    gap: 4px;
  }
  .brand {
    gap: 7px;
    font-size: .98rem;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    font-size: 1.07rem;
  }
  .brand small {
    font-size: .52rem;
  }
  .top-actions {
    gap: 13px;
    font-size: .82rem;
  }
  .nav-shop {
    display: none;
  }
  .breadcrumb {
    padding: 15px 0 12px;
    font-size: .8rem;
  }
  .product-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .media-frame {
    border-radius: 15px;
    max-height: 520px;
  }
  .thumbs {
    margin-top: 8px;
    min-height: 0;
    gap: 7px;
  }
  .thumb {
    width: 53px;
    border-radius: 8px;
  }
  .thumb img {
    border-radius: 5px;
  }
  .product-copy {
    padding-top: 2px;
  }
  .product-copy h1 {
    font-size: clamp(1.68rem,7vw,2.55rem);
  }
  .eyebrow {
    margin-bottom: 5px;
  }
  .description {
    font-size: .94rem;
    margin-top: 6px;
  }
  .price-panel {
    margin: 13px 0 15px;
    padding: 12px 13px;
  }
  .product-actions {
    display: none;
  }
  .product-notes {
    margin-top: 14px;
  }
  .mobile-buy {
    position: fixed;
    z-index: 2;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) minmax(0,1fr);
    align-items: center;
    gap: 7px;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom,0px));
  }
  .mobile-buy .text-button {
    font-size: .85rem;
    padding-inline: 6px;
  }
  .mobile-buy .button {
    padding-inline: 6px;
    font-size: .88rem;
  }
  .has-mobile-buy .site-footer {
    padding-bottom: calc(65px + env(safe-area-inset-bottom,0px));
  }
  .product-details,.catalog {
    margin-top: 24px;
    padding-top: 17px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .product-details p {
    font-size: .91rem;
  }
  .specification {
    padding: 8px;
    font-size: .83rem;
  }
  .specifications {
    gap: 5px;
  }
  .site-footer {
    margin-top: 28px;
  }
  .footer-inner {
    min-height: 53px;
  }
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 15px;
  }
  .flow-view {
    padding-top: 13px;
  }
  .flow-view>h1 {
    margin: 6px 0 13px;
  }
  .variation {
    padding: 10px 8px;
    gap: 4px;
  }
  .field-grid {
    gap: 9px;
  }
}

@media (max-width:360px) {
  .wrap {
    width: calc(100% - 22px);
  }
  .top-actions {
    gap: 8px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .product-notes {
    gap: 6px 10px;
  }
  .variation {
    padding-inline: 6px;
  }
}

.media-frame {
  aspect-ratio: 524/291;
}

.media-frame img {
  object-fit: contain;
}

.thumbs:empty {
  display: none;
}

.brand {
  min-width: 0;
}

.brand>span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  flex: none;
}

.footer-inner {
  flex-wrap: wrap;
  padding-block: 8px;
}

.payer-inputs,.account-orders {
  margin-top: 12px;
}

.card summary {
  font-weight: 750;
  cursor: pointer;
  min-height: 32px;
}

.history-line:hover strong {
  text-decoration: underline;
}

.history-status {
  text-align: right;
  flex: none;
}

.official-guide {
  font-size: .88rem;
  margin-top: 10px;
}

.official-guide a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#account-save {
  margin-top: 11px;
}

@media (max-width:760px) {
  .nav-guide {
    display: none;
  }
  .top-actions {
    flex: none;
  }
  .footer-inner {
    font-size: .77rem;
  }
  .product-layout {
    gap: 17px;
  }
}
