@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&display=swap');
:root{--paper:#f9f5ed;--ink:#292d23;--muted:#6e6b60;--red:#b73c25;--red-dark:#92301d;--cream:#efe7d6;--line:#ded8ca;--green:#426043;--white:#fffdf8;--radius:22px;--font:'Golos Text',sans-serif}*{box-sizing:border-box}body{margin:0;background:#e9e3d8;color:var(--ink);font:15px/1.5 var(--font);-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--green);outline-offset:3px}::selection{background:var(--red);color:var(--white)}input{caret-color:var(--red)}.app{max-width:480px;min-height:100dvh;margin:auto;background:var(--paper);position:relative;padding-bottom:90px}header{display:flex;justify-content:space-between;align-items:center;padding:22px 22px 14px;min-height:80px}.brand{font-size:28px;letter-spacing:-1.3px;font-weight:900;display:flex;align-items:center;gap:8px}.brand svg{color:var(--red);width:28px;height:36px}.location{font-size:11px;text-align:right;color:var(--muted)}.location b{font-size:13px;display:block;color:var(--ink)}main{padding:0 22px;outline:none!important}h1,h2,h3,p{margin:0}h1{font-size:31px;line-height:1.12;letter-spacing:-1.1px;font-weight:800;text-wrap:balance}h2{font-size:22px;line-height:1.2;letter-spacing:-.6px;font-weight:800}h3{font-size:16px;line-height:1.25;font-weight:700}.muted{color:var(--muted)}.small{font-size:12px}.hero{display:flex;background:var(--red);color:var(--white);border-radius:var(--radius);min-height:176px;padding:21px 17px;position:relative;overflow:hidden;align-items:center}.hero h2{font-size:27px;max-width:185px;line-height:1.06;margin-bottom:11px}.hero p{font-size:11px;color:#ffe6d8;max-width:160px}.hero img{width:145px;height:145px;border-radius:50%;position:absolute;right:-23px;transform:rotate(-13deg);box-shadow:0 9px 20px #6d1d2140}.hero .text-link{font-size:12px;font-weight:700;margin-top:14px;padding:0;min-height:32px;color:var(--white)}.chips{display:flex;gap:8px;overflow:auto;margin:24px -22px 23px;padding:0 22px 4px;scrollbar-width:none}.chip{white-space:nowrap;padding:12px 17px;border-radius:30px;background:var(--cream);font-size:12px;font-weight:600;min-height:44px}.chip.active{background:var(--ink);color:var(--white)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}.section-title span{font-size:12px;color:var(--muted)}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 13px}.food{min-width:0}.food-photo{height:153px;background:var(--cream);border-radius:20px;position:relative;width:100%;display:grid;place-items:center;margin-bottom:10px}.food-photo img{width:128px;height:128px;border-radius:50%;mix-blend-mode:multiply}.food-photo .badge{position:absolute;top:10px;left:10px;font-size:9px;background:var(--white);padding:3px 7px;border-radius:8px;font-weight:700}.food h3{min-height:40px;font-size:14px;line-height:1.3}.food .weight{font-size:11px;color:var(--muted);margin:3px 0 8px}.price-row{display:flex;justify-content:space-between;align-items:center;font-weight:700}.add{width:44px;height:44px;background:var(--white);border-radius:14px;color:var(--red);display:grid;place-items:center}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.title-button{text-align:left;padding:0;width:100%}.back{display:flex;gap:8px;align-items:center;padding:0;min-height:44px;color:var(--muted);font-size:12px;margin-bottom:13px}.lead{margin:12px 0 24px;color:var(--muted);font-size:14px}.detail-photo{background:var(--cream);border-radius:28px;height:277px;display:grid;place-items:center;margin:0 0 23px}.detail-photo img{width:238px;height:238px;border-radius:50%;mix-blend-mode:multiply}.detail-meta{display:flex;align-items:center;justify-content:space-between;margin:12px 0 23px;font-size:13px}.detail-meta b{font-size:24px}.description{color:var(--muted);font-size:14px;margin:12px 0 24px}.note{padding:16px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.primary{background:var(--red);color:var(--white);border-radius:17px;padding:16px 20px;min-height:56px;width:100%;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:14px;gap:12px}.primary:hover{background:var(--red-dark)}.primary:active{transform:translateY(1px)}.secondary{border:1px solid var(--line);padding:14px;border-radius:15px;width:100%;min-height:50px;margin-top:10px;font-weight:600}.primary:disabled{background:var(--line);color:var(--muted);cursor:default}.action-bar{position:fixed;bottom:77px;width:min(100%,480px);left:50%;transform:translateX(-50%);padding:12px 22px;background:var(--paper);border-top:1px solid var(--line);z-index:4}.has-actions{padding-bottom:92px}footer{color:var(--muted);text-align:center;font-size:10px;padding:26px 10px 14px}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);height:77px;display:flex;padding:7px 10px max(9px,env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--line);z-index:5}nav button{flex:1;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;color:var(--muted);font-size:9px;position:relative;min-height:48px}nav button.active{color:var(--red);font-weight:700}.count{position:absolute;top:0;left:55%;background:var(--red);color:var(--white);font-size:9px;min-width:17px;height:17px;border-radius:50%;display:grid;place-items:center}.builder-summary{display:flex;align-items:center;gap:15px;background:var(--cream);border-radius:20px;padding:14px;margin-bottom:24px}.builder-summary img{width:73px;height:73px;border-radius:50%;mix-blend-mode:multiply}.builder-summary b{display:block;font-size:16px}.builder-summary p{font-size:11px;color:var(--muted);margin-top:4px}.step{margin-top:26px}.step h2{font-size:19px;margin-bottom:12px}.step h2 span{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.options{display:flex;gap:8px}.choice{position:relative;flex:1;border:1px solid var(--line);border-radius:15px;padding:12px;display:flex;gap:8px;align-items:center;font-size:12px;min-height:53px;background:var(--white);cursor:pointer}.choice:has(input:checked){border-color:var(--red);background:#f8e9de}.choice input{accent-color:var(--red);width:17px;height:17px;flex-shrink:0}.choice small{display:block;color:var(--muted);font-size:10px}.option-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px;min-height:53px;cursor:pointer}.option-row input{width:20px;height:20px;accent-color:var(--red)}.option-row span{flex:1}.option-row small{color:var(--muted);font-size:10px;display:block}.option-row b{font-size:12px;font-weight:600;white-space:nowrap}.builder-live{font-variant-numeric:tabular-nums}.cart-row{padding:19px 0;border-bottom:1px solid var(--line);display:flex;gap:13px}.cart-row img{width:77px;height:77px;border-radius:50%;mix-blend-mode:multiply}.cart-info{flex:1;min-width:0}.cart-info p{font-size:11px;color:var(--muted);margin:5px 0 12px}.cart-bottom{display:flex;align-items:center;justify-content:space-between}.quantity{display:flex;align-items:center;gap:4px;background:var(--cream);border-radius:12px}.quantity button{width:40px;height:40px;display:grid;place-items:center}.quantity b{font-size:12px;min-width:12px;text-align:center}.receipt{margin:25px 0}.receipt p{display:flex;justify-content:space-between;margin:12px 0;font-size:13px}.receipt .total{font-size:21px;font-weight:800;border-top:1px solid var(--line);padding-top:18px}.loyalty-tip{background:var(--cream);padding:16px;border-radius:16px;font-size:12px;display:flex;gap:12px;align-items:center}.loyalty-tip .icon{color:var(--red);flex-shrink:0}.empty{padding:40px 0;text-align:center}.empty .icon{width:60px;height:60px;color:var(--red);margin-bottom:20px}.empty h2{margin-bottom:12px}.empty p{margin-bottom:24px;color:var(--muted)}form{margin-top:24px}fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}legend{font-size:18px;font-weight:700;margin-bottom:12px}.field{display:block;font-size:12px;margin:15px 0}.field input,.field select{margin-top:8px;width:100%;min-height:54px;border:1px solid var(--line);background:var(--white);border-radius:14px;padding:14px;color:var(--ink)}input::placeholder{color:var(--muted)}.error{color:var(--red);font-size:12px;margin:12px 0}.safe-note{font-size:11px;color:var(--muted);margin-top:13px;text-align:center}.success{padding:24px 0;text-align:center}.success-mark{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#e2e9d8;color:var(--green);margin:6px auto 24px}.success-mark svg{width:40px;height:40px}.success h1{margin-bottom:14px}.success p{color:var(--muted);font-size:13px}.ticket{background:var(--white);border:1px solid var(--line);border-radius:24px;padding:25px 22px;margin:25px 0;text-align:center}.ticket .number{font-size:78px;font-weight:800;letter-spacing:-5px;line-height:1.2;margin:7px 0}.ticket h2{font-size:18px}.ticket p{font-size:12px;color:var(--muted)}.ticket-bottom{border-top:1px dashed var(--line);margin-top:22px;padding-top:18px;display:flex;justify-content:space-between;font-size:12px}.status-label{display:flex;align-items:center;gap:8px;color:var(--green);font-size:13px;font-weight:600}.status-label:before{content:'';width:7px;height:7px;background:var(--green);border-radius:50%}.timeline{display:flex;justify-content:space-between;margin:20px 0 28px;gap:9px}.timeline span{border-top:4px solid var(--line);padding-top:8px;flex:1;font-size:10px;color:var(--muted)}.timeline span.done{border-color:var(--green);color:var(--green)}.loyalty-card{background:var(--green);color:var(--white);padding:25px;border-radius:24px;margin:25px 0}.loyalty-card h2{font-size:26px;line-height:1.12;max-width:260px}.loyalty-card p{font-size:12px;margin-top:12px;color:#e2eadb}.stamps{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:25px 0}.stamp{aspect-ratio:1;border:1px dashed #bdcdb5;border-radius:50%;display:grid;place-items:center;font-size:14px}.stamp.filled{background:var(--white);color:var(--green);border:0}.stamp svg{width:23px;height:23px}.loyalty-progress{display:flex;justify-content:space-between;font-size:12px}.plain-list p{padding:17px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.plain-list b{display:block;color:var(--ink);margin-bottom:4px}#toast{position:fixed;bottom:165px;left:50%;transform:translate(-50%,10px);background:var(--ink);color:var(--white);padding:12px 19px;border-radius:15px;font-size:12px;z-index:10;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s;white-space:nowrap}#toast.show{opacity:1;transform:translate(-50%,0)}.placeholder{display:grid;place-items:center;text-align:center;color:var(--muted);width:100%;height:100%;padding:20px}.placeholder svg{width:48px;height:48px}.placeholder small{font-size:10px;display:block}.loading{padding:30px 0;color:var(--muted)}@media(min-width:700px){.app{margin:28px auto;min-height:calc(100dvh - 56px);border-radius:30px 30px 0 0;box-shadow:0 12px 50px #292d2310}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.cart-row>.placeholder{width:77px;height:77px;flex-shrink:0;background:var(--cream);border-radius:16px;padding:8px;display:flex;flex-direction:column;justify-content:center}.cart-row>.placeholder svg{width:27px;height:27px}.cart-row>.placeholder small{font-size:8px}
/* Client revision 22.10: preserve the existing app and its navigation. */
header{padding:10px 22px 16px;gap:10px;min-height:158px}
.brand{width:194px;height:130px;padding:0;position:relative;overflow:hidden;flex-shrink:0}
.brand img{position:absolute;width:230px;height:163px;max-width:none;left:-19px;top:-20px}
.location{max-width:120px;font-size:11px}.location b{font-size:12px}
.hero{min-height:256px;padding:24px 20px;background:#9d2928;align-items:flex-start}
.hero>div{position:relative;z-index:1;width:100%}
.hero h2{font-size:36px;line-height:1.05;max-width:240px;letter-spacing:-1px;margin-bottom:14px}
.hero p{font-size:15px;line-height:1.45;max-width:210px;color:#fffdf8}
.hero img{width:128px;height:128px;right:-31px;bottom:16px;box-shadow:none;transform:rotate(-13deg)}
.hero-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;background:var(--white);color:#8c2322;font-size:14px;font-weight:700;padding:12px 16px;border-radius:12px;margin-top:20px}
.hero-cta:hover{background:var(--cream)}.hero-cta:active{transform:translateY(1px)}
.base-step{background:var(--cream);padding:20px 16px;border-radius:20px;margin-top:20px}
.base-step h2{font-size:23px;line-height:1.2;letter-spacing:-.5px;max-width:290px}
.base-step>p{font-size:14px;margin-top:10px}.base-step h3{font-size:15px;margin:20px 0 10px}
.base-step .choice{padding:10px 8px;font-size:12px}.base-step .choice small{font-size:11px}
.ingredient-photo{display:block;flex-shrink:0;object-fit:cover;object-position:center;aspect-ratio:1;border-radius:12px;width:128px;height:128px}
.option-row{gap:9px;padding:12px 0;min-height:88px}.option-row .ingredient-photo{flex:0 0 54px;width:54px;height:54px;border-radius:10px}.option-row input{flex-shrink:0;margin:0}.option-row>span:not(.ingredient-photo){flex:1;min-width:0;font-size:13px;line-height:1.35}.option-row b{font-size:12px;white-space:nowrap;margin-left:auto;flex-shrink:0}.option-row:has(input:checked){background:#f5e7de}
.cart-row>.ingredient-photo{width:77px;height:77px;border-radius:16px}.detail-photo>.ingredient-photo{width:220px;height:220px}
.address-field{margin-top:18px}.gift-discount{color:var(--green);font-weight:600}
#loyalty-form{margin-bottom:24px}#loyalty-form .small{margin-top:12px}.loyalty-card{margin-top:24px}
.receipt,.builder-live,.price-row,.loyalty-progress{font-variant-numeric:tabular-nums}
button:disabled{cursor:default}.choice:focus-within,.option-row:focus-within{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:360px){header{padding-left:16px;padding-right:16px;gap:5px}.brand{width:175px}.brand img{width:210px;height:149px;top:-14px}.location{font-size:10px}.location b{font-size:11px}.option-row{gap:6px}.option-row .ingredient-photo{flex-basis:43px;width:43px;height:43px}.hero h2{font-size:32px}}

/* Keep ingredient images square across menu, product, builder and cart. */
.food-photo .ingredient-photo,.detail-photo .ingredient-photo,.cart-row .ingredient-photo{object-fit:cover;border-radius:12px;mix-blend-mode:normal;flex-shrink:0}
.delivery-fields{margin-top:18px}.delivery-fields>.small{margin-top:16px}.field input,.field select{font-size:16px}.ticket p{overflow-wrap:anywhere}

/* v4: portion counters share the cart quantity affordance. */
.topping-row{cursor:default;flex-wrap:wrap;gap:10px}
.topping-row.selected{background:#f5e7de}
.topping-row>.ingredient-photo{flex:0 0 44px;width:44px;height:44px}
.topping-row>span{flex:1;min-width:100px}
.topping-row .quantity{margin-left:auto;flex-shrink:0;gap:0}
.topping-row .quantity button{width:44px;height:44px}
.topping-row .quantity b{min-width:20px}
.quantity button:disabled{opacity:.35}
.topping-heading{margin-top:22px}
.cart-toppings{border-bottom:1px solid var(--line);padding:12px 0}
.cart-toppings summary{min-height:44px;cursor:pointer;color:var(--red-dark);font-size:14px;font-weight:700;padding:12px 0}
.cart-toppings summary:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.delivery-coverage{margin-top:24px}.delivery-coverage h2{font-size:19px}
.delivery-coverage p{font-size:13px;margin:10px 0 16px}
.delivery-map{display:block;width:100%;height:300px;border:1px solid var(--line);border-radius:16px;background:var(--cream)}
.delivery-coverage a{display:inline-block;font-size:12px;margin-top:10px;min-height:44px;padding-top:10px;color:var(--red-dark)}
/* v6: solid red from the supplied brand guide, RGB 155 / 40 / 39. */
.loyalty-card{background:#9b2827;color:#fffdf8;padding:24px}
.loyalty-card p,.loyalty-card h2{color:#fffdf8}
.stamp{background:#9b2827;border:1px dashed #fffdf8;color:#fffdf8}
.stamp.filled{background:#fffdf8;border:1px solid #fffdf8;color:#9b2827}
.loyalty-progress{gap:12px;color:#fffdf8;flex-wrap:wrap}

/* Uniform card tracks keep weights, prices and actions aligned at mobile widths. */
.grid-aligned{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
.grid-aligned .food{display:flex;flex-direction:column}
.grid-aligned .food-photo{flex-shrink:0}
.grid-aligned .title-button{flex:1}
.grid-aligned h3{min-height:3.9em}
.grid-aligned .price-row{min-height:44px;gap:8px}
.grid-aligned .add{flex-shrink:0}
.food-photo img{max-width:100%}
.food-photo .drink-photo,.detail-photo .drink-photo,.cart-row .drink-photo{object-fit:contain;border-radius:12px;mix-blend-mode:normal}
.topping-row>.placeholder{flex:0 0 44px;width:44px;height:44px;padding:4px;background:var(--cream);border-radius:10px}
.topping-row>.placeholder svg{width:26px;height:26px}
.topping-row>.placeholder small{display:none}

/* Checkout errors appear after validation and clear as the field is edited. */
#checkout-form input[aria-invalid="true"]{border-color:var(--red);outline:2px solid var(--red);outline-offset:2px}

/* v7: allow the full pickup address to wrap inside the existing header. */
.location{flex:1;min-width:0;overflow-wrap:anywhere}
.location b{line-height:1.4}

/* v8: each wrap has its own composition; card controls fit narrow columns. */
.food:has(.menu-extras) .price-row{flex-wrap:wrap;gap:6px}
.menu-quantity{gap:0;max-width:100%}
.menu-quantity button{width:44px;height:44px}
.menu-quantity b{min-width:22px;text-align:center}
.menu-extras{display:block;width:100%;min-height:44px;margin-top:6px;border:1px solid var(--line);border-radius:12px;color:var(--red-dark);font-size:13px;font-weight:700}
.topping-targets .secondary{text-align:left;overflow-wrap:anywhere}
.topping-targets small{display:block;color:var(--muted);font-weight:400;margin-top:4px}
.order-composition{margin:24px 0;text-align:left}
.order-composition h2{font-size:19px;margin-bottom:12px}
.order-composition pre{font:inherit;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.cart-info{min-width:0;overflow-wrap:anywhere}

.order-note{overflow-wrap:anywhere;margin:15px 0;font-size:13px}
