/* مشروع جديد — original look-alike prototype. No third-party assets. */
:root{
  --brand:#8DC63F;
  --brand-hot:#6FA82B;
  --brand-soft:#E8F5D3;
  --brand-mid:#6FA82B;
  --brand-deep:#5A8C22;
  --brand-l:#E8F5D3;
  --brand-d:#6FA82B;
  --accent:#8DC63F;
  --accent-d:#6FA82B;
  --ink:#1a1a1a;
  --ink-2:#333333;
  --text:#1a1a1a;
  --text-2:#555555;
  --muted:#777777;
  --bg:#f4f4f4;
  --white:#ffffff;
  --search:#ffffff;
  --line:#ececec;
  --line-2:#f0f0f0;
  --ok:#329216;
  --radius:10px;
  --radius-lg:14px;
  --wrap:1180px;
  --shadow:0 8px 24px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.04);
  --font:"IBM Plex Sans Arabic","Tajawal","Segoe UI",Tahoma,sans-serif;
  --font-display:"Tajawal","IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;
  --grad-btn:#8DC63F;
  --glow-line:transparent;
  --glow-soft:none;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html,body{overflow-x:hidden}
body{
  font-family:var(--font);
  font-weight:400;
  color:var(--text);
  background-color:var(--bg);
  font-size:15.5px;
  line-height:1.7;
  min-height:100vh;
  letter-spacing:.01em;
}
body::before{display:none}
a{color:inherit;text-decoration:none}
button,input,select{font-family:inherit}
img{max-width:100%;display:block}
button{cursor:pointer;border:0;background:none}
ul{list-style:none}
.wrap{width:min(var(--wrap), calc(100% - 32px));margin-inline:auto}

