:root{font:16px system-ui,sans-serif;color:#342a2e;background:#fbf7f2;accent-color:#70485b}
*{box-sizing:border-box}
body{margin:0}
header,nav,main{padding:16px clamp(16px,4vw,48px)}
header,nav,.inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
header{background:#70485b;color:white;justify-content:space-between}
header strong{font-family:Georgia,serif;font-size:1.4rem}
.test{background:#f8e6b9;color:#422e13;padding:6px 12px;border-radius:4px}
nav{background:#f2e8ed}
nav a,button{border:1px solid #70485b;border-radius:6px;padding:10px 14px;background:white;color:#573247;font:inherit;cursor:pointer;min-height:44px}
button:disabled{opacity:.55;cursor:default}
main{max-width:1400px;margin:auto}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
[hidden]{display:none!important}
.card{background:#fff;border:1px solid #e3d6dc;border-radius:12px;padding:20px}
h1,h2{font-family:Georgia,serif;margin:0 0 14px;color:#573247}
h2{font-size:1.25rem}
label{display:block;margin-top:10px}
header label{margin:0}
input,select{border:1px solid #9d8994;border-radius:5px;padding:9px;font:inherit;max-width:100%;min-height:44px}
label input:not([type=checkbox]),label select{display:block}
input[type=checkbox]{min-height:0}
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:16px 0}
.line,.tender{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #e3d6dc}
.line strong{flex:1}
.line input{width:85px}
#clear,#checkout,#custom{margin-top:18px}
#charge{background:#70485b;color:white}
#status{position:sticky;bottom:0;background:#fbf7f2;padding:8px}
#status:empty{display:none}
@media(max-width:760px){.workspace{grid-template-columns:1fr}}
@media print{@page{size:letter;margin:.65in}body{background:white}body>header,nav,main>section:not(#receipt),#status,#receipt button{display:none!important}main,#receipt{padding:0;border:0}}
.auth{max-width:520px;margin:5vh auto}
.auth input{width:100%}
.auth button{margin:12px 8px 0 0}
nav button[aria-pressed=true]{background:#70485b;color:white}
.inline form,.field-grid{display:grid;gap:10px}
.field-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
#productEditor{margin-top:24px}
.table-scroll{overflow:auto;margin:14px 0}
table{width:100%;border-collapse:collapse;text-align:left}
td,th{padding:8px;border-bottom:1px solid #e3d6dc;vertical-align:top}
td form input{min-width:90px;width:100%;margin-bottom:5px}
#status{position:static;margin:0}
.status-line{position:sticky;bottom:0;background:#fbf7f2;display:flex;align-items:center;gap:8px}
.status-line button{flex-shrink:0}
header button{margin-left:8px}
header #beta-user{margin-right:6px}
#checkout .tender input[aria-label="Payment amount"]{max-width:120px}
#receipt{margin-top:12px}
@media print{#beta-app>header,#beta-app>nav,.status-line{display:none!important}main{margin:0;max-width:none}}
.auth input[type=checkbox]{width:auto}
@media(max-width:760px){header,nav,main{padding:12px 16px}.card{padding:16px}.inline button{min-height:44px}}
.quick-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#cartJump{display:none;color:#573247;border:1px solid #70485b;border-radius:6px;padding:10px 14px;min-height:44px}
#customOptions summary{cursor:pointer;padding:10px 0}
#customOptions form{margin-top:0}
.quantity-controls{display:flex;align-items:center;gap:4px}
.quantity-controls input{width:65px;text-align:center}
.quantity-controls button{padding:6px 8px;min-width:44px}
@media(max-width:760px){#cartJump{display:block}}
.product-options{display:grid;align-content:start;gap:6px;padding:9px;border:1px solid #ddd2d8;border-radius:8px}
.product-options select{width:100%;min-width:0}
.catalogue-table{min-width:820px;table-layout:fixed}
.catalogue-table th:first-child{width:28%}
.catalogue-table th:nth-child(3){width:16%}
.catalogue-table th:nth-child(4){width:13%}
.catalogue-table th:last-child:not(:nth-child(7)){width:14%}
.catalogue-table td{overflow-wrap:anywhere;vertical-align:middle}
.catalogue-table td button{max-width:100%}
.catalogue-group-row{background:#faf7f9}
.catalogue-group-row .catalogue-toggle{border:0;background:transparent;text-align:left;font-weight:600;padding:0 4px}
.catalogue-option-row td:first-child{padding-left:24px}
.product-photo{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f8f4f6;border-radius:6px}
.product-photo-button{display:flex;flex-direction:column;gap:8px;text-align:left}
.catalogue-name{display:flex;align-items:center;gap:8px}
.catalogue-thumb{width:44px;height:44px;flex:0 0 44px;object-fit:contain;background:#f8f4f6;border-radius:5px}
.collection-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:14px}
.collection-heading h2{margin:0}
.collection-tiles{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.collection-tile{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:8px;min-height:90px;background:#faf7f9;font-weight:600;text-align:left}
.collection-photo{display:block;width:100%;height:104px;object-fit:cover;border-radius:5px}

.fulfillment-details,.delivery-details{min-width:0;border:1px solid #dfd4d9;border-radius:8px;padding:12px;margin:12px 0}
.fulfillment-details input,.fulfillment-details textarea{width:100%}
.fulfillment-details textarea{resize:vertical}
.order-details-heading{margin-top:24px}

.fulfillment-picker{margin:12px 0;padding:0;border:0;min-width:0}
.fulfillment-picker legend{padding:0;margin-bottom:8px}
.fulfillment-choices{display:flex;flex-wrap:wrap;gap:8px}
.fulfillment-choices label{position:relative;margin:0}
.fulfillment-choices input{position:absolute;width:1px;height:1px;opacity:0}
.fulfillment-choices span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid #75475b;border-radius:8px;color:#573748;background:white;cursor:pointer}
.fulfillment-choices input:checked + span{background:#653d50;color:white;font-weight:700}
.fulfillment-choices input:focus-visible + span{outline:3px solid #291820;outline-offset:2px}
