/* Hallmark: custom forest-cream / image-led catalog / no decorative motion */
/* Critique: generous media, standard controls, safe-area shell. */
*{box-sizing:border-box}html,body{margin:0;overflow-x:clip}html{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;color-scheme:light dark;font-weight:400;line-height:1.5;font-synthesis:none}body{min-height:100vh;min-height:100dvh}
button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{cursor:pointer;min-width:44px;min-height:44px;border:0;background:none;padding:8px 16px;border-radius:999px;font-weight:500;font-size:16px;line-height:1.5;letter-spacing:0}
button:active{background:var(--selected)}button:disabled{cursor:default;color:var(--muted);background:var(--soft)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{color:var(--on-accent);background:var(--accent)}
input,textarea{caret-color:var(--accent)}[hidden]{display:none!important}
h1,h2,h3,p{margin:0}h1,h2,h3{min-width:0;overflow-wrap:break-word;font-family:var(--font-display);font-weight:600;letter-spacing:0;text-wrap:balance}
h1{font-size:28px;line-height:1.25}h2{font-size:22px;line-height:1.3}h3{font-size:20px;line-height:1.35;font-weight:500}
p{line-height:1.55}small,.small{font-size:13px;line-height:1.45;color:var(--muted);font-weight:400}.muted{color:var(--muted)}
.num{font-variant-numeric:lining-nums tabular-nums;font-family:var(--font-numerals);letter-spacing:0}
.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.app{max-width:600px;margin:auto;min-height:100vh;min-height:100dvh;background:var(--bg)}
.top{background:var(--shell);padding:calc(20px + var(--safe-t)) 20px 20px}
.brand-row,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;gap:8px;align-items:center;font-family:var(--font-display);font-size:22px;font-weight:600;line-height:1.3}
.brand-mark{width:28px;height:28px}.demo{color:var(--accent);font-size:12px;border:1px solid var(--accent);border-radius:999px;padding:4px 12px;white-space:nowrap;font-weight:500}
.home-title{margin-top:28px}.home-title .tagline-en{font-family:var(--font-display);font-size:16px;color:var(--warm);font-weight:600;margin:4px 0 12px}
.home-title h1{margin-bottom:8px}.home-title p{font-size:14px;color:var(--muted);line-height:1.5;max-width:46ch}
.ship-short{display:flex;align-items:center;gap:12px;text-align:left;background:var(--surface);width:100%;margin-top:24px;border-radius:18px;padding:12px 16px;border:1px solid var(--line);min-height:64px}
.ship-short .ship-copy{flex:1;min-width:0}.ship-short strong{display:block;font-size:15px;font-weight:500;line-height:1.4;font-family:var(--font)}.ship-short small{display:block;margin-top:4px}
.catalog{padding:20px 0 220px}.pills{display:flex;gap:8px;overflow-x:auto;padding:0 20px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.pills::-webkit-scrollbar{display:none}
.category{flex:0 0 auto;padding:12px 16px;font-size:14px;color:var(--muted);border-radius:999px;font-weight:500;background:var(--surface);border:1px solid var(--line);min-height:44px}
.category[aria-pressed=true]{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.products{padding:8px 20px 0;display:grid;gap:28px}.category-heading{display:flex;align-items:baseline;justify-content:space-between;margin:12px 0 4px;font-size:13px;color:var(--muted);font-weight:500;font-family:var(--font)}
.product{background:var(--surface);border-radius:24px;overflow:hidden;border:1px solid var(--line);display:grid}
.product.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.product-media{position:relative;aspect-ratio:4/3;background:var(--soft);overflow:hidden}
.product-media img{width:100%;height:100%;object-fit:cover;display:block}
.product-fallback{width:100%;height:100%;display:grid;place-content:center;text-align:center;padding:24px;background:linear-gradient(160deg,var(--selected),var(--warm-soft));color:var(--accent)}
.product-fallback strong{font-family:var(--font-display);font-size:28px;font-weight:600;line-height:1.2;display:block}
.product-fallback span{display:block;margin-top:8px;font-size:13px;color:var(--muted);font-family:var(--font)}
.product-body{padding:16px 16px 20px}.product-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.product-type{font-size:12px;color:var(--warm);line-height:1.4;font-weight:500}.product .picked{font-size:12px;color:var(--accent);line-height:1.4;font-weight:500}
.product .product-name{font-size:22px;line-height:1.3;margin-bottom:8px}.product-spec{color:var(--muted);font-size:14px;line-height:1.45;font-weight:400;font-family:var(--font);max-width:34ch}
.product-bottom{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.price{font-size:24px;font-weight:600;line-height:1.2;font-family:var(--font-numerals);font-variant-numeric:lining-nums tabular-nums}.price small{font-weight:400;margin-left:4px;font-size:13px;line-height:1.4;font-family:var(--font);color:var(--muted)}
.stepper{display:flex;border:1px solid var(--line);border-radius:999px;background:var(--soft);overflow:hidden;width:148px;flex-shrink:0;padding:4px}
.is-selected .stepper{background:var(--selected);border-color:var(--accent)}.stepper button{padding:0;width:44px;border-radius:0;flex-shrink:0;font-size:22px;color:var(--accent);font-family:var(--font)}
.stepper input{border:1px solid var(--muted);border-radius:8px;background:none;text-align:center;padding:0;width:48px;min-height:44px;font-size:16px;font-weight:500;min-width:0;appearance:textfield;line-height:1.5;font-family:var(--font-numerals);font-variant-numeric:lining-nums tabular-nums}
.cartdock{position:fixed;bottom:calc(64px + var(--safe-b));left:0;right:0;max-width:600px;margin:auto;padding:12px 16px;background:var(--surface);border-top:1px solid var(--line);z-index:4;box-shadow:none}
.cartdock .row{align-items:center}.dockinfo{min-width:0}.dockinfo strong{font-size:22px;font-weight:600;line-height:1.2;font-family:var(--font-numerals)}.dockinfo small{display:block;font-size:12px;margin-top:4px}
.primary{background:var(--accent);color:var(--on-accent);border:1px solid var(--accent);min-height:48px;font-weight:500}.primary:active{filter:brightness(.92)}
.secondary{border:1px solid var(--line);background:var(--surface);color:var(--accent)}.text-button{color:var(--accent)}.wide{width:100%;display:flex;justify-content:center;align-items:center;gap:8px}
.tabs{position:fixed;bottom:0;left:0;right:0;max-width:600px;margin:auto;z-index:4;background:var(--surface);border-top:1px solid var(--line);padding:4px 16px calc(4px + var(--safe-b));display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.tab{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:55px;font-size:12px;padding:8px 4px;border-radius:14px;color:var(--muted)}.tab[aria-current=page]{color:var(--accent);background:var(--selected);font-weight:600}
.pagehead{position:sticky;top:0;z-index:3;background:var(--shell);padding:calc(12px + var(--safe-t)) 16px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}
.pagehead h1{flex:1;font-size:22px;text-align:center}.pagehead small{font-size:13px;color:var(--muted);white-space:nowrap}
.screen{padding:20px 20px calc(120px + var(--safe-b))}.panel{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:16px 0}
.address-card{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}.address-card h3{font-size:15px;font-weight:500;font-family:var(--font);line-height:1.4}
.address-card p{font-size:14px;margin-top:8px;color:var(--muted);line-height:1.5}.flow-step{display:flex;gap:8px;font-size:13px;color:var(--muted);margin-bottom:8px}
.notice{background:var(--selected);color:var(--accent);border-radius:14px;padding:12px 16px;font-size:13px;line-height:1.5;margin:12px 0}
.summary-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:15px}.summary-line b{font-family:var(--font-numerals);font-weight:600}
.checkout-pad{padding-bottom:calc(156px + var(--safe-b))}.field{margin:20px 0}.field label{display:block;font-size:14px;font-weight:500;margin-bottom:8px;line-height:1.4}
.optional{font-weight:400;color:var(--muted);font-size:12px;margin-left:8px}.required{color:var(--error);font-size:12px;margin-left:4px}
input:not(.qty),select,textarea{display:block;width:100%;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px;font-size:16px;min-height:48px;line-height:1.5}
textarea{resize:vertical;min-height:96px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
.field small{display:block;margin-top:8px}.field [aria-invalid=true]{border-color:var(--error)}.field-error{color:var(--error);font-size:13px;margin-top:8px}.field-error:empty{display:none}
.parse-block{padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:8px}.parse-block .row{margin:8px 0}.parse-block textarea{min-height:104px}.parse-block h2{font-size:22px}
.regions{display:grid;gap:8px}.candidate{width:100%;text-align:left;background:var(--selected);color:var(--accent);margin-top:8px;font-weight:500;font-size:14px;border-radius:14px}
.payment-amount{padding:12px 0 28px;text-align:center}.payment-amount p{font-size:14px;color:var(--muted);margin-bottom:8px}
.payment-amount strong{font-size:40px;font-weight:600;line-height:1.15;font-family:var(--font-numerals)}.payment-amount small{display:block;margin-top:8px}
.pay-option{display:flex;align-items:center;gap:16px;text-align:left;width:100%;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);margin-bottom:12px}
.pay-option>div{flex:1}.pay-option strong{display:block;font-size:18px;margin-bottom:4px;font-weight:500;font-family:var(--font);line-height:1.4}.pay-option small{display:block}
.account-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.account-row:last-child{border-bottom:0}
.account-row small{display:block;margin-bottom:4px}.account-value{font-size:15px;word-break:break-word;line-height:1.45;font-weight:400}
.copy{color:var(--accent);background:var(--selected);font-size:15px;min-width:56px}
.upload-box{display:flex;align-items:center;gap:12px;border:1px dashed var(--accent);border-radius:16px;padding:12px}.upload-box .upload-copy{flex:1;min-width:0}
.upload-box strong{display:block;font-size:14px;overflow-wrap:anywhere;font-weight:500;font-family:var(--font)}.upload-box small{display:block;margin-top:4px}
.upload-box img{width:54px;height:66px;object-fit:cover;border:1px solid var(--line);border-radius:8px}.upload-action{display:flex;gap:8px;margin-top:8px}
.qr-placeholder{border:1px dashed var(--line);background:var(--soft);min-height:180px;display:grid;place-content:center;text-align:center;border-radius:14px;gap:8px;color:var(--muted);margin-top:12px}
.qr-placeholder strong{font-size:20px;color:var(--ink);font-family:var(--font-display)}.segmented{display:flex;background:var(--soft);border-radius:999px;padding:4px;gap:4px}.segmented button{flex:1;font-size:15px}.segmented [aria-pressed=true]{background:var(--surface);color:var(--accent)}
.timeline{list-style:none;padding:0;margin:0}.timeline li{display:flex;gap:16px;padding:0 0 28px;position:relative}.timeline li:last-child{padding-bottom:0}
.timeline li:not(:last-child):before{content:'';position:absolute;left:13px;top:28px;bottom:0;width:1px;background:var(--line)}
.timeline .node{width:27px;height:27px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:12px;flex-shrink:0;color:var(--muted);font-family:var(--font-numerals)}
.timeline .complete .node{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.timeline strong{display:block;font-size:18px;margin-bottom:4px;font-weight:500;font-family:var(--font)}.timeline p{font-size:13px;color:var(--muted)}
.status{display:inline-block;border-radius:999px;font-size:12px;padding:4px 12px;color:var(--accent);background:var(--selected)}.status.shipped{background:var(--success-bg);color:var(--success)}.status.canceled{background:var(--soft);color:var(--muted)}
.ordercard{color:var(--ink);background:var(--surface);border-radius:var(--r);padding:16px;margin:16px 0;border:1px solid var(--line)}.ordercard .row{align-items:start}
.ordercard h3{font-size:16px;font-weight:500;font-family:var(--font-numerals);line-height:1.4}.ordercard p{font-size:14px;margin-top:12px}.ordercard .order-meta{font-size:12px;color:var(--muted);margin-top:4px}
.ordercard .order-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);margin-top:16px;padding-top:12px;gap:8px;flex-wrap:wrap}
.identity{padding:8px 0 24px;display:flex;gap:16px;align-items:center}.identity-icon{background:var(--accent);color:var(--on-accent);width:56px;height:56px;border-radius:18px;display:grid;place-items:center}
.settings-row{display:flex;align-items:center;width:100%;text-align:left;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);border-radius:0}.settings-row:last-child{border:0}.settings-row>span{flex:1}
.settings-row strong{font-size:16px;font-weight:500;font-family:var(--font);line-height:1.4}.settings-row small{display:block;margin-top:4px}
.modal{position:fixed;inset:0;background:var(--scrim);z-index:20;display:flex;align-items:flex-end;justify-content:center;padding-top:calc(20px + var(--safe-t))}
.sheet{background:var(--surface);border-radius:28px 28px 0 0;width:100%;max-width:600px;max-height:88vh;max-height:88dvh;overflow-y:auto;box-shadow:var(--shadow);padding:8px 20px calc(16px + var(--safe-b))}
.sheet-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0 12px}.sheet-header h2{font-size:22px}
.cart-item{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.cart-item h3{font-size:18px;font-weight:500;font-family:var(--font)}.cart-item small{display:block;margin-top:4px}.sheet-footer{padding-top:16px}.sheet-footer .row{margin-bottom:16px}
.toast{position:fixed;top:calc(16px + var(--safe-t));left:20px;right:20px;max-width:520px;margin:auto;z-index:50;padding:16px;border-radius:16px;background:var(--ink);color:var(--surface);font-size:14px;box-shadow:var(--shadow)}
.loading{padding:48px 20px;text-align:center;color:var(--muted)}.empty{padding:40px 12px;text-align:center}.empty p{margin:12px 0}
.pending-banner{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--selected);padding:8px 16px;font-size:13px;color:var(--accent)}
.deposit{font-size:13px;color:var(--accent);line-height:1.55;margin-top:8px}.subroute .tabs,.subroute .cartdock{display:none}.no-cart .cartdock{display:none}
.sheet-open{overflow-y:hidden}.sheet-open .app{pointer-events:none}.error-text{color:var(--error);font-size:13px;line-height:1.5}
.qr-placeholder button{margin:auto}.notice p{font-size:13px}.copyright{font-size:12px;color:var(--muted);text-align:center;margin:28px 0}a{color:var(--accent)}

