:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #55665c;
  --action: #185643;
  --border: #dfe7de;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f4f7f2; color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #479c63; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
header { background: white; border-bottom: 1px solid var(--border); }
nav, footer, .navlinks { display: flex; align-items: center; gap: 24px; }
nav { min-height: 72px; justify-content: space-between; }
.navlinks a { padding: 7px 0; white-space: nowrap; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 800; }
.brand-icon { display: block; width: 34px; height: 34px; flex: none; object-fit: cover; border-radius: 50%; }
.navlinks, footer { color: var(--muted); font-size: 14px; }
.navlinks a:hover, footer a:hover { color: var(--action); }
h1, h2, h3, p { margin-top: 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 360px;
  margin: 26px 0 24px; padding: clamp(32px, 5vw, 66px); border-radius: 24px;
  color: #f8fff7;
  background: radial-gradient(ellipse at 88% 68%, #356b49 0, transparent 49%), linear-gradient(125deg, #101e19, #193b2d 84%);
  display: flex; align-items: center;
}
.hero-copy { position: relative; z-index: 2; width: min(100%, 470px); }
.eyebrow { display: block; color: #c4dfb7; font-size: 14px; letter-spacing: .1em; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 5.5vw, 70px); line-height: 1.12; margin: 16px 0; letter-spacing: -.055em; }
.hero p { color: #d7e7dc; line-height: 1.65; margin-bottom: 25px; }
.button, button {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 15px; font: inherit;
  font-size: 14px; font-weight: 700; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--action); color: white;
}
.button:hover, button:hover { filter: brightness(.93); }
.hero-art { width: 43%; inset: 0 2% 0 auto; position: absolute; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; inset: -30%; transform: rotate(-25deg);
  background: repeating-radial-gradient(ellipse at 52% 55%, transparent 0 21px, #d6ffb01a 22px 23px, transparent 24px 34px);
  mask-image: linear-gradient(95deg, transparent 8%, black 56%);
}
.ticket {
  position: relative; width: min(76%, 330px); aspect-ratio: 1.72; border-radius: 20px; padding: 20px;
  background: linear-gradient(128deg,#e1f3b9,#a8d185 55%,#73ac6b);
  border: 1px solid #ecffd28c; color: #163525; transform: rotate(-12deg);
  box-shadow: 11px 14px 0 #e3f5c83d, 0 28px 50px #07140e95;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ticket::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, transparent 35%, #fff4 50%, transparent 62%); }
.ticket-top, .ticket-bottom { display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
.ticket-top span { font-size: clamp(32px, 5vw, 56px); line-height: 1; }
.ticket-bottom { border-top: 1px dashed #28584199; padding-top: 11px; font-size: 13px; }
.ticket-bottom i { width: 62px; height: 18px; background: repeating-linear-gradient(90deg, #294a37 0 2px, transparent 2px 5px, #294a37 5px 9px, transparent 9px 12px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-head, .chips, .product-bottom { display: flex; align-items: center; gap: 10px; }
.section-head, .product-bottom { justify-content: space-between; }
.section-head { margin-bottom: 17px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 28px; }
.chips { flex-wrap: wrap; }
.chip { padding: 7px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; background: white; }
.chip.active { color: #fff; background: #234b3d; border-color: #234b3d; }
.grid, .admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; }
.cover { height: 142px; overflow: hidden; position: relative; padding: 15px; border-radius: 11px; background: #e7dcff; color: #593ca0; }
.cover-1 { background: #fce6c9; color: #92501c; }
.cover-2 { background: #e0efca; color: #3c6827; }
.cover span { position: relative; z-index: 1; font-size: 13px; font-weight: 750; }
.cover b { position: absolute; right: 17px; top: -24px; font-size: 148px; line-height: 1.25; transform: rotate(-12deg); opacity: .32; }
.product-info { padding: 14px 7px 7px; flex: 1; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.stock, .notice, .muted { color: var(--muted); font-size: 13px; }
.product h3 { margin: 7px 0; font-size: 18px; }
.product p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.product-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; flex-wrap: wrap; }
.product-bottom strong { font-size: 23px; }
.buy { background: #e8f2e8; color: #235240; }
.unavailable { background: #f1eff4; color: var(--muted); cursor: default; }
.notice { margin-top: 22px; }
footer { border-top: 1px solid var(--border); margin-top: 32px; min-height: 72px; justify-content: space-between; }
.panel { margin: 34px auto; max-width: 650px; background: white; border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 5vw, 36px); overflow-wrap: anywhere; }
.panel p { line-height: 1.65; }
.panel form { display: grid; gap: 15px; justify-items: start; margin-bottom: 12px; }
label { display: grid; gap: 6px; width: 100%; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; color: var(--ink); border: 1px solid #cfc8d8; border-radius: 8px; font: inherit; font-weight: 400; }
.success { color: #2d6b2a; font-weight: 800; margin-top: 16px; }
.admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid .panel { margin: 0; width: 100%; }
main > h1 { margin-top: 28px; }
@media (max-width: 760px) {
  .hero { min-height: 260px; padding: 30px; }
  .hero-art { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .wrap { width: calc(100% - 28px); }
  .navlinks { gap: 12px; }
  .hero { min-height: 0; margin-top: 18px; padding: 27px 19px; border-radius: 17px; }
  nav { min-height: 62px; gap: 10px; }
  .brand { gap: 6px; font-size: 17px; white-space: nowrap; }
  .brand-icon { width: 29px; height: 29px; }
  .grid, .admin-grid { grid-template-columns: 1fr; }
}
.manager { max-width: none; margin: 20px 0; }
.manager ul { list-style: none; padding: 0; margin: 0; }
.listing { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.listing p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.listing-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.listing-controls form { display: block; margin: 0; }
.listing-status { color: var(--muted); font-size: 13px; white-space: nowrap; }
.listing-status[data-published="1"] { color: #2d6b2a; }
.admin-feedback { color: #245c25; background: #e8f4e4; padding: 12px 16px; border-radius: 10px; }
@media (max-width: 500px) {
  .listing { flex-wrap: wrap; }
}
.search { display: flex; align-items: center; gap: 6px; max-width: 420px; background: #fff; border-radius: 14px; padding: 5px; }
.search input { background: #fff; color: var(--ink); min-height: 44px; border-color: transparent; }
.search button { min-height: 44px; background: #c8e984; color: #1e341d; white-space: nowrap; }
.demo-notice { margin: 0 0 25px; padding: 13px 16px; border: 1px solid #dae5d6; border-radius: 12px; background: #eef3ea; font-size: 14px; }
.product-category { font-size: 13px; color: #33654f; font-weight: 700; }
.product-name h3 { margin: 4px 0 5px; font-size: 18px; overflow-wrap: anywhere; }
.product-name p { color: var(--muted); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.inventory { color: #49564e; background: #eef1ed; border-radius: 20px; padding: 3px 7px; font-size: 13px; }
.inventory.is-available { color: #1c5c37; background: #e2f3e2; }
.price { font-size: 19px; }
.empty { margin: 0; padding: 26px 22px; }
.catalog-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.category-menu, .shopping-help { padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.category-menu h2 { font-size: 16px; margin: 0 0 12px; }
.category-links { display: grid; gap: 5px; }
.category-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 8px; font-size: 14px; }
.category-link small { color: var(--muted); font-size: 13px; }
.category-link:hover, .category-link.active { background: #e8f2e8; color: #235240; }
.category-link.active { font-weight: 750; }
.results-count { margin: 5px 0 0; overflow-wrap: anywhere; }
.shopping-help { margin-top: 20px; }
.shopping-help summary { cursor: pointer; font-weight: 700; }
.shopping-help p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
@media (max-width: 800px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .category-links { display: flex; flex-wrap: wrap; }
}
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; background: white; padding: 11px; box-shadow: 0 5px 15px #17352208; }
.product-cover-link { display: block; border-radius: 10px; }
.product-cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 11px; isolation: isolate; color: #254c39;
  background: radial-gradient(circle at 68% 25%, #e4f5bf, transparent 48%), linear-gradient(135deg,#8eb6a4,#c8ddbd 65%,#a6c28f);
}
.cover-theme-1 { background: radial-gradient(circle at 70% 27%, #f9e7b9, transparent 55%), linear-gradient(135deg,#c29767,#e7cf9d); color: #654928; }
.cover-theme-2 { background: radial-gradient(circle at 65% 25%, #cddbed, transparent 52%), linear-gradient(135deg,#718fa3,#aec4cf); color: #29475f; }
.product-cover::before {
  content: ""; position: absolute; inset: -40%; transform: rotate(-24deg);
  background: repeating-radial-gradient(ellipse, transparent 0 12px, currentColor 13px 14px, transparent 15px 23px);
  opacity: .14;
}
.cover-mark {
  display: grid; place-items: center; width: 31%; aspect-ratio: 1; z-index: 1;
  border: 1px solid #fff8; border-radius: 24%; background: #fff5;
  box-shadow: 0 12px 18px #112c2c24; color: inherit; transform: rotate(-10deg);
  font-size: clamp(23px, 5vw, 62px); line-height: 1;
}
.product-cover img { z-index: 2; position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.product-name { flex: 1; padding: 12px 4px 10px; }
.product-meta, .product-buy { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.product-buy { padding: 10px 4px 2px; border-top: 1px solid var(--border); }
.detail-cover { max-width: 460px; margin-bottom: 18px; }
@media (max-width: 500px) {
  .catalog-grid { gap: 8px; }
  .catalog-card { padding: 6px; border-radius: 12px; }
  .product-name h3 { font-size: 16px; }
  .product-meta, .product-name p { line-height: 1.4; }
  .product-buy .button { padding: 7px 9px; }
  .price { font-size: 16px; }
}
.lookup-feedback { background: #faeee9; color: #7b332a; border-radius: 8px; padding: 10px 12px; }
label + p { margin-top: 16px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel form.order-filters { grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) auto; align-items: end; }
.admin-orders li { border-top: 1px solid var(--border); padding: 12px 0; overflow-wrap: anywhere; }
.admin-orders li form { margin-top: 8px; }
@media (max-width: 550px) {
  .panel form.order-filters { grid-template-columns: minmax(0, 1fr); }
}
.support-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; }
.support-layout .panel { width: 100%; align-self: start; }
.support-thread { list-style: none; padding: 0; margin: 18px 0; }
.support-message { border-top: 1px solid var(--border); padding: 12px 0; }
.support-message div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.support-message time { color: var(--muted); font-size: 13px; }
.support-message p { white-space: pre-wrap; margin: 8px 0 0; }
@media (max-width: 650px) {
  .support-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .support-layout .panel { margin: 18px auto 0; }
}
.support-notes { margin: 20px 0; border: 1px solid #e9defb; background: #f9f5ff; border-radius: 12px; padding: 14px; }
.support-notes h2 { font-size: 17px; margin-bottom: 6px; }
