/* 2CORNER v0.15.0-RC1.2 — User App UX Polish
   Customer app only. Visual polish on top of RC1.1; no API/data changes. */

:root{
  --ux-space-1:6px;
  --ux-space-2:10px;
  --ux-space-3:14px;
  --ux-space-4:18px;
  --ux-space-5:24px;
}

/* ---------- Global rhythm / typography hierarchy ---------- */
.app-shell .content{padding-inline:18px}
.app-shell .content>section,.app-shell .content>div{scroll-margin-top:92px}
.app-shell p{line-height:1.7}
.app-shell small{line-height:1.45}
.app-shell .muted,.app-shell [class*="sub"],.app-shell [class*="meta"]{letter-spacing:0}

/* Larger brand without making header taller */
.logo-top{height:52px!important;max-width:198px!important}
.topbar{min-height:76px!important;padding-block:10px!important}
.topbar .title{font-size:21px!important}
.topbar .sub{font-size:12.5px!important}

/* ---------- Floating zones: waiter + live order + bottom nav ---------- */
.current-order-bar{
  width:min(calc(100% - 28px),500px)!important;
  min-height:58px;
  padding:9px 12px!important;
  bottom:calc(var(--nav-h,80px) + 12px + env(safe-area-inset-bottom))!important;
  grid-template-columns:9px minmax(0,1fr) auto!important;
  gap:9px!important;
}
.current-order-bar strong{font-size:14px!important;line-height:1.15}
.current-order-bar small{font-size:11px!important;line-height:1.35}
.current-order-bar>b{font-size:11px!important;padding:9px 12px!important;border-radius:11px!important}
.waiter-float:not(.on-splash){
  width:58px!important;height:58px!important;border-radius:18px!important;
  right:16px!important;
  bottom:calc(var(--nav-h,80px) + 18px + env(safe-area-inset-bottom))!important;
}
body.current-order-visible .waiter-float:not(.on-splash){
  bottom:calc(var(--nav-h,80px) + 86px + env(safe-area-inset-bottom))!important;
}
body.current-order-visible.cart-action-visible .waiter-float:not(.on-splash){
  bottom:calc(var(--nav-h,80px) + 102px + env(safe-area-inset-bottom))!important;
}
body.no-bottom-nav.current-order-visible .current-order-bar{bottom:18px!important}
body.no-bottom-nav.current-order-visible .waiter-float:not(.on-splash){bottom:88px!important}

/* ---------- Home ---------- */
.home-v2-content{padding-top:6px!important}
.home-search-command{min-height:62px!important;margin-bottom:18px}
.home-section,.home-v2-content .section-head{margin-top:18px}
.home-product-card-v2{min-height:0}
.home-product-copy strong{line-height:1.28}

/* ---------- Menu ---------- */
.menu-v2-head{margin-bottom:10px}
.menu-search-command{min-height:62px!important}
.menu-smart-filters{gap:7px!important;margin-block:9px 14px!important;overflow-x:auto;scrollbar-width:none}
.menu-smart-filters::-webkit-scrollbar{display:none}
.smart-filter-chip{min-height:42px!important;padding:9px 14px!important;white-space:nowrap}
.menu-category-shell{margin-bottom:10px!important}
.menu-category-shell.is-compact .menu-category-btn.visual-category{height:42px!important;min-height:42px!important}
.product-card{padding:13px!important;gap:11px!important}
.product-card .product-thumb,.product-card .product-image{width:92px!important;height:92px!important;flex:0 0 92px!important}
.product-card .product-desc{line-height:1.55!important;margin-top:4px!important}
.product-card .quick-add-btn,.product-card .product-add{min-height:42px!important;padding:9px 14px!important}

/* ---------- Product detail ---------- */
.product-detail,.product-sheet,.product-info{padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}
.detail-title{gap:6px}
.detail-title h1{font-size:29px!important}
.detail-desc{margin-block:12px 18px!important;line-height:1.65!important}
.product-detail .segment,.product-sheet .segment{min-height:70px!important}
.favorite-recipe-save,.save-usual-choice,[data-action="save-favorite-recipe"]{min-height:48px!important;padding:10px 14px!important;font-size:15px!important}
.product-detail .qty,.product-sheet .qty{min-height:54px}

/* ---------- Cart / checkout ---------- */
.cart-list{margin-top:10px}
.cart-line-item{padding-block:13px!important;min-height:0!important}
.cart-line-item .cart-line-image{width:76px!important;height:76px!important}
.cart-line-item strong{line-height:1.3}
.cart-line-item [data-edit-options]{margin-top:3px!important}
.order-mode-card{padding:13px!important;margin-bottom:12px!important}
.mode-options{gap:7px!important}
.mode-btn{min-height:46px!important}
.note{min-height:96px!important}
.summary{padding:13px!important}
.checkout-page .content,.checkout-content{gap:12px!important}
.checkout-section,.checkout-card{padding:14px!important}

