*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;color:#292522;background:#fff}button,input,select,textarea{font:inherit}header{padding:20px 7%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;position:sticky;top:0;background:#fffc;backdrop-filter:blur(10px);z-index:10}header b{font:24px Georgia;letter-spacing:6px}header small{display:block;color:#98867a;margin-top:6px}a{color:#333;text-decoration:none}main{max-width:1100px;margin:auto;padding:35px 5%}.hero{background:#f7f1ea;border-radius:25px;padding:65px;margin-bottom:60px}.hero h1{font:44px/1.35 Georgia,"Noto Serif TC",serif}.title{display:flex;justify-content:space-between;align-items:center;gap:12px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.product{border:1px solid #eee;border-radius:17px;overflow:hidden;cursor:pointer;background:#fff}.pic{height:250px;background:#eee5dc;display:flex;align-items:center;justify-content:center;font-size:44px}.pic img{width:100%;height:100%;object-fit:cover}.info{padding:17px}.badge{font-size:10px;background:#f5efe9;padding:5px 8px;border-radius:9px}.price{font:18px Georgia;margin:10px 0}.old{text-decoration:line-through;color:#aaa;font-size:12px}.second{font-size:11px;color:#956b50;margin:8px 0}.dark,.ghost,.info button{border:0;background:#292522;color:#fff;padding:12px 16px;border-radius:10px;cursor:pointer}.ghost{background:#f2eee9;color:#292522}.danger{background:#fff0f0;color:#9b2222}.cartBtn{position:relative}.cartCount{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;background:#292522;color:#fff;border-radius:20px;font-size:11px;margin-left:5px}.panel{max-width:950px}.notice{background:#fff7df;padding:14px;border-radius:12px;line-height:1.7}.login{max-width:440px;margin:70px auto;border:1px solid #eee;padding:30px;border-radius:20px}.row{border-bottom:1px solid #eee;padding:16px 0;display:flex;justify-content:space-between;gap:14px;align-items:center}.actions{display:flex;gap:7px;flex-wrap:wrap}label{display:block;font-size:12px;margin:12px 0}input,select,textarea{width:100%;padding:11px;margin-top:6px;border:1px solid #ddd;border-radius:9px}.check input{width:auto}.modal{position:fixed;inset:0;background:#0008;display:none;align-items:center;justify-content:center;z-index:30;padding:18px}.modal.show{display:flex}.card{width:min(700px,96%);max-height:92vh;overflow:auto;background:#fff;padding:28px;border-radius:20px}.wide{width:min(850px,96%)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.close{float:right;border:0;background:none;font-size:24px;cursor:pointer}.muted{color:#8b817a;font-size:12px}.hidden{display:none!important}.previewGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0}.previewItem{position:relative}.previewItem img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.previewItem button{position:absolute;right:4px;top:4px;border:0;border-radius:50%;width:26px;height:26px;background:#fff;color:#222;cursor:pointer}.detailLayout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.detailMain{width:100%;aspect-ratio:1;background:#f3eee8;border-radius:16px;object-fit:cover}.thumbs{display:flex;gap:7px;overflow:auto;margin-top:8px}.thumbs img{width:62px;height:62px;object-fit:cover;border-radius:8px;cursor:pointer;border:2px solid transparent}.cartLine{display:grid;grid-template-columns:70px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid #eee;padding:12px 0}.cartLine img{width:70px;height:70px;object-fit:cover;border-radius:10px;background:#eee5dc}.qty{display:flex;align-items:center;gap:7px}.qty button{border:0;border-radius:7px;padding:5px 9px}.checkoutTotal{text-align:right;font-size:20px;margin:18px 0}.orderCard{border:1px solid #eee;border-radius:14px;padding:15px;margin:12px 0}.orderHead{display:flex;justify-content:space-between;gap:10px}.orderItems{background:#faf8f5;border-radius:10px;padding:10px;margin-top:10px;font-size:13px}.tabs{display:flex;gap:8px;margin:18px 0}.tabs button.active{background:#292522;color:#fff}.success{background:#eef8ef;padding:16px;border-radius:12px}.formError{color:#a33;font-size:12px}.empty{text-align:center;padding:35px;color:#8b817a}@media(max-width:700px){header{padding:16px 5%}header b{font-size:19px}.grid{grid-template-columns:repeat(2,1fr);gap:12px}.hero{padding:38px 24px}.hero h1{font-size:32px}.pic{height:180px}.two,.detailLayout{grid-template-columns:1fr}.row{align-items:flex-start;flex-direction:column}.previewGrid{grid-template-columns:repeat(3,1fr)}.card{padding:20px}.cartLine{grid-template-columns:60px 1fr}.cartLine>div:last-child{grid-column:2}.orderHead{flex-direction:column}}
/* FINLEY V7.5 — mobile layout + modal fixes */
html,body{max-width:100%;overflow-x:hidden}body.modal-open{overflow:hidden}header,main,.hero,.grid,.product,.info,.card,.detailLayout,.cartLine{min-width:0}.product,.info,.detailLayout>div,.cartLine>div{min-width:0}.info h3,.orderCard,.muted,p{overflow-wrap:anywhere;word-break:break-word}.modal{overflow-y:auto;overscroll-behavior:contain}.card{position:relative;margin:auto;max-width:100%;-webkit-overflow-scrolling:touch}.close{position:sticky;top:0;z-index:8;float:right;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;box-shadow:0 2px 12px #0002;font-size:30px;line-height:1}.detailMain{max-width:100%;height:auto}.thumbs{max-width:100%}.qty{flex-wrap:wrap}.qty button{min-width:34px;min-height:34px}.cartLine>div:last-child{white-space:normal}.dark,.ghost,.info button{max-width:100%}
@media(max-width:700px){
  header{gap:10px}header>div{min-width:0}header b{letter-spacing:3px;white-space:nowrap}header small{font-size:10px;line-height:1.4}.cartBtn{flex:0 0 auto;padding:10px 12px}
  main{width:100%;padding:22px 14px}.hero{width:100%;padding:32px 20px;margin-bottom:36px;border-radius:20px}.hero h1{font-size:29px;line-height:1.4}.hero p{font-size:13px;line-height:1.7}
  .grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pic{height:auto;aspect-ratio:1}.info{padding:12px}.info h3{font-size:15px;line-height:1.45;margin:10px 0}.price{font-size:16px}.old{display:block;margin-top:3px}.info button{padding:11px 8px;font-size:13px}
  .modal{align-items:flex-start;padding:10px}.card,.wide{width:100%;max-width:100%;max-height:calc(100dvh - 20px);padding:18px 16px;border-radius:16px}.detailLayout{gap:16px}.detailMain{aspect-ratio:1}.close{top:0;margin:-4px -2px 4px 8px}
  .cartLine{grid-template-columns:56px minmax(0,1fr);gap:10px}.cartLine img{width:56px;height:56px}.cartLine>div:last-child{grid-column:2;text-align:left;font-weight:700}.checkoutTotal{font-size:18px}.two{grid-template-columns:1fr}
}
@media(max-width:430px){
  header{padding:13px 12px}header b{font-size:17px;letter-spacing:2px}.cartBtn{font-size:12px;padding:9px 10px}.cartCount{min-width:18px;height:18px}
  main{padding:18px 12px}.hero{padding:28px 18px}.hero h1{font-size:26px}.title h2{font-size:21px}.title #status{font-size:11px}
  .grid{grid-template-columns:1fr}.pic{aspect-ratio:4/3}.info h3{font-size:16px}.card,.wide{padding:16px 14px}.previewGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V7.7 members */
.headerActions{display:flex;gap:8px;align-items:center}.memberCard{width:min(620px,96%)}.memberTabs{display:flex;gap:8px;margin:8px 0 18px}.memberTabs button{flex:1}.memberOrder{border:1px solid #eee;border-radius:14px;padding:14px;margin:10px 0}.memberTop{display:flex;justify-content:space-between;gap:12px;align-items:center}.memberEmail{word-break:break-all}.memberActions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.memberActions button{flex:1;min-width:120px}@media(max-width:430px){.headerActions{gap:5px}.headerActions .ghost{font-size:11px;padding:8px 8px}header>div:first-child small{max-width:150px}.memberTop{align-items:flex-start;flex-direction:column}}

/* V7.7.2 dynamic category filters */
.categoryFilters{display:flex;gap:9px;overflow-x:auto;white-space:nowrap;padding:4px 0 18px;margin-top:-2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.categoryFilters::-webkit-scrollbar{display:none}.categoryChip{flex:0 0 auto;border:1px solid #e6dfd8;background:#f7f3ee;color:#292522;border-radius:999px;padding:9px 16px;cursor:pointer;font-size:13px}.categoryChip.active{background:#292522;color:#fff;border-color:#292522}.categoryChip:focus-visible{outline:2px solid #8b817a;outline-offset:2px}@media(max-width:430px){.categoryFilters{margin-left:-2px;margin-right:-2px;padding-bottom:15px}.categoryChip{padding:8px 14px;font-size:12px}}


/* V7.8 shopping guide */
.siteFooter{width:min(1100px,calc(100% - 28px));margin:0 auto 34px;padding:22px 0;text-align:center;border-top:1px solid #eee5dc;color:#8b817a;font-size:12px;line-height:2}
.textLink{border:0;background:transparent;padding:0;color:#6f6259;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}
.termsAgree{display:flex;align-items:flex-start;gap:10px;margin:16px 0;padding:14px;border:1px solid #e9e1d9;border-radius:12px;background:#faf7f3;line-height:1.6}
.termsAgree input{width:18px;height:18px;min-width:18px;margin-top:3px}
.termsAgree .textLink{display:inline}
.termsCard{width:min(760px,96%)}
.termsContent{line-height:1.85;color:#39322e}
.termsContent h2{margin:0 0 8px}.termsContent h3{margin:28px 0 10px;font-size:18px}.termsContent h4{margin:17px 0 5px;font-size:15px}
.termsContent p{margin:7px 0}.termsContent ul{margin:8px 0;padding-left:22px}.termsContent li{margin:7px 0}
.termsLead{padding:13px 15px;background:#faf7f3;border-radius:12px;color:#6f6259}
.termsEnd{text-align:center;margin-top:30px;padding:22px;border-top:1px solid #eee5dc}
@media(max-width:430px){.termsContent{font-size:14px}.termsContent h3{font-size:17px}.siteFooter{margin-bottom:24px}}


/* V7.8.1：首頁大標題桌機／手機固定同一排 */
.heroSingleLine{
  display:block;
  white-space:nowrap;
  font-size:clamp(24px,4.5vw,64px);
  letter-spacing:-0.035em;
}
@media(max-width:700px){
  .heroSingleLine{
    font-size:clamp(17px,5.25vw,27px);
    letter-spacing:-0.045em;
  }
}
@media(max-width:380px){
  .heroSingleLine{
    font-size:4.95vw;
  }
}

/* V8.1 large galleries */
.thumbs{padding-bottom:6px;scrollbar-width:thin}.thumbs img{flex:0 0 62px}.previewGrid{max-height:520px;overflow-y:auto;padding-right:4px}

/* V8.2 product search */
.productSearch{position:relative;display:flex;align-items:center;width:min(620px,100%);margin:0 0 16px}.productSearch input{width:100%;height:48px;border:1px solid #e5ddd5;border-radius:999px;background:#fff;padding:0 46px 0 46px;font:inherit;color:#292522;outline:none;box-shadow:0 5px 18px rgba(60,45,35,.035)}.productSearch input:focus{border-color:#aaa097;box-shadow:0 0 0 3px rgba(80,65,55,.06)}.searchIcon{position:absolute;left:18px;font-size:23px;line-height:1;color:#746b64;transform:rotate(-18deg);pointer-events:none}.productSearch button{display:none;position:absolute;right:10px;width:31px;height:31px;border:0;border-radius:50%;background:#f1ece7;color:#716860;font-size:20px;line-height:1;cursor:pointer}.productSearch button.show{display:block}@media(max-width:430px){.productSearch{margin-bottom:13px}.productSearch input{height:44px;font-size:14px}}

/* V8.3 */
.forgotLink{display:block;margin:14px auto 0;text-align:center}
.lookupOrder{margin-top:18px;padding:18px;border:1px solid #e6e0d9;border-radius:16px;background:#fff}
.lookupItem{padding:10px 0;border-bottom:1px solid #eee;line-height:1.6}
.lookupItem:last-of-type{border-bottom:0}
@media(max-width:760px){.headerActions{gap:6px}.headerActions .ghost{padding:8px 9px;font-size:12px}}
