:root {
  --paper: #f4efe6;
  --paper-deep: #e7e0d4;
  --card: #fffcf8;
  --ink: #221c18;
  --muted: #6b6258;
  --line: #e3dacd;
  --sage: #23483d;
  --sage-soft: #e7f0eb;
  --stamp: #9d3a32;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", "STSong", serif;
  --shadow: 0 1px 0 rgba(34, 28, 24, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sage);
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
.eg-brand__zh,
.woocommerce-loop-product__title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 3.4rem);
  margin: 0 0 0.4rem;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 0;
}

p {
  margin: 0 0 0.8rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.eg-wrap {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

.eg-announce {
  background: var(--sage);
  color: #f7f3ec;
  font-size: 0.92rem;
}

.eg-announce p {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0.55rem 0;
}

.eg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.eg-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 12px 0 8px;
}

.eg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.eg-chop {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  border-radius: 3px;
  transform: rotate(-8deg);
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.eg-brand__names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.eg-brand__zh {
  max-width: 100%;
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.eg-brand__en {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eg-primary {
  flex: 1 1 100%;
  order: 3;
  overflow-x: auto;
}

.eg-menu {
  display: flex;
  gap: 8px 16px;
  margin: 0;
  padding: 4px 0 8px;
  list-style: none;
  white-space: nowrap;
}

.eg-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.eg-menu a[aria-current="page"],
.eg-lang a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.eg-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: 0 0 auto;
}

.eg-lang {
  display: flex;
  gap: 8px;
}

.eg-lang a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.eg-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.eg-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.eg-search {
  display: flex;
  gap: 8px;
  padding: 0 0 14px;
}

.eg-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
}

.eg-search button,
.eg-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  background: var(--sage);
  color: var(--card);
  padding: 0.45rem 1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.eg-search button {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

ul.products li.product a.button {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  align-self: flex-start;
  margin: 8px 6px 0;
}

.eg-search button:hover,
ul.products li.product a.button:hover {
  background: var(--ink);
  color: var(--card);
}

.eg-main {
  padding: 22px 0 48px;
}

.eg-hero {
  display: grid;
  gap: 22px;
  align-items: center;
}

.eg-kicker,
.eg-hero__en {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eg-hero__tagline {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.eg-hero__figure {
  margin: 0;
}

.eg-hero__figure img {
  width: 100%;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}

.eg-hero__figure figcaption {
  margin-top: 8px;
  color: var(--stamp);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.eg-field {
  min-width: 0;
  max-width: 100%;
}

.eg-field__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.eg-field__bar h2 {
  font-size: 1.15rem;
}

.eg-field__bar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.eg-field__toggle {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #ffb703;
  background: #172033;
  color: #fff8e8;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.eg-field__well,
.eg-field__static {
  max-width: 100%;
}

.eg-field__well {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 3px solid #24344d;
  background-color: #142033;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  touch-action: manipulation;
}

.eg-field__well[hidden],
.eg-field__static[hidden] {
  display: none !important;
}

.eg-field__static {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(46, 196, 182, 0.18), rgba(255, 93, 143, 0.14)),
    #172033;
}

.eg-mino {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: block;
  color: #fff;
  text-decoration: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.eg-mino.is-grabbed {
  z-index: 6;
  filter: drop-shadow(4px 10px 0 rgba(0, 0, 0, 0.35));
  cursor: grabbing;
  touch-action: none;
}

.eg-mino.is-rejected .eg-mino__cell {
  box-shadow: inset 0 0 0 3px #ff5d8f;
}

.eg-ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
}

.eg-ghost span {
  position: absolute;
  box-sizing: border-box;
  border-radius: 5px;
  border: 2px dashed #fff;
}

.eg-ghost.is-ok span {
  background: rgba(125, 206, 106, 0.45);
}

.eg-ghost.is-bad span {
  background: rgba(255, 93, 143, 0.5);
}

.eg-field__status {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: #ffb703;
  font-size: 0.88rem;
}

.eg-mino--static {
  position: relative;
}

.eg-mino__cell {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.eg-mino__name {
  position: absolute;
  left: 3px;
  bottom: 3px;
  z-index: 3;
  max-width: calc(100% - 6px);
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(12, 16, 28, 0.82);
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  pointer-events: none;
}

.eg-home {
  background:
    radial-gradient(circle at 0 0, rgba(255, 183, 3, 0.22), transparent 26%),
    radial-gradient(circle at 100% 8%, rgba(199, 125, 255, 0.2), transparent 24%),
    radial-gradient(circle at 80% 40%, rgba(46, 196, 182, 0.12), transparent 22%),
    #f6efe4;
}

.eg-home .eg-announce {
  background: #ef5d6a;
}

.eg-home .eg-header {
  background: rgba(20, 32, 51, 0.96);
  border-bottom-color: #24344d;
  color: #f8f1e6;
}

.eg-home .eg-brand,
.eg-home .eg-menu a,
.eg-home .eg-lang a,
.eg-home .eg-cart {
  color: #f8f1e6;
}

.eg-home .eg-chop {
  border-color: #ffb703;
  background: #ffb703;
}

.eg-home .eg-search input {
  background: #243044;
  color: #fff;
  border-color: #334864;
}

.eg-home .eg-search button {
  background: #ffb703;
  color: #172033;
  border-color: #ffb703;
}

.eg-home .eg-cats__list a:nth-child(4n + 1) { background: #ffe8a3; }
.eg-home .eg-cats__list a:nth-child(4n + 2) { background: #c8f4ef; }
.eg-home .eg-cats__list a:nth-child(4n + 3) { background: #ffd0dc; }
.eg-home .eg-cats__list a:nth-child(4n) { background: #e4d4ff; }


.eg-section__head,
.eg-cats,
.eg-shelf,
.eg-pay {
  margin-top: 36px;
}

.eg-section__head p,
.eg-note,
.eg-muted {
  color: var(--muted);
}

.eg-cats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.eg-cats__list a,
.eg-cats__empty {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 96px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.eg-cats__list span {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.eg-cats__list small {
  color: var(--muted);
}

.eg-callout {
  background: var(--sage-soft);
  border: 1px solid #c9ddd3;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.eg-callout--stop {
  background: #f8efe8;
  border-color: #efd2c4;
}

.eg-callout p:last-child {
  margin-bottom: 0;
}

ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  margin: 14px 0 0 !important;
  padding: 0;
  list-style: none;
}

ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
}

ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 8px 12px;
}

ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product a.woocommerce-loop-product__link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f3eee6;
  display: block;
}

ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.02rem;
  padding: 10px 6px 0 !important;
}

ul.products li.product .price {
  color: var(--sage);
  padding: 2px 6px 0;
  font-variant-numeric: tabular-nums;
}

.eg-price-note,
.eg-sample-stock {
  color: var(--stamp);
  font-size: 0.82rem;
  margin: 0 6px 4px;
}

.eg-stamp {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  border: 1px solid var(--stamp);
  color: var(--stamp);
  background: rgba(255, 252, 248, 0.92);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 5px 7px;
}

.eg-stamp--inline,
.eg-stamp-row .eg-stamp {
  position: static;
}

.eg-stamp-row {
  color: var(--stamp);
}

.eg-pay__list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.eg-pay__card {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 14px;
}

.eg-pay__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.eg-pay__card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.eg-status,
.eg-status:disabled {
  border: 1px solid var(--stamp);
  color: var(--stamp);
  background: transparent;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  cursor: not-allowed;
}

.eg-currency fieldset {
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin: 0 0 8px;
  padding: 10px 12px;
}

.eg-currency label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
}

.eg-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  background: #efeae1;
}

.eg-footer__grid {
  display: grid;
  gap: 22px;
}

.eg-footer__brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  overflow-wrap: break-word;
}

.eg-domain-note {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.92rem;
}

.eg-footer__links,
.eg-footer h2 {
  margin-top: 0;
}

.eg-footer__links {
  padding: 0;
  list-style: none;
}

.eg-footer__end {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.eg-page-wrap {
  width: min(760px, calc(100% - 28px));
}

.eg-page-wrap--commerce {
  width: min(1120px, calc(100% - 28px));
}

.eg-page__content h2,
.eg-draft h2 {
  margin-top: 1.4rem;
}

.eg-draft-banner {
  background: #f8efe8;
  border: 1px solid #efd2c4;
  border-radius: 14px;
  padding: 12px 14px;
}

.woocommerce-breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.woocommerce div.product {
  display: grid;
  gap: 8px 28px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none !important;
  width: auto !important;
  margin: 0;
}

.woocommerce div.product div.images img {
  border-radius: 18px;
  background: var(--card);
}

.woocommerce div.product .summary .price {
  color: var(--sage);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  padding: 0;
}

.woocommerce-tabs ul.tabs li a {
  color: var(--ink);
}

.woocommerce-tabs .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--card);
  border-top: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

.woocommerce-error {
  border-color: #efd2c4;
  background: #f8efe8;
}

.woocommerce table.shop_table {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  border-color: var(--line);
}

.cart_totals,
.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  font-family: var(--sans);
}

.wc-block-components-sidebar,
.wc-block-components-main,
.wc-block-cart__main,
.wc-block-cart__sidebar,
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
  background: transparent;
}

.wc-block-components-product-name {
  color: var(--ink);
  font-family: var(--serif);
}

body.eg-checkout-locked #place_order,
body.eg-checkout-locked .eg-place-order,
body.eg-checkout-locked .wc-block-components-checkout-place-order-button {
  background: #d9d3c9 !important;
  color: #6b6258 !important;
  border-color: #d9d3c9 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 1;
}

.woocommerce-pagination,
.pagination {
  margin-top: 18px;
}

.woocommerce-pagination ul,
.pagination .nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}

@media (min-width: 800px) {
  .eg-primary {
    flex: 1 1 auto;
    order: 0;
  }

  .eg-menu {
    justify-content: center;
  }

  .eg-hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 40px;
    align-items: stretch;
  }

  .eg-cats__list,
  .eg-pay__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .eg-pay__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .eg-footer__grid {
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    align-items: start;
  }

  .woocommerce div.product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product div.images {
    grid-column: 1;
    grid-row: 1;
  }

  .woocommerce div.product .summary {
    grid-column: 2;
    grid-row: 1;
  }

  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells {
    grid-column: 1 / -1;
  }
}

@media (max-width: 699px) {
  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: block;
    margin-bottom: 12px;
    padding: 8px;
  }

  .woocommerce table.shop_table_responsive td,
  .woocommerce-page table.shop_table_responsive td {
    display: block;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
