/* 2CORNER v0.15.0-RC1.1 — Accessibility & Navigation Polish
   Customer app only. Keeps layout stable while improving legibility and in-app navigation. */

/* Global readability baseline */
.app-shell{font-size:17px}
.app-shell p,
.app-shell li,
.app-shell label,
.app-shell input,
.app-shell textarea,
.app-shell select,
.app-shell button{font-size:16px}
.app-shell small{font-size:13px;line-height:1.55}

/* Headings and hierarchy */
.app-shell h1{font-size:30px;line-height:1.28}
.app-shell h2{font-size:24px;line-height:1.32}
.app-shell h3{font-size:19px;line-height:1.35}
.app-shell .section-head h2,
.app-shell .menu-v2-head h2{font-size:23px}
.app-shell .section-head p,
.app-shell .menu-v2-head p{font-size:14px;line-height:1.55}

/* Top bar: larger brand and a real visible back control */
.topbar{
  min-height:78px;
  height:auto;
  padding:13px 16px 11px;
  display:grid;
  grid-template-columns:76px minmax(0,1fr) 76px;
  align-items:center;
  gap:6px;
}
.topbar .title{font-size:20px;line-height:1.25}
.topbar .sub{font-size:12px;line-height:1.4;margin-top:2px}
.logo-top{height:46px;max-width:178px;width:auto}
.topbar>.icon-btn{justify-self:start}
.topbar>.icon-btn[data-action="search"]{justify-self:end}
.topbar .icon-btn{min-width:44px;min-height:44px}
.topbar .icon-btn svg{width:24px;height:24px}
.topbar .icon-btn[data-action="back"]{
  width:76px;
  min-width:76px;
  padding:0 8px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  border-radius:14px;
  font-weight:900;
  color:var(--green);
}
.topbar .icon-btn[data-action="back"]::after{
  content:"رجوع";
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}

/* Product detail back button: make it unmistakable without covering the hero */
.product-hero .floating-back{
  width:auto;
  min-width:76px;
  height:46px;
  padding:0 12px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.product-hero .floating-back::after{
  content:"رجوع";
  font-size:14px;
  font-weight:900;
}
.product-hero .floating-back svg{width:22px;height:22px}

/* Main navigation and common controls */
.nav-btn span{font-size:13px;line-height:1.2;font-weight:800}
.primary,.secondary,.secondary-link,.text-link,.contact-btn{font-size:16px}
.option-title{font-size:16px}
.detail-title h1{font-size:30px}
.detail-title .en{font-size:13px}
.detail-desc{font-size:16px;line-height:1.75}
.detail-price{font-size:20px}
.segment{font-size:15px}
.segment small{font-size:12px}
.flavor,.modifier-option,.modifier-select{font-size:15px}
.modifier-head small{font-size:13px}

/* Menu/product cards */
.product-name,.home-product-copy strong{font-size:17px;line-height:1.35}
.product-en,.home-product-copy>small{font-size:12.5px;line-height:1.45}
.product-price,.home-product-price{font-size:16px}
.product-open-cue{font-size:12px}
.category-card strong{font-size:16px}
.category-card small{font-size:12px}
.menu-search-command strong{font-size:17px}
.menu-search-command small,.search-help-line{font-size:13px}
.smart-filter-chip,.search-cat{font-size:14px}

/* Cart / checkout / order tracking readability */
.cart-line-item strong,.cart-item strong,.review-item strong{font-size:16px}
.cart-line-item small,.cart-item small,.review-item small{font-size:13px}
.summary-row,.summary-row span,.summary-row b{font-size:15px}
.total-row,.cart-total,.checkout-total{font-size:18px}
.checkout-section-title strong{font-size:17px}
.checkout-section-title span{font-size:13px}
.checkout-fields label{font-size:14px}
.checkout-fields input,.checkout-fields select,.checkout-fields textarea{font-size:16px}
.mode-btn{font-size:14px}
.mode-title span,.mode-review span{font-size:13px}
.order-summary-clean>header strong{font-size:17px}
.order-summary-clean>header span{font-size:12px}
.order-summary-clean>header>b{font-size:13px}
.order-summary-lines span strong{font-size:15px}
.order-summary-lines span small{font-size:12.5px}
.order-summary-lines em,.order-summary-lines>b{font-size:14px}
.tracking-head-clean>div:first-child>span{font-size:12px}
.tracking-head-clean>div:first-child>small{font-size:13px}
.tracking-state-pill b{font-size:14px}
.tracking-state-pill small{font-size:12px}
.timeline-step strong{font-size:15px}
.timeline-step small{font-size:12.5px}
.tracking-cancelled small{font-size:13px}

/* More / information pages */
.info-card h3{font-size:19px}
.info-card p,.hours,.hours *{font-size:16px;line-height:1.65}
.more-row strong,.more-item strong{font-size:16px}
.more-row small,.more-item small{font-size:13px}

/* Do not let accessibility sizing create horizontal scroll */
.app-shell,.screen,.content{max-width:100%}
.app-shell *{box-sizing:border-box}
input,textarea,select{max-width:100%}

@media(max-width:390px){
  .app-shell{font-size:16.5px}
  .topbar{grid-template-columns:72px minmax(0,1fr) 72px;padding-inline:12px}
  .logo-top{height:44px;max-width:164px}
  .topbar .icon-btn[data-action="back"]{width:72px;min-width:72px;padding-inline:6px}
  .topbar .icon-btn[data-action="back"]::after{font-size:13px}
  .app-shell h1{font-size:28px}
  .app-shell h2{font-size:22px}
  .nav-btn span{font-size:12.5px}
}
