/* uredizadoma.bg - UI refresh v18.3.39
   Presentation only. No changes to listing logic, filters, authentication or databases.
   Loaded after the existing stylesheet for safe, reversible customization. */
:root{
  --refresh-bg:#f3f6fb;
  --refresh-card:#ffffff;
  --refresh-line:#d7e1ef;
  --refresh-blue:#2169ca;
  --refresh-navy:#153456;
  --refresh-shadow:0 4px 14px rgba(26,55,96,.075),0 1px 3px rgba(26,55,96,.045);
}
body{background:var(--refresh-bg)}
.site-header{background:#fff;border-bottom-color:#dbe4f0;box-shadow:0 1px 9px rgba(25,51,85,.035)}
.header-search input{background:#f8faff;border-color:#d5e0ee}
.header-search input:focus{border-color:#82a9e5;box-shadow:0 0 0 3px rgba(33,105,202,.09)}
/* Home: one clearly bounded category zone instead of loose icons on white. */
.home-hero{background:var(--refresh-bg);border-bottom:1px solid #e1e7f0}
.home-category-panel{
  margin:22px 0 5px;padding:20px 22px 21px;
  border:1px solid var(--refresh-line);border-radius:19px;
  background:var(--refresh-card);
  box-shadow:var(--refresh-shadow);
}
.home-category-panel .category-heading{margin:0 1px 17px}
.home-category-panel .category-heading h2{color:var(--refresh-navy);font-weight:800}
.home-category-panel .category-heading a{color:var(--refresh-blue)}
.home-category-grid .cat-card,
.home-category-grid .cat-card.stove-center,
.home-category-grid .cat-card-last{
  border:1px solid #dce5f1!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 2px 7px rgba(29,64,108,.055)!important;
  color:#233b5a;
  font-weight:700;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.home-category-grid .cat-card:hover{
  border-color:#8bb4ec!important;
  box-shadow:0 5px 15px rgba(30,88,165,.13)!important;
  transform:translateY(-2px);
}
.home-category-grid .cat-icon{background:#f6f9fd!important}
.home-category-grid .cat-card:focus-visible{outline:3px solid #5a98ea;outline-offset:2px}
.home-category-panel .home-quick-links{margin-top:16px;gap:9px}
.home-category-panel .quick-pill{
  background:#edf4ff;
  border:1px solid #d2e3f9;
  border-radius:999px;
  color:#24558f;
  font-weight:750;
}
.home-category-panel .quick-pill:hover{background:#deecff;border-color:#a9c9f4}
/* Contrast between major areas without saturated color bands. */
.beta-public-section{background:var(--refresh-bg);padding:4px 0 12px}
.beta-public-banner{border-color:#cddff5;background:linear-gradient(110deg,#eff6ff,#fff);box-shadow:0 2px 10px rgba(29,74,134,.045)}
.section-featured{background:#f0f5fc;border-color:#dce8f8}
.section-latest{background:#f3f6fb;border-top:1px solid #e3eaf4;border-bottom:1px solid #e3eaf4}
.section-recent{background:#f6f8fc}
.section-sell{background:#eef3fa}
.section-head{position:relative;padding-left:15px}
.section-head::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:4px;background:#2574d7}
.section-featured .section-head::before{background:#d49b43}
.section-title,.results-head h1{color:var(--refresh-navy);font-weight:800}
/* Listing cards: distinct, visible outlines, spacing and light elevation. */
.product-grid{gap:17px}
.product-card{
  border:1px solid #ccd9ea;
  border-radius:15px;
  background:#fff;
  box-shadow:var(--refresh-shadow);
  overflow:hidden;
}
.product-card:hover{
  border-color:#9ebfe9;
  box-shadow:0 9px 24px rgba(20,55,102,.13);
}
.product-img{background:#f8fafd}
.product-card .card-body{border-top:1px solid #e8edf5}
.product-category-label{
  display:inline-block;
  max-width:100%;
  padding:3px 8px;
  border-radius:6px;
  background:#edf4fe;
  color:#2c5e9a;
  font-weight:750;
}
.product-card .product-title{color:#182f4e}
.product-card .price{color:#111111;font-weight:850}
.product-card .location{color:#60738b}
.product-card .fav-float{background:rgba(255,255,255,.94);border:1px solid #d9e3f0;box-shadow:0 2px 7px rgba(20,49,83,.08)}
/* All listing/results pages use the same visual hierarchy. */
.page{background:var(--refresh-bg)}
.content-layout>.filter-panel{
  background:#fff;
  border:1px solid #cfdded;
  box-shadow:var(--refresh-shadow);
  border-radius:15px;
}
.filter-title{color:var(--refresh-navy);font-weight:800}
.filter-group{border-bottom-color:#e7edf6}
.filter-label{color:#274765;font-weight:750}
.results-head{border-bottom:1px solid #dbe5f2;padding-bottom:15px;margin-bottom:16px}
.results-head h1{margin-top:0}
.sort-select,[data-listing-search]{border-color:#d1ddec!important;background-color:#fff}
.listing-list{gap:16px}
.listing-row{
  border:1px solid #cddbea;
  border-radius:15px;
  background:#fff;
  box-shadow:var(--refresh-shadow);
  transition:border-color .16s ease,box-shadow .16s ease;
}
.listing-row:hover{border-color:#9cbce8;box-shadow:0 8px 20px rgba(27,66,114,.11)}
.listing-row .listing-title{color:#173657}
.listing-row .price{color:#111111;font-weight:850}
.listing-row .listing-right{border-left-color:#e3e9f3}
/* Other collections and forms keep neutral white cards against the tinted page. */
.panel,.detail-card,.seller-card,.spec-card,.auth-card,.promo-card{
  border-color:#d8e2ef;
}
.section-latest [data-real-latest-grid]:not(:has(.product-card)){min-height:40px}
/* Keyboard users and accessibility */
.product-card:focus-within,.listing-row:focus-within{border-color:#78a8e8;outline:2px solid rgba(54,129,223,.22);outline-offset:1px}
@media (min-width:761px){
  .home-category-panel{padding:21px 24px 24px}
  .home-category-grid .cat-card{min-height:134px}
}
@media (max-width:760px){
  .home-hero{background:var(--refresh-bg)}
  .home-category-panel{margin:13px 0 0;padding:14px 11px 13px;border-radius:15px}
  .home-category-panel .category-heading{margin:0 2px 12px}
  .home-category-panel .category-heading h2{font-size:19px}
  /* Preserve the v18.3.36 two-row synchronized horizontal swipe. */
  .home-category-grid{grid-template-rows:repeat(2,126px)!important;grid-auto-flow:column!important}
  .home-category-grid .cat-card{min-height:126px!important;height:126px!important}
  .home-category-panel .home-quick-links{margin-top:9px;gap:7px}
  .home-category-panel .quick-pill{font-size:11px;padding:0 9px}
  .product-grid{gap:11px}
  .product-card{border-radius:12px;box-shadow:0 3px 10px rgba(29,64,108,.075)}
  .product-card .card-body{padding:10px}
  .product-category-label{font-size:10px;padding:2px 6px}
  .section-head{padding-left:12px}
  .section-head::before{width:3px}
  .section-latest,.section-featured,.section-recent{padding:20px 0}
  .listing-list{gap:11px}
  .listing-row{border-radius:12px;box-shadow:0 3px 10px rgba(29,64,108,.07);padding:10px}
  /* Open mobile filters must remain fixed and fully usable. */
  .content-layout>.filter-panel{border-radius:16px 16px 0 0}
}
@media (max-width:390px){
  .home-category-panel{padding:13px 9px 11px}
  .home-category-panel .quick-pill{min-width:0;flex:1 1 auto}
  .product-grid{gap:9px}
}
@media (prefers-reduced-motion:reduce){
  .home-category-grid .cat-card,.product-card,.listing-row{transition:none}
  .home-category-grid .cat-card:hover{transform:none}
}

/* v18.3.39: a real intermediate desktop layout, optimized for older 1024px-class monitors.
   Avoid enormous 300px+ listing photos and keep complete cards inside the visible canvas.
   Phones <=760px retain exactly the existing v18.3.38 mobile layout. */
@media (min-width:761px){
  /* Complete tiles; content never demands width beyond its grid track. */
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .product-card{min-width:0}
  .product-card .product-title{overflow-wrap:anywhere}
  .product-card .card-body{padding:12px 13px}
  .product-card .product-img{height:178px;aspect-ratio:auto;object-fit:contain}
  .product-card .product-meta{gap:8px}
  .product-card .price{font-size:20px}
  .home-category-panel{padding:16px 18px 18px}
  .home-category-grid .cat-card{min-width:0;font-size:12px;min-height:115px}
  .home-category-grid .cat-icon{height:78px}
  .home-category-panel .quick-pill{height:38px;font-size:12px}
}
/* Large desktop stays roomy without billboard-sized listing cards. */
@media (min-width:1320px){
  .product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
  .product-card .product-img{height:182px}
  .product-card .card-body{padding:14px}
  .home-category-panel{padding:21px 24px 24px}
  .home-category-grid .cat-card{min-height:134px;font-size:14px}
  .home-category-grid .cat-icon{height:94px}
}
/* Typical low-resolution monitors: all FOUR cards fit, no half-cut tile. */
@media (min-width:1000px) and (max-width:1319px){
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
  .product-card .product-img{height:157px}
  .product-card .card-body{padding:12px}
  .product-card .product-title{font-size:14px;line-height:1.3}
  .product-card .product-specs{font-size:11.5px}
  .product-card .price{font-size:19px}
  .product-card .location{font-size:11px}
  .home-category-grid .cat-icon{height:80px}
  .home-category-grid .cat-card{min-height:122px}
  .header-inner{gap:12px}
  .main-nav{gap:13px}
  .header-search{width:min(370px,32vw)}
}
@media (min-width:761px) and (max-width:999px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
  .product-card .product-img{height:152px}
  .product-card .card-body{padding:11px}
  .product-card .product-title{font-size:13.5px}
  .product-card .price{font-size:18px}
  .home-category-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important}
  .home-category-grid .cat-card{font-size:11px}
  .home-category-grid .cat-icon{height:65px}
  .home-category-panel{padding:15px}
  .header-inner{gap:9px}
  .main-nav{gap:10px}
  .header-search{width:min(245px,27vw)}
  .content-layout{grid-template-columns:235px minmax(0,1fr);gap:16px}
  .listing-row{grid-template-columns:160px minmax(0,1fr) 120px;gap:12px}
  .listing-row img{width:160px;height:120px}
}
/* The standard CSS makes desktop results extremely wide at 1024px.
   Keep listing text and price visible on the same row. */
@media (min-width:1000px) and (max-width:1199px){
  .content-layout{grid-template-columns:245px minmax(0,1fr);gap:18px}
  .listing-row{grid-template-columns:180px minmax(0,1fr) 128px;gap:12px;min-height:145px;padding:12px}
  .listing-row img{width:180px;height:120px}
  .listing-row .listing-title{font-size:16px}
  .listing-row .listing-features{font-size:12px}
}
/* Black prices throughout the public marketplace: homepage, searches, seller
   profiles, saved listings and product details. Trend indicators stay semantic. */
.price,
.product-card .price,
.listing-row .price,
.detail-price,
.real-home-card .price,
.real-favorite-card .price,
.seller-listing-price,
.real-seller-listing-price,
.preview-price{
  color:#111111!important;
}

/* v18.3.41: subtle desaturated blue borders on desktop only; no new fills or banner colors. */
@media (min-width:761px){
  /* Slightly bluer outlines distinguish white cards on older displays. */
  .home-category-panel{border-color:#b6c9de;}
  .home-category-grid .cat-card,
  .home-category-grid .cat-card.stove-center,
  .home-category-grid .cat-card-last{
    border:1.5px solid #aac1da!important;
  }
  .product-card,
  .real-home-card,
  .listing-row,
  .real-listing-row{
    border:1.5px solid #a8bfd9;
  }
}
