:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #202a23;
  --green: #244633;
  --dark-green: #182c20;
  --muted: #586456;
  --line: #dedfd7;
  --error: #a32228;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .57; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #547357;
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(calc(100% - 96px), 1328px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; inset: 12px auto auto 12px; padding: 10px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.masthead { background: var(--paper); border-bottom: 1px solid rgb(32 42 35 / 8%); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px 28px; }
.wordmark { width: fit-content; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.08em; }
.wordmark span { color: #658366; margin-left: .06em; }
.site-nav, .header-actions { display: flex; align-items: center; gap: clamp(22px, 3.5vw, 53px); font-size: 14px; white-space: nowrap; }
.site-nav a:hover, .footer-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { justify-self: end; gap: 23px; }
.plain-button { display: inline-flex; align-items: center; gap: 9px; justify-content: center; padding: 0; border: 0; background: transparent; }
.header-actions button { min-height: 44px; }
.search-icon { display: inline-block; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 3px; position: relative; flex: none; }
.search-icon::after { content: ""; position: absolute; top: 11px; left: 11px; width: 6px; height: 1.5px; transform: rotate(45deg); transform-origin: left; background: currentColor; }
.bag-icon { display: inline-block; width: 16px; height: 15px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; margin-top: 4px; flex: none; }
.bag-icon::before { content: ""; position: absolute; width: 8px; height: 7px; border: 1.5px solid currentColor; border-radius: 5px 5px 0 0; border-bottom: 0; left: 2.5px; top: -6px; }
.cart-count { min-width: 23px; height: 23px; border-radius: 99px; display: grid; place-items: center; background: #e6ebe2; color: var(--green); font-size: 12px; }
.hero { position: relative; isolation: isolate; background: #193323; color: #fffdf1; overflow: hidden; }
.hero > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 23 13 / 49%), transparent 64%); }
.hero-inner { min-height: clamp(430px, 39vw, 590px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 54px; }
.hero-kicker { font-size: 13px; letter-spacing: .21em; margin-bottom: 20px; color: #f0ead7; }
.hero h1 { font-family: var(--serif); font-size: clamp(46px, 5.25vw, 79px); line-height: 1.22; font-weight: 700; letter-spacing: .035em; }
.hero-description { margin-top: 22px; color: #f0ead7; line-height: 1.65; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 18px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 600; transition: background-color .16s ease, color .16s ease; }
.hero-button { background: #f4f0e1; color: #213522; margin-top: 29px; }
.hero-button:hover { background: #fffdf1; }
.primary-button { background: var(--green); color: #fff; }
.primary-button:hover { background: var(--dark-green); }
.secondary-button { border-color: var(--line); background: transparent; }
.secondary-button:hover { background: #ebeee7; }
.full-width { width: 100%; }
.catalog { padding-block: 67px 87px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 29px; }
.catalog h2 { font: 700 clamp(26px, 3vw, 43px)/1.35 var(--serif); letter-spacing: .025em; }
.catalog-demo { margin-top: 7px; }
.search-form { width: min(100%, 260px); display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); padding: 0 13px; border-radius: 3px; color: var(--muted); }
.search-form:focus-within { border-color: var(--green); }
.search-form input { width: 100%; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; font-size: 14px; }
.catalog-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 21px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filters button { border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; background: transparent; font-size: 13px; color: var(--muted); }
.category-filters button:hover { border-color: var(--green); }
.category-filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.product-count, .muted { color: var(--muted); font-size: 13px; }
.product-count { white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-image-button, .detail-media { width: 100%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 4px; background: #ebe8df; overflow: hidden; }
.product-image-button img, .detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-image-button img { transition: transform .22s ease; }
.product-image-button:hover img { transform: scale(1.045); }
.product-card-body { display: flex; flex-direction: column; gap: 7px; flex: 1; padding: 15px 2px 0; }
.product-name { border: 0; padding: 0; background: transparent; text-align: left; font-size: clamp(15px, 1.35vw, 19px); font-weight: 650; }
.product-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-description { line-height: 1.6; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 7px; }
.card-price { font-size: 18px; font-variant-numeric: tabular-nums; }
.quick-add, .icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; }
.quick-add:hover:not(:disabled), .icon-button:hover { background: #e5ebe2; border-color: #e5ebe2; }
.empty-state { padding: 20px 0; color: var(--muted); }
.site-footer { background: #eaece5; }
.footer-inner { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer-inner p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.footer-link { font-size: 14px; }
dialog { margin: auto; border: 1px solid var(--line); padding: 0; color: var(--ink); background: var(--white); border-radius: 5px; }
dialog::backdrop { background: rgb(16 26 20 / 52%); }
.product-dialog { width: min(calc(100% - 32px), 800px); max-height: calc(100% - 32px); }
.dialog-close { position: absolute; inset: 12px 12px auto auto; background: var(--white); z-index: 1; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail-media { display: grid; align-self: center; border-radius: 0; }
.detail-content { align-self: center; padding: 62px 26px 32px; }
.detail-content h2 { font: 700 clamp(22px, 3vw, 32px)/1.32 var(--serif); margin: 8px 0 14px; }
.detail-description { line-height: 1.7; overflow-wrap: anywhere; }
.detail-price { font-size: 24px; font-weight: 650; margin: 18px 0; }
.detail-content [role="status"] { margin-top: 12px; }
.cart-dialog { width: min(100%, 480px); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; border-radius: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 23px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font: 700 26px/1.3 var(--serif); }
.cart-body { padding: 8px 23px 28px; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 11px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-thumbnail { width: 62px; aspect-ratio: 1; background: #ebe8df; border-radius: 3px; overflow: hidden; }
.cart-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 14px; overflow-wrap: anywhere; }
.cart-item-note { margin-top: 4px; }
.quantity-controls { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.quantity-controls button { width: 35px; height: 36px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: 15px; }
.quantity-controls button:hover:not(:disabled) { background: #ebeee7; }
.cart-summary { display: flex; justify-content: space-between; gap: 12px; padding-block: 17px; }
.cart-body #cart-continue { margin-top: 9px; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; border: 1px solid var(--line); border-radius: 3px; padding: 10px 11px; min-height: 42px; font-weight: 400; background: var(--white); }
.form-stack textarea { resize: vertical; }
.form-stack .back-button { justify-self: start; padding-block: 7px; color: var(--green); }
.message { font-size: 14px; line-height: 1.5; }
.message:empty { display: none; }
.error-text { color: var(--error); }
.order-confirmation { display: grid; gap: 14px; padding-top: 16px; }
.order-confirmation strong { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .shell { width: min(calc(100% - 60px), 1328px); } }
@media (max-width: 750px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr 1fr; gap: 0 16px; padding-top: 4px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: clamp(19px, 7vw, 45px); min-height: 43px; border-top: 1px solid var(--line); }
  .header-actions { gap: 16px; }
  .hero-inner { min-height: 430px; padding-block: 42px 155px; justify-content: flex-start; }
  .hero > img { object-position: 69% 55%; }
  .hero::before { background: linear-gradient(130deg, rgb(8 19 11 / 87%), rgb(8 19 11 / 25%) 67%, transparent 84%); }
  .hero-kicker { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(38px, 8.5vw, 55px); }
  .hero-description { max-width: 230px; margin-top: 15px; font-size: 14px; }
  .hero-button { margin-top: 19px; }
  .catalog { padding-block: 42px 55px; }
  .catalog-heading { margin-bottom: 17px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .footer-inner { min-height: 100px; }
}
@media (max-width: 480px) {
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .search-form { width: 100%; }
  .product-detail { display: block; }
  .detail-media { max-height: 41vh; }
  .detail-content { padding: 22px 18px 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
