/* Flight Factory mobile-only upgrade. Desktop remains unchanged. */
@media (max-width: 767px) {
 html,body{max-width:100%;overflow-x:hidden}
 body{padding-bottom:66px}
 .site-header{position:sticky;top:0;z-index:100;border-bottom:1px solid #a91920;box-shadow:0 5px 22px #000a}
 .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;padding:8px 13px 10px!important;max-width:100%}
 .topbar>.logo,.topbar>a.logo{width:170px!important;max-width:100%;height:auto!important;max-height:63px!important;object-fit:contain;object-position:left center}
 .topbar .logo img{width:170px!important;height:auto!important;max-height:63px!important}
 .header-links{grid-column:2!important;grid-row:1!important;display:flex!important;width:auto!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:0!important}
 .header-links>span{display:none!important}
 .header-links .basket-link{display:flex!important;align-items:center;gap:5px;background:#191919;border:1px solid #4b2628;border-radius:9px;padding:10px 9px;color:#fff!important;font-size:12px;text-decoration:none;white-space:nowrap}
 .header-links i{font-size:12px;min-width:20px;text-align:center}
 .search{grid-column:1/-1!important;grid-row:2!important;order:unset!important;flex-basis:auto!important;width:100%;max-width:none;margin:0!important}
 .search input{min-width:0;border-radius:8px 0 0 8px;background:#f1f1f1;font-size:14px;padding:12px}
 .search button{border-radius:0 8px 8px 0;min-width:48px}
 .ff-mobile-menu{display:flex!important;align-items:center;justify-content:space-between;width:100%;background:#101010;color:#fff;border:0;border-top:1px solid #292929;padding:11px 17px;font-size:13px;font-weight:800;letter-spacing:1.1px;cursor:pointer}
 .ff-mobile-menu .ff-chevron{font-size:17px;color:#ef3139}
 .site-header nav{display:none!important;position:static!important;overflow:visible!important;white-space:normal!important;width:100%!important;max-height:55vh;overflow-y:auto!important;background:#101010;padding:6px 14px 13px!important;flex-direction:column!important;gap:0!important}
 .site-header.ff-menu-open nav{display:flex!important}
 .site-header nav a{display:block!important;width:100%;padding:12px 9px!important;border-bottom:1px solid #292929!important;color:#eee!important;font-size:13px!important}
 .site-header nav a.active{color:#ff3c42!important;border-left:3px solid #ed1c24!important}
 .hero{min-height:310px!important;background-position:60% center!important;align-items:flex-end!important}
 .hero-copy{padding:34px 18px!important;width:100%;background:linear-gradient(0deg,#050505f2,transparent)}
 .hero h1{font-size:clamp(31px,9vw,46px)!important;line-height:1.05}
 .hero h2{font-size:17px!important}.hero-copy>p:first-child{font-size:14px!important}
 .buttons{gap:9px!important;flex-wrap:wrap}.btn{padding:12px 13px!important;font-size:12px!important;border-radius:5px}
 .features{grid-template-columns:repeat(2,minmax(0,1fr))!important}.features div{padding:12px 6px!important;font-size:19px}.features b{font-size:10px!important}
 .categories{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;padding:13px!important}
 .categories article{min-width:0;padding:10px!important;border-radius:8px;overflow:hidden}.categories .cat-art{height:88px!important}
 .categories .cat-art img{height:100%!important;width:100%!important;object-fit:cover!important}
 .categories h3{font-size:12px!important;min-height:30px}.categories a{font-size:11px!important}
 .promo-grid{grid-template-columns:1fr!important;padding:8px 13px!important;gap:10px!important}.promo{min-height:0!important;padding:19px!important;border-radius:8px;gap:12px;overflow:hidden}.promo h2{font-size:21px!important}
 .products{padding:14px 12px!important}.section-title{gap:10px}.section-title h2{font-size:20px!important}
 .product-grid,#products .product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .product-grid article,#products .product-grid article{min-width:0!important;padding:10px!important;border-radius:8px!important}
 .product-grid h3{font-size:12px!important;line-height:1.35}.product-grid button{min-height:40px;border-radius:5px}
 #products .product-grid .product-img{height:135px!important}.product-img img{max-width:100%;object-fit:contain}
 .catalogue,.product-page,.basket-page,.checkout-page{padding:18px 12px 38px!important;max-width:100%!important}
 .catalog-head{flex-wrap:wrap!important;align-items:flex-start!important;gap:12px!important}.catalog-head h1{font-size:28px!important}
 .catalog-layout{display:block!important}.filters{width:100%!important;max-width:none!important;margin-bottom:15px!important}
 .catalog-grid,.catalog-products,.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .product-wrap{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;padding:12px!important}
 .product-visual{min-height:260px!important;max-height:360px!important}.product-visual img{max-height:320px!important}
 .basket-layout,.checkout-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 .basket-page h1,.checkout-page h1{font-size:27px!important;margin-bottom:18px!important}
 .basket-row{grid-template-columns:minmax(0,1fr) auto!important;min-width:0!important;padding:13px!important}
 .basket-product{min-width:0!important;grid-column:1/-1!important}.basket-product-info{min-width:0!important}
 .basket-summary,.checkout-card,.order-card{width:100%!important;min-width:0!important;padding:17px!important}
 .form-grid{grid-template-columns:minmax(0,1fr)!important}
 input,select,textarea{max-width:100%}input,select{min-height:40px}
 footer{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;padding:25px 14px 85px!important}
 .used{margin:14px!important;padding:23px 17px!important;border-radius:8px}
 .ff-mobile-bottom{position:fixed;bottom:0;left:0;right:0;z-index:101;display:grid!important;grid-template-columns:repeat(4,1fr);background:#0c0c0ef7;border-top:1px solid #a72b31;box-shadow:0 -5px 22px #0009;padding-bottom:env(safe-area-inset-bottom,0px)}
 .ff-mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:9px 3px;color:#ddd!important;text-decoration:none;font-size:10px;font-weight:bold}
 .ff-mobile-bottom a span:first-child{font-size:21px}.ff-mobile-bottom a[aria-current=page]{color:#ff434a!important}
}
@media (min-width: 768px){.ff-mobile-menu,.ff-mobile-bottom{display:none!important}}

/* Final mobile polish: opaque navigation and safe-area clearance. */
@media (max-width: 767px) {
  .ff-mobile-bottom { background: #080808 !important; opacity: 1 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }
  .basket-page, .checkout-page { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important; }
  .back-basket { display: block; margin-bottom: 14px; }
}


/* FF_MOBILE_ACCOUNT_BUTTON_V1 */
@media (max-width:767px) {

  .header-links > a[aria-label="My Flight Factory account"] {
    display:flex !important;
    align-items:center;
    justify-content:center;
    padding:10px 9px;
    background:#191919;
    border:1px solid #4b2628;
    border-radius:9px;
    color:#fff !important;
    text-decoration:none !important;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    min-width:0;
  }

  .header-links > a[aria-label="My Flight Factory account"] span {
    display:inline !important;
    color:inherit !important;
  }

  .header-links {
    gap:5px !important;
  }

  @media (max-width:380px) {
    .topbar > .logo,
    .topbar > a.logo,
    .topbar .logo img {
      width:125px !important;
    }

    .header-links > a[aria-label="My Flight Factory account"],
    .header-links .basket-link {
      padding:8px 6px !important;
      font-size:11px !important;
    }
  }
}
