
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@500;600;700&display=swap');
:root{--brown:#6d3d18;--dark:#422b1b;--cream:#f7efe4;--paper:#fffdf9;--sage:#8d9572;--line:#e7d7c6;--text:#40352c}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--text);font-family:"Noto Sans TC",sans-serif}a{text-decoration:none;color:inherit}button,input,select{font:inherit}
.topbar{background:var(--dark);color:#fff8ef;text-align:center;padding:9px 14px;font-size:13px;letter-spacing:.4px}
.site-header{height:96px;background:#fff;display:flex;align-items:center;gap:40px;padding:0 4.5%;border-bottom:1px solid #eee3d6;position:sticky;top:0;z-index:20}
.brand{display:block;flex:0 0 245px}.brand img{display:block;width:225px;height:76px;object-fit:contain;object-position:left center}
.main-nav{display:flex;gap:27px;align-items:center;flex:1;justify-content:center;font-size:15px}.main-nav a:hover{color:var(--brown)}
.cart-btn{border:0;background:var(--brown);color:#fff;border-radius:24px;padding:12px 18px;font-weight:700;cursor:pointer}.cart-btn span{background:#fff;color:var(--brown);padding:1px 7px;border-radius:50%;margin-left:5px}
.hero{display:grid;grid-template-columns:46% 54%;min-height:520px;background:var(--cream);overflow:hidden}
.hero-copy{padding:72px 10% 60px 13%;display:flex;flex-direction:column;justify-content:center}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:3px;color:#99785d;margin:0 0 11px}
.hero h1{font-family:"Noto Serif TC";font-size:54px;line-height:1.35;margin:0 0 18px;color:#50331f}
.hero-sub{font-size:21px;font-weight:600;margin:0 0 12px}.hero-note{color:#94613b;font-family:"Noto Serif TC";font-size:18px;letter-spacing:2px}
.hero-actions{display:flex;gap:12px;margin-top:24px}.btn{padding:12px 25px;border-radius:28px;border:1px solid var(--brown);display:inline-block;font-weight:600}.primary{background:var(--brown);color:#fff}.secondary{color:var(--brown);background:#fff8}
.hero-photo{min-height:520px;background:#e9d5ba}.hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.features{width:min(1220px,92%);margin:-28px auto 0;position:relative;z-index:4;background:#fffdf9;border:1px solid var(--line);border-radius:16px;padding:28px 20px;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 8px 24px #5b38200d}
.features>div{text-align:center;padding:0 16px;border-right:1px solid var(--line)}.features>div:last-child{border:0}.features span{display:block;font-size:27px;margin-bottom:7px}.features b{display:block}.features small{display:block;color:#857567;margin-top:5px;font-size:12px}
.section{max-width:1260px;margin:auto;padding:82px 5%}.section-head{text-align:center;margin-bottom:34px}.section-head h2,.story h2,.contact h2,.modal h2,.cart-panel h2{font-family:"Noto Serif TC";font-size:34px;margin:0 0 9px}.section-head p:last-child{color:#817163}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.product-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 6px 20px #63411f0c}.product-visual{height:205px;display:flex;align-items:flex-end;padding:14px;background:radial-gradient(circle at 50% 45%,#d7a96c 0 18%,#b66d32 19% 30%,#ead7bc 31% 55%,#efe6db 56%)}.product-visual span{background:#fffdf0e8;border-radius:18px;padding:6px 10px;font-size:12px}.v2{filter:saturate(.9)}.v3{filter:brightness(1.08)}.v4{filter:sepia(.1)}.v5{filter:hue-rotate(15deg)}.v6{filter:brightness(1.04)}.v7{filter:saturate(.8)}.v8{filter:hue-rotate(-10deg)}
.product-body{padding:15px}.product-body h3{margin:0 0 5px}.product-body p{margin:0 0 16px;color:#857466;font-size:12px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-bottom strong{color:var(--brown)}.add-btn{border:1px solid var(--brown);background:#fff;color:var(--brown);border-radius:18px;padding:7px 10px;cursor:pointer;font-size:12px}
.shipping{background:#87916f;color:white;display:grid;grid-template-columns:repeat(2,1fr);padding:34px 6%;gap:28px}.shipping div{border-right:1px solid #ffffff45;padding-right:18px}.shipping div:last-child{border:0}.shipping b,.shipping strong,.shipping small{display:block}.shipping strong{font-size:20px;margin:5px 0}.shipping small{opacity:.88}
.story{background:#f5eee5;padding:75px 7%}.story-card{max-width:800px;margin:auto;text-align:center}.story-card p:not(.eyebrow){line-height:2;color:#6d5c4e}
.contact{text-align:center;padding:75px 20px}.contact p:not(.eyebrow){color:#75685d;margin-bottom:25px}
footer{background:#433126;color:#f5eadd;padding:24px 5%;display:flex;align-items:center;justify-content:space-between;gap:20px}footer img{width:145px;height:55px;object-fit:contain;object-position:left center}footer p{font-size:12px;color:#d6c5b7}
.overlay{display:none;position:fixed;inset:0;background:#0007;z-index:50}.overlay.open{display:block}.cart-panel{position:absolute;right:0;top:0;height:100%;width:min(430px,94vw);background:#fffdf9;padding:25px;overflow:auto}.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px}.panel-head h2{font-size:27px}.panel-head button,.close-x{border:0;background:none;font-size:22px;cursor:pointer}.cart-item{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid #eee2d5}.qty{display:flex;gap:8px;align-items:center;margin-top:8px}.qty button{width:25px;height:25px;border:1px solid var(--line);border-radius:50%;background:white}.total{display:flex;justify-content:space-between;padding:20px 0}.full-btn{width:100%;border:0;border-radius:24px;padding:12px;background:var(--brown);color:#fff;font-weight:700;cursor:pointer}.note{font-size:11px;color:#877769;line-height:1.7}
.modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,94vw);max-height:90vh;overflow:auto;background:#fffdf9;border-radius:18px;padding:34px}.modal.small{width:min(430px,92vw)}.close-x{position:absolute;right:20px;top:16px}.modal label{display:block;font-size:13px;margin:12px 0}.modal input,.modal select{display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:9px;padding:11px;background:white}.hint,.summary{background:#f5ede3;border:1px solid var(--line);padding:12px;border-radius:10px;font-size:12px;line-height:1.7;margin:15px 0}.success{background:#eef2e8;padding:15px;border-radius:10px;margin-top:15px}
@media(max-width:980px){.main-nav{display:none}.site-header{justify-content:space-between}.brand{flex:0 0 auto}.hero{grid-template-columns:1fr}.hero-copy{padding:55px 8% 42px}.hero h1{font-size:44px}.hero-photo{min-height:340px}.features{grid-template-columns:repeat(2,1fr);margin-top:0}.features>div{border:0}.product-grid{grid-template-columns:repeat(2,1fr)}.shipping{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.topbar{font-size:10px}.site-header{height:76px;padding:0 4%}.brand img{width:150px;height:60px}.cart-btn{font-size:12px;padding:9px 12px}.hero h1{font-size:36px}.hero-sub{font-size:17px}.hero-photo{min-height:280px}.features{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr}.shipping{grid-template-columns:1fr}.shipping div{border:0}.hero-actions{flex-direction:column;align-items:flex-start}footer{flex-direction:column;align-items:flex-start}}

/* V1.5 mockup-matched final overrides */
.site-header{height:112px;padding:0 4%;gap:26px}
.brand{flex:0 0 255px}.brand img{width:245px;height:92px}
.main-nav{gap:30px;font-size:15px;font-weight:600}
.hero{grid-template-columns:43% 57%;min-height:480px}
.hero-copy{padding:55px 8% 62px 12%}
.hero h1{font-size:50px;line-height:1.38}
.hero-photo{min-height:480px}
.hero-photo img{object-position:center 47%}
.features{grid-template-columns:repeat(6,1fr);width:min(1280px,92%);margin:-42px auto 0;padding:25px 12px;border-radius:22px}
.features>div{padding:0 12px}
.section{padding-top:58px}
.product-grid{grid-template-columns:repeat(4,1fr)}
@media(min-width:1180px){.product-grid{grid-template-columns:repeat(7,1fr);gap:14px}.product-visual{height:145px}.product-body{padding:12px}.product-body h3{font-size:15px}.product-body p{font-size:11px}.add-btn{padding:6px 8px}}
@media(max-width:980px){.features{grid-template-columns:repeat(3,1fr);margin-top:-20px}.hero{grid-template-columns:1fr}.hero-photo{min-height:360px}}
@media(max-width:560px){.features{grid-template-columns:repeat(2,1fr)}}


/* V2.3 Dynamic Storefront */
.product-loading,.product-empty{
  text-align:center;
  padding:34px 20px;
  color:#857466;
}
.product-photo-wrap{
  position:relative;
  height:205px;
  overflow:hidden;
  background:#f2e8dc;
}
.product-photo-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.product-placeholder{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#9b866f;
}
.product-placeholder span{font-size:36px}
.product-placeholder small{font-size:12px}
.soldout-badge{
  position:absolute;
  top:12px;
  right:12px;
  background:#5f5046;
  color:white;
  border-radius:16px;
  padding:5px 9px;
  font-size:11px;
  font-weight:700;
}
.product-meta{
  min-height:24px;
  display:flex;
  gap:8px;
  align-items:center;
  margin:0 0 13px;
  font-size:11px;
  color:#887769;
}
.product-meta span{
  padding:3px 7px;
  border-radius:12px;
  background:#f5eee6;
}
.product-meta .stock-ok{
  color:#4f7142;
  background:#edf5e8;
}
.product-meta .stock-out{
  color:#8c6554;
  background:#f4ebe7;
}
.add-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  background:#eee5dc;
  color:#806f60;
  border-color:#ddd0c3;
}
@media(min-width:1180px){
  .product-photo-wrap{height:150px}
}
@media(max-width:560px){
  .product-photo-wrap{height:235px}
}

.product-card-link{display:block;color:inherit;text-decoration:none}
.product-card-link:hover h3{color:var(--brown)}
.detail-link-text{font-size:11px;color:#8b6447;font-weight:700}
.card-cart-row{padding:0 12px 12px}
.card-cart-row .add-btn{width:100%}


/* V4.0.3 購物車 20 份上限 */
.cart-limit-note{margin:10px 0 12px;font-size:12px;line-height:1.6;color:#8a796a}
.cart-limit-note a{color:#7b4218;font-weight:800;text-decoration:underline;text-underline-offset:2px}


/* V4.0.4 購物車刪除按鈕 + 數量按鈕置中 */
.qty{display:flex;gap:8px;align-items:center;margin-top:8px}
.qty button.qty-btn{
  width:26px;
  height:26px;
  min-width:26px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:17px;
  font-family:Arial,sans-serif;
  cursor:pointer;
  box-sizing:border-box;
}
.cart-delete-btn{
  width:28px;
  height:28px;
  min-width:28px;
  padding:0;
  margin-left:3px;
  border:1px solid #e8c2ba;
  border-radius:50%;
  background:#fff7f5;
  color:#a34b3f;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-sizing:border-box;
}
.cart-delete-btn:hover{background:#fce9e5}
.cart-delete-btn svg{width:15px;height:15px;display:block;fill:currentColor}


/* V4.0.5 商品卡統整 + 每頁 10 項 */
.section#products{max-width:1380px}
.product-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.product-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-width:0;
}
.product-card-link{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}
.product-photo-wrap{height:190px}
.product-body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  padding:14px;
}
.product-body h3{
  min-height:46px;
  line-height:1.45;
  margin:0 0 6px;
  overflow-wrap:anywhere;
}
.product-body p{
  min-height:34px;
  line-height:1.5;
  margin:0 0 10px;
}
.product-meta{
  min-height:28px;
  margin-bottom:10px;
}
.product-bottom{
  margin-top:auto;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.product-price-label{
  white-space:nowrap;
  word-break:keep-all;
  font-size:17px;
  line-height:1.2;
}
.detail-link-text{white-space:nowrap}
.card-cart-row{
  margin-top:auto;
  padding:0 14px 14px;
}
.card-cart-row .add-btn{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1.2;
}
.product-pager{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:28px auto 0;
  flex-wrap:wrap;
}
.product-pager>button,.page-number{
  min-width:40px;
  height:40px;
  padding:0 13px;
  border:1px solid #d9c0aa;
  border-radius:999px;
  background:#fff;
  color:#6e3d19;
  font-weight:700;
  cursor:pointer;
}
.product-pager>button:disabled{
  opacity:.38;
  cursor:not-allowed;
}
.product-page-numbers{display:flex;gap:7px;flex-wrap:wrap}
.page-number.active{
  background:#7b4218;
  border-color:#7b4218;
  color:#fff;
}
@media(min-width:1180px){
  .product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
  .product-photo-wrap{height:190px}
  .product-body{padding:14px}
  .product-body h3{font-size:16px}
  .product-body p{font-size:12px}
  .add-btn{padding:8px 10px}
}
@media(max-width:1100px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-photo-wrap{height:180px}
}
@media(max-width:480px){
  .product-grid{grid-template-columns:1fr}
  .product-photo-wrap{height:250px}
}


/* V4.0.6 中英文商品名稱自動分行 */
.product-name{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:3px;
}
.product-name-zh,
.product-name-en{
  display:block;
  width:100%;
  text-align:center;
}
.product-name-zh{
  font-weight:800;
}
.product-name-en{
  font-size:.88em;
  line-height:1.35;
  font-weight:600;
  color:#6f5a49;
  word-break:normal;
  overflow-wrap:anywhere;
}

@media(max-width:700px){.shipping{grid-template-columns:1fr}.shipping div{border-right:0;border-bottom:1px solid #ffffff45;padding:0 0 18px}.shipping div:last-child{border-bottom:0;padding-bottom:0}}

/* V4.0.20 policy pages and footer */
.site-footer{background:#433126;color:#f5eadd;padding:30px 5%;display:flex;align-items:flex-start;justify-content:space-between;gap:40px}
.site-footer .footer-brand img{width:145px;height:55px;object-fit:contain;object-position:left center}
.site-footer .footer-brand p{font-size:12px;color:#d6c5b7;margin:10px 0 0}
.footer-nav-groups{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:34px}
.footer-nav-groups div{display:flex;flex-direction:column;gap:7px}.footer-nav-groups b{font-size:13px;color:#fff}
.footer-nav-groups a,.footer-links a{color:#e7d8cb;text-decoration:none;font-size:12px}.footer-nav-groups a:hover,.footer-links a:hover{text-decoration:underline}
.policy-page{background:#fbf7f1;padding:54px 20px 80px;min-height:65vh}.policy-card{max-width:900px;margin:auto;background:#fff;border:1px solid #ead4bd;border-radius:20px;padding:38px 44px;color:#4b382b}
.policy-card h1{font-size:32px;color:#7b3f12;margin:4px 0 8px}.policy-card h2{font-size:20px;color:#7b3f12;margin:30px 0 10px}.policy-card p,.policy-card li{line-height:1.9}.policy-card ul{padding-left:22px}.policy-updated{font-size:12px;color:#8b7868}
.policy-footer{align-items:center}.footer-links{display:flex;flex-wrap:wrap;gap:18px}
.checkout-policy-consent{font-size:12px;line-height:1.7;color:#7c6a5d;text-align:center;margin:14px 4px}.checkout-policy-consent a{color:#814414;font-weight:700}
@media(max-width:760px){.site-footer{flex-direction:column}.footer-nav-groups{grid-template-columns:1fr 1fr;gap:24px}.policy-card{padding:26px 20px}.policy-card h1{font-size:27px}.policy-footer{align-items:flex-start}}


/* V4.0.21 政策頁上方導覽 */
.policy-topbar{
  min-height:92px;
  padding:14px 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  background:#fff;
  border-bottom:1px solid #eadfd4;
}
.policy-topbar .brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.policy-topbar .brand img{
  width:112px;
  height:64px;
  object-fit:contain;
}
.policy-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  flex-wrap:wrap;
}
.policy-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  color:#4c3121;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.policy-nav a:hover{
  background:#f4e9dd;
  color:#7c4318;
}
@media(max-width:760px){
  .policy-topbar{
    flex-direction:column;
    align-items:center;
    padding:12px 16px 16px;
    gap:10px;
  }
  .policy-nav{
    justify-content:center;
    gap:8px;
  }
  .policy-nav a{
    min-height:42px;
    padding:0 12px;
    font-size:14px;
    background:#faf5ef;
    border:1px solid #ead8c8;
  }
}


/* V4.0.22 關於小陳獨立頁 */
.about-page{background:#fbf7f1;color:#4a3425}
.about-hero{max-width:900px;margin:0 auto;padding:72px 24px 46px;text-align:center}
.about-hero h1{font-family:"Noto Serif TC";font-size:40px;color:#4b3020;margin:10px 0 18px}
.about-lead{max-width:760px;margin:0 auto;color:#786759;line-height:2;font-size:16px}
.about-story-grid{max-width:1060px;margin:0 auto;padding:10px 24px 68px;display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.about-card{background:#fff;border:1px solid #ead8c8;border-radius:18px;padding:28px}
.about-card span{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#f3e7db;color:#7f461d;font-weight:800;font-size:12px}
.about-card h2{font-size:22px;color:#5a3823;margin:14px 0 8px}
.about-card p{color:#77675a;line-height:1.9;margin:0}
.about-belief{background:#f3eadf;padding:62px 24px}
.about-belief>div{max-width:820px;margin:auto;text-align:center}
.about-belief h2{font-family:"Noto Serif TC";font-size:32px;color:#4b3020;margin:8px 0 16px}
.about-belief p:not(.eyebrow){line-height:2;color:#6f5e50}
.about-service{padding:64px 24px 82px}
.about-service>div{max-width:760px;margin:auto;background:#fff;border:1px solid #ead8c8;border-radius:18px;padding:32px}
.about-service h2{font-family:"Noto Serif TC";font-size:28px;color:#4b3020;margin-top:0}
.about-service p{line-height:1.8;color:#6d5d50}
.about-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.story-more-btn{display:inline-flex;margin-top:22px;text-decoration:none}
.main-nav a[aria-current="page"]{color:#7f461d;font-weight:900}
@media(max-width:760px){
  .about-hero{padding-top:48px}.about-hero h1{font-size:32px}
  .about-story-grid{grid-template-columns:1fr}
  .about-card{padding:22px}
  .about-belief h2{font-size:27px}
}


/* V4.0.24 團購／批發獨立頁 */
.group-page{background:#fbf7f1;color:#4a3425}
.group-hero{max-width:930px;margin:0 auto;padding:76px 24px 64px;text-align:center}
.group-hero h1{font-family:"Noto Serif TC";font-size:42px;line-height:1.45;color:#4b3020;margin:10px 0 20px}
.group-lead{max-width:820px;margin:0 auto;color:#746356;line-height:2.05;font-size:16px}
.group-hero-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px}
.group-intro{background:#f3eadf;padding:62px 24px}
.group-intro>div{max-width:850px;margin:auto;text-align:center}
.group-intro h2,.group-belief h2,.group-service h2{font-family:"Noto Serif TC";font-size:31px;color:#4b3020;margin:8px 0 16px}
.group-intro p:not(.eyebrow),.group-belief p:not(.eyebrow){line-height:2;color:#6f5e50}
.group-grid{max-width:1060px;margin:0 auto;padding:64px 24px;display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.group-card{background:#fff;border:1px solid #ead8c8;border-radius:18px;padding:28px}
.group-card span{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#f3e7db;color:#7f461d;font-weight:800;font-size:12px}
.group-card h2{font-size:22px;color:#5a3823;margin:14px 0 8px}
.group-card p{color:#77675a;line-height:1.9;margin:0}
.group-belief{background:#f3eadf;padding:62px 24px}
.group-belief>div{max-width:850px;margin:auto;text-align:center}
.group-service{padding:64px 24px 82px}
.group-service>div{max-width:820px;margin:auto;background:#fff;border:1px solid #ead8c8;border-radius:18px;padding:34px}
.group-service p{line-height:1.85;color:#6d5d50}
.group-service-note{margin-top:20px;padding-top:18px;border-top:1px solid #ead8c8}
@media(max-width:760px){
  .group-hero{padding-top:48px}.group-hero h1{font-size:32px}
  .group-grid{grid-template-columns:1fr}
  .group-card{padding:22px}
  .group-intro h2,.group-belief h2,.group-service h2{font-size:27px}
}

/* V4.0.25 法規合規強化 */
.business-disclosure{margin-top:34px;padding-top:26px;border-top:1px solid #ead8c8}
.business-disclosure p{margin:7px 0}
.legal-note{font-size:13px;color:#8a7463;background:#fbf6ef;border:1px solid #ead8c8;border-radius:12px;padding:12px 14px}

/* V4.0.27 Footer 正式營業資訊 */
.footer-business-info{
  margin:6px 0 0!important;
  font-size:11px!important;
  line-height:1.7;
  color:#cdbbad!important;
  max-width:430px;
}
