/* Phase 18.9.5.28.5.8.5.3 — Products sort dropdown, mobile header, offer timer, home rail and footer polish */

/* Products toolbar: global sort beside search, without changing the filter engine. */
.products-searchbar-v66.products-searchbar-sort-v1895285853{
  grid-template-columns:minmax(280px,1fr) minmax(170px,220px) auto!important;
  align-items:center!important;
  gap:10px!important;
}
.products-toolbar-sort-v1895285853{
  height:52px!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:0 12px!important;
  border:1px solid #dbeafe!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#fff,#f8fbff)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)!important;
  color:#64748b!important;
  font-weight:950!important;
}
.products-toolbar-sort-v1895285853 span{
  font-size:12px!important;
  white-space:nowrap!important;
  color:#64748b!important;
}
.products-toolbar-sort-v1895285853 select{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#0f172a!important;
  font-weight:1000!important;
  font-family:inherit!important;
  cursor:pointer!important;
  text-align:right!important;
}
.products-toolbar-sort-v1895285853:focus-within{
  border-color:#93c5fd!important;
  box-shadow:0 0 0 4px rgba(59,130,246,.10)!important;
}
@media(max-width:980px){
  .products-searchbar-v66.products-searchbar-sort-v1895285853{
    grid-template-columns:1fr!important;
  }
  .products-toolbar-sort-v1895285853{
    width:100%!important;
  }
}
@media(max-width:680px){
  .products-page-no-hero-v1895285852 .products-toolbar-v66{
    margin-top:10px!important;
    padding:12px!important;
    border-radius:22px!important;
  }
  .products-searchbar-v66.products-searchbar-sort-v1895285853{
    gap:9px!important;
  }
  .products-searchbar-v66.products-searchbar-sort-v1895285853 input[name="q"]{
    height:48px!important;
    font-size:13px!important;
  }
  .products-toolbar-sort-v1895285853{
    height:48px!important;
    border-radius:16px!important;
  }
  .products-toolbar-sort-v1895285853 select{
    height:38px!important;
    font-size:13px!important;
  }
}

/* Mobile header/category bar: keep navigation usable, not fixed over content, and prevent horizontal page clipping. */
html,body{max-width:100%;overflow-x:hidden;}
@media(max-width:768px){
  .market-header,
  .market-header .main-header,
  .market-header .category-bar{
    position:relative!important;
    top:auto!important;
    z-index:80!important;
    transform:none!important;
  }
  .market-header .category-bar{
    overflow:hidden!important;
    box-shadow:0 10px 26px rgba(15,23,42,.06)!important;
  }
  .market-header .category-nav{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-snap-type:x proximity!important;
    padding:8px 12px!important;
    width:100%!important;
    max-width:100%!important;
    scrollbar-width:none!important;
  }
  .market-header .category-nav::-webkit-scrollbar{display:none!important;}
  .market-header .category-nav>a,
  .market-header .category-nav>.mega-holder>a{
    flex:0 0 auto!important;
    scroll-snap-align:start!important;
    height:38px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 13px!important;
    border-radius:999px!important;
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    color:#0f172a!important;
    font-weight:950!important;
    white-space:nowrap!important;
    box-shadow:0 8px 20px rgba(15,23,42,.05)!important;
  }
  .market-header .mega-holder{position:static!important;flex:0 0 auto!important;}
  .market-header .mega-menu{
    display:none!important;
  }
  .market-header .global-search .smart-search-results-v65{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:122px!important;
    max-height:62vh!important;
    overflow:auto!important;
  }
}