/* ---------- Tracking: same information, less vertical repetition ---------- */
.tracking-clean{padding:14px 18px 34px!important}
.tracking-head-clean{padding:14px 15px!important;margin-top:5px!important}
.tracking-head-clean>div:first-child>strong{font-size:25px!important}
.tracking-state-pill{padding:8px 10px!important;min-width:108px!important}
.order-timeline-v3{padding:11px 13px!important;margin:10px 0!important}
.timeline-step{min-height:52px!important;grid-template-columns:34px 1fr!important;gap:8px!important}
.timeline-step i{width:32px!important;height:32px!important}
.timeline-step:not(:last-child):after{right:16px!important;top:38px!important;height:30px!important}
.tracking-edit-window{padding:13px!important;margin-block:10px!important}
.tracking-live-card.clean{padding:8px 10px!important;margin:8px 0!important;min-height:0!important}
.tracking-live-card.clean small{font-size:11px!important}
.order-summary-clean{padding:12px!important;margin:10px 0!important}
.order-summary-lines>div{padding:7px 0!important}
.tracking-bottom-actions{margin-top:8px!important}

/* ---------- More ---------- */
.more-hero{min-height:180px!important;margin-bottom:14px!important;border-radius:0 0 26px 26px!important}
.more-hero .copy{padding:22px!important}
.more-hero .copy h2{font-size:24px!important;margin-bottom:6px!important}
.more-hero .copy p{font-size:15px!important;line-height:1.6!important}
.menu-list{border-radius:20px!important;overflow:hidden}
.menu-row{min-height:72px!important;padding:11px 14px!important}
.menu-row .row-icon{width:42px!important;height:42px!important;border-radius:13px!important}
.menu-row strong{font-size:16px!important}
.menu-row small{font-size:12px!important;margin-top:2px!important}
.staff-app-section{margin-top:12px!important;border-top:1px solid rgba(18,54,38,.10);padding-top:28px;position:relative}
.staff-app-section::before{content:"للموظفين";position:absolute;top:7px;right:14px;font-size:11px;font-weight:900;color:var(--muted)}

/* ---------- Favorites / empty states ---------- */
.favorites-v2 .empty{padding:70px 18px 30px!important}
.favorites-v2 .empty .bubble{width:82px!important;height:82px!important;border-radius:26px!important}
.favorites-empty-cta{margin:18px auto 0;min-width:180px;min-height:48px;border:0;border-radius:15px;background:var(--green);color:#fff;font-weight:900;padding:10px 20px}

/* ---------- Order history ---------- */
.customer-memory-page{padding-top:10px!important}
.memory-intro{padding:13px!important;margin-bottom:12px!important}
.memory-history-tabs{margin-bottom:10px!important}
.memory-section-head{margin-bottom:8px!important;align-items:center!important}
.memory-head-actions{gap:6px!important}
.memory-head-actions .text-link{font-size:13px!important;padding:6px 4px!important}
.memory-bulk-bar{position:static!important;margin-bottom:10px!important;padding:8px!important;gap:6px!important}
.memory-bulk-bar button{font-size:11px!important;padding:8px 10px!important}
.memory-orders{gap:9px!important}
.memory-order-card{padding:12px!important;border-radius:17px!important}
.memory-order-items{margin:9px 0!important;gap:5px!important}
.memory-order-items span{font-size:11px!important;padding:5px 8px!important}
.memory-order-bottom{padding-top:8px!important}
.memory-order-actions{display:flex;gap:6px;flex-wrap:wrap}
.memory-order-bottom button{font-size:11.5px!important;padding:8px 10px!important}

/* ---------- Account ---------- */
.memory-profile-card{padding:16px!important;border-radius:22px!important}
.memory-stats{margin:10px 0 12px!important}
.memory-stats div{padding:10px 7px!important}
.memory-orders-shortcut{padding:11px!important}

/* ---------- Secondary pages ---------- */
.info-card{padding:16px!important;border-radius:20px!important}
.hours-card-v145 .hour-row{padding-block:10px!important}
.hours-card-v145 .hours{margin-top:8px!important}
.hours-cta{min-height:52px!important;margin-top:10px!important}
.waiter-page{padding-top:14px!important}
.waiter-hero{margin-bottom:14px!important}
.waiter-hero .waiter-icon{width:68px!important;height:68px!important;border-radius:20px!important}
.waiter-hero h1{margin-top:12px!important}
.table-card{padding:13px!important;margin-bottom:10px!important}
.waiter-reasons{gap:8px!important}
.waiter-reason{min-height:46px!important;padding:9px 12px!important}
.waiter-note{min-height:92px!important}
.waiter-send{min-height:54px!important}

/* About / location: preserve readability, reduce unused height */
.about-page .info-card,.location-page .info-card{margin-bottom:12px!important}
.location-page .location-hero,.location-hero{min-height:250px!important}

/* Bottom nav: readable, not oversized */
.nav{min-height:78px!important}
.nav-btn{padding-block:8px!important}
.nav-btn svg{width:22px!important;height:22px!important}
.nav-btn span{font-size:12.5px!important}

@media(max-width:390px){
  .app-shell .content{padding-inline:14px}
  .logo-top{height:49px!important;max-width:185px!important}
  .current-order-bar{width:calc(100% - 18px)!important}
  .current-order-bar strong{font-size:13px!important}
  .current-order-bar small{font-size:10.5px!important}
  .product-card .product-thumb,.product-card .product-image{width:84px!important;height:84px!important;flex-basis:84px!important}
  .menu-row{min-height:68px!important}
  .tracking-head-clean{gap:9px!important}
  .tracking-state-pill{width:100%!important}
}
