/* Customer design system v2: editorial, compact, and shared across customer journeys. */
:root{
  --customer-max:860px;
  --customer-header-height:72px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --radius-control:4px;
  --radius-card:8px;
}

/* Shared customer header */
.customer-header{height:var(--customer-header-height);background:#fffffff7;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.customer-header-inner{height:100%;display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px}
.customer-header-with-back{grid-template-columns:1fr auto 1fr}
.customer-logo{display:flex;width:max-content;align-items:center}
.customer-logo img{display:block;width:190px;max-height:50px;object-fit:contain;object-position:left center}
.customer-header-with-back .customer-logo{justify-self:center}
.customer-header-with-back>span:last-child,.customer-header-with-back>.quiet-link{justify-self:end}
.customer-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.customer-header .profile-button{width:42px;height:42px;border-color:#cfcac1}
.customer-header .cart-button{min-height:42px;padding:6px 8px 6px 12px;gap:8px;border-radius:999px}
.customer-header .cart-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.customer-header .cart-button b{width:25px;height:25px}
.customer-header .back-link{display:inline-flex;align-items:center;gap:5px;width:max-content;font-size:12px}
.customer-header .back-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-header .quiet-link{font-size:12px;font-weight:700}

/* Editorial menu */
.menu-page{padding:24px 0 64px}
.menu-page>.wide{width:min(var(--customer-max),calc(100% - 40px))}
.menu-hero{height:228px;padding:30px 34px;background:linear-gradient(#0b0b0b08,#151c198f),radial-gradient(circle at 75% 15%,#967b62,#4f4339 36%,#242421 76%)}
.menu-hero small{font-size:10px;font-weight:600;letter-spacing:.17em}
.menu-hero h1{margin-top:7px;font-size:44px}
.restaurant-intro{min-height:76px;padding:19px 22px;gap:24px;border-inline:1px solid var(--line);background:#fff}
.restaurant-intro>p{max-width:520px;margin:0;color:var(--muted);font-size:12px}
.restaurant-intro .hours{display:flex;align-items:center;gap:8px;white-space:nowrap}
.restaurant-intro .hours b{font-size:11px}
.restaurant-intro .hours span{font-size:10px}
.category-tabs{top:var(--customer-header-height);border-color:var(--line);box-shadow:none}
.category-tabs button{min-height:50px;font-size:13px}
.category-tabs button.active{box-shadow:inset 0 -2px var(--green)}
.menu-content{border-inline:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-heading{padding:22px 20px 10px;background:#fff}
.section-heading h2{font-size:27px}
.menu-list{display:block;padding:0 20px 18px}
.menu-item{min-height:0;padding:21px 0;align-items:center;gap:24px}
.item-copy{min-width:0}
.item-copy h3{font-size:15px;line-height:1.35}
.item-copy p{max-width:560px;margin:5px 0 9px;font-size:11px;line-height:1.45}
.item-copy strong{font-size:12px}
.item-action{flex:0 0 auto;justify-content:center}
.item-action button{min-width:108px;min-height:40px;border-radius:var(--radius-control);transition:background .18s,transform .18s}
.item-action button:hover{background:var(--green-dark);transform:translateY(-1px)}
.food-placeholder{display:none}

/* Compact legal and contact footer */
.customer-footer{border-top:1px solid #d6d1c8;background:#eee9e0}
.customer-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:118px;padding-block:24px}
.customer-footer-brand{display:grid;gap:8px}
.customer-footer-brand img{display:block;width:170px;height:auto}
.customer-footer-brand p{margin:0;color:var(--muted);font-size:10px}
.customer-footer nav{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;color:#56534d;font-size:10px}
.customer-footer nav a{padding-block:4px;border-bottom:1px solid transparent}
.customer-footer nav a:hover{border-color:currentColor}

/* Flatter surfaces across checkout, tracking and account */
.checkout-page{padding-top:42px}
.checkout-title{max-width:720px}
.checkout-title h1{font-size:clamp(34px,5vw,48px)}
.checkout-mode-bar,.checkout-card,.order-summary,.mobile-order-summary,.tracking-card,.profile-modal{border-radius:var(--radius-card);box-shadow:none}
.checkout-mode-bar{margin-top:22px}
.checkout-grid{gap:18px}
.checkout-card,.order-summary{border-color:#d8d3ca}
.tracking-page{padding-top:44px;padding-bottom:72px}
.tracking-card{border-color:#d8d3ca}
.profile-menu>*,.profile-menu a,.profile-menu button{border-radius:0}
.profile-menu a,.profile-menu button{grid-template-columns:24px minmax(0,1fr) auto;gap:12px}
.profile-menu>*>span{width:24px;height:24px;border:0;border-radius:0;background:transparent}
.profile-legal-links{display:flex;justify-content:center;gap:14px;margin-top:18px;color:var(--muted);font-size:10px}
.profile-legal-links a{text-decoration:underline;text-underline-offset:3px}

/* Landing legal links join its existing footer rather than occupying the top. */
.site-footer .footer-legal{display:flex;gap:14px;align-items:center;justify-content:flex-end;font-size:10px;color:#c8d1ce}
.site-footer .footer-legal a{border-bottom:1px solid #798b86}

@media(max-width:820px){
  .customer-header-inner{width:calc(100% - 28px)}
  .customer-logo img{width:155px;max-height:44px}
  .menu-page{padding-top:16px}
  .menu-page>.wide{width:calc(100% - 28px)}
  .menu-hero{height:190px;padding:24px}
  .menu-hero h1{font-size:38px}
  .restaurant-intro{width:calc(100% - 28px);padding:17px 18px}
  .category-tabs,.menu-content{width:calc(100% - 28px)}
  .customer-footer-inner{width:calc(100% - 32px)}
}

@media(max-width:560px){
  :root{--customer-header-height:66px}
  .customer-header-inner{gap:10px}
  .customer-logo img{width:128px;max-height:38px}
  .customer-header .profile-button{width:40px;height:40px}
  .customer-header .cart-button{width:44px;height:40px;justify-content:center;padding:0}
  .customer-header .cart-button .cart-label{display:none}
  .customer-header .cart-button b{position:absolute;margin:-29px 0 0 29px;width:18px;height:18px;border:2px solid #fff;font-size:9px}
  .customer-header-with-back{grid-template-columns:70px 1fr 70px}
  .customer-header-with-back .customer-logo{justify-self:center}
  .customer-header-with-back .customer-logo img{width:118px}
  .customer-header .back-link span{display:none}
  .customer-header .quiet-link{font-size:10px;text-align:right}
  .menu-page{padding-top:12px;padding-bottom:42px}
  .menu-page>.wide{width:calc(100% - 24px)}
  .menu-hero{height:174px;padding:22px 20px}
  .menu-hero h1{font-size:34px}
  .restaurant-intro{min-height:66px;width:calc(100% - 24px);padding:14px 16px}
  .restaurant-intro>p{font-size:11px}
  .restaurant-intro .hours{display:none}
  .category-tabs,.menu-content{width:calc(100% - 24px)}
  .category-tabs button{min-height:48px;font-size:12px}
  .section-heading{padding:19px 16px 7px}
  .section-heading h2{font-size:25px}
  .menu-list{padding:0 16px 12px}
  .menu-item{padding:18px 0;gap:14px}
  .item-copy h3{font-size:14px}
  .item-copy p{margin-block:4px 8px}
  .item-action button{min-width:94px;min-height:38px;padding-inline:11px;font-size:10px}
  .customer-footer-inner{display:grid;min-height:0;padding:24px 0}
  .customer-footer-brand img{width:150px}
  .customer-footer nav{justify-content:flex-start;gap:10px 14px}
  .checkout-page{padding-top:26px}
  .checkout-mode-bar{margin-top:16px}
  .tracking-page{padding-top:24px}
}

@media(prefers-reduced-motion:reduce){.item-action button{transition:none}}

/* Landing brand and legal placement */
.landing-logo{display:block;width:max-content}
.landing-logo img{display:block;width:230px;height:auto}
.footer-brand img{display:block;width:210px;filter:brightness(0) invert(1);opacity:.92}
.site-footer .footer-grid>div:last-child{display:grid;gap:16px;justify-items:end}
.customer-header .cart-button{position:relative}
@media(max-width:560px){.landing-logo img{width:190px}.footer-brand img{width:175px}.site-footer .footer-grid>div:last-child{justify-items:start}.site-footer .footer-legal{justify-content:flex-start;flex-wrap:wrap}}

/* Consolidated SVG icon set. Masks normalize heterogeneous source files. */
.ui-icon{display:inline-block;flex:0 0 auto;width:1em;height:1em;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.icon-bag{--icon:url("/static/images/icons/bag.svg")}
.icon-user{--icon:url("/static/images/icons/user.svg")}
.icon-back-circle{--icon:url("/static/images/icons/back-circle.svg")}
.icon-close{--icon:url("/static/images/icons/close.svg")}
.icon-close-circle{--icon:url("/static/images/icons/close-circle.svg")}
.icon-plus{--icon:url("/static/images/icons/plus.svg")}
.icon-minus{--icon:url("/static/images/icons/minus.svg")}
.icon-trash{--icon:url("/static/images/icons/trash.svg")}
.icon-search{--icon:url("/static/images/icons/search.svg")}
.icon-calendar{--icon:url("/static/images/icons/calendar.svg")}
.icon-pickup{--icon:url("/static/images/icons/pickup-package.svg")}
.icon-delivery{--icon:url("/static/images/icons/delivery-bike.svg")}
.icon-check{--icon:url("/static/images/icons/check-circle.svg")}
.icon-alert{--icon:url("/static/images/icons/alert-triangle.svg")}
.icon-edit{--icon:url("/static/images/icons/edit.svg")}
.icon-logout{--icon:url("/static/images/icons/logout.svg")}
.icon-chevron-right{--icon:url("/static/images/icons/chevron-right.svg")}
.icon-chevron-right-circle{--icon:url("/static/images/icons/chevron-right-circle.svg")}
.icon-chevron-down{--icon:url("/static/images/icons/chevron-down-circle.svg")}
.icon-filter{--icon:url("/static/images/icons/filter.svg")}
.icon-filter-remove{--icon:url("/static/images/icons/filter-remove.svg")}
.icon-profile-person{--icon:url("/static/images/icons/profile-person.svg")}
.icon-order-history{--icon:url("/static/images/icons/order-history.svg")}
.icon-settings{--icon:url("/static/images/icons/settings.svg")}
.icon-power-off{--icon:url("/static/images/icons/power-off.svg")}
.customer-header .icon-bag{display:inline-block;width:17px;height:21px}
.customer-header .icon-user{width:21px;height:21px}
.customer-header .icon-back-circle{width:22px;height:22px}
.quantity .icon-plus,.quantity .icon-minus{width:15px;height:15px}
.quantity .icon-trash{width:16px;height:16px}
.checkout-mode-switch .choice{grid-auto-flow:column;gap:7px}
.checkout-mode-switch .ui-icon{width:16px;height:16px}
.schedule-label-with-icon{display:flex;align-items:center;gap:6px}
.schedule-label-with-icon .ui-icon{width:14px;height:14px}
.order-search .icon-search{width:14px;height:14px}
.edit-order-link{display:inline-flex;align-items:center;gap:5px}
.edit-order-link .ui-icon{width:13px;height:13px}
.profile-menu .ui-icon{width:17px;height:17px}
.profile-menu>*>i.ui-icon{width:18px;height:18px;font-size:inherit}
.modal-close{display:grid;place-items:center;background:transparent;font-size:0}
.modal-close::before{content:"";display:block;width:18px;height:18px;background:currentColor;-webkit-mask:url("/static/images/icons/close.svg") center/contain no-repeat;mask:url("/static/images/icons/close.svg") center/contain no-repeat}
