/* marz-offer — scoped .mko-* styles matching Hammasir's v3 «Sky Catalogue» light theme.
   Brand: royal #3B6DB4 · soft #6E9AD0 · powder #C5DAEB · pearl #EEEFF3 · marz-black #11151C.
   v1.5.0: gold is fully removed (class names like .mko-btn--gold are kept for
   JS/PHP compatibility but now render royal blue). The /offer page still renders
   with Hammasir's own markup (.mkh-root wrapper, .mkh-car cards, #mkh-request-view)
   styled by hammasir.css — this file only keeps the offer-specific bits: banner,
   page header/timer, message popup, and additive touches. mkh-* classes are never
   redefined here (the two 1.6.0 exceptions below use the .mkh-root.mko-root
   compound so they apply ONLY on the offer page, never on Hammasir's own pages).
   v1.6.0: desktop card-grid fix, card delivery line, anti-CLS image safety. */

.mko-banner,.mko-root{
  --mk-blue:#3B6DB4; --mk-blue-soft:#6E9AD0; --mk-powder:#C5DAEB; --mk-pearl:#EEEFF3;
  --mk-black:#11151C; --mk-blue-10:#EBF1F8; --mk-blue-20:#D8E4F1; --mk-blue-deep:#2F5B99;
  --mk-ink:#11151C; --mk-muted:#4E5866; --mk-line:#DCE6F2; --mk-err:#C0453A;
  --mk-shadow:0 12px 32px rgba(17,21,28,.08);
}

/* ---------- the banner injected after the Hammasir hero ---------- */
.mko-banner{position:relative;z-index:1;display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  max-width:1136px;margin:26px auto 0;padding:18px 22px;border-radius:16px;
  background:var(--mk-blue-10);border:1px solid var(--mk-blue-20);
  font-family:'Kalameh','Vazirmatn',system-ui,Tahoma,sans-serif;color:var(--mk-ink)}
.mko-banner-img{width:92px;height:64px;object-fit:contain;flex:none;border-radius:12px;background:#fff;border:1px solid var(--mk-line);padding:4px}
.mko-banner-body{display:flex;flex-direction:column;gap:4px;flex:1;min-width:220px}
.mko-banner-title{font-size:17px;font-weight:800;color:var(--mk-black)}
.mko-banner-sub{font-size:13.5px;color:var(--mk-muted);line-height:1.9}
.mko-banner-ends{font-family:'Oxanium','Vazirmatn',sans-serif;font-size:12.5px;color:var(--mk-blue);letter-spacing:.3px}
.mko-banner--live{border-color:var(--mk-blue-20)}
.mko-banner--soon{background:var(--mk-pearl);border-color:var(--mk-line)}

/* buttons — primary CTAs are royal blue (the --gold class name is kept only
   for markup compatibility; nothing renders gold anymore) */
.mko-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;
  font-family:inherit;font-weight:700;font-size:14px;padding:12px 24px;border-radius:12px;
  transition:background .18s ease,box-shadow .18s ease,border-color .18s ease,transform .18s ease}
