:root{--cream:#fffaf3;--cream2:#f6ead8;--coffee:#2b2118;--brown:#8b5e34;--brown2:#704925;--muted:#8b735f;--line:#eadcca}body{background:var(--cream);color:#3b2a1d}.brand{font-weight:900;letter-spacing:.08em}.public-nav{background:rgba(246,234,216,.96);backdrop-filter:blur(8px);box-shadow:0 4px 18px rgba(80,45,20,.06)}.cream{background:var(--cream2)}.card,.soft-card,.table-card{border:0;border-radius:24px;box-shadow:0 10px 28px rgba(80,45,20,.08);background:#fff}.btn{border-radius:14px;font-weight:700}.btn-primary{background:var(--brown);border-color:var(--brown)}.btn-primary:hover{background:var(--brown2);border-color:var(--brown2)}.btn-outline-dark{border-color:#7a6047;color:#3b2a1d}.product-img{height:220px;object-fit:cover;border-radius:18px;background:#f6ead8}.soldout{filter:grayscale(1);opacity:.62}.hero-card{position:relative;overflow:hidden;border-radius:32px;background:#fff;box-shadow:0 12px 34px rgba(80,45,20,.10)}.hero-card img{width:100%;height:400px;object-fit:cover}.hero-overlay{position:absolute;inset:auto 24px 24px 24px;background:rgba(255,250,243,.86);border-radius:24px;padding:24px}.section-title{font-weight:900;letter-spacing:.03em}.admin-body{background:#fbf7f0}.admin-sidebar{background:var(--coffee);min-height:100vh;position:sticky;top:0}.admin-sidebar a{display:block;color:#fff;text-decoration:none;padding:12px 14px;border-radius:14px;margin-bottom:4px}.admin-sidebar a:hover{background:#4a3828}.table-card{padding:18px}.status-dot{display:inline-block;width:10px;height:10px;border-radius:99px;background:var(--brown);margin-right:6px}.badge-soft{background:#f6ead8;color:#5b3b22;border-radius:999px;padding:.35rem .65rem}.form-control,.form-select{border-radius:14px;border-color:#dfcfbd}.logistics-card{border:1px solid var(--line);border-radius:18px;padding:16px;cursor:pointer;background:#fff}.logistics-card input{margin-right:8px}.logistics-card:has(input:checked){border-color:var(--brown);box-shadow:0 0 0 3px rgba(139,94,52,.13)}@media(max-width:768px){.hero-card img{height:280px}.hero-overlay{position:static;border-radius:0}.product-img{height:165px}.admin-sidebar{min-height:auto;position:static}.table{font-size:.9rem}}

/* V1.5 homepage polish */
/* 首頁商品卡片與文字閱讀優化 */
.product-card{overflow:hidden}.product-card-body{display:flex;flex:1;flex-direction:column;min-width:0}.product-name-block{min-height:3.35rem}.product-title-line{display:flex;align-items:center;gap:.4rem;min-width:0}.product-card-title{display:-webkit-box;min-width:0;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;word-break:normal}.product-name-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:999px;background:#fff0d6;color:#8a4f20;border:1px solid #efcf9e;padding:.16rem .48rem;font-size:.72rem;font-weight:800}.product-card-meta{display:flex;align-items:center;gap:.08rem;flex-wrap:wrap;margin-top:.16rem;color:#79553d;font-size:.86rem;line-height:1.35}.product-card-desc{display:block;min-height:1.4em}.product-card-desc:empty{display:none}.product-card-purchase{margin-top:auto}.home-rule-text{line-height:1.7}.hero-card:first-of-type img{object-position:center center}.mobile-expandable-toggle{display:none;border:0;background:transparent;color:var(--brown2);font-weight:800;padding:.4rem 0 0;text-decoration:underline;text-underline-offset:3px}

.print-zebra tbody tr:nth-child(even){background:#fff7ed}.print-zebra tbody tr:nth-child(odd){background:#fff}


/* 購物流程優化：商品列表可直接加入並繼續選購 */
.cart-nav-btn{display:inline-flex;align-items:center;gap:.4rem}.cart-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;height:1.35rem;padding:0 .35rem;border-radius:999px;background:var(--brown);color:#fff;font-size:.75rem;line-height:1}.quick-add-form .input-group{border-radius:14px;overflow:hidden}.quick-add-form .form-control{border-radius:14px 0 0 14px;text-align:center;min-width:0}.quick-add-form .btn{border-radius:0 14px 14px 0;padding-left:1rem;padding-right:1rem}.product-detail-link{display:block;margin-top:.5rem;text-align:center;color:var(--brown2);font-size:.85rem;text-decoration:none}.product-detail-link:hover{text-decoration:underline}.scroll-anchor{scroll-margin-top:88px}
@media(max-width:576px){.quick-add-form .btn{padding-left:.75rem;padding-right:.75rem}.cart-count-badge{min-width:1.2rem;height:1.2rem}.product-detail-link{font-size:.8rem}}

.site-flash{position:fixed;top:76px;right:16px;z-index:1080;max-width:min(420px,calc(100vw - 32px));box-shadow:0 10px 28px rgba(80,45,20,.16)}

/* V2.6 藍新商店審核資訊與政策頁 */
.site-footer{background:#2b2118;color:#f8efe4}.site-footer a{display:block;color:#f8efe4;text-decoration:none;margin:.45rem 0}.site-footer a:hover{text-decoration:underline;color:#fff}.site-footer-brand{font-size:1.35rem;font-weight:900;letter-spacing:.08em;margin-bottom:.65rem}.site-footer-title{font-weight:800;color:#e8c79f;margin-bottom:.7rem}.footer-contact{line-height:1.8;color:#e9dccd}.footer-contact a{display:inline;margin:0}.site-footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:1.5rem;padding-top:1rem;font-size:.85rem;color:#cdbba8}.policy-page{max-width:920px}.policy-heading{margin-bottom:1.5rem}.policy-heading h1{font-weight:900;margin:.25rem 0 .5rem}.policy-heading p{color:#795f49;margin:0}.policy-kicker{font-size:.75rem;font-weight:900;letter-spacing:.18em;color:var(--brown)}.policy-card{background:#fff;border:1px solid #eadcca;border-radius:22px;padding:1.5rem;margin-bottom:1rem;box-shadow:0 8px 24px rgba(80,45,20,.06)}.policy-card h2{font-size:1.2rem;font-weight:900;margin-bottom:.85rem}.policy-card li{margin-bottom:.45rem;line-height:1.7}.policy-card p{line-height:1.8}.policy-emphasis{border:2px solid #c5925f;background:#fffaf3}.policy-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.policy-link-grid a{display:flex;flex-direction:column;gap:.2rem;border:1px solid #eadcca;border-radius:16px;padding:1rem;text-decoration:none;color:#3b2a1d;background:#fffaf5}.policy-link-grid a:hover{border-color:var(--brown);box-shadow:0 6px 18px rgba(80,45,20,.08)}.policy-link-grid span{font-size:.86rem;color:#806852}.policy-updated{text-align:right;color:#8b735f;font-size:.85rem}.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.contact-item{border:1px solid #eadcca;border-radius:16px;padding:1rem;line-height:1.7}.product-label-card{border:1px solid #eadcca;border-radius:20px;background:#fffaf5;padding:1.25rem;margin:1rem 0}.product-label-grid{display:grid;grid-template-columns:140px 1fr;border-top:1px solid #eadcca;border-left:1px solid #eadcca}.product-label-grid dt,.product-label-grid dd{margin:0;padding:.75rem;border-right:1px solid #eadcca;border-bottom:1px solid #eadcca}.product-label-grid dt{background:#f6ead8;font-weight:800}.nutrition-facts{white-space:pre-wrap;font-family:inherit;line-height:1.7;background:#fff;border:1px solid #dfcfbd;border-radius:14px;padding:1rem;margin:0}.review-required{border:2px solid #d79a4a!important;background:#fffaf0}.review-badge-complete{background:#198754}.review-badge-missing{background:#dc3545}
@media(max-width:768px){.policy-link-grid,.contact-grid{grid-template-columns:1fr}.product-label-grid{grid-template-columns:110px 1fr}.policy-card{padding:1.15rem}.site-footer{font-size:.95rem}}


/* 2026-08-04 手機版：長文收合、商品資訊自然分層、圖片不裁切 */
@media(max-width:767.98px){
  .home-intro-overlay{padding:20px!important}
  .home-intro-overlay h1{font-size:1.75rem;line-height:1.25;margin-bottom:.65rem!important}
  .home-intro-text,.announcement-content{font-size:1rem;line-height:1.75}
  .mobile-expandable-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--mobile-lines,4);overflow:hidden}
  .mobile-expandable.is-expanded .mobile-expandable-content{display:block;overflow:visible}
  .mobile-expandable.is-overflowing .mobile-expandable-toggle{display:inline-flex}
  .announcement-card{padding:14px!important;gap:10px!important}
  .announcement-icon{width:36px!important;height:36px!important;flex-basis:36px!important}
  .product-img{height:auto;aspect-ratio:1/1;object-fit:contain;object-position:center;background:#f8eee0}
  .product-card{border-radius:20px}
  .product-card-body{padding:.55rem .35rem .35rem!important}
  .product-batch-row{min-width:0;white-space:nowrap;overflow:hidden}
  .badge-soft{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.28rem .52rem;font-size:.74rem}
  .product-name-block{min-height:3.2rem}
  .product-card-title{font-size:1rem;line-height:1.35}
  .product-card-meta{font-size:.8rem;line-height:1.3}
  .product-card-price{font-size:1.05rem}
}
@media(max-width:390px){
  .product-card-title{font-size:.94rem}
  .product-card-meta{font-size:.76rem}
  .product-name-badge{font-size:.68rem;padding:.12rem .38rem}
  .quick-add-form .btn{padding-left:.65rem;padding-right:.65rem}
}

/* 2026-08-04 修正：展開按鈕僅限手機，平板／電腦直接顯示全文 */
@media(min-width:768px){
  .mobile-expandable-content{display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important}
  .mobile-expandable-toggle{display:none!important}
}
