/* Stable full-site layout: loaded last. */
*,*::before,*::after{box-sizing:border-box}
html{overflow-x:hidden}
body{margin:0;min-width:320px;overflow-x:hidden}
.container{width:min(100% - 40px,1180px)!important;max-width:1180px!important;margin-inline:auto!important;padding-inline:0!important}
.site-header,.site-main,.site-footer,.marketplace-hero-section{width:100%;max-width:none}

/* Header */
.compact-site-header{position:sticky;top:0;z-index:999;background:#fff}
.compact-site-header .compact-header-row{width:min(100% - 40px,1540px)!important;max-width:1540px!important;margin-inline:auto!important}
.compact-header-row{display:grid!important;grid-template-columns:180px minmax(0,1fr) auto;align-items:center!important;gap:20px!important;min-height:76px}
.header-logo-wrap{min-width:0!important;width:180px!important;max-width:180px!important;overflow:hidden!important}
.header-logo-wrap .custom-logo-link{display:flex!important;align-items:center!important;width:100%!important;max-width:180px!important;overflow:hidden!important}
.header-logo-wrap img,.header-logo-wrap .custom-logo{display:block;width:auto!important;max-width:170px!important;height:auto!important;max-height:52px!important}
.compact-primary-nav{min-width:0!important;overflow:visible!important}
.compact-header-menu{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:4px!important;margin:0!important;padding:0!important;min-width:0!important}
.compact-header-menu>li{flex:0 0 auto!important;position:relative!important}
.compact-header-menu>li>a,.profile-toggle{font-size:13px!important;padding:9px 9px!important;white-space:nowrap!important}
.compact-post-button{white-space:nowrap!important}
.compact-profile-item{position:relative!important}
.compact-header-menu .compact-profile-dropdown{position:absolute!important;top:100%!important;right:0!important;left:auto!important;display:none!important;grid-template-columns:1fr!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;width:250px!important;min-width:250px!important;max-width:250px!important;margin:0!important;padding:8px!important;z-index:2500!important}
.compact-header-menu .compact-profile-item:hover .compact-profile-dropdown,
.compact-header-menu .compact-profile-item:focus-within .compact-profile-dropdown,
.compact-profile-item.is-account-menu-open .compact-profile-dropdown{display:grid!important}
.compact-profile-dropdown li{display:block!important;width:100%!important;margin:0!important}
.compact-profile-dropdown a{display:flex!important;width:100%!important;justify-content:flex-start!important}

/* Hero */
.marketplace-hero-section{padding:18px 0!important;background:linear-gradient(135deg,#f7c35f 0%,#f59f00 100%)}
.marketplace-hero-ad-grid{display:grid!important;grid-template-columns:210px minmax(420px,1fr) 210px!important;align-items:stretch!important;gap:16px!important}
.hero-ad-column,.hero-promo-panel{height:300px!important;min-height:300px!important;max-height:300px!important;min-width:0!important;overflow:hidden!important}
.hero-promo-panel{display:flex!important;align-items:center!important;justify-content:center!important;padding:28px 34px!important}
.hero-promo-content-centered{width:100%!important;max-width:760px!important;margin:auto!important;text-align:center!important}
.hero-promo-content-centered h1{font-size:clamp(30px,3.4vw,48px)!important;line-height:1.04!important;margin:0 auto!important}
.hero-promo-content-centered>p{margin:10px auto 18px!important}
.hero-search-fullwidth,.hero-search-fullwidth form,.hero-search-fullwidth .unified-market-search,.hero-search-fullwidth .unified-search-field{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
.hero-search-fullwidth .unified-search-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
.hero-search-fullwidth input{width:100%!important;min-width:0!important}
.hero-search-fullwidth button{width:auto!important;min-width:110px!important}
.hero-ad-column .thayu-hero-ad,.hero-ad-column .hero-ad-empty-state,.hero-ad-column ins.adsbygoogle,.hero-ad-column iframe{display:block!important;width:100%!important;height:100%!important;min-height:300px!important;max-height:300px!important;max-width:100%!important;overflow:hidden!important}
.hero-ad-column-right{display:block!important}
.hero-ad-column-right .hero-ad-stack-item{height:100%!important}

/* Home categories and cards */
.home-category-nav{margin-top:18px!important}
.home-category-nav__inner{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:8px!important}
.listings-section{width:min(100% - 40px,1180px)!important;max-width:1180px!important;margin-inline:auto!important}
.uniform-card-grid,.homepage-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important}
.uniform-card-grid>* ,.homepage-card-grid>*{min-width:0!important;width:100%!important;max-width:none!important;margin:0!important}
.thayu-card{height:100%!important;display:flex!important;flex-direction:column!important}
.thayu-card .card-image{aspect-ratio:4/3!important;overflow:hidden!important}
.thayu-card .card-image img{width:100%!important;height:100%!important;object-fit:contain!important}

/* Footer */
#site-footer{clear:both!important;width:100%!important;overflow:hidden!important}
#site-footer .footer-widget-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:28px!important}
#site-footer .footer-bottom-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:14px!important}
#site-footer .footer-social-share{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important}
#site-footer .footer-social-share>a.footer-social-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;padding:0!important;overflow:hidden!important;border-radius:999px!important}
#site-footer .footer-social-share>a.footer-social-icon>svg{display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important;overflow:hidden!important}

@media(max-width:1050px){
 .compact-site-header .compact-header-row{width:min(100% - 28px,1180px)!important}
 .compact-header-row{grid-template-columns:150px minmax(0,1fr) auto;gap:10px!important}
 .header-logo-wrap{width:150px!important;max-width:150px!important}
 .compact-header-menu>li>a,.profile-toggle{font-size:12px!important;padding-inline:6px!important}
 .marketplace-hero-ad-grid{grid-template-columns:180px minmax(360px,1fr) 180px!important}
 .home-category-nav__inner{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
 .container,.listings-section{width:min(100% - 28px,1180px)!important}
 .compact-site-header .compact-header-row{width:min(100% - 28px,1180px)!important}
 .compact-header-row{display:flex!important;flex-wrap:wrap!important}
 .header-logo-wrap{width:auto!important;max-width:160px!important}
 .menu-toggle{display:inline-flex!important;margin-left:auto!important}
 .compact-primary-nav{display:none!important;flex:1 1 100%!important;order:10!important}
 .compact-primary-nav.is-open{display:block!important}
 .compact-header-menu{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
 .compact-header-menu .compact-profile-dropdown{position:static!important;width:100%!important;min-width:100%!important;max-width:100%!important;margin-top:6px!important}
 .marketplace-hero-ad-grid{grid-template-columns:1fr!important}
 .hero-ad-column-left{display:none!important}
 .hero-promo-panel{height:auto!important;min-height:270px!important;max-height:none!important}
 .hero-ad-column-right{height:100px!important;min-height:100px!important;max-height:100px!important}
 .hero-ad-column-right .thayu-hero-ad,.hero-ad-column-right .hero-ad-empty-state,.hero-ad-column-right ins.adsbygoogle,.hero-ad-column-right iframe{height:100px!important;min-height:100px!important;max-height:100px!important}
 .uniform-card-grid,.homepage-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #site-footer .footer-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
 .container,.listings-section{width:min(100% - 20px,1180px)!important}
 .compact-site-header .compact-header-row{width:min(100% - 20px,1180px)!important}
 .hero-search-fullwidth .unified-search-field{grid-template-columns:1fr!important}
 .hero-search-fullwidth button{width:100%!important}
 .home-category-nav__inner{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .uniform-card-grid,.homepage-card-grid{grid-template-columns:1fr!important}
 #site-footer .footer-widget-grid{grid-template-columns:1fr!important}
 #site-footer .footer-bottom-inner{align-items:flex-start!important;flex-direction:column!important}
}

/* Card media alignment repair */
.homepage-card-grid .thayu-card,
.uniform-card-grid .thayu-card {
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 18px !important;
}
.homepage-card-grid .card-image-wrap,
.uniform-card-grid .card-image-wrap {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  background: #f4f6f5 !important;
  line-height: 0 !important;
}
.homepage-card-grid .card-image,
.uniform-card-grid .card-image {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.homepage-card-grid .card-image img,
.uniform-card-grid .card-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  background: #f7f9fc !important;
  object-fit: contain !important;
  object-position: center !important;
}
.homepage-card-grid .card-image-controls,
.uniform-card-grid .card-image-controls {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  top: auto !important;
  bottom: 12px !important;
  z-index: 8 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  line-height: normal !important;
}
.homepage-card-grid .card-image-controls > *,
.uniform-card-grid .card-image-controls > * {
  pointer-events: auto !important;
}
.homepage-card-grid .favorite-toggle,
.uniform-card-grid .favorite-toggle {
  position: static !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.homepage-card-grid .favorite-icon,
.uniform-card-grid .favorite-icon {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
}
.homepage-card-grid .card-content,
.uniform-card-grid .card-content {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 16px 18px 18px !important;
  background: #e8eeee !important;
  line-height: 1.5 !important;
}
.homepage-card-grid .card-category,
.uniform-card-grid .card-category {
  margin: 0 0 12px !important;
}
.homepage-card-grid .card-title,
.uniform-card-grid .card-title {
  margin: 0 0 12px !important;
}
.homepage-card-grid .card-excerpt,
.uniform-card-grid .card-excerpt {
  margin: 0 !important;
}