.mko-btn:hover{transform:translateY(-1px)}
.mko-btn--gold{color:#fff;background:var(--mk-blue);border:1px solid transparent}
.mko-btn--gold:hover{background:var(--mk-blue-deep);box-shadow:0 8px 20px rgba(59,109,180,.28)}
.mko-btn--glass{color:var(--mk-ink);background:#fff;border:1px solid var(--mk-line)}
.mko-btn--glass:hover{border-color:var(--mk-blue);color:var(--mk-blue)}
.mko-btn--full{width:100%;margin-top:10px}
/* the offer header's login button mirrors Hammasir's royal #mkh-auth-btn */
.mko-root #mko-auth-btn{background:var(--mk-blue);color:#fff;border-color:transparent}
.mko-root #mko-auth-btn:hover{background:var(--mk-blue-deep);color:#fff}

/* ---------- the /offer page skeleton (light — the .mkh-root base from
   hammasir.css already provides the white page + typography) ---------- */
.mko-root{direction:rtl;font-family:'Kalameh','Vazirmatn',system-ui,Tahoma,sans-serif;color:var(--mk-ink);
  background:#fff;border-radius:0;padding:0 0 64px;margin:0}
.mko-page{max-width:760px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;
  padding-top:48px}
.mko-page--wide{max-width:1120px}
.mko-eyebrow{font-family:'Oxanium','Vazirmatn',sans-serif;font-weight:600;letter-spacing:5px;font-size:12px;
  color:var(--mk-blue);text-transform:uppercase}
.mko-title{font-size:clamp(28px,5vw,44px);font-weight:900;color:var(--mk-black);margin:0;line-height:1.4}
.mko-sub{font-size:16px;color:var(--mk-muted);margin:0;line-height:2}
.mko-card{width:100%;margin-top:14px;padding:28px 26px;border-radius:16px;
  background:#fff;border:1px solid var(--mk-line);box-shadow:var(--mk-shadow)}
.mko-note{font-size:16px;color:var(--mk-ink);line-height:2;margin:0}
.mko-note--muted{font-size:13.5px;color:var(--mk-muted);margin-top:10px}
.mko-note--muted,.mko-banner-ends{font-feature-settings:normal}

/* ---------- countdown ---------- */
.mko-timer{display:flex;gap:12px;justify-content:center;margin-top:6px;direction:ltr}
.mko-t-cell{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:64px;padding:10px 8px;border-radius:12px;
  background:#fff;border:1px solid var(--mk-line)}
.mko-t-num{font-family:'Oxanium','Vazirmatn',sans-serif;font-size:24px;font-weight:700;color:var(--mk-blue);line-height:1.4}
.mko-t-cell span{font-size:11.5px;color:var(--mk-muted)}

/* ---------- offer touches on the reused Hammasir cards ---------- */
/* the «فروش ویژه» pill on the car image (Hammasir's year badge sits top-left;
   this one takes the top-right corner). Royal solid — official, not glowing. */
.mko-badge{position:absolute;top:10px;right:10px;z-index:1;padding:4px 12px;border-radius:999px;
  font-size:11.5px;font-weight:700;color:#fff;letter-spacing:.2px;
  background:var(--mk-blue);border:1px solid rgba(255,255,255,.4)}
/* the toman line under the USD figure inside the card's price row */
.mkh-price-row .mko-toman{display:block;font-family:'Oxanium','Vazirmatn',sans-serif;
  font-size:11px;font-weight:500;letter-spacing:0;color:#4E5866;margin-top:2px}
/* sold-out chips inside the request view stay selectable (waitlist route) */
#mkh-rv-colors .mko-chip--out{opacity:.5}

/* ---------- modals (the login modal is a full Hammasir clone styled by
   hammasir.css; only the message popup keeps offer-specific styling) ---------- */
/* Our modals are shown by toggling inline display (no .mkh-open class), so
   out-rank hammasir.css's `.mkh-root .mkh-overlay{opacity:0;visibility:hidden}`
   with the IDs — hidden stays hidden via the inline display:none. */
#mko-login.mkh-overlay,#mko-popup.mkh-overlay{opacity:1;visibility:visible}
.mko-modal{position:relative;text-align:right;background:#fff;border:1px solid #DCE6F2;
  border-radius:20px;padding:28px 26px;width:100%;max-width:430px;color:#11151C;
  box-shadow:0 24px 64px rgba(17,21,28,.28);
  font-family:'Kalameh','Vazirmatn',system-ui,Tahoma,sans-serif}
.mko-modal--msg{text-align:center}
.mko-modal--msg h3{font-size:19px;font-weight:800;color:#11151C;margin:0 0 8px}
.mko-modal--msg p{font-size:13.5px;color:#4E5866;line-height:2;margin:0 0 14px}
.mko-err{min-height:18px;font-size:12.5px;color:#C0453A;margin-top:8px}

@media (max-width:600px){
  .mko-banner{padding:16px;margin:20px 14px 0}
  .mko-btn{width:100%}
  .mko-page{padding-top:36px}
}

/* ---------- image / icon safety (anti-CLS, scoped) ----------
   The /offer page normally gets these from hammasir.css; this scoped mirror
   guarantees logos, car images and inline SVGs can never paint at natural
   size even if that stylesheet loads late or is stripped by an optimizer. */
.mko-root .mkh-logo-img{height:34px;width:auto;max-width:180px}
.mko-root .mkh-foot-logo{height:30px;width:auto;max-width:180px}
.mko-root .mkh-car-img{position:relative;aspect-ratio:4/3;overflow:hidden}
.mko-root .mkh-car-img img{width:100%;height:100%;object-fit:contain}
.mko-root .mkh-rv-car .thumb{flex:none;border-radius:14px;overflow:hidden}
.mko-root .mkh-rv-car img{width:128px;height:84px;flex:none;object-fit:contain}
.mko-banner .mko-banner-img{width:92px;height:64px;object-fit:contain}
.mko-root svg{flex-shrink:0}
.mko-root .mkh-lock-row svg{width:14px;height:14px}
.mko-root .mkh-secure svg{width:15px;height:15px}
.mko-root .mkh-call svg{width:13px;height:13px}


/* =====================================================================
   layout: center offer cards + make the Hammasir banner full-width
   v1.6.0 desktop-card fix: the grid selectors are `.mkh-root.mko-root …`
   (specificity 0,3,0) so they ALWAYS beat hammasir.css's
   `.mkh-root .mkh-cars{repeat(4,1fr)}` (0,2,0) regardless of stylesheet
   order — this was the cause of the narrow/deformed desktop cards. Cards
   keep an intentional 280–340px width whether there are 1, 2 or many.
   ===================================================================== */
.mko-root .mko-page--wide{
  width:min(1120px,calc(100% - 48px));
  max-width:1120px;
  margin-inline:auto;
}
.mko-root .mko-banner--hm{
  width:100%;
  max-width:1120px;
  box-sizing:border-box;
  margin:24px auto 12px;
  padding:16px 22px;
  justify-content:space-between;
  align-items:center;
  border-radius:16px;
}
.mko-root .mko-banner--hm .mko-banner-body{
  flex:1 1 auto;
  min-width:0;
  text-align:right;
}
.mko-root .mko-banner--hm .mko-btn{
  width:auto;
  min-width:150px;
  white-space:nowrap;
}
.mkh-root.mko-root .mkh-cars{
  width:100%;
  max-width:1120px;
  margin:18px auto 0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,340px));
  justify-content:center;
  justify-items:stretch;
  gap:24px;
}
.mkh-root.mko-root .mkh-cars .mkh-car{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
/* the price block must never squeeze or clip its figures */
.mkh-root.mko-root .mkh-price-row{min-width:0}
.mkh-root.mko-root .mkh-price-row .mkh-pv{overflow-wrap:anywhere}
/* the delivery line on the card («تحویل همان روز کاری» / «تحویل لحظه‌ای») */
.mko-root .mko-delivery-line{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12.5px;font-weight:600;color:var(--mk-blue);
  margin-top:6px;
}
.mko-root .mko-delivery-line::before{
  content:'';width:6px;height:6px;border-radius:50%;flex:none;
  background:var(--mk-blue);
}
@media(max-width:760px){
  .mko-root .mko-page--wide{width:min(100%,calc(100% - 28px));}
  .mkh-root.mko-root .mkh-cars{max-width:360px;grid-template-columns:1fr;gap:18px;}
  .mko-root .mko-banner--hm{margin:18px auto 10px;align-items:stretch;}
  .mko-root .mko-banner--hm .mko-btn{width:100%;}
}
