/* Commerce navigation and Mini App checkout UI. Existing Apple/IPA styles untouched. */
.commerce-tabs{display:flex;gap:8px;margin:24px 0;overflow-x:auto;scrollbar-width:none;padding:4px 0}
.commerce-tabs button{flex:none;min-height:46px;border:1px solid var(--line,#343941);border-radius:14px;background:var(--surface,#171a1f);color:var(--muted,#b3bdca);font-size:14px;font-weight:620;padding:10px 20px;transition:background .15s,color .15s}
.commerce-tabs button[aria-current="page"]{background:var(--green,#b9f6ce);color:#122d20;border-color:transparent}
.commerce-tabs button:focus-visible,.commerce-hub button:focus-visible,.commerce-hub a:focus-visible{outline:2px solid var(--accent,#77e5a2);outline-offset:3px}
.commerce-hub{padding:8px 0 40px;padding-bottom:max(40px,env(safe-area-inset-bottom));color:var(--tg-theme-text-color,var(--white,#f4f5f7));}
.commerce-hub[hidden],.commerce-panel[hidden]{display:none!important}
.commerce-panel h2{font-size:clamp(27px,5vw,36px);font-weight:700;letter-spacing:-1px;margin:3px 0 10px}
.commerce-lead{color:var(--tg-theme-hint-color,var(--muted,#a0a6af));margin:0 0 20px;font-size:15px}
.commerce-status{min-height:26px;font-size:14px;color:var(--accent,#77e5a2);margin:0 0 10px}
.commerce-status.commerce-error{color:#f49e9e}
.commerce-list{display:grid;gap:12px}
.commerce-category{font-weight:650;font-size:16px;margin:20px 0 4px;color:var(--tg-theme-text-color,var(--white,#f4f5f7))}
.commerce-card{padding:20px;border:1px solid var(--tg-theme-section-separator-color,var(--line,#30353c));border-radius:18px;background:var(--tg-theme-secondary-bg-color,var(--surface,#15181d));min-width:0}
.commerce-card h4{font-size:18px;font-weight:650;margin:0 0 7px;line-height:1.35;overflow-wrap:anywhere}
.commerce-card p{line-height:1.55;overflow-wrap:anywhere}
.commerce-description{color:var(--tg-theme-hint-color,var(--muted,#a0a6af));font-size:14px;margin:0 0 16px;white-space:pre-line}
.commerce-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.commerce-price{font-size:18px;font-weight:680;white-space:nowrap;font-variant-numeric:tabular-nums}
.commerce-primary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:0;border-radius:12px;padding:11px 17px;background:var(--tg-theme-button-color,var(--green,#b9f6ce));color:var(--tg-theme-button-text-color,#143322);font-size:14px;font-weight:700;text-decoration:none;cursor:pointer}
.commerce-primary:visited{color:var(--tg-theme-button-text-color,#143322)}
.commerce-primary:hover{filter:brightness(1.06)}
.commerce-secondary{border:1px solid var(--tg-theme-hint-color,#69717b);border-radius:11px;background:transparent;color:var(--tg-theme-text-color,#eaecef);font-size:13px;padding:10px 13px;min-height:43px}
.commerce-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.commerce-empty{padding:26px 18px;color:var(--tg-theme-hint-color,var(--muted,#a0a6af));text-align:center;border:1px dashed var(--tg-theme-section-separator-color,var(--line,#30353c));border-radius:18px;font-size:15px;line-height:1.6}
.commerce-paid{font-weight:550;color:var(--accent,#77e5a2);font-size:13px}
.commerce-checkout:not(:empty){border:1px solid var(--tg-theme-section-separator-color,var(--line,#30353c));border-radius:16px;padding:18px;background:var(--tg-theme-secondary-bg-color,var(--surface,#15181d));margin-top:18px}
.commerce-checkout p{color:var(--tg-theme-text-color,#f4f5f7);font-size:14px;line-height:1.6}
.commerce-hub[aria-busy=true] .commerce-primary{opacity:.65;pointer-events:none}
@media(max-width:600px){
  .commerce-tabs{margin:16px 0;gap:6px}
  .commerce-tabs button{min-height:43px;padding:9px 13px;font-size:13px}
  .commerce-card{padding:16px}
  .commerce-price{font-size:16px}
  .commerce-row{align-items:stretch}
  .commerce-row .commerce-primary{flex:1}
}