/* Exclusive offers: timer stays inside the card, readable days + live clock. */
body.marketak-responsive-v18952858.view-home .exclusive-timer-v62{
  width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  border-radius:13px!important;
  padding:7px 9px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
body.marketak-responsive-v18952858.view-home .exclusive-timer-v62 span{
  min-width:0!important;
  font-size:11px!important;
  font-weight:1000!important;
  color:#9a3412!important;
  white-space:nowrap!important;
}
body.marketak-responsive-v18952858.view-home .exclusive-timer-v62 b{
  min-width:0!important;
  display:block!important;
  text-align:left!important;
  direction:ltr!important;
  unicode-bidi:plaintext!important;
  font-size:11px!important;
  font-weight:1000!important;
  letter-spacing:-.03em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#be123c!important;
}
body.marketak-responsive-v18952858.view-home .exclusive-timer-v62.has-days-v1895285853 b{
  font-size:10.5px!important;
}
@media(max-width:680px){
  body.marketak-responsive-v18952858.view-home .exclusive-offers-marquee-v62{
    margin-inline:0!important;
    padding-inline:0!important;
    width:100%!important;
  }
  body.marketak-responsive-v18952858.view-home .exclusive-offer-card-v62{
    width:286px!important;
    min-width:286px!important;
    max-width:286px!important;
    grid-template-columns:104px minmax(0,1fr)!important;
  }
  body.marketak-responsive-v18952858.view-home .exclusive-timer-v62{
    grid-template-columns:1fr!important;
    gap:2px!important;
    padding:6px 8px!important;
  }
  body.marketak-responsive-v18952858.view-home .exclusive-timer-v62 span,
  body.marketak-responsive-v18952858.view-home .exclusive-timer-v62 b{
    text-align:center!important;
  }
}

/* Home recommended products: no hidden right edge on mobile; first card starts fully visible. */
body.marketak-responsive-v18952858.view-home .home-commerce-row-v186,
body.marketak-responsive-v18952858.view-home .home-section-builder-item-v1862{
  overflow:hidden!important;
}
body.marketak-responsive-v18952858.view-home .home-wide-container-v1861{
  width:min(100% - 28px,1500px)!important;
  max-width:1500px!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}
body.marketak-responsive-v18952858.view-home .home-product-rail-v186.recommended-v186{
  direction:rtl!important;
  scroll-padding-inline:14px!important;
}
@media(max-width:680px){
  body.marketak-responsive-v18952858.view-home .home-wide-container-v1861{
    width:100%!important;
    max-width:100%!important;
    padding-inline:16px!important;
  }
  body.marketak-responsive-v18952858.view-home .section-head,
  body.marketak-responsive-v18952858.view-home .noonish-head-v186{
    padding-inline:0!important;
    text-align:right!important;
  }
  body.marketak-responsive-v18952858.view-home .home-product-rail-v186.recommended-v186{
    margin-inline:0!important;
    width:100%!important;
    max-width:100%!important;
    border-radius:24px!important;
    padding:14px!important;
    gap:12px!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory!important;
  }
  body.marketak-responsive-v18952858.view-home .home-product-rail-v186.recommended-v186::before,
  body.marketak-responsive-v18952858.view-home .home-product-rail-v186.recommended-v186::after{
    content:""!important;
    flex:0 0 1px!important;
  }
  body.marketak-responsive-v18952858.view-home .home-product-tile-v186{
    flex:0 0 190px!important;
    width:190px!important;
    min-width:190px!important;
    max-width:190px!important;
    scroll-snap-align:start!important;
  }
}

/* Footer: readable paragraph, two clean columns on desktop, one centered column on mobile. */
.footer-v14{
  overflow:hidden!important;
}
.footer-v14 .footer-layout-v14{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr)!important;
  gap:22px!important;
  align-items:stretch!important;
}
.footer-v14 .footer-brand-v14,
.footer-v14 .footer-app-card-v14{
  min-width:0!important;
  overflow:hidden!important;
}
.footer-v14 .footer-brand-v14 p{
  max-width:760px!important;
  margin:16px 0!important;
  color:#dbeafe!important;
  font-size:14px!important;
  line-height:2!important;
  font-weight:800!important;
  text-align:right!important;
  overflow-wrap:break-word!important;
}
.footer-v14 .footer-socials-v14{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:12px!important;
}
.footer-v14 .footer-legal-line{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:18px!important;
}
.footer-v14 .footer-legal-line a{
  white-space:nowrap!important;
}
.footer-v14 .footer-app-card-v14{
  display:grid!important;
  align-content:center!important;
  gap:12px!important;
}
@media(max-width:860px){
  .footer-v14 .footer-layout-v14{
    grid-template-columns:1fr!important;
  }
  .footer-v14 .footer-brand-v14 p{
    max-width:100%!important;
  }
}
@media(max-width:560px){
  .footer-v14{
    text-align:center!important;
  }
  .footer-v14 .footer-brand-v14 .premium-brand{
    justify-content:center!important;
  }
  .footer-v14 .footer-brand-v14 p{
    text-align:center!important;
    font-size:13px!important;
    line-height:1.9!important;
  }
  .footer-v14 .footer-socials-v14,
  .footer-v14 .footer-legal-line{
    justify-content:center!important;
  }
  .footer-v14 .footer-legal-line a{
    flex:0 1 auto!important;
  }
  .footer-v14 .app-badges-full a{
    width:100%!important;
    max-width:320px!important;
    margin-inline:auto!important;
  }
}
