/* V162: 一般購物車與團購購物車分流 */
.group-cart-page-v162{min-height:calc(100vh - 180px);background:linear-gradient(180deg,#fffaf3 0,#fff 44%)}
.group-cart-shell-v162{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:46px 0 128px}
.group-cart-hero-v162{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:30px 32px;border:1px solid #e5c7a6;border-radius:24px;background:linear-gradient(135deg,#fffaf2 0,#f5e4cf 100%);box-shadow:0 18px 45px rgba(117,63,31,.09)}
.group-cart-hero-v162 span,.group-cart-panel-v162>span,.group-cart-section-head-v162 span,.group-cart-empty-v162>span{color:#b65b2b;font-size:11px;font-weight:900;letter-spacing:.16em}
.group-cart-hero-v162 h1{margin:7px 0 6px;color:#251b16;font-size:clamp(28px,4vw,44px);line-height:1.1}.group-cart-hero-v162 p{margin:0;color:#735f52;font-size:15px}
.group-cart-code-v162{flex:0 0 auto;min-width:164px;padding:16px 20px;border-radius:18px;background:#fff;text-align:center}.group-cart-code-v162 small{display:block;color:#8f7666}.group-cart-code-v162 strong{display:block;margin-top:4px;color:#9d311f;font-size:26px;letter-spacing:.13em}
.group-cart-stats-v162{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.group-cart-stats-v162>div{display:grid;gap:5px;padding:17px 19px;border:1px solid #ead4bc;border-radius:17px;background:#fff}.group-cart-stats-v162 span{color:#876f60;font-size:12px}.group-cart-stats-v162 strong{color:#2d211a;font-size:17px}
.group-cart-layout-v162{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.8fr);gap:18px;align-items:start}.group-cart-panel-v162{padding:24px;border:1px solid #e7cfb5;border-radius:22px;background:#fff;box-shadow:0 12px 35px rgba(93,54,31,.06)}
.group-cart-section-head-v162{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #efe0d0}.group-cart-section-head-v162 h2,.group-cart-condition-v162 h2{margin:5px 0 0;color:#2a1e18;font-size:22px}.group-cart-section-head-v162 label{display:grid;gap:5px;color:#806a5b;font-size:11px}.group-cart-section-head-v162 select{min-width:150px;padding:9px 34px 9px 11px;border:1px solid #dec4a8;border-radius:11px;background:#fff;color:#3c2b21}
.group-cart-reopen-note-v162{margin:16px 0;padding:11px 13px;border-radius:12px;background:#fff3dc;color:#7b5b43;font-size:12px;line-height:1.55}
.group-cart-items-v162{display:grid;gap:10px}.group-cart-item-v162{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:17px;border:1px solid #edddcc;border-radius:16px;background:#fffdf9}.group-cart-item-v162 strong{display:block;color:#2c211b;font-size:16px}.group-cart-item-v162 small{display:block;margin-top:6px;color:#816e61;line-height:1.55}.group-cart-item-actions-v162{display:flex;align-items:center;gap:12px}.group-cart-item-actions-v162>b{min-width:62px;color:#9f3322;text-align:right}.group-cart-item-actions-v162>div{display:flex;align-items:center;border:1px solid #dec4a8;border-radius:11px;overflow:hidden}.group-cart-item-actions-v162>div button{width:34px;height:34px;border:0;background:#fff;color:#8f4329;font-size:18px}.group-cart-item-actions-v162>div span{min-width:28px;text-align:center;font-weight:800}.group-cart-item-actions-v162>.danger{padding:8px 10px;border:1px solid #e0aaa0;border-radius:10px;background:#fff5f2;color:#a23b2c;font-weight:800}.group-cart-item-actions-v162 button:disabled{opacity:.45;cursor:not-allowed}
.group-cart-panel-v162>footer{display:flex;justify-content:space-between;margin-top:18px;padding-top:17px;border-top:1px dashed #dfc3a4}.group-cart-panel-v162>footer strong{color:#9f3322;font-size:23px}.group-cart-no-items-v162{padding:34px 18px;border:1px dashed #dab995;border-radius:16px;text-align:center}.group-cart-no-items-v162 p{margin:8px auto 0;max-width:430px;color:#826e60;line-height:1.65}
.group-cart-side-v162{display:grid;gap:18px}.group-cart-condition-v162{background:linear-gradient(145deg,#fff9ed,#f6e6d2)}.group-cart-condition-v162 p{margin:10px 0;color:#725e51;line-height:1.6}.group-cart-condition-v162 small{color:#9b5a36;font-weight:800}.group-cart-members-v162{display:grid;gap:10px;margin-top:14px;max-height:480px;overflow:auto}.group-cart-member-v162{padding:14px;border:1px solid #ecddcd;border-radius:14px;background:#fffdf9}.group-cart-member-v162.is-current{border-color:#d38a50;background:#fff7eb}.group-cart-member-v162 header{display:flex;justify-content:space-between;gap:12px}.group-cart-member-v162 header strong{color:#33251d}.group-cart-member-v162 header small{display:block;margin-top:3px;color:#9a7c67}.group-cart-member-v162 header b{color:#9f3322}.group-cart-member-v162 p{margin:9px 0 0;color:#756257;font-size:12px;line-height:1.55}.group-cart-member-v162 em{display:block;margin-top:7px;color:#348252;font-size:11px;font-style:normal;font-weight:800}
.group-cart-footer-v162{position:sticky;bottom:14px;z-index:8;display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding:14px;border:1px solid #e5c9aa;border-radius:18px;background:rgba(255,250,242,.95);box-shadow:0 14px 40px rgba(88,48,26,.15);backdrop-filter:blur(12px)}.group-cart-footer-v162 a,.group-cart-footer-v162 button{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:0 18px;border:1px solid #d9b58e;border-radius:12px;background:#fff;color:#6f4531;font-weight:900;text-decoration:none}.group-cart-footer-v162 .v147-primary-btn{border-color:#c8612c;background:linear-gradient(135deg,#dd8b2e,#c55a27);color:#fff}.group-cart-footer-v162 .danger{color:#a23b2c}.group-cart-footer-v162 button:disabled{opacity:.5;cursor:not-allowed}
.group-cart-empty-v162{max-width:680px;margin:80px auto;padding:48px 30px;border:1px solid #e5c7a6;border-radius:24px;background:#fff;text-align:center}.group-cart-empty-v162 h1{margin:9px 0;color:#2b2019}.group-cart-empty-v162 p{color:#786457;line-height:1.7}.group-cart-empty-v162 a{display:inline-flex;margin-top:14px;text-decoration:none}
.group-cart-link-v162{display:flex!important;align-items:center;justify-content:center;text-decoration:none}
body.is-group-cart-context-v162 .desktop-cart-panel{border-color:#d58749;background:linear-gradient(180deg,#fff9ed,#fff)}
body.is-group-cart-context-v162 .header-cart-count{background:#b6532b}
@media(max-width:820px){.group-cart-shell-v162{width:min(100% - 24px,1180px);padding:24px 0 112px}.group-cart-hero-v162{align-items:flex-start;padding:22px;border-radius:19px}.group-cart-stats-v162{grid-template-columns:1fr 1fr}.group-cart-layout-v162{grid-template-columns:1fr}.group-cart-panel-v162{padding:18px;border-radius:18px}.group-cart-footer-v162{display:grid;grid-template-columns:1fr 1fr;bottom:10px}.group-cart-footer-v162 .v147-primary-btn{grid-column:1/-1}.group-cart-item-v162{grid-template-columns:1fr}.group-cart-item-actions-v162{justify-content:space-between}.group-cart-section-head-v162{align-items:flex-start}}
@media(max-width:520px){.group-cart-hero-v162{display:grid}.group-cart-code-v162{min-width:0;width:100%;text-align:left}.group-cart-stats-v162{gap:8px}.group-cart-stats-v162>div{padding:13px}.group-cart-stats-v162 strong{font-size:15px}.group-cart-section-head-v162{display:grid}.group-cart-section-head-v162 select{width:100%}.group-cart-item-actions-v162{display:grid;grid-template-columns:auto 1fr auto}.group-cart-item-actions-v162>div{justify-self:center}.group-cart-footer-v162{grid-template-columns:1fr}.group-cart-footer-v162 .v147-primary-btn{grid-column:auto}}

/* V163: 多團並存，個人購物與團購加餐明確分流 */
.groupbuy-status-v147{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.groupbuy-status-v147>.groupbuy-status-actions-v163{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;width:min(100%,330px);min-width:300px;padding:4px;gap:4px;border:1px solid #dfc3a5;border-radius:14px;background:rgba(255,255,255,.72);box-shadow:0 7px 18px rgba(90,52,31,.07)}
.groupbuy-status-v147>.groupbuy-status-actions-v163 button{display:flex;align-items:center;justify-content:center;min-height:42px;margin:0;padding:0 15px;border:0;border-radius:10px;white-space:nowrap;font-size:13px;line-height:1.2;box-shadow:none}
.groupbuy-status-v147>.groupbuy-status-actions-v163 .group-cart-exit-v163{background:transparent;color:#8d3e29}
.groupbuy-status-v147>.groupbuy-status-actions-v163 [data-groupbuy-open]{background:linear-gradient(135deg,#b74e35,#963126);color:#fff;box-shadow:0 6px 13px rgba(137,49,35,.18)}
.groupbuy-status-v147>.groupbuy-status-actions-v163 .group-cart-exit-v163[hidden]+[data-groupbuy-open]{grid-column:1/-1}
.group-modal-list-link-v163{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #dfbf9d;border-radius:12px;color:#784b34;font-weight:900;text-decoration:none}
.group-independent-note-v163{margin:4px 0 0;padding:12px 14px;border-radius:12px;background:#fff5df;color:#775c49;font-size:12px;line-height:1.65}
.group-hub-hero-v163{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 32px;border:1px solid #e5c7a6;border-radius:24px;background:linear-gradient(135deg,#fffaf2 0,#f5e4cf 100%);box-shadow:0 18px 45px rgba(117,63,31,.09)}
.group-hub-hero-v163 span{color:#b65b2b;font-size:11px;font-weight:900;letter-spacing:.16em}.group-hub-hero-v163 h1{margin:7px 0 6px;color:#251b16;font-size:clamp(28px,4vw,44px);line-height:1.1}.group-hub-hero-v163 p{margin:0;color:#735f52}.group-hub-hero-v163>a{flex:0 0 auto;text-decoration:none}
.group-personal-cart-v163{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;padding:18px 22px;border:1px solid #d8c39c;border-radius:18px;background:#fffdf8}.group-personal-cart-v163>div{display:grid;gap:3px}.group-personal-cart-v163 span{color:#a85b31;font-size:10px;font-weight:900;letter-spacing:.14em}.group-personal-cart-v163 strong{color:#2f241e}.group-personal-cart-v163 small{color:#806d60}.group-personal-cart-v163>a{flex:0 0 auto;padding:11px 16px;border:1px solid #d9b58e;border-radius:11px;color:#75482f;font-weight:900;text-decoration:none}
.group-hub-grid-v163{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.group-hub-card-v163{overflow:hidden;border:1px solid #e6cfb7;border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(93,54,31,.06)}.group-hub-card-v163>header{display:flex;justify-content:space-between;gap:20px;padding:22px 22px 16px}.group-hub-card-v163>header span{color:#ba5b2e;font-size:11px;font-weight:900}.group-hub-card-v163 h2{margin:5px 0;color:#2c211b;font-size:21px}.group-hub-card-v163 p{margin:0;color:#7d695c}.group-hub-card-v163>header>strong{align-self:flex-start;padding:8px 10px;border-radius:10px;background:#fff0db;color:#9f3b23;letter-spacing:.08em}
.group-hub-stats-v163{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 22px 18px}.group-hub-stats-v163 span{padding:10px 12px;border-radius:11px;background:#faf5ed;color:#715f53;font-size:12px}.group-hub-stats-v163 b{color:#3b2b22}.group-hub-card-v163>footer{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:15px 22px 20px;border-top:1px solid #f0e2d3}.group-hub-card-v163>footer a,.group-hub-card-v163>footer button{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #d9b58e;border-radius:11px;background:#fff;color:#74472f;font-weight:900;text-decoration:none}.group-hub-card-v163>footer .v147-primary-btn{border-color:#c8612c;background:linear-gradient(135deg,#dd8b2e,#c55a27);color:#fff}
.group-hub-back-v163{display:inline-flex;margin:0 0 12px;color:#7d513b;font-weight:900;text-decoration:none}
@media(max-width:820px){.groupbuy-status-v147{grid-template-columns:1fr;align-items:start}.groupbuy-status-v147>.groupbuy-status-actions-v163{width:100%;min-width:0;margin-top:8px}.group-hub-hero-v163{align-items:flex-start}.group-hub-grid-v163{grid-template-columns:1fr}}
@media(max-width:520px){.group-hub-hero-v163,.group-personal-cart-v163{display:grid;padding:21px}.group-hub-hero-v163>a,.group-personal-cart-v163>a{width:100%;text-align:center}.group-hub-card-v163>header{padding:18px 17px 13px}.group-hub-stats-v163{grid-template-columns:1fr;padding:0 17px 15px}.group-hub-card-v163>footer{grid-template-columns:1fr;padding:13px 17px 18px}.groupbuy-status-v147>.groupbuy-status-actions-v163 button{min-width:0;padding-inline:8px;font-size:12px}.group-cart-footer-v162{grid-template-columns:1fr 1fr;padding:10px;gap:8px}.group-cart-footer-v162 .v147-primary-btn{grid-column:1/-1}.group-cart-footer-v162 a,.group-cart-footer-v162 button{min-height:42px;padding-inline:10px;font-size:13px}}
