/* ===== HEF Marketplace look for the Yadhum product listing page =====
   Design only. Yadhum cart / quote / variant / stock logic is untouched. */

:root{
  --hef-maroon:#320A0C; --hef-maroon-2:#5c1a21; --hef-gold:#D9AD44;
  --hef-cream:#fff4e3; --hef-line:#ede6df; --hef-brown:#9a5b3a;
}

/* ---------- page heading (title + count) ---------- */
.hef-listing-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:6px 20px 4px}
.hef-listing-head h2{margin:0;font-size:30px;font-weight:800;color:#1c1412;letter-spacing:-.3px}
.hef-listing-head .hef-count{display:block;margin-top:4px;font-size:14px;color:#7d6f68}
.hef-listing-sort{display:flex;align-items:center;gap:10px;font-size:14px;color:#7d6f68}
.hef-listing-sort select{border:1px solid var(--hef-line);border-radius:10px;padding:9px 14px;background:#fff;color:#1c1412;font-weight:600;min-width:170px}

/* ---------- left filter card (HEF look) ---------- */
.hef-filters{background:#fff;border:1px solid var(--hef-line);border-radius:18px;padding:20px 18px;box-shadow:0 6px 22px rgba(50,10,12,.05)}
.hef-filters-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--hef-line);font-size:18px;color:#1c1412}
.hef-filters-head a{font-size:13px;font-weight:700;color:var(--hef-brown);text-decoration:none}
.hef-filter-title{font-size:15px;font-weight:800;color:#1c1412;margin:0 0 12px}
.hef-filter-title small{font-weight:600;color:#7d6f68}
.hef-filter-block{padding-top:16px;margin-top:16px;border-top:1px solid var(--hef-line)}
.hef-price-row{display:flex;align-items:center;gap:8px}
.hef-price-row input{width:100%;min-width:0;border:1px solid var(--hef-line);border-radius:10px;padding:9px 10px;font-size:14px;outline:none;background:#fff}
.hef-price-row input:focus{border-color:var(--hef-gold)}
.hef-filter-note{margin-top:8px;font-size:12px;color:#7d6f68}
.hef-check{display:flex;align-items:center;gap:10px;font-size:14.5px;color:#3a2a22;cursor:pointer}
.hef-check input{width:17px;height:17px;accent-color:#8a3a2a}
.hef-filter-tip{display:flex;gap:10px;margin-top:18px;padding:14px;border-radius:14px;background:var(--hef-cream);color:#5a2a14;font-size:12.5px;line-height:1.4}
.hef-filter-tip span{font-size:20px;color:var(--hef-brown)}
.hef-filter-tip p{margin:0}

#product-category-sidebar{background:transparent !important;background-image:none !important;border:0 !important;box-shadow:none !important;padding:0 !important;margin:0;max-height:none}
#product-category-sidebar:not(:has(a)){display:none}
#product-category-sidebar::before{display:none !important}
#product-category-sidebar .list-group-item{position:relative;display:flex;align-items:center;gap:10px;border:0 !important;border-radius:8px !important;padding:8px 6px !important;margin:0;color:#3a2a22;font-size:14.5px;background:transparent !important;transition:color .15s}
#product-category-sidebar .list-group-item::before{content:"";flex:0 0 16px;width:16px;height:16px;border-radius:50%;border:1.5px solid #b9a99c;background:#fff;box-sizing:border-box}
#product-category-sidebar .list-group-item:hover{color:var(--hef-maroon)}
#product-category-sidebar .list-group-item:hover::before{border-color:#8a3a2a}
#product-category-sidebar .list-group-item.active-sidebar-item{color:var(--hef-maroon) !important;font-weight:700;box-shadow:none}
#product-category-sidebar .list-group-item.active-sidebar-item::before{border-color:#8a3a2a;background:radial-gradient(circle,#8a3a2a 0 4px,#fff 5px)}
#product-category-sidebar .sidebar-child-item{padding-left:26px !important}

/* ---------- breadcrumb ---------- */
.header_text.sub .breadcrumb{font-size:13.5px}
.header_text.sub .breadcrumb a{color:var(--hef-maroon-2);text-decoration:none;font-weight:600}
.header_text.sub .breadcrumb .active{color:#7d6f68}

/* ---------- product cards ---------- */
#product-list-row .product-box{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--hef-line) !important;border-radius:18px !important;overflow:hidden;box-shadow:0 4px 16px rgba(50,10,12,.05);transition:transform .18s ease,box-shadow .18s ease}
#product-list-row .product-box:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(50,10,12,.12)}
#product-list-row .product-box .product-image{background:linear-gradient(160deg,#f7efe5,#eef0e8);padding:14px;display:flex;align-items:center;justify-content:center;min-height:210px;border-bottom:1px solid var(--hef-line)}
#product-list-row .product-box .product-image img{max-height:190px;width:auto;max-width:100%;object-fit:contain;border-radius:10px}
#product-list-row .product-box .content{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
#product-list-row .product-box .product-company-name{order:-1;text-align:left !important;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;color:var(--hef-brown);margin:0 0 6px}
#product-list-row .product-box .title,
#product-list-row .product-box .product-name{text-align:left !important;font-size:15.5px;font-weight:800;line-height:1.3;color:#1c1412;margin:0 0 8px}
#product-list-row .product-box .price{font-size:20px;font-weight:800;color:var(--hef-maroon);text-align:left}

/* heart button */
#product-list-row .listing-wishlist-btn{position:absolute;top:12px;right:12px;z-index:3;width:38px;height:38px;border-radius:50%;background:#fff;border:1px solid var(--hef-line);display:flex;align-items:center;justify-content:center;color:var(--hef-maroon);box-shadow:0 2px 8px rgba(0,0,0,.08)}
#product-list-row .listing-wishlist-btn:hover{background:var(--hef-cream)}

/* buttons */
#product-list-row .product-box .add-to-cart-btn,
#product-list-row .product-box .open-quote-btn{background:var(--hef-cream) !important;color:#5a2a14 !important;border:1px solid #e8c98f !important;border-radius:10px !important;font-weight:700;padding:9px 10px}
#product-list-row .product-box .add-to-cart-btn:hover,
#product-list-row .product-box .open-quote-btn:hover{background:#ffe9c4 !important}
#product-list-row .product-box .buy-now-btn{background:var(--hef-maroon) !important;color:#fff !important;border:1px solid var(--hef-maroon) !important;border-radius:10px !important;font-weight:700;padding:9px 10px}
#product-list-row .product-box .buy-now-btn:hover{background:var(--hef-maroon-2) !important}
#product-list-row .listing-notify-me-btn{border-radius:10px !important}

@media (max-width:767px){
  .hef-listing-head h2{font-size:24px}
  #product-list-row .product-box .product-image{min-height:150px}
  #product-list-row .product-box .product-image img{max-height:130px}
}