/* Scoped additions: existing catalogue, navigation and saved lists stay intact. */
body#hobiart-ui.v8-store .floating-badge{background:#e3e9d8!important;color:#304c37!important;border:1px solid #acbaa0!important;box-shadow:0 3px 12px #263c2412;backdrop-filter:blur(8px);font-weight:650;padding:7px 12px;max-width:calc(100% - 24px);white-space:normal;line-height:1.35}
body#hobiart-ui.v8-store .price-starting-inline{color:#515c53!important;font-size:12px;font-weight:500;line-height:1.5}
body#hobiart-ui.v8-store .price-row{flex-wrap:wrap;align-items:baseline;gap:4px 6px}
body#hobiart-ui.v8-store .drawer{width:min(520px,100vw)!important;max-width:100vw!important;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;min-width:0}
body#hobiart-ui.v8-store .drawer-header{flex:none;padding:20px;gap:12px}
body#hobiart-ui.v8-store .drawer-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px;overscroll-behavior:contain}
body#hobiart-ui.v8-store .drawer .summary{flex:none;max-height:52vh;max-height:52dvh;overflow-y:auto;padding:14px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid #cdc9bc;background:#ebe6dc!important;display:grid;gap:8px}
body#hobiart-ui.v8-store .drawer .summary .btn{min-height:40px;margin:0;padding:10px 14px}
body#hobiart-ui.v8-store .drawer .summary-row{gap:12px;margin:0;padding:0;min-width:0}
body#hobiart-ui.v8-store .drawer .summary-row strong{overflow-wrap:anywhere;text-align:right}
body#hobiart-ui.v8-store .cart-item{border:1px solid #d6d1c5!important;border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:0 4px 18px #24392d07!important;min-width:0}
body#hobiart-ui.v8-store .cart-item-top{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:start}
body#hobiart-ui.v8-store .cart-thumb{width:64px;height:64px;border-radius:12px;overflow:hidden;border:1px solid #ded8cb}
body#hobiart-ui.v8-store .cart-thumb img{width:100%;height:100%;object-fit:cover}
body#hobiart-ui.v8-store .cart-item h4{font-size:14px;line-height:1.45;overflow-wrap:anywhere;margin:0 0 4px;color:#253d30!important}
body#hobiart-ui.v8-store .cart-item .cart-sku{font-size:11px;line-height:1.5;color:#5b6459!important;margin:0 0 8px}
body#hobiart-ui.v8-store .cart-item .cart-unit-badge{display:inline-flex;max-width:100%;background:#e2e9d8!important;border:1px solid #bbc7af;border-radius:9px;color:#304b35!important;font-size:12px;font-weight:700;padding:6px 10px;line-height:1.4;overflow-wrap:anywhere;margin:0}
body#hobiart-ui.v8-store .cart-item-price{grid-column:2;justify-self:end;font-size:16px;line-height:1.3;font-weight:750;color:#315d49!important;max-width:100%;overflow-wrap:anywhere;margin:0}
body#hobiart-ui.v8-store .cart-tiers{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}
body#hobiart-ui.v8-store .cart-tier{display:flex;flex-direction:column;gap:3px;flex:1 0 74px;border:1px solid #d2cbbd;background:#eee8dc;border-radius:9px;padding:7px 8px;font-size:10px;color:#555e52;line-height:1.3;text-align:center}
body#hobiart-ui.v8-store .cart-tier strong{color:#3e503c;font-size:11px;font-weight:700;white-space:nowrap}
body#hobiart-ui.v8-store .cart-tier.is-current{background:#e3e9d8;border-color:#8fA180;box-shadow:inset 0 0 0 1px #8fa180}
body#hobiart-ui.v8-store .cart-item-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #dfd9cd}
body#hobiart-ui.v8-store .cart-item-actions .stepper{display:grid;grid-template-columns:36px minmax(58px,88px) 36px;max-width:100%;width:auto;min-width:0;gap:0;overflow:hidden}
body#hobiart-ui.v8-store .cart-item-actions .stepper button{width:36px;height:40px;min-width:0;padding:0;flex:none}
body#hobiart-ui.v8-store .cart-item-actions .qty-input{width:100%!important;min-width:0!important;max-width:100%;height:40px;padding:4px 2px!important;text-align:center;font-size:16px!important;appearance:textfield;-moz-appearance:textfield}
body#hobiart-ui.v8-store .qty-input::-webkit-inner-spin-button,body#hobiart-ui.v8-store .qty-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body#hobiart-ui.v8-store .cart-item-actions .text-link{font-size:11px;min-height:40px;padding:8px 0;color:#635f50!important}
body#hobiart-ui.v8-store #cartPricingStatus{font-size:11px;line-height:1.45;margin:0}
body#hobiart-ui.v8-store .complementary[hidden]{display:none!important}
body#hobiart-ui.v8-store .complementary{margin-top:20px;padding-top:16px;border-top:1px solid #ccc8bc;min-width:0}
body#hobiart-ui.v8-store .complementary-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
body#hobiart-ui.v8-store .complementary-heading span{font-size:9px;letter-spacing:1.5px;color:#656a5b;font-weight:600}
body#hobiart-ui.v8-store .complementary-heading h4{font-size:16px;color:#304c37!important;line-height:1.4;margin:4px 0 0}
body#hobiart-ui.v8-store .complementary-arrows{display:flex;gap:5px}
body#hobiart-ui.v8-store .complementary-arrows button{border:1px solid #bfc5b1;background:#e7e9dc;color:#3d543a;width:32px;height:32px;border-radius:50%;font-size:23px;cursor:pointer}
body#hobiart-ui.v8-store .complementary-track{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:1px 1px 10px;scrollbar-width:thin;overscroll-behavior-x:contain}
body#hobiart-ui.v8-store .complementary-card{flex:0 0 158px;min-width:0;scroll-snap-align:start;border:1px solid #d1cdbf;border-radius:13px;background:#f2ede2;padding:10px;display:flex;flex-direction:column;gap:7px}
body#hobiart-ui.v8-store .complementary-card img{width:100%;height:82px;object-fit:contain;background:#e9e4d8;border-radius:8px}
body#hobiart-ui.v8-store .complementary-card h5{font-size:12px;line-height:1.45;overflow-wrap:anywhere;color:#304334!important;margin:0;font-weight:650}
body#hobiart-ui.v8-store .complementary-card small{font-size:10px;color:#5a6555!important;font-weight:400}
body#hobiart-ui.v8-store .complementary-card>strong{font-size:14px;color:#315d49!important;margin-top:auto}
body#hobiart-ui.v8-store .complementary-card .btn{font-size:11px;padding:9px 6px;width:100%;min-height:38px;border-radius:8px}
body#hobiart-ui.v8-store .complementary-card .btn:disabled{opacity:.55;cursor:wait}
body#hobiart-ui.v8-store .complementary-note{font-size:10px;line-height:1.5;color:#606957!important;margin:7px 0 0}
body#hobiart-ui.v8-store #checkoutModalWrap{padding:16px}
body#hobiart-ui.v8-store #checkoutModalWrap>.modal{width:min(1100px,100%);height:88vh;height:88dvh;max-height:820px;display:flex;flex-direction:column;min-width:0;overflow:hidden}
body#hobiart-ui.v8-store #checkoutModalWrap .modal-header{flex:none;padding:18px 24px;gap:12px}
body#hobiart-ui.v8-store #checkoutBody{flex:1;min-height:0;overflow:auto;padding:18px;min-width:0}
body#hobiart-ui.v8-store #checkoutBody:has(.checkout-grid){overflow:hidden}
body#hobiart-ui.v8-store .checkout-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:18px;height:100%;min-height:0;align-items:stretch}
body#hobiart-ui.v8-store .checkout-grid>.form-card,body#hobiart-ui.v8-store .checkout-grid>.order-card{min-width:0;min-height:0;overflow-y:auto;padding:20px;overscroll-behavior:contain}
body#hobiart-ui.v8-store .checkout-grid .order-list{height:clamp(110px,24vh,230px);height:clamp(110px,24dvh,230px);max-height:230px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-right:6px;margin-bottom:14px;scrollbar-width:thin}
body#hobiart-ui.v8-store .order-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;min-width:0;align-items:start}
body#hobiart-ui.v8-store .order-item img{width:44px;height:44px;object-fit:cover;border-radius:9px}
body#hobiart-ui.v8-store .order-item strong{font-size:12px;line-height:1.4;color:#31523f!important;overflow-wrap:anywhere}
body#hobiart-ui.v8-store .order-item .helper{display:block;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
body#hobiart-ui.v8-store #checkoutPricingProblem{color:#825e23!important;padding:8px;background:#ebe1c9;border-radius:8px}
@media(max-width:760px){
 body#hobiart-ui.v8-store .drawer-header{padding:14px 16px}
 body#hobiart-ui.v8-store .drawer-body{padding:12px}
 body#hobiart-ui.v8-store .drawer .summary{padding:10px 14px max(10px,env(safe-area-inset-bottom));max-height:48vh;max-height:48dvh;gap:6px}
 body#hobiart-ui.v8-store .drawer .summary .btn{min-height:38px;padding:8px 12px;font-size:12px}
 body#hobiart-ui.v8-store .cart-item{padding:12px}
 body#hobiart-ui.v8-store .cart-item-top{grid-template-columns:52px minmax(0,1fr);gap:9px}
 body#hobiart-ui.v8-store .cart-thumb{width:52px;height:52px}
 body#hobiart-ui.v8-store .cart-tier{flex-basis:64px;padding:6px 4px}
 body#hobiart-ui.v8-store #checkoutModalWrap{padding:6px}
 body#hobiart-ui.v8-store #checkoutModalWrap>.modal{height:calc(100vh - 12px);height:calc(100dvh - 12px);max-height:none;width:100%;border-radius:16px}
 body#hobiart-ui.v8-store #checkoutModalWrap .modal-header{padding:14px;align-items:center}
 body#hobiart-ui.v8-store #checkoutBody,body#hobiart-ui.v8-store #checkoutBody:has(.checkout-grid){padding:10px;overflow-y:auto}
 body#hobiart-ui.v8-store .checkout-grid{height:auto;display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px}
 body#hobiart-ui.v8-store .checkout-grid>.form-card,body#hobiart-ui.v8-store .checkout-grid>.order-card{overflow:visible;padding:14px}
 body#hobiart-ui.v8-store .checkout-grid .order-list{height:210px;max-height:30vh;max-height:30dvh}
 body#hobiart-ui.v8-store .order-item{grid-template-columns:38px minmax(0,1fr);gap:8px}
 body#hobiart-ui.v8-store .order-item>strong{grid-column:2;text-align:right}
 body#hobiart-ui.v8-store .order-item img{width:38px;height:38px}
 body#hobiart-ui.v8-store .complementary-card{flex-basis:145px}
}
/* Retire conflicting !important rules from the earlier mobile skin, only here. */
body#hobiart-ui.v8-store .drawer{height:100vh!important;height:100dvh!important;padding:0!important;gap:0!important}
body#hobiart-ui.v8-store .drawer-body{display:block}
body#hobiart-ui.v8-store .cart-item{display:block}
body#hobiart-ui.v8-store .floating-badge{font-size:11px!important;padding:7px 11px!important}
body#hobiart-ui.v8-store .price-starting-inline{font-size:11px!important;max-width:none!important;font-weight:500!important}
body#hobiart-ui.v8-store .cart-item-actions .stepper{grid-template-columns:36px minmax(58px,88px) 36px!important;width:auto!important;height:40px!important}
body#hobiart-ui.v8-store .cart-item-actions .stepper button,body#hobiart-ui.v8-store .cart-item-actions .qty-input{height:40px!important}
body#hobiart-ui.v8-store #checkoutModalWrap{padding:16px!important;align-items:center!important}
body#hobiart-ui.v8-store #checkoutModalWrap>.modal{width:min(1100px,100%)!important;padding:0!important;max-height:820px!important;border-radius:22px!important}
@media(max-width:760px){
 body#hobiart-ui.v8-store .drawer{border-radius:20px 20px 0 0!important}
 body#hobiart-ui.v8-store .floating-badge{font-size:9px!important;padding:5px 7px!important}
 body#hobiart-ui.v8-store .price-starting-inline{font-size:10px!important}
 body#hobiart-ui.v8-store #checkoutModalWrap{padding:6px!important}
 body#hobiart-ui.v8-store #checkoutModalWrap>.modal{height:calc(100vh - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:16px!important}
}
@media(max-width:360px){body#hobiart-ui.v8-store .cart-tiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
