:root{--paper:#faf7f2;--ink:#292923;--muted:#77766e;--line:#e9e5dd;--primary:#a84a31;--primary-dark:#853922;--tint:#f4e7df;--green:#3e6955;--white:#fff;--radius:18px;font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
[hidden]{display:none!important}
.demo-admin-shortcut{margin-top:14px}.demo-reset-section{margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button{color:inherit}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c6876a;outline-offset:3px}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:11px;background:white;padding:12px 14px;font-size:16px;color:var(--ink)}textarea{min-height:90px;resize:vertical}label{display:block;font-size:13px;font-weight:600;line-height:1.6}label input,label textarea,label select{margin-top:7px}small{font-size:12px;color:var(--muted)}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.container{max-width:1220px;margin:0 auto;padding:0 34px}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:700;color:var(--primary)}.muted{color:var(--muted)}.primary,.secondary,.text-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0}.primary{padding:13px 22px;border-radius:11px;background:var(--primary);color:white;font-weight:600}.primary:hover{background:var(--primary-dark)}.secondary{padding:12px 18px;border:1px solid var(--line);border-radius:11px;background:white;font-weight:600}.text-button{padding:8px;background:transparent;color:var(--muted);font-size:13px}.icon-button{border-radius:50%;width:36px;height:36px;background:transparent}.icon-button:hover{background:var(--tint)}.full{width:100%}.pill{padding:4px 8px;border-radius:6px;font-size:10px;background:var(--tint);color:var(--primary);font-weight:600}.pill.green{background:#e8f1e9;color:var(--green)}.initial-loading{padding:100px 24px;text-align:center;color:var(--muted)}
.notice{padding:9px 20px;text-align:center;background:#f1e6d4;font-size:12px;color:#725939;line-height:1.6}.header{background:rgba(250,247,242,.97);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:22px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:40px;height:44px;border:1px solid var(--primary);border-radius:4px;display:flex;align-items:center;justify-content:center;color:var(--primary);font-family:serif;font-size:21px;font-weight:700;writing-mode:vertical-rl;letter-spacing:2px}.brand-name{font-size:19px;font-weight:700;letter-spacing:2px}.brand-subtitle{font-size:10px;letter-spacing:.16em;color:var(--muted);margin-top:4px}.header-actions{display:flex;align-items:center;gap:16px}.header-nav{font-size:13px;color:var(--muted);padding:10px 0}.bag-button{display:flex;align-items:center;gap:8px;font-size:13px;background:white;border:1px solid var(--line);border-radius:10px;padding:10px 14px}.badge-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;background:var(--primary);color:white;border-radius:50%;font-size:10px;padding:0 4px}
.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:35px;align-items:center;padding:40px 0 30px}.hero h1{font-size:42px;letter-spacing:-1.5px;line-height:1.35;margin:12px 0 15px;font-weight:650}.hero p{font-size:14px;line-height:1.95;color:var(--muted);max-width:580px}.hero-chips{display:flex;gap:16px;flex-wrap:wrap;margin-top:21px;font-size:12px;color:var(--green)}.hero-chips span{display:flex;align-items:center;gap:5px}.hero-chips .icon{width:14px;height:14px}.hero-visual{position:relative;height:235px;border-radius:22px;background:linear-gradient(125deg,#ede5d7,#e8dfcf);overflow:hidden;display:flex;align-items:center;justify-content:center;gap:13px;padding:22px}.hero-photo{width:43%;aspect-ratio:1;background:white;border:6px solid white;border-bottom-width:17px;box-shadow:0 12px 30px #58412b18;border-radius:5px;object-fit:contain;transform:rotate(-8deg)}.hero-photo:nth-child(2){transform:translateY(10px) rotate(9deg)}.hero-visual-label{position:absolute;bottom:16px;right:17px;font-size:10px;letter-spacing:.15em;color:#866e59}.hero-decor{position:absolute;top:11px;right:12px;font-size:50px;color:#fff8;line-height:1}.toolbar{position:sticky;top:0;z-index:10;background:var(--paper);padding:16px 0 18px;border-bottom:1px solid var(--line)}.toolbar-top{display:flex;gap:18px;align-items:center;justify-content:space-between}.category-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.category-tab{white-space:nowrap;display:flex;align-items:center;gap:6px;border:1px solid transparent;background:transparent;border-radius:9px;padding:11px 14px;font-size:13px;color:var(--muted)}.category-tab.active{background:var(--ink);color:white}.category-tab .category-count{font-size:10px;opacity:.6}.search-box{position:relative;min-width:260px;max-width:340px}.search-box .icon{position:absolute;left:13px;top:11px;color:var(--muted);width:18px;height:18px}.search-box input{padding:10px 35px 10px 40px;font-size:13px;background:white;border-color:var(--line)}.search-clear{position:absolute;right:3px;top:3px;width:32px;height:32px}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:25px 0 18px}.section-heading h2{font-size:19px;font-weight:600}.section-heading p{font-size:12px;color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card{border:1px solid var(--line);background:white;border-radius:14px;overflow:hidden;transition:transform .18s,box-shadow .18s}.product-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #3426190a}.product-photo-button{border:0;background:#fff;width:100%;padding:14px;position:relative;display:block}.product-photo{height:190px;width:100%;object-fit:contain}.product-photo-button .pill{position:absolute;left:12px;top:12px;z-index:1}.product-copy{padding:0 16px 15px}.product-brand{font-size:10px;color:var(--muted);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-title-button{display:block;border:0;background:transparent;padding:0;text-align:left;width:100%}.product-name{font-size:13px;font-weight:500;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:43px}.product-meta{font-size:10px;color:var(--muted);margin-top:7px;min-height:16px}.product-bottom{display:flex;justify-content:space-between;align-items:end;gap:8px;margin-top:10px}.price-label{font-size:10px;color:var(--muted);margin-bottom:3px}.price{font-size:24px;letter-spacing:-.7px;color:var(--primary);font-weight:650}.price-currency{font-size:13px;font-weight:500;margin-right:2px}.price-suffix{font-size:10px;font-weight:400;color:var(--muted);margin-left:4px;letter-spacing:0}.no-price{font-size:16px;color:var(--primary);font-weight:600}.add-button{width:32px;height:32px;border:1px solid #d8b5a5;border-radius:50%;color:var(--primary);background:#fcf5f0;display:flex;align-items:center;justify-content:center;flex-shrink:0}.add-button:hover{background:var(--tint)}.add-button .icon{width:17px;height:17px}.more-row{display:flex;justify-content:center;padding:30px 0}.empty-state{padding:70px 24px;text-align:center;line-height:1.8;color:var(--muted);border:1px dashed var(--line);border-radius:16px;background:#fffa}.empty-state .icon{width:36px;height:36px;margin:0 auto 14px}.empty-state h2{color:var(--ink);font-size:19px;margin-bottom:8px}.empty-state p{font-size:13px}.footer{margin-top:38px;border-top:1px solid var(--line);padding:25px 0 100px;color:var(--muted);font-size:11px;line-height:1.9}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}.mobile-nav{display:none}
.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f2ece2}.login-story{padding:60px 12% 50px;display:flex;flex-direction:column;justify-content:space-between;min-height:650px;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;border:1px solid #b49c7b40;width:470px;height:470px;border-radius:50%;right:-140px;bottom:-110px;pointer-events:none}.login-story h1{font-size:48px;line-height:1.4;letter-spacing:-1px;margin-top:65px;font-weight:600}.login-story p{font-size:14px;color:#807766;line-height:1.9;margin-top:20px;max-width:350px}.login-story-foot{font-size:11px;color:#8f8170;letter-spacing:.08em;margin-top:60px}.login-panel{background:var(--paper);display:flex;align-items:center;justify-content:center;padding:40px}.login-box{width:100%;max-width:370px}.login-icon{width:47px;height:47px;display:flex;align-items:center;justify-content:center;border:1px solid #decec1;color:var(--primary);border-radius:13px;margin-bottom:25px;background:#f9f0e9}.login-box h2{font-size:25px;margin-bottom:12px;font-weight:600}.login-description{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:30px}.login-form{display:grid;gap:19px}.login-form .primary{margin-top:3px;min-height:47px}.form-error{color:#b63e30;font-size:12px;line-height:1.6;min-height:0}.form-error:empty{display:none}.login-note{margin-top:20px;font-size:11px;color:var(--muted);line-height:1.8}.demo-login{margin-top:25px;background:#f0e9df;border:1px dashed #dbccbb;border-radius:10px;padding:13px;font-size:11px;line-height:1.9;color:#7a6957}.demo-login button{font-size:11px;color:var(--primary);border:0;background:transparent;padding:0;text-decoration:underline}.login-switch{margin-top:28px;text-align:center;font-size:11px;color:var(--muted)}
.modal-overlay{position:fixed;inset:0;background:#25221f75;z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(3px)}.modal{position:relative;background:var(--paper);width:100%;max-width:840px;max-height:92vh;overflow:auto;border-radius:22px;box-shadow:0 20px 80px #0002}.modal-close{position:absolute;right:14px;top:14px;z-index:3;background:#fffdf9;box-shadow:0 2px 8px #0001}.product-detail{display:grid;grid-template-columns:1fr 1.1fr}.detail-photo-area{background:white;padding:32px;display:flex;align-items:center;justify-content:center;min-height:440px}.detail-photo{max-height:390px;width:100%;object-fit:contain}.detail-copy{padding:36px 30px}.detail-copy h2{font-size:21px;line-height:1.65;margin:12px 0;white-space:pre-line}.detail-description{font-size:12px;line-height:1.9;color:var(--muted);white-space:pre-line;margin-top:12px}.option-label{font-size:12px;margin:25px 0 10px;font-weight:600}.quote-options{display:grid;gap:8px}.quote-option{text-align:left;padding:11px 13px;border:1px solid var(--line);background:white;border-radius:9px;font-size:12px;line-height:1.65;white-space:pre-line}.quote-option.selected{border-color:var(--primary);background:#fcf0e9;color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.detail-purchase{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:22px}.stepper{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:white;flex-shrink:0}.stepper button{width:33px;height:34px;border:0;background:white;display:flex;align-items:center;justify-content:center}.stepper button .icon{width:14px;height:14px}.stepper input{width:48px;min-width:0;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;text-align:center;font-size:13px;padding:5px;-moz-appearance:textfield}.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.detail-note{margin-top:13px;font-size:10px;color:var(--muted);line-height:1.8}.contact-modal{max-width:410px;padding:38px 30px;text-align:center}.contact-modal>.icon{width:34px;height:34px;color:var(--primary);margin:0 auto 18px}.contact-modal h2{font-size:23px}.contact-modal p{font-size:13px;color:var(--muted);line-height:1.8;margin:12px 0 22px}.contact-number{font-size:23px;letter-spacing:1px;font-weight:600;margin-bottom:20px}
.page-heading{display:flex;align-items:center;gap:14px;margin:31px 0 25px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px;color:var(--muted);margin-top:8px}.checkout-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:26px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:25px}.panel h2{font-size:17px;margin-bottom:20px}.cart-line{display:grid;grid-template-columns:78px 1fr auto;gap:16px;align-items:start;padding:20px 0;border-bottom:1px solid var(--line)}.cart-line:first-of-type{padding-top:0}.cart-line:last-of-type{border:0}.cart-photo{height:78px;width:78px;object-fit:contain;border-radius:8px;background:#faf8f4}.cart-name{font-size:13px;line-height:1.6;font-weight:500}.cart-option{font-size:11px;line-height:1.8;color:var(--muted);margin:6px 0 10px}.cart-amount{font-size:15px;color:var(--primary);font-weight:600;text-align:right}.cart-amount .icon-button{margin:9px 0 0 auto;display:flex;color:var(--muted);height:28px;width:28px}.cart-amount .icon{width:15px;height:15px}.checkout-form{display:grid;gap:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.summary{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.summary-line{display:flex;justify-content:space-between;gap:20px;font-size:12px;margin-bottom:12px;align-items:center}.summary-total{font-size:25px;color:var(--primary);font-weight:650}.checkout-explanation{font-size:11px;color:var(--muted);line-height:1.9;margin:13px 0}.receipt{max-width:650px;margin:50px auto;background:white;border:1px solid var(--line);border-radius:20px;padding:35px}.success-icon{width:60px;height:60px;border-radius:50%;background:#ebf2e9;color:var(--green);display:flex;align-items:center;justify-content:center;margin:0 auto 20px}.success-icon .icon{width:30px;height:30px}.receipt-head{text-align:center}.receipt-head h1{font-size:25px}.receipt-head p{font-size:12px;color:var(--muted);line-height:1.9;margin:12px 0}.receipt-id{display:inline-flex;font-size:12px;padding:8px 13px;border-radius:7px;background:var(--paper);margin:3px 0 22px}.receipt-items{border-top:1px solid var(--line);padding:18px 0}.receipt-item{display:flex;justify-content:space-between;gap:20px;font-size:12px;line-height:1.7;margin-bottom:12px}.receipt-item small{display:block;font-size:10px}.receipt-actions{display:flex;gap:12px;justify-content:center;margin-top:18px}
.admin-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0 22px}.admin-top h1{font-size:25px}.admin-tabs{display:flex;gap:8px}.admin-tabs button{font-size:13px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:white}.admin-tabs button.active{background:var(--ink);color:white;border-color:var(--ink)}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.stat{padding:19px 23px;background:white;border:1px solid var(--line);border-radius:13px}.stat-label{font-size:12px;color:var(--muted)}.stat-number{font-size:29px;font-weight:650;margin-top:7px}.order-card{background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;padding:22px}.order-card-header{display:flex;justify-content:space-between;gap:15px;align-items:center}.order-id{font-size:13px;font-weight:650}.order-date{font-size:11px;color:var(--muted);margin-top:6px}.order-customer{font-size:13px;line-height:1.8;margin:17px 0 12px}.order-customer small{font-size:11px;display:block}.order-lines{font-size:12px;line-height:1.8;background:var(--paper);padding:13px;border-radius:9px;margin:10px 0}.order-line{display:flex;justify-content:space-between;gap:16px;margin-bottom:8px}.order-line:last-child{margin-bottom:0}.order-line small{display:block;font-size:10px}.status-select{max-width:112px;font-size:12px;padding:8px}.admin-products{display:grid;gap:10px}.admin-product{display:flex;align-items:center;gap:15px;padding:13px 17px;border-radius:11px;background:white;border:1px solid var(--line)}.admin-product img{width:52px;height:52px;object-fit:contain}.admin-product-name{font-size:12px;line-height:1.6;flex:1}.admin-product-name small{font-size:10px;display:block}.admin-edit{max-width:550px;padding:30px}.admin-edit h2{font-size:21px;margin-bottom:23px}.admin-edit form{display:grid;gap:16px}.checkbox-label{display:flex;align-items:center;gap:8px}.checkbox-label input{width:16px;height:16px;margin:0}.access-panel{max-width:550px}.access-panel p{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:25px}.access-panel form{display:grid;gap:20px}#toast{position:fixed;z-index:100;left:50%;bottom:95px;transform:translateX(-50%) translateY(20px);background:#292923ed;color:white;padding:12px 18px;border-radius:11px;font-size:12px;max-width:85vw;text-align:center;opacity:0;transition:opacity .18s,transform .18s;pointer-events:none;line-height:1.6}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
@media(min-width:1450px){.login-story{padding-left:20%;padding-right:15%}}@media(max-width:960px){.container{padding:0 23px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hero h1{font-size:33px}.hero-visual{height:200px}.toolbar-top{display:block}.search-box{max-width:100%;margin-top:12px}.checkout-layout{grid-template-columns:1fr 1fr;gap:17px}.panel{padding:19px}.login-story{padding:45px 12%;min-height:600px}.login-story h1{font-size:36px}.login-panel{padding:32px}}
@media(max-width:640px){.container{padding:0 17px}.notice{font-size:10px;padding:7px 12px}.header-inner{min-height:69px;gap:10px}.brand{gap:9px}.brand-mark{width:30px;height:34px;font-size:16px}.brand-name{font-size:16px;letter-spacing:1.5px}.brand-subtitle{font-size:8px;margin-top:3px;letter-spacing:.1em}.header-actions{gap:8px}.header-nav{display:none}.header-actions .text-button{padding:5px;font-size:11px}.bag-button{border:0;background:transparent;padding:7px;gap:5px}.bag-button .bag-label{display:none}.badge-count{height:16px;min-width:16px;font-size:9px}.hero{grid-template-columns:1fr;gap:20px;padding:26px 0 10px}.hero h1{font-size:29px;letter-spacing:-.8px;margin:9px 0 10px}.hero p{font-size:12px;line-height:1.8;max-width:340px}.hero-chips{margin-top:14px;gap:12px;font-size:10px}.hero-visual{display:none}.eyebrow{font-size:9px;letter-spacing:.1em}.toolbar{padding:14px 0 12px;margin-top:7px}.toolbar-top{display:flex;flex-direction:column-reverse;align-items:stretch;gap:12px}.search-box{margin:0;min-width:0}.search-box input{font-size:13px;padding-top:11px;padding-bottom:11px}.category-tabs{margin-right:-17px;padding-right:17px;gap:4px}.category-tab{padding:9px 11px;font-size:11px;border-radius:8px}.category-tab .category-count{font-size:9px}.section-heading{padding:20px 0 13px}.section-heading h2{font-size:16px}.section-heading p{font-size:10px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{border-radius:12px}.product-photo-button{padding:12px 10px 8px}.product-photo{height:145px}.product-photo-button .pill{font-size:9px;left:8px;top:8px;padding:3px 6px}.product-copy{padding:3px 11px 12px}.product-brand{font-size:9px;margin-bottom:5px}.product-name{font-size:11px;line-height:1.65;min-height:37px}.product-meta{font-size:9px;margin-top:5px}.product-bottom{margin-top:9px}.price-label{font-size:9px}.price{font-size:21px}.price-currency{font-size:11px}.price-suffix{font-size:9px}.no-price{font-size:13px}.add-button{width:28px;height:28px}.add-button .icon{width:15px;height:15px}.footer{margin-top:20px;padding:22px 0 100px;font-size:10px}.footer-inner{display:block}.footer-inner>div+div{margin-top:10px}.mobile-nav{display:flex;position:fixed;z-index:20;left:0;bottom:0;right:0;justify-content:space-around;background:#fffefb;border-top:1px solid var(--line);padding:11px 10px calc(9px + env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:70px;font-size:9px;color:var(--muted);position:relative}.mobile-nav button.active{color:var(--primary)}.mobile-nav .icon{width:21px;height:21px}.mobile-nav .badge-count{position:absolute;left:calc(50% + 7px);top:-4px}.login-page{display:block;min-height:100dvh;background:var(--paper)}.login-story{min-height:0;padding:28px 25px 30px;background:#f2ece2}.login-story h1{font-size:27px;margin-top:29px;letter-spacing:-.5px}.login-story p{font-size:11px;margin-top:12px;max-width:300px}.login-story-foot{display:none}.login-story:after{width:220px;height:220px;right:-80px;bottom:-70px}.login-panel{padding:32px 25px 35px}.login-icon{display:none}.login-box h2{font-size:21px}.login-description{font-size:12px;margin-bottom:22px}.login-form{gap:16px}.demo-login{margin-top:20px;font-size:10px}.login-switch{margin-top:21px}.modal-overlay{padding:0;align-items:end}.modal{max-height:94dvh;border-radius:20px 20px 0 0}.product-detail{display:block}.detail-photo-area{min-height:0;padding:28px 35px 18px}.detail-photo{max-height:215px;width:100%}.detail-copy{padding:20px 21px 27px}.detail-copy h2{font-size:18px;margin-top:9px;line-height:1.6}.detail-description{font-size:11px;line-height:1.8}.option-label{margin-top:19px}.quote-options{gap:7px}.quote-option{padding:9px 12px;font-size:11px}.detail-purchase{position:sticky;bottom:0;padding-top:14px;margin-top:9px;background:var(--paper);gap:12px}.detail-purchase .primary{font-size:13px;padding:12px 16px;flex:1}.contact-modal{max-width:100%;padding:36px 25px}.page-heading{margin:23px 0 20px;gap:10px}.page-heading h1{font-size:22px}.page-heading p{font-size:11px}.checkout-layout{grid-template-columns:1fr;gap:16px}.panel{padding:20px 16px}.panel h2{font-size:15px;margin-bottom:20px}.cart-line{grid-template-columns:57px 1fr auto;gap:10px}.cart-photo{width:57px;height:67px}.cart-name{font-size:11px}.cart-option{font-size:10px}.cart-amount{font-size:12px}.cart-line .stepper input{width:38px}.cart-line .stepper button{width:27px;height:30px}.form-grid{gap:10px}.checkout-form{gap:15px}.receipt{margin:25px 0;padding:27px 19px}.receipt-head h1{font-size:22px}.receipt-item{font-size:11px}.receipt-actions{gap:8px}.receipt-actions button{font-size:12px;padding:12px}.admin-top{display:block;margin-top:25px}.admin-top h1{font-size:22px;margin-bottom:17px}.admin-tabs{gap:7px}.admin-tabs button{font-size:12px;flex:1;padding:10px}.admin-stats{gap:8px;margin-top:17px}.stat{padding:14px 12px}.stat-label{font-size:10px}.stat-number{font-size:23px}.order-card{padding:17px}.order-id{font-size:11px}.order-date{font-size:9px}.order-customer{font-size:12px}.order-lines{font-size:10px;padding:11px}.order-line small{font-size:9px}.status-select{max-width:95px;font-size:11px}.admin-product{gap:9px;padding:12px}.admin-product img{width:40px;height:45px}.admin-product-name{font-size:11px}.admin-product .secondary{padding:8px 11px;font-size:11px}.admin-edit{padding:30px 21px}.admin-edit h2{font-size:19px}.more-row{padding:24px 0}.more-row button{font-size:12px}.empty-state{padding:50px 20px}.empty-state h2{font-size:17px}.empty-state p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.brand-mark{writing-mode:horizontal-tb;letter-spacing:0;line-height:1.08;font-size:18px;text-align:center}
@media(max-width:640px){.brand-mark{font-size:13px}.hero h1{font-size:clamp(24px,7vw,29px)}.hero h1 br{display:none}.hero{padding-top:20px}}

/* Customer quotation sheet: compact rows, editable quantities and fixed totals. */
.catalogue-sheet{--sheet-line:#dce5df;--sheet-green:#247348;--sheet-soft:#f0f7f2;padding-bottom:75px}
.sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:27px 0 19px}
.sheet-heading .eyebrow{color:var(--sheet-green);font-size:10px;letter-spacing:.1em}
.sheet-heading h1{font-size:27px;letter-spacing:.04em;margin:8px 0}
.sheet-heading p{color:var(--muted);font-size:12px;line-height:1.8}
.sheet-version{display:flex;align-items:center;gap:7px;color:var(--sheet-green);font-size:12px}
.sheet-version .icon{width:16px;height:16px}
.catalogue-sheet .toolbar{background:var(--paper);padding:12px 0 17px;position:static;border:0}
.catalogue-sheet .category-tab{border:1px solid var(--line);background:white;border-radius:5px;padding:9px 12px}
.catalogue-sheet .category-tab.active{background:var(--sheet-green);border-color:var(--sheet-green);color:white}
.sheet-workbook{border:1px solid var(--sheet-line);border-radius:8px;background:white;overflow:hidden;box-shadow:0 5px 20px #294f3510}
.sheet-caption{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;border-bottom:1px solid var(--sheet-line);background:#f9fbf9}
.sheet-caption h2{font-size:15px;font-weight:650;color:var(--sheet-green)}
.sheet-caption>span{color:var(--muted);font-size:11px}
.sheet-instructions{display:flex;gap:12px;justify-content:space-between;padding:12px 18px;font-size:11px;line-height:1.6;color:var(--muted);border-bottom:1px solid var(--sheet-line)}
.sheet-instructions strong{color:var(--sheet-green);font-weight:600;margin-right:10px}
.sheet-scroll-hint,.sheet-mobile-instructions{display:none}
.sheet-scroll{max-width:100%;max-height:65vh;overflow:auto;overscroll-behavior-x:contain;scrollbar-color:#b7cabd #f2f6f3;scrollbar-width:thin;position:relative}
.quote-table{border-collapse:separate;border-spacing:0;width:100%;min-width:912px;table-layout:fixed;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
.sheet-col-number{width:42px}.sheet-col-product{width:270px}.sheet-col-price{width:108px}.sheet-col-quantity{width:112px}.sheet-col-subtotal{width:122px}.sheet-col-case-size{width:92px}.sheet-col-notes{width:auto}
.quote-table th,.quote-table td{border-right:1px solid var(--sheet-line);border-bottom:1px solid var(--sheet-line);padding:11px 13px;vertical-align:middle;background:white}
.quote-table th:last-child,.quote-table td:last-child{border-right:0}
.quote-table .sheet-number{padding:0 4px;text-align:center;font-size:10px;font-weight:400;color:#7c8b80;background:#f4f7f4;position:sticky;left:0;z-index:2}
.quote-table .sheet-product-cell{position:sticky;left:42px;z-index:2}
.quote-table thead th{position:sticky;z-index:4;text-align:center;font-weight:600;white-space:normal}
.quote-table thead .sheet-number,.quote-table thead .sheet-product-cell{z-index:6}
.quote-table .sheet-letters th{top:0;background:#eaf0eb;font-size:10px;font-weight:400;color:#687b6d;padding:4px;height:25px}
.quote-table .sheet-labels th{top:25px;background:#f5f8f5;height:41px;padding:9px 6px;font-size:11px;color:#405c49}
.quote-table .sheet-editable-heading{background:#dceee0!important;color:var(--sheet-green)!important}
.sheet-product-button{padding:0;border:0;background:transparent;display:flex;gap:11px;align-items:center;text-align:left;width:100%;min-height:50px}
.sheet-photo{width:56px;height:56px;object-fit:contain;flex-shrink:0;background:white;border:1px solid #edf0ed;border-radius:3px}
.sheet-no-photo{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:10px}
.sheet-product-text{display:block;min-width:0}
.sheet-product-text strong{display:block;font-size:12px;font-weight:550;line-height:1.55;overflow-wrap:anywhere}
.sheet-variant{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.sheet-unit-price,.sheet-subtotal{text-align:right;white-space:nowrap}
.sheet-unit-price{font-weight:600;color:#315740}
.sheet-price-unit{display:block;font-size:9px;font-weight:400;color:var(--muted);line-height:1.5;margin-top:3px}
.sheet-subtotal{color:var(--muted)}
.sheet-pending{font-size:11px;font-weight:400;color:#8b7150}
.quote-table .sheet-quantity-cell{background:#f3faf4;padding:8px 13px}
.sheet-quantity{height:37px;width:100%;min-width:0;border:1px solid #c8dccd;border-radius:3px;text-align:center;background:white;font-size:16px;padding:5px 2px;color:#205b39;appearance:textfield;-moz-appearance:textfield}
.sheet-quantity::-webkit-outer-spin-button,.sheet-quantity::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.sheet-quantity:focus{outline:2px solid var(--sheet-green);outline-offset:-1px;background:#fafffa;border-color:var(--sheet-green)}
.sheet-quantity::placeholder{color:#a8b9ad;font-size:13px}
.sheet-quantity[aria-invalid=true]{border-color:#b33b28;background:#fff0eb;color:#9c3525}
.sheet-notes{color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.sheet-notes span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:3px;font-size:10px}
.quote-table .sheet-alternate td{background:#fbfcfb}
.quote-table .sheet-alternate .sheet-quantity-cell{background:#f0f7f1}
.quote-table .is-selected td{background:#eef7ef}
.quote-table .is-selected .sheet-number{color:#247348;background:#dfefe2;font-weight:600}
.quote-table .is-selected .sheet-quantity-cell{background:#dff0e3}
.quote-table .is-selected .sheet-subtotal{color:#247348;font-weight:600}
.sheet-workbook .more-row{padding:16px 0;font-size:11px}
.sheet-workbook .more-row .secondary{padding:9px 14px;font-size:11px;border-radius:5px}
.sheet-workbook-foot{display:flex;justify-content:space-between;gap:12px;padding:11px 18px;background:#f0f5f1;border-top:1px solid var(--sheet-line);font-size:10px;color:#647768}
.sheet-orderbar{position:fixed;z-index:18;bottom:0;left:0;right:0;border-top:1px solid #d3e1d5;background:#fffffff5;box-shadow:0 -6px 25px #1b362008;padding:13px 0;backdrop-filter:blur(10px)}
.sheet-orderbar-inner{display:flex;align-items:center;gap:28px}
.sheet-selection-count{font-size:13px;flex:1;line-height:1.6;color:#344a3a}
.sheet-selection-count strong{font-weight:650;color:#247348}
.sheet-selection-count>span{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.sheet-selection-total{text-align:right;line-height:1.5}
.sheet-selection-total>span{display:block;color:var(--muted);font-size:10px}
.sheet-selection-total>strong{font-size:23px;font-weight:650;color:#247348;font-variant-numeric:tabular-nums}
.sheet-checkout{background:#247348;font-size:13px;border-radius:6px;padding:12px 21px}
.sheet-checkout:hover{background:#195a36}
@media(max-width:960px){.sheet-scroll-hint{display:inline}.sheet-instructions{flex-wrap:wrap;gap:5px}.sheet-col-product{width:245px}.quote-table{min-width:882px}}
@media(max-width:640px){
  .catalogue-sheet{padding:0 12px 80px}.sheet-heading{display:none}.sheet-heading h1{font-size:22px;margin:5px 0}.sheet-heading p{font-size:11px}.sheet-version{display:none}
  .catalogue-sheet .toolbar{padding:10px 0 12px;margin:0}.catalogue-sheet .toolbar-top{gap:10px}.catalogue-sheet .category-tabs{margin-right:-12px;padding-right:12px}.catalogue-sheet .category-tab{padding:7px 10px;font-size:10px}
  .sheet-caption{padding:11px 10px;gap:8px}.sheet-caption h2{font-size:12px;white-space:nowrap}.sheet-caption>span{font-size:9px}
  .sheet-instructions{padding:8px 10px;font-size:9px}.sheet-instructions strong{margin-right:5px}.sheet-scroll-hint{display:inline;color:#4e7559}
  .sheet-scroll{max-height:calc(100dvh - 225px);min-height:190px}.quote-table{min-width:749px;font-size:11px}
  .sheet-col-number{width:27px}.sheet-col-product{width:158px}.sheet-col-price{width:75px}.sheet-col-quantity{width:89px}.sheet-col-subtotal{width:106px}.sheet-col-case-size{width:84px}
  .quote-table .sheet-product-cell{left:27px}.quote-table th,.quote-table td{padding:9px 6px}.quote-table .sheet-number{font-size:8px;padding:0 2px}
  .quote-table .sheet-letters th{font-size:9px;height:23px}.quote-table .sheet-labels th{top:23px;padding:8px 3px;font-size:9px;height:35px}
  .sheet-product-button{gap:6px;min-height:54px;align-items:center}.sheet-photo{width:56px;height:56px}.sheet-product-text strong{font-size:10px;line-height:1.5}.sheet-variant{font-size:9px;line-height:1.5;margin-top:4px}
  .quote-table .sheet-quantity-cell{padding:8px 9px}.sheet-quantity{height:34px;font-size:16px}.sheet-unit-price{font-size:11px;padding-right:7px!important}.sheet-pending{font-size:10px}.sheet-notes{font-size:9px}
  .sheet-workbook-foot{padding:9px 10px;font-size:9px}.sheet-workbook .more-row{padding:12px 0}
  .sheet-orderbar{bottom:calc(64px + env(safe-area-inset-bottom));padding:10px 0}.sheet-orderbar-inner{padding:0 13px;gap:11px}.sheet-selection-count{font-size:11px;white-space:nowrap}.sheet-selection-count>span{font-size:8px;margin-top:2px}.sheet-selection-total>span{font-size:8px}.sheet-selection-total>strong{font-size:18px;white-space:nowrap}
  .sheet-checkout{font-size:11px;gap:3px;padding:11px 10px;white-space:nowrap}.sheet-checkout .icon{width:15px;height:15px}
}
@media(max-width:360px){.sheet-col-number{width:23px}.quote-table .sheet-product-cell{left:23px}.sheet-col-product{width:135px}.sheet-col-price{width:68px}.sheet-col-quantity{width:68px}.sheet-photo{width:56px;height:56px}.sheet-orderbar-inner{gap:7px}.sheet-selection-count{font-size:10px}.sheet-selection-total>strong{font-size:16px}.sheet-checkout{padding:10px 7px;font-size:10px}}
.sheet-quantity-unit{display:block;margin-top:4px;text-align:center;font-size:10px;line-height:1.4;color:#356b45;white-space:normal}
.purchase-lines{margin:0 0 22px}
.purchase-item{display:grid;grid-template-columns:88px minmax(0,1fr) auto;column-gap:18px;padding:20px 0;border-bottom:1px solid var(--line);break-inside:avoid;page-break-inside:avoid;text-align:left}
.purchase-photo-wrap{grid-row:1 / 3;width:88px;height:88px;border:1px solid #e8ebe6;border-radius:6px;background:white;display:flex;align-items:center;justify-content:center;overflow:hidden}
.purchase-photo{width:100%;height:100%;object-fit:contain}
.purchase-photo-placeholder{font-size:11px;color:var(--muted)}
.purchase-item-info{position:relative;min-width:0}
.purchase-item-info h3{font-size:14px;font-weight:600;line-height:1.7;margin:0 0 5px;overflow-wrap:anywhere}
.purchase-item-info p{font-size:12px;color:#5b655c;line-height:1.7;margin:0;overflow-wrap:anywhere}
.purchase-item-info small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.purchase-line-number{display:none}
.purchase-item-quantity{text-align:right;min-width:65px;align-self:start}
.purchase-item-quantity strong{font-size:20px;line-height:1.5;color:#205b39;white-space:nowrap;font-variant-numeric:tabular-nums}
.purchase-item-quantity>span{display:block;font-size:12px;color:#526854;line-height:1.6}
.purchase-item-prices{grid-column:2 / 4;display:flex;justify-content:space-between;gap:12px;margin-top:9px;font-size:11px;color:var(--muted);line-height:1.7;flex-wrap:wrap}
.purchase-item-prices b{color:#39463c;font-weight:500;margin-left:7px;white-space:nowrap}
.purchase-document-page{padding-top:30px;padding-bottom:55px}
.purchase-document{max-width:960px;margin:auto;background:white;border:1px solid var(--line);border-radius:12px;padding:38px 44px;box-shadow:0 8px 30px #1b362007}
.purchase-document-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:2px solid #2d6c45;padding-bottom:24px;margin-bottom:23px}
.purchase-document-heading h1{font-size:30px;margin:8px 0 12px}
.purchase-document-id{font-size:13px;font-weight:600;margin:0 0 6px;overflow-wrap:anywhere}
.purchase-document-date{font-size:11px;color:var(--muted);margin:0}
.purchase-document-heading .pill{margin-top:9px;white-space:nowrap}
.purchase-party{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:0 0 26px;background:#f8faf7;padding:20px;border-radius:7px}
.purchase-party div{display:flex;gap:13px;min-width:0;font-size:12px;line-height:1.8}
.purchase-party dt{color:var(--muted);flex-shrink:0;min-width:68px}
.purchase-party dd{margin:0;overflow-wrap:anywhere}
.purchase-address{grid-column:1 / -1}
.purchase-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0 10px;border-bottom:1px solid var(--line)}
.purchase-section-title h2{font-size:15px;margin:0}
.purchase-section-title>span{font-size:11px;color:var(--muted)}
.purchase-document-notes{border:1px solid var(--line);padding:15px;border-radius:7px;font-size:12px;line-height:1.8;margin:20px 0;overflow-wrap:anywhere;break-inside:avoid}
.purchase-document-notes p{white-space:pre-wrap;margin:6px 0 0;color:#59645b}
.purchase-document-total{display:flex;align-items:center;justify-content:flex-end;gap:26px;margin-top:25px}
.purchase-document-total span{font-size:13px}
.purchase-document-total strong{font-size:30px;color:var(--primary);font-variant-numeric:tabular-nums}
.purchase-document-policy,.purchase-pending{font-size:11px;line-height:1.9;color:var(--muted);margin:17px 0 0}
.purchase-document-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:26px;padding-top:23px}
.purchase-document-actions button{font-size:12px}
.purchase-share-hint{font-size:10px;color:var(--muted);line-height:1.8;margin:13px 0 0}
.receipt-extra-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.receipt-extra-actions button{font-size:11px}
.illustrated-receipt-actions{flex-wrap:wrap}
.purchase-message{max-width:680px;margin:35px auto;padding:28px;background:white;border:1px solid var(--line);border-radius:9px}
.purchase-message h1{font-size:22px}.purchase-message p{font-size:13px;line-height:1.9;color:var(--muted)}
.purchase-manual-link{width:100%;min-height:180px;font-size:12px}
.addition-mode-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px max(16px,calc((100vw - 1100px)/2));background:#edf6ee;border-bottom:1px solid #d4e5d7;font-size:11px;color:#285c37;line-height:1.7}
.addition-mode-notice>div{display:flex;flex-shrink:0}.addition-mode-notice button{font-size:10px;color:#285c37;padding:4px 7px}
.addition-page{padding-top:25px;padding-bottom:95px}.addition-page>.panel{max-width:850px;margin:auto}.addition-page h1{font-size:25px;margin:8px 0}
.addition-item{display:grid;grid-template-columns:88px minmax(0,1fr) 110px;gap:18px;align-items:start;padding:22px 0;border-bottom:1px solid var(--line)}
.addition-item-info h3{font-size:14px;line-height:1.7;margin:0 0 5px;overflow-wrap:anywhere}.addition-item-info p,.addition-item-info small{font-size:11px;line-height:1.8;color:var(--muted);margin:3px 0;overflow-wrap:anywhere}.addition-item-info .addition-change-note{color:#a25327}
.addition-quantity-label{text-align:center;font-size:11px;color:#285c37;line-height:1.8}.addition-quantity-label input{width:100%;text-align:center;border:1px solid #b8d4bf;margin:5px 0;font-size:18px;background:#f6fcf7}.addition-quantity-label>span{display:block}
.addition-quantity[aria-invalid=true]{border-color:#b33b28;background:#fff0eb}
.addition-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.addition-selection{margin-top:18px;font-size:12px;line-height:1.9;color:#315a3c}
.addition-linked-note{background:#edf6ee;border:1px solid #d5e5d8;border-radius:6px;padding:12px 14px;font-size:12px;line-height:1.9;color:#2d603c;overflow-wrap:anywhere}
@media(max-width:640px){
 .addition-mode-notice{font-size:9px;padding:8px 12px;gap:7px;flex-wrap:wrap}.addition-item{grid-template-columns:58px minmax(0,1fr) 68px;gap:10px}.addition-item .purchase-photo-wrap{width:58px;height:64px}.addition-item-info h3{font-size:12px}.addition-item-info p,.addition-item-info small{font-size:9px}.addition-quantity-label{font-size:9px}.addition-actions .primary,.addition-actions .secondary{width:100%}.addition-page{padding:20px 12px 90px}.addition-page>.panel{padding:18px}.addition-linked-note{font-size:10px}
 .purchase-document-page{padding:15px 12px 30px}.purchase-document{padding:23px 18px;border-radius:9px}.purchase-document-heading{gap:10px;padding-bottom:19px}.purchase-document-heading h1{font-size:24px}.purchase-document-heading .eyebrow{font-size:9px}.purchase-document-id{font-size:11px}.purchase-document-date{font-size:10px}.purchase-document-heading .pill{font-size:9px;padding:5px 8px}
 .purchase-party{grid-template-columns:1fr;padding:14px;gap:10px}.purchase-party div{font-size:11px;gap:9px}.purchase-party dt{min-width:62px}.purchase-section-title h2{font-size:13px}.purchase-section-title>span{font-size:9px}
 .purchase-item{grid-template-columns:64px minmax(0,1fr) auto;gap:0 11px;padding:18px 0}.purchase-photo-wrap{width:64px;height:72px}.purchase-item-info h3{font-size:12px}.purchase-item-info p{font-size:10px}.purchase-item-info small{font-size:9px}.purchase-item-quantity{min-width:44px}.purchase-item-quantity strong{font-size:18px}.purchase-item-quantity>span{font-size:10px}.purchase-item-prices{grid-column:1 / -1;font-size:10px;margin-top:12px;gap:6px}
 .purchase-document-total{gap:17px}.purchase-document-total strong{font-size:25px}.purchase-document-total span{font-size:11px}.purchase-document-policy{font-size:10px}.purchase-document-actions .primary{width:100%}.purchase-document-actions .secondary{flex:1}.illustrated-receipt-actions .primary{width:100%}.illustrated-receipt-actions .secondary{flex:1}.receipt .purchase-item{column-gap:10px}
}
@media print{
 @page{size:A4;margin:14mm}
 body{background:white!important;color:#222!important;padding:0!important;font-size:11px}
 .header,.mobile-nav,.footer,.notice,#toast,#modal-root,.purchase-document-actions,.purchase-share-hint,.addition-mode-notice{display:none!important}
 .purchase-document-page{max-width:none;width:100%;margin:0;padding:0!important}
 .purchase-document{max-width:none;border:0;border-radius:0;box-shadow:none;padding:0!important}
 .purchase-document-heading{padding-bottom:16px;margin-bottom:16px}.purchase-document-heading h1{font-size:24px}.purchase-party{padding:10px 0;background:white}
 .purchase-item{grid-template-columns:65px minmax(0,1fr) auto;padding:12px 0}.purchase-photo-wrap{width:65px;height:65px}.purchase-item-info h3{font-size:12px}.purchase-item-info p{font-size:10px}.purchase-item-info small{font-size:9px}.purchase-item-quantity strong{font-size:17px}.purchase-item-prices{margin-top:4px;font-size:10px}.purchase-document-total,.purchase-document-notes,.purchase-document-policy{break-inside:avoid;page-break-inside:avoid}
}
.purchase-next-step{padding:15px;background:#eef5ef;border:1px solid #d5e5d8;border-radius:9px;text-align:left;font-size:12px;line-height:1.8;margin:18px 0}
.purchase-next-step p{margin:5px 0 0;color:#5b6a5d}
.receipt .purchase-next-step strong{display:block;text-align:center;font-size:18px;line-height:1.6;color:#1e6342}
.purchase-search{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:18px 0}
.purchase-search input{flex:1;min-width:180px}
.purchase-search select{max-width:170px;font-size:12px}
.purchase-card-actions,.purchase-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.purchase-card-actions .secondary{font-size:11px;padding:9px 12px;text-decoration:none;text-align:center}
.purchase-pagination{justify-content:center;font-size:12px;margin:24px 0}
.order-card p{font-size:12px;line-height:1.8;margin:14px 0}
.order-card .status-select{max-width:125px}
.detail-photo-area{flex-direction:column;gap:12px}
.photo-gallery{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.gallery-photo{width:54px;height:54px;padding:4px;background:white;border:1px solid #ddd;border-radius:7px;cursor:pointer}
.gallery-photo.selected{border:2px solid #247348}
.gallery-photo img{width:100%;height:100%;object-fit:contain}
@media(max-width:640px){.mobile-nav button{min-width:50px}.sheet-quantity-unit{font-size:9px}.purchase-search input{min-width:150px}.purchase-search select{max-width:100%;width:100%}.purchase-pagination{font-size:10px;gap:7px}.purchase-next-step{font-size:11px}.receipt-item>span{white-space:nowrap;margin-left:10px}.purchase-card-actions .secondary{flex:1}}

/* Keep mobile controls readable and avoid iPhone zoom while entering quantities. */
.mobile-category-label{display:none}
#catalogue-status{font-size:13px;color:var(--muted);text-align:center;line-height:1.8}
#catalogue-status:not(:empty){padding:10px}
.missing-photo{display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-size:11px;background:#f6f8f5}
.cart-quantity[aria-invalid=true]{background:#fff0eb;color:#9c3525;outline:2px solid #b33b28}
.purchase-document-actions .secondary,.illustrated-receipt-actions .secondary{white-space:nowrap;flex:none}
.sheet-selection-count{min-width:0;white-space:normal}
.cart-summary-count{font-size:12px}
.checkout-change-notice{padding:12px 14px;margin:0 0 16px;background:#fff5e8;border:1px solid #edd4b3;border-radius:9px;color:#8a5325;font-size:13px;line-height:1.8}
.detail-code{font-size:12px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.cart-option{overflow-wrap:anywhere}
.order-card{overflow-wrap:anywhere}.order-card-header{flex-wrap:wrap}.order-line>div{min-width:0;flex:1}.order-line>span{flex-shrink:0}
.purchase-document-total strong{color:var(--primary)}
@media(max-width:640px){
 .catalogue-sheet .category-tabs{display:none}
 .catalogue-sheet .toolbar{position:sticky;top:0;z-index:12;margin:0;background:var(--paper)}
 .sheet-scroll{max-height:none;min-height:0}
 .mobile-category-label{display:flex;align-items:center;gap:12px;font-size:13px;white-space:nowrap}
 .mobile-category-label select{margin:0;flex:1;min-width:0;font-size:16px;padding:10px 12px;min-height:44px}
 .search-box input,.stepper input,.status-select,.purchase-search select,.purchase-manual-link{font-size:16px}
 .search-box input{min-height:44px}
 .sheet-product-text strong{font-size:13px}.sheet-variant{font-size:11px}
 .sheet-photo{width:56px;height:56px}.sheet-unit-price{font-size:13px}
 .sheet-price-unit,.sheet-quantity-unit{font-size:11px}.sheet-quantity{min-height:44px}
 .sheet-caption h2{font-size:14px;min-width:0;white-space:normal;overflow-wrap:anywhere}.sheet-instructions{font-size:11px}
 .sheet-desktop-instructions,.sheet-scroll-hint{display:none}.sheet-mobile-instructions{display:block}
 .sheet-caption>span{font-size:11px;white-space:normal;text-align:right}
 .sheet-orderbar-inner{gap:8px}.sheet-selection-count{font-size:12px;line-height:1.6;white-space:normal}
 .sheet-selection-count>span{font-size:10px}.sheet-selection-total>span{font-size:10px}
 .sheet-checkout{min-height:44px;font-size:12px}
 .mobile-nav button{min-height:44px;font-size:11px}.mobile-nav{padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}
 .header-actions .text-button,.icon-button{min-height:40px;min-width:40px}
 .stepper button{min-width:40px;min-height:44px}.cart-line .stepper button{width:40px;height:44px}.stepper input,.cart-line .stepper input{width:48px;font-size:16px}
 .cart-name{font-size:13px}.cart-option,.checkout-explanation,.page-heading p{font-size:12px}
 .cart-line{grid-template-columns:48px minmax(0,1fr);gap:8px}.cart-photo{width:48px;height:64px}
 .cart-amount{grid-column:2;display:flex;align-items:center;justify-content:space-between;text-align:left}.cart-amount .icon-button{margin:0}
 .cart-line .stepper{grid-column:1 / -1}.cart-name{overflow-wrap:anywhere}
 .form-grid{grid-template-columns:1fr}.summary-line{font-size:13px}.summary-line>span{min-width:0;overflow-wrap:anywhere}
 .purchase-document-actions,.illustrated-receipt-actions{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
 .purchase-document-actions .primary,.illustrated-receipt-actions .primary{grid-column:1 / -1}
 .purchase-document-actions button,.illustrated-receipt-actions button{font-size:12px;padding:12px 8px;min-height:44px}
 .purchase-document-actions .secondary,.illustrated-receipt-actions .secondary{min-width:0;white-space:normal}
 .purchase-item-info h3,.addition-item-info h3{font-size:13px}.purchase-item-info p,.purchase-item-info small,.addition-item-info p,.addition-item-info small{font-size:11px}
 .purchase-item-quantity{min-width:40px}.purchase-item-quantity strong{font-size:17px}
 .purchase-party div,.purchase-document-policy,.purchase-share-hint{font-size:12px}
 .addition-quantity-label{font-size:11px}.addition-mode-notice{font-size:11px}
 .addition-mode-notice button{min-height:40px;font-size:12px}
 .login-description{font-size:14px}.login-note{font-size:12px}.form-error{font-size:13px}
 .detail-note,.detail-description{font-size:12px}.quote-option{font-size:13px;min-height:44px}
}

/* Product maintenance keeps issue filters and corrections usable on phones. */
.product-review-panel{margin:24px 0 18px}
.product-review-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,310px);gap:16px;align-items:end;margin:18px 0}
.product-review-tools .search-box{margin:0}
.product-review-select{display:flex;flex-direction:column;gap:7px;font-size:14px}
.product-review-select select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:10px;background:white;color:inherit;font:inherit;font-size:16px}
.review-download{display:inline-flex;min-height:44px;align-items:center;margin-bottom:12px}
.product-issue-labels{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.product-issue{background:#fff3df;color:#745121;border-radius:6px;padding:3px 7px;font-size:12px;line-height:1.5}
.admin-product-placeholder{width:60px;min-width:60px;height:60px;display:grid;place-items:center;background:#f3efe9;border-radius:8px;font-size:12px;color:var(--muted)}
@media(max-width:600px){.product-review-tools{grid-template-columns:minmax(0,1fr)}.product-review-tools input{font-size:16px}.product-review-panel .section-heading{align-items:flex-start;gap:10px}.product-review-panel .section-heading p{white-space:normal}.product-review-select{font-size:14px}.product-issue{font-size:12px}}
.sheet-related-trigger{display:flex;align-items:center;gap:5px;min-height:38px;padding:5px 0;color:var(--primary);font-size:12px;text-align:left}.sheet-related-trigger .icon{width:14px;height:14px}.sheet-related-trigger[hidden]{display:none}.admin-product-actions{display:flex;flex-direction:column;gap:6px;align-items:stretch}.admin-product-actions .secondary{padding:9px 12px;min-height:42px;white-space:nowrap}.admin-product-actions small{font-size:11px;color:var(--muted);text-align:center}.related-modal{max-width:1050px;padding:32px}.related-modal h2{padding-right:40px}.related-editor{max-width:780px;padding:32px}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.related-card{min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--paper,#fff);padding:16px;display:flex;flex-direction:column;gap:10px}.related-card-top{display:flex;gap:12px;align-items:flex-start}.related-photo-button{flex:0 0 70px;width:70px;padding:0;border:0;background:none}.related-photo{width:70px;height:70px;object-fit:contain;border-radius:8px;background:#fff}.related-copy{min-width:0}.related-copy h3{font-size:15px;margin:0 0 5px;overflow-wrap:anywhere}.related-copy p,.related-source{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}.related-price{font-size:17px;display:block;margin-top:7px}.related-reason{font-size:13px;color:var(--primary);margin:0;padding:9px 10px;background:#f9eee6;border-radius:8px;overflow-wrap:anywhere}.related-option-label{margin-top:auto}.related-option-label,.related-add-row label{font-size:12px;margin-bottom:0;min-width:0}.related-card select,.related-card input{width:100%;min-width:0;min-height:44px;font-size:14px;padding:10px;margin-top:6px}.related-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.related-add-row .primary{min-height:44px;font-size:13px;white-space:nowrap;padding:11px 13px}.related-error:empty{display:none}.related-error{margin:0}.related-policy{font-size:12px;color:var(--muted);margin-top:16px;line-height:1.8}.related-added{line-height:1.8;font-size:14px;color:#38674e}.related-heading{margin-bottom:16px}.related-heading h2{font-size:19px;margin-bottom:6px}.related-heading p{font-size:12px;color:var(--muted)}#cart-related{border-top:1px solid var(--line);margin-top:25px;padding-top:24px}#cart-related .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-editor-row{border:1px solid var(--line);border-radius:12px;padding:15px;margin-bottom:13px}.related-editor-row small{display:block;font-size:12px;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.related-editor-row strong{overflow-wrap:anywhere}.related-order-controls{display:flex;gap:8px;margin:9px 0 13px}.related-order-controls .secondary{min-width:44px;min-height:44px;padding:8px 13px}.related-editor-search{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.related-search-result{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;min-width:0}.related-search-result img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:6px;flex-shrink:0}.related-search-result>div{flex:1;min-width:0}.related-search-result strong{font-size:14px;overflow-wrap:anywhere}.related-search-result small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.related-search-result .secondary{min-height:44px;flex-shrink:0;padding:10px 13px}@media(max-width:900px){.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.related-grid,#cart-related .related-grid{grid-template-columns:minmax(0,1fr)}.related-card{padding:14px}.related-modal,.related-editor{padding:25px 18px}.related-editor h2{padding-right:35px}.sheet-related-trigger{font-size:11px;min-height:38px}.related-editor-row{padding:12px}.admin-product-actions .secondary{font-size:12px;padding:8px 9px}.related-copy h3{font-size:16px}}

/* Easy-to-find product categories; source categories and selection stay intact. */
.category-switch{display:none;align-items:center;gap:14px;width:100%;border:1px solid #b9d6c2;background:#edf7ef;color:#14583c;border-radius:14px;padding:15px 16px;text-align:left;min-height:76px}.category-switch>.icon:first-child{width:30px;height:30px;flex-shrink:0}.category-switch>.icon:last-child{margin-left:auto;width:22px;height:22px;flex-shrink:0}.category-switch>span{min-width:0;flex:1}.category-switch strong{display:block;font-size:19px;font-weight:750;line-height:1.5}.category-switch small{display:block;font-size:13px;margin-top:3px;line-height:1.5;overflow-wrap:anywhere}.category-switch:focus-visible,.category-tile:focus-visible{outline:3px solid #a84a31;outline-offset:2px}.category-nav-hint{display:none}.category-dialog{max-width:660px;height:86vh;max-height:90vh;height:min(86dvh,820px);max-height:90dvh;display:flex;flex-direction:column;padding:0}.category-dialog-heading{flex-shrink:0;padding:25px 56px 18px 24px;background:var(--paper);border-bottom:1px solid var(--line)}.category-dialog-heading h2{font-size:25px;line-height:1.3;margin:0 0 8px}.category-dialog-heading p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}.category-dialog .modal-close{width:44px;height:44px;top:15px;right:12px}.category-dialog-body{padding:18px 22px 22px;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-tile{position:relative;display:flex;align-items:center;gap:11px;min-width:0;min-height:108px;width:100%;padding:19px 12px 14px;border:1px solid var(--line);background:#fff;border-radius:13px;color:var(--ink);text-align:left}.category-tile>.icon{width:29px;height:29px;flex-shrink:0}.category-tile-copy{min-width:0;flex:1}.category-tile strong{display:block;font-size:17px;line-height:1.55;overflow-wrap:anywhere;font-weight:650}.category-tile small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.category-all{margin-bottom:13px;min-height:60px;justify-content:center}.category-all .category-tile-copy{flex:none}.category-all small{display:inline-block;margin-left:10px}.category-all strong{display:inline-block;font-size:18px}.category-tile.is-current{background:#edf7ef;border:2px solid #27754c;color:#155b3a;padding:18px 11px 13px}.category-current-badge{position:absolute;right:7px;top:5px;display:flex;align-items:center;gap:2px;background:#27754c;color:#fff;border-radius:10px;padding:2px 6px;font-size:10px}.category-current-badge .icon{width:12px;height:12px}.category-scroll-guide{flex-shrink:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#f4f7f4;color:#44604d;border-top:1px solid var(--line);font-size:13px;text-align:center;line-height:1.5}
@media(max-width:640px){.category-switch{display:flex;order:2}.mobile-nav .category-nav-item{color:#a84a31;background:#fae9df;border-radius:12px}.mobile-nav .category-nav-item span{font-weight:650}.mobile-nav .category-nav-item .icon{width:24px;height:24px}.mobile-nav .category-nav-item{min-width:0}.category-hint-visible .mobile-nav{padding-top:30px}.category-nav-hint{position:absolute;display:block;left:15px;top:6px;color:#a84a31;font-size:11px;line-height:18px;font-weight:550;white-space:nowrap}.category-hint-visible .sheet-orderbar{bottom:calc(86px + env(safe-area-inset-bottom))}.category-hint-visible{padding-bottom:24px}.category-dialog{width:100%;height:88vh;max-height:88vh;height:88dvh;max-height:88dvh;border-radius:20px 20px 0 0}.modal-overlay.category-overlay{padding:0;align-items:flex-end}.category-dialog-heading{padding:22px 58px 16px 18px}.category-dialog-heading h2{font-size:25px}.category-dialog-heading p{font-size:13px}.category-dialog-body{padding:15px 15px 20px}.category-grid{gap:10px}.category-tile{gap:8px;padding:20px 10px 13px;min-height:110px}.category-tile>.icon{width:25px;height:25px}.category-tile strong{font-size:16px;line-height:1.5}.category-tile.is-current{padding:19px 9px 12px}.category-all{min-height:60px}.category-all.is-current{min-height:60px}.category-all .category-tile-copy{flex:none}.category-scroll-guide{font-size:12px}.category-dialog .modal-close{top:15px;right:10px}}
@media(max-width:350px){.category-tile{flex-direction:column;align-items:flex-start;gap:7px;min-height:133px}.category-tile>.icon{width:25px;height:25px}.category-all{flex-direction:row;align-items:center;min-height:64px}.category-all.is-current{min-height:64px}.category-switch{padding:12px;gap:10px}.category-switch strong{font-size:18px}.category-switch small{font-size:12px}.category-nav-hint{font-size:10px;left:10px}}

@media(max-width:640px){.catalogue-sheet .toolbar-top{flex-direction:column}.catalogue-sheet .search-box{order:1}}

/* The original carton specification is a separate optional table column. */
.sheet-case-size{text-align:center;color:#506653;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:360px){.sheet-product-text strong{font-size:12px}.sheet-product-button{gap:5px}}

/* A compact customer home, with shopping remaining one clear tap away. */
.home-page{max-width:800px;padding-top:32px;padding-bottom:100px}
.home-intro{margin-bottom:22px}.home-intro h1{font-size:30px;line-height:1.4;color:#14583c;letter-spacing:0}
.home-intro p{font-size:16px;line-height:1.7;color:var(--muted);margin-top:6px}
.home-start{display:flex;align-items:center;gap:20px;width:100%;min-height:110px;padding:24px;border:0;border-radius:16px;background:#247348;color:white;text-align:left}
.home-start:hover{background:#195a36}.home-start>.icon:first-child{width:40px;height:40px}.home-start>.icon:last-child{margin-left:auto;width:27px;height:27px}
.home-start>span{min-width:0}.home-start strong{display:block;font-size:27px;line-height:1.4}.home-start small{display:block;color:#fff;font-size:15px;line-height:1.6;margin-top:4px}
.home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.home-shortcut{display:flex;flex-direction:column;align-items:flex-start;gap:9px;border:1px solid #dde6dd;border-radius:14px;background:white;padding:22px;text-align:left;min-width:0;min-height:145px}
.home-shortcut:hover{background:#f5faf5;border-color:#a9c8b3}.home-shortcut>.icon{width:32px;height:32px;color:#14583c}
.home-shortcut strong{display:flex;align-items:center;gap:8px;font-size:20px;color:#203b2c;line-height:1.4;min-width:0}.home-shortcut small{font-size:14px;line-height:1.5}
.home-cart-count{display:inline-flex;align-items:center;justify-content:center;padding:0 5px;min-width:21px;height:21px;border-radius:50%;font-size:11px;background:var(--primary);color:white;flex-shrink:0}
.home-process{background:#edf7ef;border:1px solid #c5ddcd;border-radius:14px;margin-top:18px;padding:16px 20px;color:#14583c}
.home-process h2{font-size:13px;line-height:1.5;font-weight:500;margin-bottom:8px}.home-process p{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:15px;font-weight:600;line-height:1.5}.home-process .icon{width:20px;height:20px}
@media(max-width:640px){
 .home-page{padding:22px 16px calc(88px + env(safe-area-inset-bottom))}
 .home-intro{margin-bottom:18px}.home-intro h1{font-size:23px}.home-intro p{font-size:14px;margin-top:5px}
 .home-start{min-height:92px;padding:18px;gap:16px;border-radius:14px}.home-start>.icon:first-child{width:33px;height:33px}.home-start strong{font-size:25px}.home-start small{font-size:13px}
 .home-shortcuts{margin-top:16px;gap:12px}.home-shortcut{min-height:112px;padding:16px;gap:8px;border-radius:12px}.home-shortcut>.icon{width:28px;height:28px}.home-shortcut strong{font-size:18px}.home-shortcut small{font-size:12px}
 .home-process{margin-top:16px;padding:12px 14px}.home-process h2{font-size:11px;margin-bottom:5px}.home-process p{font-size:12px;gap:4px}.home-process .icon{width:16px;height:16px}
 .mobile-nav button{flex:1;min-width:0;padding:0 2px}.mobile-nav .home-nav-item.active{background:#fae9df;border-radius:12px;font-weight:650}
 .mobile-nav .category-nav-item{color:var(--muted);background:transparent}.mobile-nav .category-nav-item.active{color:#a84a31;background:#fae9df}
}
@media(max-width:360px){
 .home-page{padding-left:12px;padding-right:12px}.home-intro h1{font-size:21px}.home-intro p{font-size:13px}
 .home-shortcut{padding:13px;gap:7px}.home-shortcut strong{font-size:17px;gap:5px}.home-shortcut small{font-size:11px}.home-process{padding:12px}.home-process p{font-size:11px}
}
@media(max-width:640px) and (max-height:740px){
 .home-page{padding-top:16px}.home-intro{margin-bottom:13px}.home-intro h1{font-size:21px}.home-intro p{font-size:13px}
 .home-start{min-height:78px;padding:14px 17px}.home-shortcut{min-height:102px;padding-top:12px;padding-bottom:12px;gap:6px}
 .home-process{margin-top:13px;padding-top:10px;padding-bottom:10px}
}

/* Keep an explicit, touch-sized search action beside the customer field. */
.catalogue-search{display:flex;align-items:center;gap:8px;min-width:260px;max-width:380px;width:100%;flex-shrink:0}
.catalogue-search-input{position:relative;flex:1;min-width:0}
.catalogue-search input{min-height:44px;padding-right:43px}
.catalogue-search-input>.icon{top:13px;pointer-events:none}
.catalogue-search .search-clear{top:2px;right:2px;width:40px;height:40px}
.catalogue-search .search-clear .icon{position:static}
.catalogue-search-submit{min-height:44px;min-width:66px;border:0;border-radius:10px;padding:10px 14px;background:#247348;color:white;font-size:15px;font-weight:650;flex-shrink:0}
.catalogue-search-submit:hover{background:#195a36}
@media(max-width:640px){.catalogue-search{min-width:0;max-width:none}.catalogue-search-submit{font-size:16px;min-width:64px;padding:10px 13px}}

/* A second tap opens only the photo, without replacing the product draft. */
.detail-photo-button{width:100%;border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:12px;cursor:zoom-in;border-radius:8px}
.detail-photo-hint{display:flex;align-items:center;justify-content:center;gap:6px;color:#247348;font-size:13px;min-height:28px}
.detail-photo-hint .icon{width:17px;height:17px}
.detail-quantity-title{font-size:14px;font-weight:600;margin-top:22px;line-height:1.6}
.detail-selection-note{font-size:12px;color:var(--muted);line-height:1.6;margin-top:4px}
.detail-quantity-title~.detail-purchase{margin-top:12px}
.photo-viewer{position:fixed;inset:0;z-index:80;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#171b19;color:white;overflow:hidden;overscroll-behavior:none}
.photo-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));background:#202722}
.photo-viewer-header h2{font-size:16px;font-weight:500;line-height:1.5;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.photo-viewer button{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #657169;background:#29382e;color:white;border-radius:9px;min-height:44px;font-size:15px;padding:9px 14px;flex-shrink:0}
.photo-viewer button:hover{background:#344b3b}.photo-viewer button:disabled{opacity:.4;cursor:default}
.photo-viewer button:focus-visible,.photo-viewer-stage:focus-visible{outline:3px solid #9fe0b3;outline-offset:-3px}
.photo-viewer-stage{position:relative;overflow:hidden;touch-action:none;min-height:0;outline:none;user-select:none;-webkit-user-select:none;cursor:zoom-in}
.photo-viewer-stage.is-zoomed{cursor:grab}.photo-viewer-stage.is-zoomed:active{cursor:grabbing}
.photo-viewer-image{position:absolute;left:50%;top:50%;max-width:none;max-height:none;object-fit:contain;transform-origin:center;pointer-events:none;will-change:transform}
.photo-viewer-message{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;font-size:15px;padding:20px}
.photo-viewer-footer{padding:12px max(12px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#202722}
.photo-viewer-footer p{color:#d0ddd3;font-size:13px;text-align:center;line-height:1.5;margin-bottom:10px}
.photo-viewer-controls{display:flex;justify-content:center;gap:10px;max-width:450px;margin:0 auto}.photo-viewer-controls button{flex:1;min-width:0}

/* Compact colour choices keep photos and ordering controls prominent. */
.colour-options{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}.colour-options .quote-option{text-align:center;min-height:44px;font-size:14px;padding:9px 8px}.detail-colour-help{font-size:12px;color:var(--muted);margin-top:8px}.sheet-legacy-colour[hidden]{display:none}

/* Save each colour's final quantity in one confirmation. */
.sheet-colour-picker,.sheet-colour-caption,.sheet-colour-subtotal{display:none}
.colour-quantity-heading{font-size:16px;margin-top:22px}
.colour-quantity-list{margin-top:16px;border-top:1px solid var(--line)}
.colour-quantity-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.colour-quantity-row label{min-width:0;font-size:15px}.colour-quantity-row label small{display:block;font-weight:400;margin-top:4px}
.colour-quantity-row .stepper input{font-size:16px;width:58px;margin:0}.colour-quantity-row .stepper button{width:38px;height:42px}
.colour-row-unit{font-size:12px;color:var(--muted)}
.colour-confirm-panel{margin-top:18px;padding-top:12px;background:var(--paper)}
.colour-selection-summary{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;font-size:12px;margin-bottom:10px;line-height:1.6}
.colour-selection-summary strong{color:var(--green)}.colour-confirm-panel>p{text-align:center;font-size:11px;color:var(--muted);margin-top:8px}
.colour-quantity[aria-invalid="true"]{outline:2px solid #b63e30;outline-offset:-2px}
.purchase-actionbar{display:none}
.addition-actionbar{display:block}
.receipt .illustrated-receipt-actions{margin:0 0 24px}
.purchase-document>.purchase-document-actions{margin:18px 0 24px;border-top:0;padding-top:0}
#checkout-contact{scroll-margin-top:16px}
@media(max-width:640px){
 .sheet-colour-secondary{display:none}
 .sheet-colour-primary .sheet-quantity,.sheet-colour-primary .sheet-quantity-unit,.sheet-colour-primary .sheet-variant,.sheet-colour-primary .sheet-individual-subtotal{display:none}
 .sheet-colour-primary .sheet-colour-picker,.sheet-colour-primary .sheet-colour-caption,.sheet-colour-primary .sheet-colour-subtotal{display:block}
 .sheet-colour-caption{font-size:11px;color:var(--muted);font-weight:400;line-height:1.6;margin-top:6px}
 .sheet-colour-button{border:1px solid #a9cbb7;border-radius:8px;background:white;color:#247348;min-height:44px;padding:8px 7px;font-size:14px;font-weight:600;width:100%}
 .sheet-colour-picker small{display:block;font-size:10px;font-weight:400;line-height:1.6;margin-top:5px;white-space:normal}
 .quote-table .sheet-colour-primary.is-colour-selected td{background:#edf7f0}
 .colour-quantity-modal .detail-photo-area{padding:20px 50px 12px}
 .colour-quantity-modal .detail-photo{max-height:130px}
 .colour-quantity-modal .detail-copy{padding:12px 18px 20px}
 .colour-quantity-modal .detail-copy h2{margin:0;font-size:17px}
 .colour-quantity-modal .detail-code{margin-top:6px;font-size:11px}
 .colour-quantity-heading{font-size:15px;margin-top:16px}
 .colour-quantity-list{margin-top:10px}
 .colour-quantity-row{padding:10px 0;gap:8px}
 .colour-quantity-row .stepper input{width:52px}
 .colour-quantity-row .stepper button{width:36px;height:44px}
 .colour-confirm-panel{position:sticky;bottom:-20px;z-index:2;padding:12px 0 calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);box-shadow:0 -8px 12px var(--paper)}
 .colour-confirm-panel .primary{min-height:46px;font-size:15px}
 .purchase-actionbar{position:fixed;left:0;right:0;bottom:var(--purchase-nav-height,80px);z-index:18;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:white;border-top:1px solid var(--line);box-shadow:0 -4px 14px #29292309}
 .purchase-actionbar.keyboard-open{visibility:hidden;pointer-events:none}
 .checkout-quick-summary{min-width:0}.checkout-quick-summary span{display:block;font-size:11px;color:var(--muted);line-height:1.6}
 .checkout-quick-summary strong{display:block;font-size:22px;color:var(--green);line-height:1.4}
 .purchase-actionbar .primary{min-height:46px;padding:12px 14px;font-size:14px;white-space:nowrap;background:#247348}
 .addition-actionbar{flex-direction:column;align-items:stretch;gap:6px;padding:9px 14px}
 .addition-actionbar .addition-selection{margin:0;font-size:11px;line-height:1.6}
 .addition-actionbar .addition-actions{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .addition-actionbar .addition-actions button{width:auto;min-height:44px;font-size:13px;padding:10px 8px}
 .receipt .receipt-head{margin-bottom:18px}.receipt .success-icon{width:44px;height:44px;margin-bottom:12px}
 .receipt .receipt-head p{font-size:11px;line-height:1.8;margin-top:10px}
 .receipt .receipt-id{margin-bottom:0}
 .receipt .purchase-next-step{padding:12px;margin:16px 0;font-size:12px}
 .receipt .purchase-next-step p{font-size:11px;margin-top:5px}
 .receipt .illustrated-receipt-actions{margin:0 0 20px}
}
@media(max-width:360px), (max-height:700px) and (max-width:640px){
 .receipt{margin-top:16px;padding-top:18px}
 .receipt .success-icon{width:34px;height:34px;margin-bottom:8px}
 .receipt .receipt-head h1{font-size:20px}
 .receipt .receipt-head p{font-size:10px;margin:8px 0}
 .receipt .receipt-head{margin-bottom:10px}
 .receipt .purchase-next-step{margin:12px 0;padding:10px}
 .receipt .purchase-next-step p{display:none}
 .receipt .illustrated-receipt-actions{gap:6px}
}
@media print{.purchase-actionbar{display:none!important}}

.product-editor h2{margin-bottom:8px}.product-editor form{display:grid;gap:16px}
.product-editor textarea{min-height:68px}.product-photo-editor{padding:16px 0;border-block:1px solid var(--line)}
.product-unit-help{display:block;margin-top:6px;font-size:12px;line-height:1.7;color:var(--muted)}
.product-category-field{min-width:0}.product-category-field>select{width:100%;min-width:0;min-height:44px;margin-top:7px;font-size:16px}.product-category-help{font-size:11px;line-height:1.8;color:var(--muted);margin-top:6px}.product-category-custom{margin-top:10px}.product-category-custom[hidden]{display:none}.product-category-custom input{min-width:0;font-size:16px}
.product-photo-editor h3{font-size:15px}.product-photo-editor .checkout-explanation{margin:8px 0 14px}
#product-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
#product-photo-list>.muted{grid-column:1/-1;font-size:12px;line-height:1.8}
.product-photo-tile{padding:8px;border:1px solid var(--line);border-radius:10px;background:white;min-width:0}
.product-photo-tile img{width:100%;height:110px;object-fit:contain}.product-photo-tile>span{display:block;font-size:11px;margin:8px 0 2px;color:var(--green)}
.product-photo-tile>div{display:flex;flex-wrap:wrap;gap:4px}.product-photo-tile .text-button{font-size:11px;min-height:36px;padding:5px}
.product-photo-select{position:relative;min-height:44px;cursor:pointer;font-size:13px;overflow:hidden}
.product-photo-select input{position:absolute;inset:0;opacity:0;cursor:pointer;max-width:100%;margin:0}
.product-photo-select:focus-within{outline:3px solid #c6876a;outline-offset:3px}
.product-editor-save{position:sticky;bottom:0;background:var(--paper);padding:12px 0;z-index:2}
.home-admin-entry{text-align:center;padding:18px 0 8px}.home-admin-entry .text-button{font-size:11px;min-height:44px}
@media(max-width:640px){
 .product-review-panel .section-heading{flex-wrap:wrap;gap:10px}
 .product-review-panel .section-heading h2{flex:1;min-width:130px}
 .product-review-panel .section-heading .primary{min-height:44px;font-size:13px}
 .product-review-panel .section-heading>a{font-size:11px;min-height:40px}
 .product-editor .form-grid{grid-template-columns:1fr 1fr}
 .product-editor-save{bottom:-21px;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
 .product-photo-tile img{height:80px}
 .admin-product-actions .secondary{white-space:normal;text-align:center;min-height:40px}
}

.admin-product-name{min-width:0;overflow-wrap:anywhere}.admin-product-actions{min-width:160px}.admin-product-order{display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px}.admin-product-order .secondary{min-width:44px;min-height:44px;padding:8px 6px;white-space:nowrap}.admin-product-order small{grid-column:1/-1}.admin-product-order-hint,.admin-product-order-status{font-size:12px;line-height:1.8;margin-top:10px}.admin-product-order-hint{color:var(--muted)}.admin-product-order-status:empty{display:none}.admin-product-order-status:not(.form-error){color:var(--green)}
@media(max-width:640px){.admin-product{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;gap:12px}.admin-product img,.admin-product-placeholder{width:44px;min-width:44px;height:48px}.admin-product-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}.admin-product-actions>.secondary{min-height:44px}.admin-product-actions>small,.admin-product-order{grid-column:1/-1}.admin-product-order{gap:8px}.admin-product-order .secondary{min-height:44px;font-size:13px;padding:10px 6px}.admin-product-name{font-size:13px}.admin-product-name small{font-size:11px}}

.admin-product-order .admin-product-order-locate{grid-column:1/-1;color:var(--green);font-size:12px}

/* Automatic paging uses a compact status line, keeping space for products. */
#catalogue-status:not(:empty){display:flex;align-items:center;justify-content:center;gap:7px;padding:6px 10px;min-height:30px;font-size:12px}#catalogue-status[hidden],.catalogue-sheet>.footer[hidden],.sheet-workbook-foot[hidden],#more-row[hidden]{display:none}.catalogue-retry{min-height:44px;padding:6px 10px;color:var(--green)}.catalogue-loading-dot{width:12px;height:12px;flex-shrink:0;border:2px solid #d1ddd4;border-top-color:var(--green);border-radius:50%;animation:catalogue-spin .8s linear infinite}@keyframes catalogue-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.catalogue-loading-dot{animation:none}}
/* A quiet checkout entry; the catalogue opens only on request. */
#cart-offers[hidden]{display:none}
.offers-entry{display:flex;align-items:center;gap:10px;width:100%;height:66px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left;margin-top:14px;color:var(--ink)}
.offers-mini-photos{display:flex;gap:4px;flex-shrink:0}.offers-mini-photos img{width:32px;height:32px;object-fit:contain;background:white;border:1px solid #eeece7;border-radius:5px}
.offers-entry-copy{flex:1;min-width:0;display:grid;gap:2px}.offers-entry-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.offers-entry-copy small{font-size:11px;color:var(--muted)}
.offers-entry-link{display:flex;align-items:center;justify-content:center;min-height:44px;gap:3px;color:#23734f;font-size:13px;flex-shrink:0}.offers-entry-link .icon,.offer-product>.secondary .icon{width:14px;height:14px;transform:rotate(180deg)}
.offers-modal{display:flex;flex-direction:column;max-width:720px;max-height:85vh;max-height:85dvh;overflow:hidden;background:var(--paper)}
.offers-heading{padding:22px 60px 12px 20px;flex-shrink:0}.offers-heading h2{font-size:20px;line-height:1.5;overflow-wrap:anywhere}.offers-heading p{font-size:12px;color:var(--muted);margin-top:5px}.offers-heading .text-button{min-height:44px;padding:0;display:flex;align-items:center;gap:5px;font-size:12px}.offers-heading .icon{width:16px;height:16px}
.offers-search{display:flex;gap:8px;padding:0 20px 12px}.offers-search input{min-width:0;flex:1;font-size:16px}.offers-search button{min-height:44px;flex-shrink:0}
.offers-scroll,.offers-choice-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 20px 20px;-webkit-overflow-scrolling:touch}
.offers-list{display:grid;gap:9px}.offer-product{display:flex;gap:10px;align-items:center;padding:12px;background:white;border:1px solid var(--line);border-radius:10px}.offer-product-photo{flex-shrink:0;padding:0;border:0;background:white;width:64px;height:64px}.offer-product-photo img{width:64px;height:64px;object-fit:contain}.offer-product-copy{min-width:0;flex:1}.offer-product-copy h3{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.offer-product-copy small{font-size:11px;color:var(--muted);display:block;line-height:1.5}.offer-product-copy strong{font-size:14px;color:#23734f;display:block;margin-top:4px}.offer-product>.secondary{display:flex;align-items:center;justify-content:center;gap:3px;min-height:44px;padding:8px;font-size:12px;flex-shrink:0}.offers-load-state{text-align:center;font-size:12px;color:var(--muted);padding:12px;min-height:38px}.offers-load-state button{min-height:44px;margin-top:6px}
.offer-choice-summary{display:flex;align-items:center;gap:15px}.offer-choice-summary .detail-photo-area{padding:0;min-height:0;background:white;width:120px;height:120px;flex-shrink:0}.offer-choice-summary .detail-photo-button,.offer-choice-summary .detail-photo{width:120px;height:120px;object-fit:contain}.offer-choice-summary strong{font-size:18px;color:#23734f}.offer-choice-summary small{display:block;font-size:12px;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.offer-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.offer-choices button{min-height:44px;font-size:13px}.offer-choices .selected{border-color:#23734f;background:#edf6f0;color:#185f40;box-shadow:inset 0 0 0 1px #23734f}.offer-quantity-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;font-size:14px}.offer-quantity-label .stepper button{width:44px;height:44px}.offer-quantity-label .stepper input{width:76px;font-size:16px}#offer-quantity-note{font-size:12px;margin:12px 0;line-height:1.6}.offer-choice-error{min-height:20px;margin-bottom:8px}.offers-choice-scroll>.primary{min-height:48px}.offers-choice-scroll .checkout-explanation{margin-top:10px}
.offers-settings{margin-bottom:18px}.offers-settings h2{font-size:19px}.offers-settings .checkout-explanation{margin:12px 0}.offers-settings .form-grid{gap:15px}.offers-settings input:not([type=checkbox]){font-size:16px;min-width:0}.offers-settings .checkbox-label{min-height:44px}.offers-settings .primary{min-height:44px;margin-right:10px}#offers-admin-status{font-size:12px;display:inline-block;margin-top:8px}
.offers-admin-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.offers-admin-layout>.panel{min-width:0}.offers-admin-layout h2{font-size:18px;margin-bottom:12px}.offers-admin-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.offers-admin-search select{grid-column:1/-1}.offers-admin-search input,.offers-admin-search select{min-width:0;font-size:16px}.offers-admin-search button{min-height:44px}#offers-source-count{font-size:12px;margin:10px 0}
.offers-source-row{display:flex;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid var(--line)}.offers-source-row>img,.offers-source-missing{width:44px;height:44px;object-fit:contain;flex-shrink:0}.offers-source-missing{font-size:10px;color:var(--muted);display:flex;align-items:center;justify-content:center}.offers-source-row>div{min-width:0;flex:1}.offers-source-row strong{font-size:12px;line-height:1.6;display:block;overflow-wrap:anywhere}.offers-source-row small{font-size:11px;color:var(--muted);display:block;overflow-wrap:anywhere}.offers-source-row>button{min-height:44px;font-size:12px;padding:8px;flex-shrink:0}.offers-source-row>button[aria-pressed=true]{background:#edf6f0;border-color:#23734f;color:#185f40}
.offers-picked-row{padding:12px 0;border-bottom:1px solid var(--line)}.offers-picked-heading{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.offers-picked-heading>strong{font-size:13px;overflow-wrap:anywhere}.offers-picked-heading>div{display:flex;gap:6px}.offers-picked-heading button{min-height:44px;min-width:44px;padding:7px 10px;font-size:12px}.offers-picked-row label{font-size:12px;display:block;margin:10px 0;overflow-wrap:anywhere}.offers-picked-row input{font-size:16px;min-height:44px;margin-top:5px}
@media(max-width:760px){.offers-admin-layout{grid-template-columns:1fr}.admin-tabs{flex-wrap:wrap}.admin-tabs button{min-height:44px}}
@media(max-width:640px){.offers-overlay{padding:0;align-items:flex-end}.offers-modal{max-width:none;border-radius:20px 20px 0 0;max-height:88vh;max-height:88dvh}.offers-heading{padding:20px 60px 10px 16px}.offers-search{padding:0 16px 10px}.offers-scroll,.offers-choice-scroll{padding:0 16px max(20px,env(safe-area-inset-bottom))}.offer-product{padding:10px;gap:8px}.offer-product-photo,.offer-product-photo img{width:56px;height:56px}.offer-product-copy h3{font-size:13px}.offer-product-copy strong{font-size:13px}.offer-product>.secondary{font-size:11px;padding:6px}.offer-choice-summary .detail-photo-area,.offer-choice-summary .detail-photo-button,.offer-choice-summary .detail-photo{width:100px;height:100px}.offer-quantity-label{flex-wrap:wrap}.offers-settings .form-grid{grid-template-columns:1fr}.offers-admin-layout>.panel{padding:14px}}

.showroom-settings{margin:20px 0;padding:16px;border:1px solid #d9e2d7;border-radius:12px;background:#f4f7f1}.showroom-settings summary{cursor:pointer;color:#246d4e;font-weight:700;min-height:28px}.showroom-settings label{margin-top:14px}.showroom-settings .muted{font-size:13px;line-height:1.7}.showroom-settings a{display:inline-block;margin:10px 0}

.cart-photo-button{display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;border-radius:8px;cursor:pointer;max-width:100%}
.cart-name-button{display:block;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer;max-width:100%;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
.cart-photo-button:focus-visible,.cart-name-button:focus-visible{outline:3px solid #c6876a;outline-offset:3px}
.history-order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.history-order-actions button{min-height:44px}
.cart-item-editor{max-width:640px}.cart-editor-content{padding:26px}.cart-editor-content h2{font-size:21px;padding-right:38px;margin-bottom:18px}.cart-editor-content h3{font-size:17px;line-height:1.7;margin-top:18px;overflow-wrap:anywhere}
.cart-item-editor .cart-editor-photo{min-height:0;padding:12px;border-radius:12px}.cart-editor-photo .detail-photo{height:200px;max-height:200px}.cart-editor-meta,.cart-editor-help{color:var(--muted);font-size:13px;line-height:1.8;margin:10px 0;overflow-wrap:anywhere}.cart-editor-help{font-size:12px}
.cart-editor-options{border:0;padding:0;margin:18px 0}.cart-editor-options legend{font-size:14px;margin-bottom:10px}.cart-editor-options .quote-option{min-height:44px;overflow-wrap:anywhere}
.cart-editor-notice{font-size:13px;line-height:1.8;padding:12px;background:#fff6ed;border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.cart-editor-ack{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.7;min-height:44px}.cart-editor-ack input{width:auto;flex-shrink:0;margin-top:4px}
.cart-editor-stepper{width:max-content;max-width:100%;margin-top:10px}.cart-editor-stepper button{width:44px;height:44px}.cart-editor-stepper input{width:88px;font-size:16px}.cart-editor-summary{font-size:14px;line-height:1.8;overflow-wrap:anywhere;margin:12px 0}.cart-editor-actions{display:grid;grid-template-columns:1fr 2fr;gap:10px;background:var(--paper);padding:12px 0}.cart-editor-actions button{min-height:46px}
.reorder-preview{max-width:680px}.reorder-content{padding:28px}.reorder-content h2{padding-right:40px}.reorder-summary{line-height:1.8;color:var(--muted)}.reorder-content h3{font-size:16px;margin:22px 0 10px}
.reorder-line{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.reorder-line>div{min-width:0}.reorder-line p,.reorder-line small{display:block;margin:5px 0;color:var(--muted);overflow-wrap:anywhere}.reorder-line>b{flex-shrink:0}.reorder-line strong{overflow-wrap:anywhere}
.reorder-skipped{padding:14px;background:#fff6ed;border-radius:12px;margin-top:18px}.reorder-skipped ul{padding-left:20px}.reorder-skipped li{margin:12px 0;overflow-wrap:anywhere}.reorder-skipped span{display:block;color:var(--muted)}.reorder-skipped p{margin:5px 0;line-height:1.6}.reorder-error{color:var(--primary);line-height:1.7}.reorder-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.reorder-actions button{min-height:46px}
@media(max-width:480px){.cart-editor-content{padding:22px 18px}.cart-editor-photo .detail-photo{height:180px;max-height:180px}.cart-editor-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}.history-order-actions>*{flex:1;white-space:normal}.reorder-content{padding:22px 18px}.reorder-line{gap:10px}.reorder-line>b{max-width:30%;white-space:normal}.reorder-actions>*{width:100%}}

/* Keep optional offers outside the selected list, and reveal products on request. */
.cart-products-column{display:grid;align-content:start;gap:16px;min-width:0}
.cart-selected-panel{min-width:0}
.cart-selected-panel .ps-cart-heading{align-items:center;gap:12px;margin-bottom:18px}
.cart-selected-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.cart-selected-panel .cart-selected-heading h2{margin:0;font-size:18px;line-height:1.5}
.cart-selected-panel .cart-item-count{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:20px;background:#edf5ee;color:#286047;font-size:12px;line-height:1.5;font-weight:500;white-space:nowrap}
.cart-products-column>#cart-related{margin:0;padding:22px;border:1px solid var(--line);border-radius:16px;background:white;min-width:0}
.cart-products-column>#cart-related .related-heading h2{font-size:17px}
#cart-offers{min-width:0}
#cart-offers .offers-entry{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;height:auto;min-height:108px;margin:0;padding:14px 16px;border:1px dashed #d98a5b;border-radius:14px;background:#fff6ec;text-align:left;color:var(--ink);box-shadow:none}
#cart-offers .offers-entry:hover{background:#fff1e2;border-color:#c66d3f}
.offers-invitation-icon{display:flex;align-items:center;justify-content:center;width:34px;min-height:44px;color:#b35a33}
.offers-invitation-icon .icon,.offers-invitation-icon>svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#cart-offers .offers-entry-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.offers-invitation-tag{display:inline-block;padding:2px 7px;border-radius:12px;background:#fae3d0;color:#95522f;font-size:11px;line-height:1.5;font-weight:600}
#cart-offers .offers-entry-copy strong{display:block;overflow:visible;text-overflow:clip;white-space:normal;font-size:16px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
#cart-offers .offers-entry-copy small{font-size:12px;line-height:1.6;color:#756457;overflow-wrap:anywhere}
#cart-offers .offers-entry-status{display:block;max-width:100%;font-size:11px;line-height:1.6;color:#8b5a3b;overflow-wrap:anywhere}
#cart-offers .offers-entry-link{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:90px;padding:9px 10px;border:1px solid #337152;border-radius:10px;background:#fffefb;color:#236044;font-size:13px;line-height:1.5;white-space:nowrap;font-weight:600}
#cart-offers .offers-entry-link .icon{width:15px;height:15px}
.offers-overlay .offers-modal{display:flex;flex-direction:column;width:100%;max-width:760px;max-height:90vh;max-height:90dvh;padding:0;overflow:hidden;background:var(--paper)}
.offers-modal>.modal-close{top:14px;right:14px;width:44px;height:44px}
.offers-modal .offers-heading{flex:0 0 auto;padding:22px 76px 12px 22px}
.offers-modal .offers-heading h2{font-size:22px;line-height:1.5}
.offers-modal .offers-heading p{font-size:12px;line-height:1.6;color:var(--muted)}
.offers-unselected-note{display:flex;align-items:flex-start;gap:9px;flex:0 0 auto;margin:0 20px 12px;padding:11px 13px;border:1px solid #efd2b8;border-radius:11px;background:#fff4e8;color:#8b4c2c;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.offers-unselected-note .icon,.offers-unselected-note>svg{width:24px;height:24px;flex:0 0 24px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.offers-unselected-note strong{font-size:14px;line-height:1.6}
.offers-unselected-note small{display:block;color:#836b59;font-size:12px;line-height:1.6}
.offers-lock-note{flex:0 0 auto;margin:0 20px 10px;padding:10px 12px;border:1px solid #edc9b8;border-radius:10px;background:#fff2ec;color:#9a3f2b;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.offers-modal .offers-search{flex:0 0 auto;gap:8px;margin:0;padding:0 20px 12px}
.offers-modal .offers-search input{min-height:44px;font-size:16px}
.offers-modal .offers-search button{min-height:44px}
.offers-modal .offers-scroll,.offers-modal .offers-choice-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 20px 12px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c2cbbf transparent}
.offers-modal .offers-list{display:grid;gap:10px}
.offers-modal .offer-product{display:grid;grid-template-columns:64px minmax(0,1fr) 164px;align-items:start;gap:10px 12px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:white}
.offers-modal .offer-product-photo,.offers-modal .offer-product-photo img{width:64px;height:64px;object-fit:contain}
.offers-modal .offer-product-copy{min-width:0}
.offers-modal .offer-product-copy h3{font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.offers-modal .offer-product-copy small{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.offers-modal .offer-product-copy strong{display:block;font-size:18px;line-height:1.5;color:#a3472e;margin-top:4px;overflow-wrap:anywhere}
.offer-product-state{display:block;margin-top:5px;color:#8b5a3b;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.offer-product.is-selected .offer-product-state,.offer-product-state.is-selected,.offer-product.is-added .offer-product-state{color:#236a46}
.offers-modal .offer-product>.secondary{grid-column:3;align-self:center;justify-self:stretch;min-height:44px;padding:9px 10px;font-size:13px;line-height:1.5;color:#236044;border-color:#b6ccbb;white-space:normal}
.offer-inline-controls{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;justify-items:stretch;gap:7px;grid-column:3;grid-row:1;min-width:0}
.offer-inline-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:stretch;width:164px;max-width:100%;height:46px;border:1px solid #d8ddd4;border-radius:9px;overflow:hidden;background:white}
.offers-modal .offer-inline-stepper button{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:white;font-size:23px;line-height:1}
.offers-modal .offer-inline-stepper .icon{width:18px;height:18px}
.offers-modal .offer-inline-stepper .offer-inline-quantity{width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:6px 2px;border:0;border-left:1px solid #e4e5de;border-right:1px solid #e4e5de;border-radius:0;background:white;font-size:16px;line-height:1.4;text-align:center;-moz-appearance:textfield}
.offers-modal .offer-inline-quantity::-webkit-inner-spin-button,.offers-modal .offer-inline-quantity::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.offers-modal .offer-inline-commit{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:9px 8px;border:1px solid #23734f;border-radius:10px;background:#23734f;color:white;font-size:13px;font-weight:600;line-height:1.5;white-space:normal}
.offers-modal .offer-inline-commit:hover{background:#1c5e40}
.offers-modal .offer-inline-commit:disabled{opacity:.55}
.offer-inline-error{margin:0;font-size:12px;line-height:1.6;color:#9f3f2c;overflow-wrap:anywhere}
.offer-inline-error:empty{display:none}
.offers-modal .offers-footer{flex:0 0 auto;display:grid;gap:9px;margin:0;padding:13px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffdf9}
.offers-cart-total{font-size:13px;line-height:1.7;color:#68685f;overflow-wrap:anywhere}
.offers-cart-total strong{font-size:18px;font-weight:650;color:#a3472e;white-space:nowrap}
.offers-modal .offers-footer-return{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:10px 14px;border:1px solid #8b9188;border-radius:10px;background:white;color:#323a30;font-size:14px;font-weight:600;line-height:1.5}
.offers-modal .offers-choice-scroll .offer-choice-summary{margin-bottom:14px}
.offers-modal .offers-choice-scroll .offer-quantity-label{margin-top:18px}
.offers-modal .offers-choice-scroll #offer-confirm{min-height:46px;background:#23734f;border-color:#23734f}
.offers-modal .offers-choice-scroll #offer-confirm:hover{background:#1c5e40}
@media(max-width:640px){
 .cart-products-column{gap:14px}
 .cart-selected-panel .ps-cart-heading{gap:9px}
 .cart-selected-panel .cart-selected-heading h2{font-size:17px}
 .cart-selected-panel .cart-item-count{font-size:11px;padding:3px 8px}
 .cart-products-column>#cart-related{padding:18px 16px}
 #cart-offers .offers-entry{grid-template-columns:28px minmax(0,1fr) auto;gap:9px;min-height:106px;padding:13px 12px}
 .offers-invitation-icon{width:28px}
 .offers-invitation-icon .icon,.offers-invitation-icon>svg{width:27px;height:27px}
 #cart-offers .offers-entry-copy strong{font-size:15px}
 #cart-offers .offers-entry-link{min-width:82px;padding:9px 7px;font-size:12px}
 .offers-overlay .offers-modal{max-width:100%;max-height:92vh;max-height:92dvh;border-radius:22px 22px 0 0}
 .offers-modal .offers-heading{padding:20px 72px 10px 16px}
 .offers-modal .offers-heading h2{font-size:21px}
 .offers-unselected-note{margin:0 14px 10px;padding:10px 11px;font-size:12px;line-height:1.6}
 .offers-unselected-note strong{font-size:13px}
 .offers-unselected-note small{font-size:11px}
 .offers-lock-note{margin:0 14px 10px;padding:9px 11px}
 .offers-modal .offers-search{padding:0 14px 10px}
 .offers-modal .offers-scroll,.offers-modal .offers-choice-scroll{padding:0 14px 10px}
 .offers-modal .offer-product{grid-template-columns:56px minmax(0,1fr) 136px;padding:11px;gap:8px 10px}
 .offers-modal .offer-product-photo,.offers-modal .offer-product-photo img{width:56px;height:56px}
 .offers-modal .offer-product-copy h3{font-size:14px}
 .offers-modal .offer-product-copy strong{font-size:17px}
 .offers-modal .offer-product-copy small{font-size:11px}
 .offers-modal .offer-product>.secondary{padding:9px 8px;font-size:12px}
 .offer-inline-stepper{width:136px}
 .offers-modal .offer-inline-commit{font-size:12px}
 .offers-modal .offers-footer{padding:12px 16px max(16px,env(safe-area-inset-bottom));gap:8px}
 .offers-cart-total{font-size:12px}
}
@media(max-width:380px){
 #cart-offers .offers-entry{grid-template-columns:24px minmax(0,1fr) 78px;gap:8px;padding:12px 10px}
 .offers-invitation-icon{width:24px}
 #cart-offers .offers-entry-copy strong{font-size:14px}
 #cart-offers .offers-entry-link{min-width:0;padding:9px 5px;font-size:12px}
 .offers-modal .offer-product{grid-template-columns:56px minmax(0,1fr)}
 .offers-modal .offer-product>.secondary{grid-column:2;justify-self:start;min-width:130px}
 .offer-inline-controls{grid-column:1/-1;grid-row:auto;grid-template-columns:144px minmax(0,1fr);align-items:start;gap:8px}
 .offer-inline-stepper{width:144px}
 .offer-inline-error{grid-column:1/-1}
 .offers-modal .offer-inline-commit{min-height:46px}
}
