:root{font-family:"Segoe UI",system-ui,sans-serif;color:#30292b;background:#f6f4f1;--wine:#722b43;--ink:#30292b;--muted:#81787b;--line:#e9e3e1;--green:#26765c}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:9px;padding:11px 15px;color:var(--ink);font-weight:600}button:hover{background:#f6edef;border-color:#dac3cb}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b78598;outline-offset:3px}.primary{background:var(--wine);color:white;border-color:var(--wine)}.primary:hover{background:#5a2034;color:white}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 17px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;color:var(--wine);text-decoration:none;font-size:28px;font-weight:750;letter-spacing:-1px;padding:0 13px}.brand small{display:block;font-size:9px;letter-spacing:2.3px;color:#94868b;margin-top:1px}.brand-symbol{border-radius:13px 13px 4px 13px;background:var(--wine);color:white;font-family:Georgia,serif;font-size:30px;width:43px;height:43px;display:grid;place-items:center;font-weight:400}.nav-label{font-size:10px;font-weight:650;letter-spacing:1.6px;color:#aaa0a3;margin:43px 14px 14px}nav{display:grid;gap:6px}nav button{display:flex;gap:15px;align-items:center;border:0;text-align:left;background:transparent;color:#81777a;padding:13px 15px;font-size:14px;font-weight:500}nav button span{width:18px;text-align:center;font-size:20px;line-height:20px}nav button.active{background:#f6eaf0;color:var(--wine);font-weight:650;box-shadow:inset 3px 0 var(--wine)}.sidebar-bottom{display:flex;align-items:center;gap:9px;margin-top:auto;border-top:1px solid var(--line);padding-top:20px;font-size:12px}.sidebar-bottom small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.sidebar-bottom button{margin-left:auto;border:0;padding:7px}.avatar{border-radius:50%;background:#f2e9e4;width:32px;height:32px;display:grid;place-items:center;color:#986945}.workspace{min-width:0;display:flex;flex-direction:column}header{height:104px;padding:24px 32px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#fcfbf9}.breadcrumb{font-size:11px;color:#9b9194}h1{font-size:25px;letter-spacing:-.7px;margin:7px 0 0;font-weight:650}h2{font-size:17px;letter-spacing:-.2px;margin:0 0 16px;font-weight:650}h3{font-size:15px}p{color:#81777b;font-size:14px;line-height:1.6}.header-actions{display:flex;gap:15px;align-items:center}.header-actions button{font-size:12px;padding:9px 12px}.badge{font-size:11px;font-weight:600;color:var(--green);border:1px solid #dce9df;background:#f1f7f2;padding:8px 11px;border-radius:20px;white-space:nowrap}.badge.closed{color:#9a7337;background:#fcf5e8;border-color:#f0e2c8}main{padding:27px 30px;flex:1;min-width:0}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:26px;align-items:start}.catalog{min-width:0}.searchbar{display:flex;gap:12px;align-items:center;background:white;border:1px solid var(--line);border-radius:11px;padding:0 16px;height:53px}.searchbar>span{font-size:27px;color:#9c8f93}.searchbar input{border:0;background:transparent;padding:13px 0;outline:none;min-width:0;margin:0}.searchbar:focus-within{outline:2px solid #b78598;outline-offset:2px}.searchbar input:focus-visible{outline:0}kbd{font-size:9px;padding:4px 7px;background:#f6f3f1;border:1px solid var(--line);border-radius:4px;color:#9b9093}.category-tabs{display:flex;gap:7px;overflow:auto;padding:17px 0 22px;scrollbar-width:thin}.category-tabs button{font-size:11px;white-space:nowrap;padding:8px 13px;border-radius:7px;font-weight:550;background:#fbfaf9}.category-tabs .selected{color:#fff;background:var(--wine);border-color:var(--wine)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.section-head h2{margin:0}.muted{font-size:11px;color:#93878c}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:13px}.product-card{position:relative;border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden}.product-card:hover{border-color:#cfb2bd;box-shadow:0 5px 16px #47233408}.product{display:flex;flex-direction:column;text-align:left;border:0;border-radius:0;background:none;width:100%;min-height:166px;padding:20px 16px 15px}.product:hover{background:#fcf9fa}.product-category{text-transform:uppercase;letter-spacing:1px;font-size:9px;font-weight:600;color:#a68367;padding-right:17px;margin-bottom:12px}.product strong{font-size:14px;font-weight:600;line-height:1.45;padding-right:4px;min-height:41px}.product-code{font-size:10px;color:#b3a7ac;margin:5px 0 15px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;margin-top:auto}.product-bottom b{font-size:16px;letter-spacing:-.5px}.product-bottom small{font-size:9px;color:#84937f;white-space:nowrap}.favorite{position:absolute;right:10px;top:11px;z-index:1;border:0;font-size:19px;color:#b5a7ab;padding:0 3px;background:transparent}.favorite[aria-pressed=true]{color:#b58a45}.out-of-stock .product-bottom small{color:#ad6870}.catalog-note{margin-top:22px;font-size:11px;color:#a19499;line-height:1.6}.sale-panel{border:1px solid var(--line);border-radius:14px;background:white;position:sticky;top:24px;overflow:hidden;box-shadow:0 3px 12px #36222804}.sale-panel>.section-head{padding:22px 23px 19px;border-bottom:1px solid var(--line);margin:0}.eyebrow{display:block;letter-spacing:1.5px;font-size:9px;color:#a08e94;margin-bottom:5px}.cart-count{background:#f5eaf0;color:var(--wine);font-size:12px;font-weight:700;padding:6px 10px;border-radius:8px}.cart-lines{padding:0 23px;min-height:260px;max-height:calc(100vh - 430px);overflow:auto}.cart-line{padding:18px 0;border-bottom:1px solid var(--line)}.line-name{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:4px}.line-name strong{font-size:13px;font-weight:600}.line-name button{border:0;padding:0 4px;color:#b6a6ad;font-size:19px}.line-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:13px}.quantity{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;overflow:hidden}.quantity button{border:0;border-radius:0;padding:4px 10px;color:#8f767f;font-size:16px}.quantity b{min-width:24px;text-align:center;font-size:12px;font-weight:550}.cart-summary{padding:21px 23px;background:#fdfbfc;border-top:1px solid var(--line)}.cart-summary>div{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8f8187}.cart-summary .grand-total{padding:17px 0;color:var(--ink);font-size:14px}.grand-total strong{font-size:26px;letter-spacing:-1px}.checkout-button{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:51px;font-size:13px}.checkout-button span{font-weight:500}.cart-summary p{font-size:10px;text-align:center}.back-link{display:block;text-align:center;width:100%;border:0;background:transparent;color:#a08993;font-size:11px;padding:8px}.empty-cart{min-height:260px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px 5px}.empty-cart>span{font-size:42px;color:#d0bec5}.empty-cart h3{font-size:13px;font-weight:550;margin:14px 0 0}.empty-cart p{font-size:11px;max-width:200px;color:#aa9ba1}.panel,.card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px}.grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:22px}.stack{display:grid;gap:18px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:24px 0}.card strong{display:block;font-size:27px;margin-top:10px}.card{font-size:13px}.row{display:flex;gap:12px;align-items:end}.row>*{flex:1;min-width:0}label{display:grid;gap:7px;margin-bottom:16px;font-size:12px;font-weight:550;color:#7b6a73}input,select{width:100%;padding:12px;border:1px solid #dcd1d5;border-radius:8px;background:white;color:var(--ink)}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-weight:500;color:#9a8b91}td,th{padding:14px 10px;border-bottom:1px solid var(--line)}td button{padding:7px}td small{font-size:10px;color:#9a8b91}.total{font-size:32px;font-weight:700;margin:20px 0}.empty{padding:35px;text-align:center;color:#9a8b91;grid-column:1/-1}.warn{background:#fff5e5;border:1px solid #eedfc4;padding:13px;border-radius:8px;color:#8d6a34;font-size:12px;line-height:1.6}.negative,.danger{color:#a63e51}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}footer{display:flex;justify-content:space-between;padding:14px 30px;color:#b2a4aa;font-size:10px;border-top:1px solid var(--line)}.overlay{position:fixed;inset:0;background:#2f1a25a8;backdrop-filter:blur(3px);z-index:4;display:flex;justify-content:center;align-items:center;padding:24px}.checkout{width:480px;max-height:93vh;overflow:auto;padding:28px;box-shadow:0 25px 90px #1d0c2266}.checkout .section-head button{border:0;font-size:24px;padding:0 7px}.checkout-amount{font-size:42px;letter-spacing:-1px;font-weight:650;text-align:center;padding:20px 0 24px}.checkout-amount small{display:block;font-size:12px;letter-spacing:0;color:#9c8b93;font-weight:400;margin-top:7px}.payment-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:25px}.payment-options button{font-size:12px;padding:14px 7px}.payment-options .selected{border-color:var(--wine);background:#f7edf1;color:var(--wine);box-shadow:inset 0 0 0 1px var(--wine)}.checkout form>.primary{width:100%;padding:16px;font-size:14px}.change{color:var(--green);font-size:16px;font-weight:600}details{padding:13px 0;border-top:1px solid var(--line);margin:12px 0}summary{cursor:pointer;font-size:12px;color:#9b7e89;margin-bottom:12px}.success{max-width:430px;text-align:center}.success .primary,.success>button{display:block;width:100%;margin-top:10px}.success-icon{display:grid;place-items:center;background:#ecf5ee;border-radius:50%;color:var(--green);font-size:35px;width:65px;height:65px;margin:0 auto 22px}.login{max-width:430px;margin:10vh auto;padding:16px}.login h1{color:var(--wine);margin-bottom:22px;font-size:35px}.login .primary{width:100%}#message:not(:empty){position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#402c34;color:#fff;padding:16px 22px;border-radius:10px;box-shadow:0 8px 25px #0003;max-width:90vw;font-size:13px;z-index:9}
@media(min-width:1600px){.products{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.pos-layout{grid-template-columns:minmax(0,1fr) 390px}main{padding:32px 40px}}@media(max-width:1150px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}.brand{font-size:24px}.brand-symbol{width:35px;height:35px}main{padding:20px}.pos-layout{gap:17px;grid-template-columns:minmax(0,1fr) 310px}.products{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.product{padding-left:12px;padding-right:12px}.header-actions{gap:8px}header{padding:20px}}@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;display:block;padding:14px;border-right:0;border-bottom:1px solid var(--line)}.brand{display:none}.nav-label,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;gap:7px}nav button{white-space:nowrap;padding:10px 12px;font-size:12px}nav button span{font-size:15px}nav button.active{box-shadow:none}header{height:87px}.cart-lines{max-height:350px}.grid{grid-template-columns:1fr}footer span{max-width:65%;text-align:right}.pos-layout{grid-template-columns:minmax(0,1fr) 310px}}@media(max-width:650px){.pos-layout{grid-template-columns:1fr}.sale-panel{position:static}.cart-lines{min-height:150px}.empty-cart{min-height:160px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.product{min-height:155px}.header-actions .badge{display:none}header{padding:16px}h1{font-size:22px}main{padding:16px}.section-head>.muted{font-size:10px}.checkout{padding:22px}.overlay{padding:12px}.row{flex-wrap:wrap}.row>*{min-width:120px}.checkout-amount{font-size:36px}footer{padding:12px 16px}.panel{padding:20px}}

.sidebar{min-width:0}@media(max-width:900px){.shell{grid-template-columns:minmax(0,1fr)}}

.mobile-cart-bar,.mobile-logout{display:none}.check{display:flex;align-items:center;gap:12px;line-height:1.5}.check input{width:22px;height:22px;flex:none}.scanner video{width:100%;max-height:50vh;background:#151015;border-radius:12px}.scanner,.weight-panel{max-width:480px;width:100%;max-height:92vh;overflow:auto}.receipt-panel{max-width:600px;width:100%;max-height:92vh;overflow:auto}.receipt header{display:block;height:auto;text-align:center;padding:10px;background:white}.receipt header img{max-width:100px;max-height:80px;object-fit:contain}.receipt header h1{font-size:26px}.receipt table{font-size:12px}.receipt .total{font-size:24px}.receipt-actions{display:flex;gap:10px;margin-top:20px}.public-receipt{max-width:600px;margin:20px auto;background:white}.whatsapp-link{display:block;padding:14px;border-radius:9px;text-decoration:none;text-align:center}.piece{padding:20px 0;border-bottom:1px solid var(--line)}.piece form{margin-top:15px;padding:15px;background:#faf7f8;border-radius:10px}.payment-options{grid-template-columns:repeat(3,minmax(0,1fr))}.product-bottom{flex-wrap:wrap}.product-bottom b small{font-size:9px;color:#95858c}.scan-button{padding:8px;font-size:11px;white-space:nowrap}.receipt h2{margin-top:20px}
@media(max-width:900px){.mobile-logout{display:block}.header-actions{gap:5px}}@media(max-width:650px){body{padding-bottom:78px}.mobile-cart-bar{position:fixed;bottom:0;left:0;right:0;z-index:3;display:flex;padding:12px;gap:8px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 15px #4622370a}.mobile-cart-bar button{flex:1;font-size:12px;min-height:46px}.sale-panel{scroll-margin-top:15px}.quantity button{min-width:44px;min-height:44px}.searchbar{padding:0 10px;gap:6px}.searchbar input{font-size:12px}.scan-button{min-height:40px}.receipt-actions{flex-wrap:wrap}.overlay{align-items:center}.checkout{max-height:92vh}nav button{min-height:44px}.brand{font-size:24px}}
@media print{body{background:#fff;padding:0}.shell,.receipt-actions,#message,.mobile-cart-bar{display:none!important}.overlay{position:static;padding:0;background:none;backdrop-filter:none;display:block}.receipt-panel{border:0;max-height:none;overflow:visible;width:100%;max-width:100%;padding:0}.public-receipt{margin:0;padding:0;max-width:100%}.receipt table{width:100%}.receipt strong{color:#000}.receipt header{border:0}}

/* Keep long commerce names and section headings inside their own containers. */
h1,h2,h3,.brand,.breadcrumb,.line-name strong{overflow-wrap:anywhere;line-height:1.3}
.workspace>header{height:auto;min-height:104px;gap:16px;flex-wrap:wrap;flex-shrink:0}
.workspace>header>div:first-child{flex:1 1 180px;min-width:0}
.workspace>header h1{font-size:clamp(20px,1.8vw,25px);margin-top:6px}
.header-actions{flex-wrap:wrap;max-width:100%;flex-shrink:0}
.section-head{min-width:0;flex-wrap:wrap}
.section-head>div,.section-head h2{min-width:0}
.brand{min-width:0;font-size:clamp(19px,1.65vw,25px);letter-spacing:-.5px;flex-shrink:0}
.brand>span:last-child{min-width:0;flex:1}
.brand-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:clamp(16px,1.4vw,22px);line-height:1.25}
.brand-symbol,.avatar{flex-shrink:0}
.software-origin{min-width:0;overflow-wrap:anywhere}
.price-preview{display:grid;gap:10px;padding:16px;background:#faf5f7;border:1px solid var(--line);border-radius:10px;margin:16px 0}
.price-preview>button{justify-self:start;color:var(--wine);border-color:#caa4b3;min-height:44px}
.price-preview-result{display:block;white-space:pre-line;overflow-wrap:anywhere;font-size:15px;line-height:1.7;font-weight:600;color:#215f49}
.price-preview-result[hidden]{display:none}
.price-preview-result.invalid{color:#a63e51}.price-preview-result.pending{color:#8d6a34;font-size:13px}
.price-preview .muted{margin:0}
@media(max-width:900px){footer{flex-wrap:wrap;gap:6px}footer .software-origin{max-width:100%;text-align:left}}
.sidebar-bottom>div{min-width:0;overflow-wrap:anywhere}
.sidebar-bottom button{flex-shrink:0}
@media screen and (min-width:901px){
 .shell{height:100vh;height:100dvh;min-height:0;overflow:hidden}
 .sidebar{height:100%;min-height:0;position:relative;overflow:hidden}
 .sidebar .brand,.sidebar .nav-label,.sidebar-bottom{flex-shrink:0}
 .sidebar .nav-label{margin-top:26px}
 .sidebar nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;overscroll-behavior-y:contain;scrollbar-width:thin;padding:3px 4px 10px 3px}
 .sidebar nav button{min-width:0;overflow-wrap:anywhere}
 .sidebar nav button span{flex-shrink:0}
 .sidebar-bottom{margin-top:12px;padding-top:14px}
 .workspace{height:100%;min-height:0;overflow:hidden}
 .workspace>main{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .workspace>footer{flex-shrink:0;gap:12px;flex-wrap:wrap}
}
@media screen and (max-width:900px){
 .workspace>header{min-height:87px;padding:16px;gap:10px}
 .workspace>header>div:first-child{flex-basis:140px}
 .header-actions{gap:6px}
 .sidebar nav{overscroll-behavior-x:contain;scrollbar-width:thin}
}
