body { background: #f6f7f9; font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", sans-serif; }
.ad-row { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e6e8eb; transition: box-shadow .15s; }
.ad-row:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mini-carousel { position: relative; width: 100%; aspect-ratio: 4/3; background: #eef0f2; }
.mini-carousel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-carousel .mc-btn { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.45);
  color: #fff; width: 30px; height: 30px; border-radius: 50%; line-height: 1; font-size: 18px; cursor: pointer; }
.mini-carousel .mc-prev { right: 6px; }
.mini-carousel .mc-next { left: 6px; }
.mini-carousel .mc-count { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; padding: 1px 7px; border-radius: 10px; }
.price { font-weight: 700; color: #0a7a3d; font-size: 1.1rem; }
.cat-section { background: #fff; border-radius: 12px; padding: 1rem; border: 1px solid #e6e8eb; }
.chat-box { height: 60vh; overflow-y: auto; background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 1rem; }
.msg { max-width: 75%; padding: .5rem .75rem; border-radius: 12px; margin-bottom: .5rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { background: #d1f0dc; margin-left: auto; }
.msg.other { background: #f0f1f3; margin-right: auto; }
.msg.staff { background: #fff3cd; }
.msg.in-batch { outline: 2px solid #0d6efd; }
.msg .meta { font-size: 11px; color: #777; }
.gallery-main { width: 100%; max-height: 520px; object-fit: contain; background: #111; border-radius: 10px; }
.gallery-thumbs img { width: 80px; height: 60px; object-fit: cover; cursor: pointer; border-radius: 6px; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: #0d6efd; }
#load-more-sentinel { height: 40px; }
.mini-carousel .mc-noimg { display:flex; align-items:center; justify-content:center; width:100%; height:100%; font-size:2.5rem; opacity:.35; }
.mini-carousel .mc-count:empty { display:none; }