.fixed-action{position:fixed;bottom:0;left:0;right:0;max-width:600px;margin:auto;background:var(--surface);padding:12px 20px calc(16px + var(--safe-b));border-top:1px solid var(--line);z-index:5}
.fixed-action small{display:block;text-align:center;margin-bottom:8px;color:var(--muted);font-size:12px}
.checkout-screen{padding-bottom:calc(156px + var(--safe-b))}
.checkout-products{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:8px}
.checkout-item{display:flex;justify-content:space-between;gap:8px;font-size:15px;padding:8px 0;font-family:var(--font)}
.checkout-item span:last-child{white-space:nowrap}
.address-card .edit-label{color:var(--accent);font-size:14px;white-space:nowrap}
.address-card .receiver{font-size:14px;font-weight:500;line-height:1.45;margin-top:4px}
.address-card .address-line{font-size:14px;line-height:1.55;margin-top:8px;color:var(--muted)}
.notice.success{background:var(--success-bg);color:var(--success)}
.notice.error{background:var(--error-bg);color:var(--error)}
.back{padding:8px;display:flex;gap:4px;align-items:center;color:var(--accent)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.section-title{font-size:22px;margin:8px 0 4px}.ordercard .summary-line b,.sheet-footer strong.num{font-size:22px;font-weight:600;line-height:1.2}
#cnt,#cart-open,#go,[data-copy]{font-family:var(--font-numerals);font-variant-numeric:lining-nums tabular-nums}
b,strong{font-weight:600}
@media(max-width:359px){.top,.screen,.products{padding-left:16px;padding-right:16px}.pills{padding-left:16px;padding-right:16px}.product-body{padding:12px}.brand{font-size:20px}.product .product-name{font-size:20px}.price{font-size:22px}}
@media(min-width:600px){.app{border-left:1px solid var(--line);border-right:1px solid var(--line)}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.category-heading{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.sheet{animation:none}button{transition:none}}
@keyframes sheet-in{from{transform:translateY(12px);opacity:.6}to{transform:none;opacity:1}}
.sheet{animation:sheet-in .18s ease-out}
@media(prefers-reduced-motion:reduce){.sheet{animation:none}}

/* v4.1: fast reorder grid; cart retains full numeric steppers. */
.top{padding:calc(12px + var(--safe-t)) 16px 8px}
.brand{font-size:20px}.brand-mark{width:24px;height:24px}
.home-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:8px}
.home-title h1{font-size:22px;line-height:1.3;margin:0}.home-title .tagline-en{display:none}
.home-title p{font-size:12px;max-width:none}.home-title>p:last-child{font-size:12px;max-width:none;white-space:nowrap}
.ship-short{padding:8px 12px;min-height:44px;margin-top:8px;border-radius:12px}
.ship-short small{display:none}.ship-short strong{font-size:13px;line-height:1.4}.ship-short .icon{width:18px;height:18px}
.catalog{padding-top:8px}.pills{padding:0 16px 4px;gap:8px}.category{padding:8px 16px}
.products{padding:4px 16px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.category-heading{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5}
.product{border-radius:16px;min-width:0;align-content:start;position:relative}
.product-media{aspect-ratio:4/3}.product-body{padding:8px;min-width:0}
.product .product-name{font-size:16px;line-height:1.375;margin:4px 0;height:44px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-top{margin:0;display:block}.product-type{font-size:12px;line-height:1.5;display:block}
.product .picked:not(:empty){position:absolute;top:8px;right:8px;background:var(--surface);padding:4px 8px;border-radius:999px;color:var(--accent)}
.product-spec{font-size:12px;line-height:1.5;min-height:18px}
.product-bottom{margin-top:4px;gap:4px;flex-wrap:nowrap}
.price{font-size:20px;line-height:1.3;white-space:nowrap}.price small{font-size:12px;margin-left:0}
.grid-add{padding:0;width:44px;height:44px;flex-shrink:0;border:1px solid var(--accent);background:var(--selected);color:var(--accent);font-size:24px;line-height:1}
.product-fallback{padding:12px;background:var(--selected)}.product-fallback strong{font-size:24px}.product-fallback span{font-size:12px;margin-top:8px}
@media(max-width:359px){.products{padding-left:12px;padding-right:12px;gap:8px}.product .product-name{font-size:15px}.product .price{font-size:18px}.price small{font-size:11px}.home-title h1{font-size:20px}.home-title p{font-size:12px}}

.demo{border-radius:8px}.product .picked:not(:empty){border-radius:8px}
.product .product-name{height:auto;min-height:22px;max-height:44px}
.product .product-spec{position:absolute;bottom:8px;left:8px;max-width:calc(100% - 16px);padding:4px;background:var(--surface);border-radius:6px;font-size:11px;line-height:1.4;min-height:0}

/* Brand carries the page title; no duplicated masthead before a repeat-order grid. */
.category-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0}
.brand{margin:0;font-size:20px;line-height:1.3}

.product .product-name{font-weight:500}
