/* EvHazir mobile interface refinement
   Loaded after page styles so every surface shares the same touch targets. */

.mobile-nav-backdrop{display:none}

@media (max-width:1000px){
  :root{--mobile-header-height:68px;--mobile-edge:16px}
  html{scroll-padding-top:calc(var(--mobile-header-height) + 16px)}
  body.mobile-menu-open{overflow:hidden;touch-action:none}
  .announce-bar,.utility-bar{display:none!important}
  .header{position:sticky!important;top:0!important;z-index:1001!important;height:var(--mobile-header-height)!important;min-height:var(--mobile-header-height)!important;background:rgba(255,255,255,.98);border-bottom:1px solid #ece8f5;box-shadow:0 8px 28px rgba(32,24,57,.08);backdrop-filter:blur(14px)}
  .header .nav{height:100%!important;min-height:0!important;padding-inline:var(--mobile-edge)!important;gap:12px!important;justify-content:space-between}
  .header .catalog-button,.header .header-search,.header .nav__links,.header .header-quote-cta{display:none!important}
  .header .brand{width:124px!important;max-width:38vw;flex:0 0 auto}
  .header .brand img{display:block;width:100%!important;height:auto!important;max-height:50px!important;object-fit:contain}

  .menu-button{position:relative;display:grid!important;width:48px!important;height:48px!important;min-width:48px;border:1px solid #ded8ec!important;border-radius:15px!important;background:#fff!important;place-content:center;gap:5px!important;box-shadow:0 6px 18px rgba(43,31,70,.09);transition:background .2s ease,border-color .2s ease,transform .2s ease}
  .menu-button:active{transform:scale(.96)}
  .menu-button span{display:block!important;width:21px!important;height:2px!important;border-radius:2px;background:#1d1728!important;transition:transform .22s ease,opacity .16s ease,width .22s ease}
  .menu-button[aria-expanded="true"]{background:#6f36f4!important;border-color:#6f36f4!important}
  .menu-button[aria-expanded="true"] span{background:#fff!important}
  .menu-button[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-button[aria-expanded="true"] span:nth-child(2){opacity:0;width:0!important}
  .menu-button[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .mobile-nav-backdrop{position:fixed;z-index:999;inset:var(--mobile-header-height) 0 0;border:0;background:rgba(22,16,34,.42);backdrop-filter:blur(3px)}
  .mobile-nav-backdrop:not([hidden]){display:block}
  .mobile-nav{position:fixed!important;z-index:1000!important;top:var(--mobile-header-height)!important;right:0!important;bottom:0!important;left:auto!important;width:min(430px,100%)!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;background:#f8f6fc!important;padding:18px var(--mobile-edge) max(28px,env(safe-area-inset-bottom))!important;box-shadow:-20px 28px 60px rgba(24,17,37,.18)!important;grid-template-columns:1fr!important;align-content:start;gap:0!important;border:0!important;animation:mobile-nav-in .22s ease both}
  .mobile-nav.is-open{display:block!important}
  .mobile-nav[hidden]{display:none!important}
  @keyframes mobile-nav-in{from{opacity:.5;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}

  .mobile-nav__top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 2px 16px}
  .mobile-nav__top>div{display:grid;gap:3px;min-width:0}
  .mobile-nav__top small,.mobile-nav__section>small{color:#6f36f4;font-size:10px;font-weight:900;letter-spacing:.14em}
  .mobile-nav__top strong{overflow:hidden;color:#241d31;font-size:16px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
  .mobile-nav__avatar{display:grid;width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:#eee7ff;color:#6532dc;font-size:16px;font-weight:900;place-items:center}
  .mobile-nav a{border:0!important;text-decoration:none}
  .mobile-nav__cta{display:grid!important;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;width:100%;min-height:58px!important;margin:0 0 20px;padding:10px 14px!important;border-radius:17px!important;background:linear-gradient(135deg,#6b37ee,#8d4bf8)!important;color:#fff!important;box-shadow:0 12px 28px rgba(111,54,244,.25);font-size:15px!important}
  .mobile-nav__cta span{display:grid;width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.16);font-size:21px;place-items:center}
  .mobile-nav__cta b{font-size:15px}.mobile-nav__cta i{font-size:20px;font-style:normal}
  .mobile-nav__section{display:block;margin-top:18px}
  .mobile-nav__section>small{display:block;margin:0 4px 9px}
  .mobile-nav__grid{overflow:hidden;border:1px solid #e5dfef;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(36,28,54,.05)}
  .mobile-nav__grid>a{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:56px!important;padding:8px 13px!important;border-bottom:1px solid #eee9f4!important;color:#2a2335!important;font-size:14px!important;font-weight:700!important;line-height:1.2}
  .mobile-nav__grid>a:last-child{border-bottom:0!important}
  .mobile-nav__grid>a>span{display:grid;width:36px;height:36px;border-radius:12px;background:#f3effb;color:#6937e3;font-size:17px;place-items:center}
  .mobile-nav__grid>a>b{min-width:0;font:inherit}
  .mobile-nav__grid>a>i{color:#8a8198;font-size:23px;font-style:normal;font-weight:400}
  .mobile-nav__grid>a>em{border-radius:999px;background:#f0e9ff;color:#6431db;padding:5px 8px;font-size:10px;font-style:normal;font-weight:900;white-space:nowrap}
  .mobile-nav__grid>a.is-featured{background:#fbf9ff;color:#6030d7!important}
  .mobile-nav a:focus-visible{outline:3px solid #cbb8ff!important;outline-offset:-3px}
  .mobile-nav__account{margin-top:20px}
  .mobile-nav__logout{margin:14px 0 0!important}
  .mobile-nav__logout button{width:100%;min-height:50px;border:1px solid #e1dbe9!important;border-radius:15px!important;background:#fff!important;color:#4b4356!important;font-size:14px!important;font-weight:800!important}
  .mobile-nav__support{margin:20px 4px 0;color:#726a7d;font-size:12px;line-height:1.5;text-align:center}
  .mobile-nav__support a{color:#6030d7!important;font-weight:800!important;text-decoration:underline!important;text-underline-offset:3px}

  button,input,select,textarea{font-size:16px}
  .button,.market-btn,.quote-nav button,.quote-nav .button,.lead-form>button,.login-pane form>button,.subscription-card a,.subscription-card button{min-height:48px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;line-height:1.2;text-align:center}
  .hero__actions,.footer__actions,.detail-actions,.market-actions,.quote-nav,.dashboard-actions,.panel-actions,.auth-actions{gap:10px!important}
  .hero__actions>*{min-height:50px}
  .consent-banner{right:12px!important;bottom:12px!important;left:12px!important;width:auto!important;max-width:none!important;padding:18px!important;border-radius:18px!important}
  .consent-banner>div:last-child{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .consent-banner[hidden]{display:none!important}
  .consent-banner .button{width:100%;min-width:0;min-height:48px!important;padding-inline:10px}

  .quote-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px!important;margin:24px 0!important}
  .quote-steps>div{display:grid!important;grid-template-columns:25px minmax(0,1fr);align-items:center!important;gap:6px!important;min-width:0}
  .quote-steps>div:not(:last-child):after{display:none!important}
  .quote-steps span{width:auto!important;font-size:9px!important;line-height:1.2!important;word-break:normal!important;overflow-wrap:normal!important}
  .quote-form .quote-next{width:100%!important;margin-top:20px!important}
}

@media (max-width:640px){
  :root{--mobile-edge:14px}
  .container{width:min(100% - 28px,1180px)!important}
  .hero__actions,.footer__actions,.detail-actions,.market-actions,.dashboard-actions,.panel-actions,.auth-actions{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .hero__actions>a,.footer__actions>a,.detail-actions>a,.detail-actions>button,.market-actions>a,.market-actions>button,.dashboard-actions>a,.dashboard-actions>button,.panel-actions>a,.panel-actions>button,.auth-actions>a,.auth-actions>button{width:100%!important;min-width:0!important}
  .quote-nav{display:grid!important;grid-template-columns:1fr 1.4fr!important;width:100%;align-items:stretch}
  .quote-nav>*{width:100%!important;min-width:0!important;margin:0!important}
  .product-grid{grid-template-columns:1fr!important;gap:16px!important}
  .product-card{min-width:0}
  .product-card__actions,.firm-card__actions,.showcase-card__actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .product-card__actions>* ,.firm-card__actions>* ,.showcase-card__actions>*{width:100%!important;min-width:0!important;min-height:46px!important;padding:10px!important}
  .filters,.filter-row,.category-filter{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;flex-wrap:nowrap!important;padding-bottom:4px}
  .filters::-webkit-scrollbar,.filter-row::-webkit-scrollbar,.category-filter::-webkit-scrollbar{display:none}
  .filters button,.filter-row button,.category-filter button{flex:0 0 auto;min-height:44px}
  .lead-form{grid-template-columns:1fr!important}
  .lead-form label,.lead-form>button,.lead-form>small{grid-column:1!important}
  .footer__intro{gap:22px!important}
  .footer__actions .footer__dealer{min-height:48px;border:1px solid rgba(255,255,255,.2);border-radius:13px;justify-content:center;padding:12px 16px}
  .login-modal__card{width:calc(100% - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:20px!important}
  .login-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:6px}
  .login-tabs button{min-height:46px;padding:9px 8px!important}
}

@media (max-width:380px){
  .header .brand{width:112px!important}
  .mobile-nav{padding-inline:12px!important}
  .mobile-nav__grid>a{padding-inline:10px!important}
  .quote-nav{grid-template-columns:1fr!important}
  .product-card__actions,.firm-card__actions,.showcase-card__actions{grid-template-columns:1fr!important}
}

@media (prefers-reduced-motion:reduce){
  .mobile-nav{animation:none!important}
  .menu-button,.menu-button span{transition:none!important}
}