/* ===== Top bar ===== */
.topbar{
  background:var(--brand);
  color:#ffffff;
  height:36px;
  display:flex;
  align-items:center;
  font-size:13px;
}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;width:min(var(--wrap), calc(100% - 32px))}
.topbar a{color:#ffffff;opacity:.95}
.topbar a:hover{opacity:1;text-decoration:underline}
.topbar .auth{display:flex;gap:6px;align-items:center}
.topbar .auth .sep{opacity:.55}
.topbar .tools{display:flex;align-items:center;gap:16px}
.topbar .tools a,.topbar .tools button{color:#ffffff;display:inline-flex;align-items:center;gap:4px}
.icon{width:18px;height:18px;display:inline-block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon.lg{width:22px;height:22px}

/* ===== Header ===== */
.header{
  background:#ffffff;
  border-bottom:1px solid #ececec;
  position:sticky;top:0;z-index:40;
}
.header .wrap{
  display:flex;align-items:center;gap:18px;
  height:76px;
}
.logo{display:flex;align-items:center;flex:0 0 auto;color:inherit;text-decoration:none}
.logo-img{display:none}
.logo-mark{display:none}
.logo-text{line-height:1;display:block}
.logo-text strong{display:block;font-family:var(--font-display);font-size:28px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.nav-links{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.nav-links > a, .nav-btn{
  display:inline-flex;align-items:center;gap:4px;
  padding:8px 12px;border-radius:10px;font-family:var(--font-display);font-weight:500;font-size:14px;color:var(--ink);
  white-space:nowrap;
  transition:background .3s ease,color .3s ease;
}
.nav-links > a:hover, .nav-btn:hover{background:#f4f4f4;color:var(--ink)}
.nav-btn .chev{width:12px;height:12px;opacity:.7}
.search{
  flex:1 1 auto;max-width:420px;margin-inline:auto;
  position:relative;
}
.search input{
  width:100%;height:46px;border-radius:23px;
  border:1px solid rgba(8,9,9,.12);
  background:#ffffff;
  padding-block:0;padding-inline:18px 18px;padding-inline-start:46px;
  font-size:14px;color:var(--ink);
  outline:none;
  transition:border-color .3s ease,box-shadow .3s ease;
}
.search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(141,198,63,.25)}
.search .go{
  position:absolute;inset-inline-start:6px;top:50%;transform:translateY(-50%);
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;color:#555;
}
.btn-add{
  flex:0 0 auto;
  height:46px;padding:0 22px;border-radius:12px;
  background:var(--brand);color:#ffffff;
  font-family:var(--font-display);font-weight:700;font-size:14.5px;
  display:inline-flex;align-items:center;gap:6px;
  white-space:nowrap;
  border:0;
  box-shadow:0 2px 8px rgba(8,9,9,.18);
  transition:background .2s ease;
}
.btn-add:hover{background:var(--brand-hot);color:#ffffff}
.burger{display:none;width:40px;height:40px;place-items:center;color:var(--ink)}

/* Mega menu */
.mega{position:relative}
.mega-panel{
  position:absolute;top:calc(100% + 8px);right:0;
  width:min(920px, 90vw);
  background:#fff;border-radius:14px;
  box-shadow:0 16px 50px rgba(0,0,0,.14);
  padding:18px 16px 10px;
  display:none;grid-template-columns:repeat(4,1fr);gap:6px 10px;
  border:1px solid #f0eaea;z-index:50;
}
.mega.open .mega-panel, .mega:hover .mega-panel{display:grid}
.mega-col h4{font-size:13px;margin-bottom:6px;color:var(--brand);display:flex;align-items:center;gap:8px}
.mega-col a{display:block;padding:4px 0;font-size:13px;color:#444}
.mega-col a:hover{color:var(--brand-hot)}
.cat-dot{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;flex:0 0 auto}
.cat-dot svg{width:13px;height:13px}

/* ===== Promo banner ===== */
.promo{background:transparent;padding:8px 0 14px}
.promo-inner{
  position:relative;border-radius:10px;overflow:hidden;min-height:92px;
  background:#0f1a1e;
  color:#fff;display:flex;align-items:center;justify-content:space-between;
  padding:16px 28px;gap:16px;
}
.promo-inner h2{font-size:22px;font-weight:800;line-height:1.3}
.promo-inner p{opacity:.9;margin-top:4px;font-size:15px}
.promo-cta{
  height:44px;padding:0 22px;border-radius:24px;
  background:#fff;color:var(--brand);font-weight:800;white-space:nowrap;
  display:inline-flex;align-items:center;
}
.promo-cta:hover{background:#f7eef2}


/* Homepage advertising slider (under header/search) */
.home-banner{padding:12px 0 4px;background:transparent}
.home-banner .wrap{width:min(1240px, calc(100% - 32px))}
.home-banner-slider{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  height:180px;
  background:#0f1a1e;
}
.home-banner-track{position:relative;height:100%}
.home-banner-slide{
  position:absolute;inset:0;
  display:block;color:#fff;
  opacity:0;visibility:hidden;
  transition:opacity .5s ease,visibility .5s ease;
}
.home-banner-slide.is-active{opacity:1;visibility:visible;z-index:1}
.home-banner-slide img{width:100%;height:100%;object-fit:cover}
.home-banner-copy{
  position:absolute;inset:0;z-index:2;
  display:flex;flex-direction:column;justify-content:center;
  padding:24px 36px;
  pointer-events:none;
}
.home-banner-copy strong{
  font-family:var(--font-display);
  font-size:32px;font-weight:800;letter-spacing:.01em;
  text-shadow:0 2px 10px rgba(0,0,0,.5);
}
.home-banner-copy span{
  margin-top:6px;font-size:16px;color:#d5deea;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
.home-banner-dots{
  position:absolute;bottom:10px;left:50%;transform:translateX(-50%);
  display:flex;gap:6px;z-index:3;
}
.home-banner-dot{
  width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,.4);
  padding:0;
}
.home-banner-dot.is-active{background:#fff;width:22px;border-radius:4px}
@media (max-width: 980px){
  .home-banner{padding:10px 0 2px}
  .home-banner-slider{height:150px;border-radius:8px}
  .home-banner-copy{padding:16px 20px}
  .home-banner-copy strong{font-size:22px}
  .home-banner-copy span{font-size:13px}
}

/* ===== Auctions ===== */
.featured{background-color:transparent;padding:36px 0 40px;color:var(--text)}
.sec-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.sec-head{direction:rtl}
.sec-head h2{font-family:var(--font-display);font-size:30px;font-weight:700;line-height:1.25;text-align:right;margin:0;color:var(--ink);letter-spacing:.01em}
.featured .wrap{width:min(1240px, calc(100% - 32px))}
.sec-head .sub{color:var(--text-2);font-size:14px;margin-top:2px}
.btn-more{
  height:42px;padding:0 18px;border-radius:21px;
  background:var(--brand);color:#ffffff;
  font-family:var(--font-display);font-weight:700;font-size:13.5px;
  display:inline-flex;align-items:center;white-space:nowrap;
  border:0;
  transition:background .2s ease;
}
.btn-more:hover{background:var(--brand-hot);color:#ffffff}
.feat-row{
  display:flex;flex-wrap:nowrap;overflow-x:auto;gap:16px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  padding-bottom:8px;
}
.feat-card{
  color:#111;flex:0 0 200px;scroll-snap-align:start;
  background:#fff;border-radius:14px;overflow:hidden;
  border:1px solid #e8e8e8;
  box-shadow:0 6px 16px rgba(0,0,0,.22);
  transition:transform .25s ease,box-shadow .25s ease;
}
.feat-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.28);
}
.feat-card .thumb{
  position:relative;border-radius:10px;overflow:hidden;
  aspect-ratio:1/1;background:#ccc;
}
.feat-card .thumb img{width:100%;height:100%;object-fit:cover}
.feat-card .badge{
  position:absolute;top:8px;inset-inline-start:8px;
  background:var(--brand);color:#fff;font-size:11px;font-weight:800;
  padding:2px 8px;border-radius:6px;
}
.feat-card h3{font-family:var(--font-display);font-size:13.5px;font-weight:700;margin:8px 10px 2px;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.feat-card .meta{color:#555;font-size:12.5px;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.feat-card .meta .icon{width:14px;height:14px;flex:0 0 auto}
.feat-card .price{font-size:18px;font-weight:800;margin-top:2px}
.feat-card .price small{font-size:13px;font-weight:700;margin-inline-start:3px}


/* ===== Categories — mzadqatar measurements ===== */
.cats{background:transparent;padding:28px 0 48px}
.cats .wrap{width:min(1240px, calc(100% - 32px))}
.classified-container{
  column-count:2;
  column-gap:100px;
  margin-top:40px;
}
.cat-block{
  break-inside:avoid-column;
  margin-top:40px;
  width:100%;
}
.classified-container .cat-block:first-child{margin-top:0}
.cat-block .head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:12px;padding:0;width:100%;direction:rtl;
}
.cat-block .head h2{
  font-family:var(--font-display);
  font-size:22px;font-weight:700;color:var(--ink);
  letter-spacing:0;line-height:26px;
  text-align:right;margin:0;margin-inline-end:0;padding:0;
}
.cat-block .head .count{
  font-size:14px;font-weight:400;color:var(--text-2);
  line-height:18px;white-space:nowrap;text-align:right;
}
.tiles{
  display:flex;flex-wrap:wrap;
  gap:11px;
  justify-content:flex-start;
  margin-top:10px;
}
.tile{
  position:relative;overflow:hidden;border-radius:1rem;
  display:block;text-decoration:none;color:var(--ink);
  background:#ffffff;
  width:32%;
  height:105px;
  flex:0 0 32%;
  border:1px solid rgba(8,9,9,.06);
  box-shadow:0 20px 50px rgba(8,9,9,.14),0 4px 12px rgba(8,9,9,.08);
  transform:none;
}
.tile:hover{
  transform:none;
  box-shadow:0 24px 56px rgba(8,9,9,.18),0 6px 16px rgba(8,9,9,.1);
}
.tile.span-2{
  width:66%;
  flex-basis:66%;
  height:105px;
}
.tile .name{
  position:absolute;z-index:2;
  top:10px;
  right:0;
  left:auto;
  width:58%;
  padding:0;
  padding-right:16px;
  padding-left:0;
  font-size:18px;font-weight:400;color:var(--ink);
  line-height:20px;text-align:right;
  direction:rtl;
}
.tile.span-2 .name{width:64%;}
.tile .photo{
  position:absolute;z-index:1;pointer-events:none;
  bottom:5px;
  inset-inline-end:0;
  inset-inline-start:auto;
  height:100px;width:auto;max-width:72%;
  object-fit:contain;object-position:bottom left;
  filter:none;
}
.tile.span-2 .photo{
  height:100px;max-width:50%;
  inset-inline-end:0;bottom:5px;
}
.ribbon{
  position:absolute;z-index:3;
  right:0;bottom:16px;
  background:var(--brand);color:#ffffff;
  font-size:9.5px;font-weight:700;
  line-height:1;padding:5px 10px 5px 12px;
  border-radius:2px 0 0 2px;
  box-shadow:0 1px 3px rgba(8,9,9,.18);
}
.ribbon:after{
  content:"";position:absolute;left:-7px;top:0;bottom:0;
  width:0;height:0;
  border-top:11px solid transparent;
  border-bottom:11px solid transparent;
  border-right:7px solid var(--brand);
}

/* tile palettes — soft pastels like the reference */
.t-peach{background:#F8C7A8}
.t-green{background:#C8E89A}
.t-pink{background:#F8C2D2}
.t-sand{background:#F8E0B0}
.t-lilac{background:#E3D6F6}
.t-mint{background:#C8F0DE}
.t-blue{background:#B7D9FC}
.t-sky{background:#D2EEF8}
.t-gray{background:#E6E8EE}
.t-steel{background:#CDD6EA}
.t-cream{background:#F3E6D0}
.t-rose{background:#F6C9C4}
.t-lemon{background:#F3E58C}
.t-lavender{background:#D9D4F8}
.t-ice{background:#D4F1F5}
.t-amber{background:#F6D59A}
.t-navy{background:#C5D0E8}
.t-olive{background:#D5E3B8}
.t-coral{background:#F5C4B0}
.t-violet{background:#DCC4F0}

/* App download */
.app-promo{
  background:transparent;padding:28px 0 32px;text-align:center;
}
.app-promo h2{
  font-family:var(--font-display);
  font-size:20px;font-weight:700;margin-bottom:16px;color:var(--ink);
}
.app-badges{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.store-btn.row{flex-direction:row;min-width:150px;background:#111;color:#fff}

/* Help FAB */
.help-fab{
  position:fixed;left:14px;bottom:18px;z-index:70;
  display:inline-flex;align-items:center;gap:7px;
  background:var(--brand);color:#ffffff;
  border-radius:24px;padding:10px 16px 10px 12px;
  font-weight:700;font-size:14px;
  box-shadow:0 4px 14px rgba(8,9,9,.28);
  border:0;
  transition:background .2s ease;
}
.help-fab:hover{background:var(--brand-hot);text-decoration:none;color:#ffffff}
.help-fab .ic{
  width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.18);
  display:grid;place-items:center;
}

@media (min-width: 980px){
  .cats{padding:28px 0 40px}
}
@media screen and (max-width: 1280px){
  .classified-container{column-count:1;column-gap:0}
}
@media screen and (max-width: 992px){
  .classified-container{column-count:1}
  .tile,.tile.span-2{height:124px}
}
@media screen and (max-width: 768px){
  .classified-container{column-count:1;height:auto;margin-top:15px}
  .cat-block{margin-top:15px}
  .tile,.tile.span-2{height:133px}
  .tiles{margin-top:15px}
}
@media screen and (max-width: 640px){
  .tile,.tile.span-2{height:130px;overflow:hidden}
  .tile .name{font-size:16px}
  .tiles{margin-top:15px}
  .cat-block .head h2{margin-top:15px}
}
@media screen and (max-width: 500px){
  .tile,.tile.span-2{height:130px}
  .tiles{gap:6px}
  .tile .name{font-size:14px}
  .classified-container .cat-block:first-child .head h2{margin-top:10px}
}

/* ===== Footer ===== */
.footer{background:#2a2a2a;color:#eeeeee;padding:48px 0 0;font-size:13.5px}
.footer a{color:#eeeeee}
.footer a:hover{color:#ffffff;text-decoration:underline}
.footer h3{color:#ffffff;font-size:14.5px;margin-bottom:12px;font-weight:700}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px;padding-bottom:28px}
.footer h4{font-size:14.5px;margin-bottom:12px;color:#ffffff;font-weight:700}
.footer li{margin:7px 0}
.footer .app-box p{margin-bottom:10px;font-weight:700;color:#eeeeee}
.store-btns{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.store-btn{
  display:flex;align-items:center;gap:10px;
  background:#333333;border:1px solid rgba(255,255,255,.2);border-radius:10px;
  padding:8px 14px;min-width:180px;color:#eeeeee;
}
.store-btn small{display:block;font-size:10px;opacity:.8}
.store-btn strong{display:block;font-size:14px}
.sb-ic{display:grid;place-items:center;width:22px;flex:0 0 22px;color:#fff}
.social{display:flex;gap:8px;margin-top:12px}
.social a{
  width:32px;height:32px;border-radius:50%;border:1px solid #666;
  display:grid;place-items:center;color:#fff;
}
.social a:hover{background:var(--brand);border-color:var(--brand);text-decoration:none}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);padding:18px 0;text-align:center;color:#cccccc;
  font-size:12px;
}

/* ===== Listing page ===== */
.page-bg{background:#f4f4f4;min-height:60vh;padding:18px 0 48px}
.crumbs{font-size:13px;color:#777;margin-bottom:12px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.crumbs a:hover{color:var(--brand)}
.crumbs .sep{opacity:.5}
.layout{display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start}
.filters{background:#fff;border-radius:12px;padding:16px;position:sticky;top:100px}
.filters h3{font-size:16px;margin-bottom:12px}
.filter-block{border-top:1px solid #f0eaea;padding:12px 0}
.filter-block h4{font-size:13.5px;margin-bottom:8px}
.price-row{display:flex;gap:8px}
.price-row input,.filter-block input[type=search],.select{
  width:100%;height:38px;border:1px solid #ddd;border-radius:8px;padding:0 10px;background:#fff;font-size:13px
}
.filter-actions{display:flex;gap:8px;margin-top:10px}
.btn-ghost,.btn-apply{
  flex:1;height:38px;border-radius:8px;font-weight:700;font-size:13px
}
.btn-ghost{background:#f4f4f4;color:#333}
.btn-apply{background:var(--brand);color:#fff}
.check-list{max-height:180px;overflow:auto}
.check-list label{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:13px;cursor:pointer}
.listing-main .toolbar{
  background:#fff;border-radius:12px;padding:10px 12px;margin-bottom:12px;
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;
}
.seg{display:flex;background:#f3f3f3;border-radius:8px;padding:3px}
.seg button{padding:6px 14px;border-radius:6px;font-weight:700;font-size:13px;color:#555}
.seg button.active{background:#fff;color:var(--brand);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.view-btns{display:flex;gap:4px}
.view-btns button{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;color:#666}
.view-btns button.active{background:var(--brand-soft);color:var(--brand-deep)}
.sort{height:36px;border:1px solid #e5e5e5;border-radius:8px;padding:0 10px;background:#fff;font-size:13px}
.promo-box{
  background:var(--brand);color:#ffffff;
  border-radius:12px;padding:14px 16px;margin-bottom:12px;
  display:flex;justify-content:space-between;gap:12px;align-items:center;
}
.promo-box h4{font-size:15px}
.promo-box p{font-size:12.5px;opacity:.9;margin-top:2px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.cards.list{grid-template-columns:1fr}
.cards.list .ad-card{display:grid;grid-template-columns:200px 1fr auto;gap:12px;align-items:center}
.cards.list .ad-card .pic{aspect-ratio:auto;height:130px}
.cards.pics{grid-template-columns:repeat(4,1fr)}
.cards.pics .ad-card .meta,.cards.pics .ad-card h3{display:none}
.ad-card{background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;transition:.15s}
.ad-card:hover{box-shadow:var(--shadow)}
.ad-card .pic{position:relative;aspect-ratio:1.3/1;background:#eee;overflow:hidden}
.ad-card .pic img{width:100%;height:100%;object-fit:cover}
.ad-card .badge{position:absolute;top:8px;inset-inline-start:8px;background:var(--brand);color:#fff;font-size:11px;font-weight:800;padding:2px 8px;border-radius:6px}
.ad-card .body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.ad-card h3{font-size:14px;font-weight:700;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}
.ad-card .meta{display:flex;justify-content:space-between;color:#888;font-size:12px}
.ad-card .price{font-size:17px;font-weight:800}
.ad-card .price small{font-size:12px}

/* ===== Ad details ===== */
.ad-layout{display:grid;grid-template-columns:1.3fr .9fr;gap:20px;align-items:start}
.gallery{background:#fff;border-radius:12px;overflow:hidden}
.gallery .main{aspect-ratio:16/10;background:#111;position:relative}
.gallery .main img{width:100%;height:100%;object-fit:cover}
.gallery .thumbs{display:flex;gap:8px;padding:10px;overflow:auto}
.gallery .thumbs button{flex:0 0 84px;height:64px;border-radius:8px;overflow:hidden;border:2px solid transparent;padding:0}
.gallery .thumbs button.active{border-color:var(--brand)}
.gallery .thumbs img{width:100%;height:100%;object-fit:cover}
.ad-info{background:#fff;border-radius:12px;padding:18px}
.ad-info h1{font-size:22px;font-weight:800;line-height:1.4;margin-bottom:8px}
.ad-info .price{font-size:28px;font-weight:800;color:var(--brand);margin:6px 0 12px}
.ad-info .facts{display:flex;flex-wrap:wrap;gap:12px 18px;color:#666;font-size:13px;margin-bottom:14px}
.ad-info .facts span{display:inline-flex;align-items:center;gap:5px}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.actions .btn-call,.actions .btn-chat,.actions .btn-fav{
  height:42px;padding:0 16px;border-radius:10px;font-weight:800;font-size:14px;
  display:inline-flex;align-items:center;gap:6px;
}
.btn-call{background:var(--brand);color:#fff}
.btn-chat{background:var(--brand-soft);color:var(--brand-deep)}
.btn-fav{background:#f5f5f5;color:#333}
.seller{border:1px solid #f0eaea;border-radius:12px;padding:14px;margin-top:12px;display:flex;gap:12px;align-items:center}
.avatar{width:48px;height:48px;border-radius:50%;background:var(--brand-soft);display:grid;place-items:center;font-weight:800;color:var(--brand-deep);flex:0 0 auto}
.seller .who strong{display:block}
.seller .who small{color:#888}
.panel{background:#fff;border-radius:12px;padding:18px;margin-top:16px}
.panel h2{font-size:18px;margin-bottom:10px}
.panel p{color:#333;font-size:14.5px;line-height:1.8}
.comments .item{border-top:1px solid #f0eaea;padding:10px 0;font-size:14px}
.comments .item strong{display:block;margin-bottom:2px}
.comments .item time{color:#999;font-size:12px}
.comment-form{display:flex;gap:8px;margin-top:10px}
.comment-form input{flex:1;height:42px;border:1px solid #ddd;border-radius:10px;padding:0 12px}
.comment-form button{height:42px;padding:0 16px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700}

/* Drawer */
.drawer{
  position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:80;
  display:none;justify-content:flex-start;
}
.drawer.open{display:flex}
.drawer-panel{
  width:min(360px,88vw);height:100%;background:#fff;padding:16px;
  overflow:auto;animation:in .2s ease;
}
@keyframes in{from{transform:translateX(30px);opacity:0}to{transform:none;opacity:1}}
.drawer-panel h3{margin:16px 0 8px;font-size:15px;color:var(--brand)}
.drawer-panel a{display:block;padding:8px 0;border-bottom:1px solid #f4f4f4}

/* Responsive */
@media (max-width: 980px){
  .header .wrap{height:auto;padding:10px 0;flex-wrap:wrap;gap:10px}
  .nav-links{display:none}
  .burger{display:grid}
  .search{order:3;flex-basis:100%;max-width:none;margin:0}
  .logo-text strong{font-size:22px}
  .btn-add{padding:0 12px;height:40px;font-size:13px}
  .feat-row{gap:12px}
  .feat-card{flex:0 0 200px}
  .cats-grid{grid-template-columns:1fr;gap:28px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:20px}
  .layout{grid-template-columns:1fr}
  .filters{position:static}
  .cards{grid-template-columns:repeat(2,1fr)}
  .cards.pics{grid-template-columns:repeat(2,1fr)}
  .ad-layout{grid-template-columns:1fr}
  .promo-inner{flex-direction:column;align-items:flex-start;padding:20px}
  .promo-inner h2{font-size:20px}
  .sec-head h2{font-size:22px}
  .cards.list .ad-card{grid-template-columns:1fr}
}
@media (max-width: 480px){
  .topbar{font-size:12px;height:32px}
  .tiles{gap:6px}
  .tile .name{font-size:14px}
  .cards{grid-template-columns:1fr 1fr;gap:8px}
  .feat-card{flex:0 0 200px}
  .footer-grid{grid-template-columns:1fr}
  .wrap{width:min(var(--wrap), calc(100% - 20px))}
}

.filter-toggle{display:none}
@media (max-width: 980px){
  .filter-toggle{display:inline-flex;align-items:center;height:36px;padding:0 12px;border-radius:8px;background:#fff;border:1px solid #e5e5e5;font-weight:700;font-size:13px}
  .filters{display:none;margin-bottom:12px}
  .filters.open{display:block}
}
