/* Layout: MARKET — structural styles only. All colours come from the active
   palette's variables, so any palette works with this layout. */
html[data-layout="market"] body { font-family: 'Roboto', 'SolaimanLipi', system-ui, sans-serif; }

/* dark utility header driven by the palette's deep brand tone */
.mk-header { background: var(--brand-dark); border-bottom: 0; position: sticky; top: 0; z-index: 1030; }
.mk-header .brand-name { color: var(--brand-dark-ink); }
.mk-header .header-icon { color: var(--brand-dark-ink); opacity: .9; }
.mk-header .header-icon:hover { color: var(--accent); opacity: 1; }
.mk-burger {
  background: transparent; color: var(--brand-dark-ink); font-size: 1.5rem;
  line-height: 1; padding: .2rem .4rem; border-radius: 6px;
}
.mk-burger:hover { background: rgba(128, 128, 128, .25); }
.mk-search .form-control { border: 0; border-radius: 6px 0 0 6px; min-height: 42px; }
.mk-search .btn { border-radius: 0 6px 6px 0; background-image: none; box-shadow: none; min-width: 54px; }
@media (max-width: 767px) { .mk-search { flex-basis: 100%; } }

/* thin category strip */
.mk-strip { background: var(--brand); }
.mk-strip .container-fluid { scrollbar-width: none; }
.mk-strip .container-fluid::-webkit-scrollbar { display: none; }
.mk-strip-link {
  color: var(--brand-ink); opacity: .92; text-decoration: none; white-space: nowrap;
  font-size: .84rem; padding: .45rem .65rem; border-radius: 3px;
}
.mk-strip-link:hover { opacity: 1; color: var(--brand-ink); background: rgba(128, 128, 128, .25); }

/* slide-out drawer */
.mk-drawer { background: var(--card-bg); color: var(--ink); max-width: 320px; }
.mk-drawer-head { background: var(--brand); color: var(--brand-ink); }
.mk-drawer-section {
  background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: .55rem 1rem;
  border-top: 1px solid var(--line);
}
.mk-drawer-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 1rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft); font-size: .92rem;
}
.mk-drawer-link:hover { background: var(--brand-tint); color: var(--brand); }
.mk-drawer-link .bi-chevron-right { color: var(--muted); font-size: .75rem; }

/* wide dense grid */
@media (min-width: 1200px) {
  html[data-layout="market"] .container { max-width: min(1360px, 97vw); }
  html[data-layout="market"] .row-cols-lg-4 > * { width: 20%; }
}
html[data-layout="market"] .row[class*="row-cols-"] { --bs-gutter-x: .65rem; --bs-gutter-y: .65rem; }

/* compact deal cards */
.mk-card { border-radius: 6px; }
.mk-card:hover { transform: none; box-shadow: 0 3px 10px rgba(15, 17, 17, .18); }
.mk-card .thumb { padding: .6rem .6rem 0; }
.mk-card .thumb img { aspect-ratio: 1/1; object-fit: contain; }
.mk-card .body { padding: .5rem .65rem .65rem; position: relative; }
.mk-card .name { font-weight: 400; font-size: .84rem; }
.mk-price-row { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: .15rem; padding-right: 40px; }
.mk-card .price-now { font-size: 1.12rem; }
.mk-off {
  background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700;
  padding: .1rem .35rem; border-radius: 3px;
}
.mk-add {
  position: absolute; right: .55rem; bottom: .55rem;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--brand); color: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  text-decoration: none;
}
.mk-add:hover { background: var(--brand-dark); color: var(--brand-dark-ink); }

html[data-layout="market"] .hero-slide { border-radius: 8px; }
html[data-layout="market"] .btn { border-radius: 6px; }

/* language toggle matches the dark header's icon colour */
.mk-header .lang-switch a { color: var(--brand-dark-ink); }
.mk-header .lang-switch a:hover { color: var(--accent); }
