:root {
  color-scheme: light;
  --bg: #f8f5ee;
  --paper: #fffdfa;
  --ink: #231e1a;
  --muted: #62594f;
  --line: #e2dbcf;
  --dark: #231a15;
  --copper: #9b3e21;
  --accent: #ffad73;
  --wrap: min(1300px, calc(100% - 96px));
  font-family: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid #b6522e; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 5px; left: 5px; background: white; padding: 10px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.topline { background: #2b201a; color: #f7eee5; font-size: .875rem; }
.topline-inner { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topline span { display: flex; align-items: center; gap: 9px; }
.topline i, .kicker i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #e48b56; flex: none; }
.topline a:hover, .footer a:hover { text-decoration: underline; }
.mast { border-bottom: 1px solid #e9e2d7; background: var(--bg); }
.mast-inner { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand img { object-fit: contain; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 1.28rem; letter-spacing: .09em; font-weight: 850; }
.brand small { color: var(--muted); margin-top: 4px; letter-spacing: .1em; font-size: .68rem; font-weight: 750; }
.mast nav, .mast-actions { display: flex; align-items: center; gap: clamp(14px, 2.25vw, 33px); }
.mast nav a { position: relative; white-space: nowrap; font-size: .9375rem; font-weight: 670; }
.mast nav a:hover, .mast nav a.active { color: var(--copper); }
.mast nav a.active::after { position: absolute; content: ""; left: 0; bottom: -6px; right: 0; height: 2px; background: var(--copper); }
.mast-actions { gap: 13px; }
.search-button { border: 0; border-radius: 50%; width: 44px; height: 44px; background: transparent; display: grid; place-items: center; padding: 0; }
.search-button:hover { background: #eee6d8; }
.cart-button { display: flex; align-items: center; gap: 9px; line-height: 1.15; background: #ede5d8; border: 1px solid #e5dacb; border-radius: 8px; padding: 9px 12px; min-height: 44px; font-size: .94rem; font-weight: 750; white-space: nowrap; }
.cart-button svg { width: 20px; height: 20px; }
.cart-button b { background: #2d2018; color: white; border-radius: 50px; min-width: 22px; min-height: 22px; padding-inline: 5px; display: grid; place-items: center; font-size: .75rem; }
.hero { padding-block: 22px 0; }
.hero-frame { position: relative; min-height: 485px; border-radius: 13px; overflow: hidden; isolation: isolate; background: #241913; display: flex; align-items: center; }
.hero-photo { position: absolute; width: 77%; height: 100%; inset: 0 0 0 auto; object-fit: cover; object-position: center 49%; z-index: -2; }
.hero-frame::before { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg,#291c15 0%,#291c15 23%,#291c15f5 30%,#291c15be 43%,#291c150b 69%),linear-gradient(0deg,#20130d70,transparent 28%); }
.hero-copy { max-width: 590px; padding: 45px 0 46px clamp(32px, 5vw, 72px); color: #fff4e8; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--copper); font-size: .875rem; font-weight: 800; letter-spacing: .115em; }
.hero .kicker { color: #f9bd95; }
.hero h1 { font-size: clamp(3.2rem, 5.1vw, 5rem); line-height: 1.045; margin: 21px 0 17px; letter-spacing: -.038em; font-weight: 950; }
.hero h1 em { font-style: normal; color: #ffae76; }
.hero-lead { color: #f1dfd0; max-width: 345px; margin: 0 0 22px; }
.hero-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; color: #fbe5d3; }
.hero-price > span { font-size: .875rem; }
.hero-price strong { color: #fff7ed; font-size: clamp(2rem, 3.4vw, 2.85rem); letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-price small { font-size: .43em; letter-spacing: 0; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.button { border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 45px; padding: 9px 15px; line-height: 1.35; font-weight: 760; border: 1px solid transparent; gap: 7px; font-size: .9375rem; }
.button:hover { filter: brightness(.94); }
.button.solid { color: #26160d; background: var(--accent); }
.button.hero-more { color: #fff4e8; background: #301e15b5; border-color: #b67b5a; }
.button.neutral { color: var(--ink); background: #f0e8dc; border-color: #e3d7c6; }
.button.primary { color: #fff; background: #963e24; }
.button:disabled { cursor: not-allowed; background: #eae4db; color: #676054; filter: none; }
.perks { border-bottom: 1px solid var(--line); padding: 21px 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.perk { display: flex; align-items: center; gap: 13px; padding: 0 24px; justify-content: center; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk svg { color: var(--copper); width: 28px; height: 28px; }
.perk b, .perk span { display: block; }
.perk span { color: var(--muted); font-size: .875rem; }
.catalog { padding-block: 50px 62px; scroll-margin-top: 20px; }
.catalog-header { display: flex; gap: 18px; align-items: end; justify-content: space-between; }
h2 { margin: 0; font-weight: 875; line-height: 1.17; }
.catalog h2, .service h2, .faq h2 { margin-top: 9px; font-size: clamp(1.95rem, 4.25vw, 3.15rem); letter-spacing: -.04em; }
.search { display: flex; gap: 9px; align-items: center; background: #fffdfa; border: 1px solid var(--line); padding: 0 12px; min-width: 265px; border-radius: 8px; }
.search svg { width: 19px; height: 19px; color: #786c60; }
.search:focus-within { border-color: var(--copper); }
.search input { min-width: 0; width: 100%; min-height: 45px; border: 0; outline: 0; background: none; color: var(--ink); }
.category-menu { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.category-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 82px; border-radius: 9px; background: #f0e8dc; border: 1px solid #e5dacc; }
.category-card:hover, .category-card.active { background: #fae8d9; border-color: #b17053; }
.category-card img { width: clamp(45px, 6.35vw, 88px); height: auto; aspect-ratio: 1.26; object-fit: contain; mix-blend-mode: multiply; flex: none; }
.category-card strong, .category-card small { display: block; line-height: 1.3; }
.category-card strong { font-size: .97rem; font-weight: 820; }
.category-card small { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.category-nowrap { white-space: nowrap; }
.catalog-controls, .catalog-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.catalog-controls { justify-content: space-between; margin-top: 22px; }
.all-products, .sort select { display: inline-flex; min-height: 40px; align-items: center; border-radius: 100px; border: 1px solid #ddd3c4; background: transparent; padding: 6px 14px; font-weight: 670; white-space: nowrap; font-size: .875rem; }
.all-products:hover { background: #efe3d5; }
.all-products.active { background: #2e241f; color: #fff8ec; border-color: #2e241f; }
.sort { position: relative; flex: none; }
.sort::after { content: ""; position: absolute; width: 7px; height: 7px; border-bottom: 1.5px solid; border-right: 1.5px solid; right: 14px; top: 15px; transform: rotate(45deg); pointer-events: none; }
.sort select { appearance: none; padding-right: 33px; color: inherit; }
.results { color: var(--muted); margin: 0; font-size: .875rem; }
#product-groups { margin-top: 20px; }
.category-section { scroll-margin-top: 18px; }
.category-section + .category-section { margin-top: 38px; }
.category-section > header { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.category-section > header h3 { margin: 0; font-weight: 850; font-size: clamp(1.25rem, 2.8vw, 1.75rem); line-height: 1.25; }
.category-section > header span { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); min-width: 0; border: 1px solid #e4ddd0; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.card:hover { border-color: #beaa96; }
.card-media { display: block; position: relative; padding: 0; border: 0; border-bottom: 1px solid #eae3d9; background: #f6f2eb; width: 100%; aspect-ratio: 1.43; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; transition: transform .25s ease; }
.card-media.feature img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.card-media:hover img { transform: scale(1.045); }
.card-badge { position: absolute; z-index: 1; top: 10px; left: 10px; border-radius: 4px; color: #fff7ed; background: #9c3d23; padding: 4px 7px; font-weight: 750; font-size: .75rem; }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 13px 14px 14px; }
.card h4 { font-weight: 830; font-size: 1.1rem; margin: 0; line-height: 1.34; }
.title-button { appearance: none; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; }
.title-button:hover { color: var(--copper); }
.card-summary { font-size: .875rem; color: var(--muted); margin: 6px 0 12px; }
.video-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 36px; color: var(--copper); font-size: .875rem; font-weight: 750; text-decoration: underline; text-underline-offset: .18em; }
.video-link:hover { color: var(--ink); }
.card-bottom { display: flex; justify-content: space-between; gap: 6px; margin-top: auto; align-items: end; }
.card-price { font-weight: 850; font-size: clamp(1rem, 1.5vw, 1.31rem); color: #78321f; letter-spacing: -.035em; white-space: nowrap; line-height: 1.4; }
.card-price del { display: block; font-weight: 550; font-size: .75rem; color: var(--muted); letter-spacing: 0; }
.card-add { border: 1px solid #e0d4c3; border-radius: 6px; background: #f6eee0; min-height: 41px; padding: 5px 8px; font-size: .85rem; font-weight: 730; white-space: nowrap; }
.card-add:hover { background: #f2d8c3; border-color: #be825f; }
.empty { padding: 32px 18px; text-align: center; grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.empty p { color: var(--muted); }
.service { display: grid; grid-template-columns: 1.07fr 1fr; border-radius: 12px; overflow: hidden; background: #ecdfd0; }
.service-photo img { min-height: 100%; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-content { padding: clamp(24px, 5vw, 65px); align-self: center; }
.service-content > p:not(.kicker) { color: var(--muted); margin-bottom: 21px; }
.service .neutral { background: #fffaf3; }
.faq { padding-block: 69px; display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1fr); gap: 25px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 750; min-height: 37px; padding: 6px 0; }
.faq p { margin: 0 0 5px; color: var(--muted); }
.footer { background: #2b201a; color: #fff3e8; padding-top: 33px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .85fr 1fr; gap: 20px; }
.footer .brand small, .footer p, .footer-bottom { color: #e3cabb; }
.footer h2 { font-size: 1rem; margin: 2px 0 8px; }
.footer-grid > div > a:not(.brand) { display: block; margin-bottom: 5px; }
.footer-bottom { padding: 11px 0; border-top: 1px solid #604d40; margin-top: 24px; font-size: .875rem; }
dialog { padding: 0; border: 0; border-radius: 12px; color: var(--ink); background: var(--paper); max-height: min(93dvh, 850px); width: min(calc(100% - 22px), 690px); box-shadow: 0 15px 80px #160f0966; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #2117069e; }
.drawer { margin: 0 0 0 auto; inset: 0 0 0 auto; max-width: 100%; width: min(100%, 460px); height: 100dvh; max-height: 100dvh; border-radius: 0; }
.product-dialog { width: min(calc(100% - 22px), 850px); }
.dialog-head, .dialog-foot { padding: 14px 20px; background: var(--paper); flex: none; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.38rem; }
.dialog-head p { margin: 0; font-weight: 760; }
.dialog-body { flex: 1 1 auto; min-height: 0; padding: 16px 20px; overflow: auto; }
.dialog-foot { border-top: 1px solid var(--line); }
.dialog-foot:empty { display: none; }
.icon-close { border: 0; background: #eee7db; border-radius: 50%; width: 44px; height: 44px; flex: none; padding: 0; font-size: 1.55rem; line-height: 1; }
.cart-items, .checkout-items { list-style: none; padding: 0; margin: 0; }
.cart-row { display: grid; grid-template-columns: 78px minmax(0,1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-row img { width: 78px; aspect-ratio: 1.18; object-fit: contain; padding: 3px; background: #f6f0e6; border-radius: 6px; }
.cart-row strong { display: block; line-height: 1.35; margin-bottom: 4px; }
.cart-unit { color: var(--muted); font-size: .875rem; }
.line-total { color: #78321f; align-self: center; white-space: nowrap; }
.quantity { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.quantity button { min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 5px; background: #faf4ea; padding: 0 6px; }
.quantity button:disabled { color: #95877a; cursor: not-allowed; }
.quantity button.remove { margin-left: 4px; border: 0; background: transparent; color: var(--copper); }
.quantity span { min-width: 18px; text-align: center; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 11px; }
.total strong { color: #78321f; font-size: 1.4rem; white-space: nowrap; }
.dialog-foot > .button { width: 100%; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.detail-photo { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: contain; background: #f6f0e6; border-radius: 8px; }
.detail-title { margin: 5px 0 10px; font-size: clamp(1.55rem, 3.7vw, 2.2rem); }
.detail-specs { padding-left: 1.25em; color: #50453c; }
.detail-price { margin-bottom: 10px; display: inline-block; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-items li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.checkout-items strong { white-space: nowrap; }
.checkout-layout .total { margin-top: 12px; }
.methods { display: grid; gap: 8px; margin-top: 16px; }
.method { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; }
.method h3 { font-size: .98rem; margin: 0; }
.method p { color: var(--muted); margin: 4px 0 0; font-size: .875rem; }
.method.pending { background: #f3ede3; }
.method .button { margin-top: 9px; }
.checkout-tools { display: flex; gap: 9px; flex-wrap: wrap; }
.checkout-tools .primary { flex: 1 1 180px; }
.checkout-note { color: var(--muted); font-size: .875rem; margin: 8px 0 0; }
#toast { position: fixed; bottom: 19px; left: 50%; transform: translateX(-50%); background: #2b201a; color: white; border-radius: 7px; z-index: 3; min-width: 190px; width: max-content; max-width: calc(100% - 30px); text-align: center; padding: 10px 14px; font-size: .9375rem; }
#toast:empty { display: none; }
@media (max-width: 1000px) {
  :root { --wrap: calc(100% - 52px); }
  .mast nav { gap: 13px; }
  .mast nav a { font-size: .875rem; }
  .mast-actions { gap: 5px; }
  .hero h1 { font-size: clamp(3.1rem, 6vw, 4.2rem); }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .mast-inner { flex-wrap: wrap; min-height: 0; gap: 0; padding-top: 11px; }
  .mast-actions { order: 1; }
  .mast nav { order: 2; flex: 1 0 100%; overflow: auto; scrollbar-width: none; padding-block: 12px 13px; gap: 20px; }
  .mast nav a.active::after { bottom: -4px; }
  .category-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 770px) {
  :root { --wrap: calc(100% - 34px); }
  .hero { padding-top: 13px; }
  .hero-frame { min-height: 440px; }
  .hero-photo { width: 86%; }
  .hero-frame::before { background: linear-gradient(90deg,#291c15 0%,#291c15fa 15%,#291c15bd 47%,#291c1530 83%); }
  .perks { padding-block: 15px; }
  .perk { gap: 7px; padding: 0 10px; }
  .perk svg { width: 21px; height: 21px; }
  .perk b, .perk span { font-size: .82rem; }
  .catalog { padding-block: 36px 43px; }
  .product-grid { gap: 11px; }
  .card-bottom { flex-wrap: wrap; }
  .faq { padding-block: 49px; }
}
@media (max-width: 535px) {
  :root { --wrap: calc(100% - 28px); }
  .topline-inner { justify-content: center; min-height: 31px; font-size: .83rem; }
  .topline a { display: none; }
  .brand strong { font-size: 1.15rem; }
  .brand img { width: 34px; height: 34px; }
  .mast nav { gap: 12px; }
  .mast-actions { gap: 2px; }
  .cart-button { gap: 6px; padding-inline: 8px; }
  .hero-frame { min-height: 0; align-items: end; }
  .hero-photo { width: 100%; height: 220px; inset: 0 0 auto; object-position: 58% 54%; }
  .hero-frame::before { background: linear-gradient(180deg,transparent 18%,#291c1560 27%,#291c15 44%); }
  .hero-copy { width: 100%; padding: 150px 17px 23px; }
  .hero h1 { font-size: clamp(2.47rem, 10.3vw, 3.7rem); margin-block: 13px 12px; }
  .hero-lead { font-size: .95rem; margin-bottom: 15px; }
  .hero-price { margin-bottom: 13px; }
  .hero-actions .button { min-height: 43px; padding-inline: 10px; }
  .perks { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .perk { flex-direction: column; justify-content: flex-start; padding: 0 4px; text-align: center; gap: 2px; }
  .perk span { display: none; }
  .catalog-header { align-items: stretch; flex-direction: column; gap: 11px; }
  .search { min-width: 0; }
  .category-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
  .category-card { padding: 5px 7px; gap: 6px; min-height: 60px; }
  .category-card img { width: 47px; }
  .category-card strong { font-size: .875rem; }
  .category-card small { margin-top: 2px; }
  .catalog-controls { gap: 7px; margin-top: 12px; }
  .all-products, .sort select { padding-inline: 9px; min-height: 36px; }
  .sort select { padding-right: 28px; }
  .sort::after { top: 13px; right: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .card-content { padding: 9px 8px; }
  .card h4 { font-size: .99rem; }
  .card-summary { margin: 5px 0 6px; }
  .card-add { width: 100%; }
  .card-badge { top: 5px; left: 5px; }
  .service, .faq, .detail-layout { grid-template-columns: 1fr; }
  .service-photo img { aspect-ratio: 2; }
  .service-content { padding: 19px; }
  .faq { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1.1fr; row-gap: 8px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cart-row { grid-template-columns: 53px minmax(0,1fr) auto; gap: 8px; }
  .cart-row img { width: 53px; }
  .dialog-head, .dialog-body, .dialog-foot { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
