:root{
  --ilp-blue:#2563eb;
  --ilp-ink:#0f172a;
  --ilp-muted:#64748b;
  --ilp-line:#e7edf5;
  --ilp-bg:#ffffff;
}

.site-header{
  position:sticky !important;
  top:0 !important;
  z-index:520 !important;
  background:rgba(255,255,255,.96) !important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--ilp-line) !important;
  box-shadow:0 10px 30px rgba(15,23,42,.06) !important;
}
.site-header .head-inner{
  display:grid !important;
  grid-template-columns:auto minmax(380px,1fr) auto !important;
  align-items:center !important;
  gap:18px !important;
  min-height:76px !important;
  padding:12px 0 !important;
}
.brand{display:flex;align-items:center;min-width:0}
.brand-logo{display:block;height:42px;width:auto;max-width:100%}
.header-search{
  min-height:50px !important;
  background:#f8fafc !important;
  border:1px solid var(--ilp-line) !important;
  border-radius:18px !important;
  padding:5px 6px 5px 14px !important;
  box-shadow:none !important;
}
.header-search>span:first-child{color:#64748b;display:inline-flex;align-items:center;justify-content:center}
.header-search>span:first-child svg{width:20px;height:20px}
.header-search input{
  font-size:15px !important;
  color:var(--ilp-ink) !important;
}
.header-search input::placeholder{color:#7b8798}
.header-search button[type="submit"]{
  min-height:40px !important;
  min-width:76px !important;
  border-radius:14px !important;
  background:var(--ilp-blue) !important;
  color:#fff !important;
  font-weight:800 !important;
  box-shadow:none !important;
}
.search-location-shortcut{display:none !important}
.head-actions{display:flex !important;align-items:center !important;gap:8px !important}
.location-trigger,.top-link,.mobile-menu-trigger,.mobile-account-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
}
.location-trigger{
  min-height:48px;
  padding:0 14px !important;
  border:1px solid var(--ilp-line) !important;
  border-radius:16px !important;
  background:#fff !important;
  color:var(--ilp-ink) !important;
  font-weight:700;
}
.location-trigger strong{display:block;color:var(--ilp-muted);font-size:12px;margin-top:2px}
.top-link{
  min-height:48px;
  padding:0 12px !important;
  border-radius:14px;
  color:#334155 !important;
  font-size:13px !important;
  font-weight:700 !important;
}
.top-link:hover,.location-trigger:hover{background:#f8fafc}
.sell-btn{border-radius:16px !important;min-height:48px !important;padding:0 18px !important;background:var(--ilp-blue) !important;color:#fff !important;font-weight:800 !important}
.mobile-menu-trigger,.mobile-account-trigger{display:none !important}

.category-nav{
  position:sticky !important;
  top:var(--pn-header-height,76px) !important;
  z-index:500 !important;
  background:#fff !important;
  border-bottom:1px solid var(--ilp-line) !important;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
  transition:transform .28s ease,opacity .28s ease;
}
body.nav-hidden .category-nav{transform:translateY(-105%);opacity:0;pointer-events:none}
.nav-inner{
  min-height:54px !important;
  display:flex !important;
  align-items:center !important;
  gap:28px !important;
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:none;
}
.nav-inner::-webkit-scrollbar{display:none}
.nav-inner>a{display:inline-flex !important;align-items:center;gap:8px;padding:0 !important;color:#334155 !important;font-size:14px !important;font-weight:700 !important}
.nav-inner>a:hover{color:var(--ilp-blue) !important}
.nav-category-icon{font-size:19px}
.mobile-location-strip{display:none}

.listing-card .slide-arrow{
  opacity:0 !important;
  pointer-events:none !important;
  transform:translateY(-50%) scale(.92);
  transition:opacity .2s ease,transform .2s ease;
}
@media (hover:hover){
  .listing-card:hover .slide-arrow,
  .listing-card:focus-within .slide-arrow{
    opacity:1 !important;
    pointer-events:auto !important;
    transform:translateY(-50%) scale(1);
  }
}
.listing-card .heart{top:10px !important;right:10px !important}

.footer{background:#f8fafc !important;border-top:1px solid var(--ilp-line) !important}
.footer-grid h3{color:#0f172a !important;font-size:15px}
.footer-grid a,.footer-grid p,.footer-bottom{color:#64748b !important}
.footer-brand .brand-logo{height:38px}

@media (max-width:980px){
  .listing-card .slide-arrow{display:none !important}
  .top-link span,.location-trigger span{display:none}
  .site-header .head-inner{grid-template-columns:auto minmax(0,1fr) auto !important}
}

@media (max-width:760px){
  .microbar{display:none !important}
  .site-header .head-inner{
    grid-template-columns:44px minmax(0,1fr) 44px !important;
    grid-template-areas:
      'menu brand account'
      'search search search' !important;
    gap:10px !important;
    min-height:auto !important;
    padding:10px 0 8px !important;
  }
  .mobile-menu-trigger{
    grid-area:menu;
    display:inline-flex !important;
    height:44px;width:44px;
    border:1px solid var(--ilp-line);
    background:#fff;
    color:#334155;
    border-radius:14px;
  }
  .mobile-account-trigger{
    grid-area:account;
    display:inline-flex !important;
    height:44px;width:44px;
    border:1px solid var(--ilp-line);
    background:#fff;
    color:#334155;
    border-radius:14px;
    justify-self:end;
  }
  .brand{
    grid-area:brand;
    justify-content:center;
    align-self:center;
    overflow:visible;
    max-width:none !important;
  }
  .brand-logo{height:32px}
  .header-search{
    grid-area:search;
    width:100% !important;
    max-width:none !important;
    min-height:46px !important;
    border-radius:16px !important;
    padding:4px 5px 4px 12px !important;
  }
  .header-search button[type="submit"]{min-height:38px !important;min-width:68px !important;border-radius:12px !important}
  .head-actions{display:none !important}
  .mobile-location-strip{
    display:block !important;
    position:sticky;
    top:var(--pn-header-height,96px);
    z-index:515;
    background:#fff;
    border-bottom:1px solid var(--ilp-line);
  }
  .mobile-location-strip button{
    width:100%;
    min-height:44px;
    padding:0 12px;
    display:flex;
    align-items:center;
    gap:8px;
    color:#0f172a;
    background:#fff;
    border:0;
    font-weight:700;
  }
  .mobile-location-strip button svg:last-child{margin-left:auto}
  body.nav-hidden .mobile-location-strip{transform:translateY(-100%);opacity:0;transition:transform .25s ease,opacity .25s ease}
  #mobileCategoryNav{
    position:fixed !important;
    inset:0 auto 0 0;
    width:min(320px,86vw);
    background:#fff;
    z-index:600;
    transform:translateX(-110%);
    transition:transform .28s ease;
    top:0 !important;
    box-shadow:22px 0 42px rgba(15,23,42,.18);
    border-right:1px solid var(--ilp-line);
  }
  #mobileCategoryNav.mobile-open{transform:translateX(0)}
  #mobileCategoryNav .nav-inner{
    display:flex !important;
    flex-direction:column;
    align-items:stretch !important;
    gap:4px !important;
    padding:88px 16px 18px;
    min-height:100vh !important;
    overflow:auto;
  }
  #mobileCategoryNav .nav-inner a{
    justify-content:flex-start;
    width:100%;
    min-height:44px;
    padding:0 10px !important;
    border-radius:12px;
    background:#f8fafc;
  }
  .mobile-menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    backdrop-filter:blur(2px);
    z-index:590;
  }
  .footer{display:none !important}
  .bottom-navigation{
    position:fixed !important;
    left:12px;
    right:12px;
    bottom:10px;
    width:auto !important;
    display:flex !important;
    align-items:flex-end;
    justify-content:space-between;
    gap:4px;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.95) !important;
    backdrop-filter:blur(16px);
    border:1px solid rgba(226,232,240,.92);
    border-radius:24px;
    box-shadow:0 16px 36px rgba(15,23,42,.14);
  }
  .bottom-navigation a{
    min-width:0;
    flex:1 1 0;
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:#94a3b8 !important;
    font-size:11px !important;
    font-weight:700 !important;
    text-decoration:none;
  }
  .bottom-navigation a svg{width:22px;height:22px;stroke-width:1.9}
  .bottom-navigation a.current{color:var(--ilp-blue) !important}
  .bottom-navigation .mobile-sell{flex:0 0 64px;position:relative;top:-14px}
  .bottom-navigation .mobile-sell>span{
    width:54px;height:54px;
    display:grid;place-items:center;
    border-radius:18px !important;
    background:linear-gradient(135deg,#22d3ee,#2563eb) !important;
    box-shadow:0 14px 28px rgba(37,99,235,.28) !important;
    color:#fff;
  }
  .bottom-navigation .mobile-sell svg{width:26px;height:26px}
  .bottom-navigation .mobile-sell small{font-size:11px;color:#2563eb;font-weight:800}
  .main-wrap{padding-bottom:94px !important}
}
