/* Wildberry-like marketplace theme */
:root {
  --wb-purple: #cb11ab;
  --wb-purple-dark: #a50d8a;
  --wb-ink: #242424;
  --wb-muted: #8b8b8b;
  --wb-line: #e8e8e8;
  --wb-bg: #f6f6f9;
  --wb-card: #ffffff;
  --wb-ok: #24a148;
  --wb-link: #cb11ab;
  --wb-shadow: 0 6px 20px rgba(36, 36, 36, 0.08);
  --wb-radius: 16px;
  --wb-font: "Manrope", system-ui, sans-serif;
  --wb-max: 1280px;
}
* { box-sizing: border-box; }
body.wb-body { margin: 0; font-family: var(--wb-font); color: var(--wb-ink); background: var(--wb-bg); min-height: 100vh; line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.wb-wrap { width: min(var(--wb-max), calc(100% - 2rem)); margin: 0 auto; }
.wb-demos { background: #1f0a33; font-size: 0.72rem; }
.wb-demos__inner { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0.35rem 0; }
.wb-demos a { color: #c4a8db; }
.wb-demos a.is-active, .wb-demos a:hover { color: #fff; }

.wb-topbar { background: #f5f5f5; color: #333; font-size: 0.78rem; }
.wb-topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; flex-wrap: wrap; }
.wb-topbar__left, .wb-topbar__right { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.wb-topbar a { color: #555; }
.wb-topbar a:hover { color: var(--wb-purple); }
.wb-topbar__city { border: 0; background: transparent; color: #111; font-weight: 700; cursor: pointer; }

.wb-header { background: var(--wb-purple); position: sticky; top: 0; z-index: 40; }
.wb-header__row { display: grid; grid-template-columns: auto auto minmax(240px,1fr) auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0; }
.wb-logo { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; text-transform: lowercase; }
.wb-menu-btn {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; gap: 5px; place-content: center; padding: 0;
}
.wb-menu-btn span { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; }
.wb-search { display: flex; border: 0; border-radius: 14px; overflow: hidden; background: #fff; }
.wb-search__input { flex: 1; border: 0; padding: 0.85rem 1rem; min-width: 0; }
.wb-search__input:focus { outline: none; }
.wb-search__cam { border: 0; background: transparent; color: #888; font-size: 1.1rem; padding: 0 0.9rem; cursor: pointer; }
.wb-header__actions { display: flex; gap: 0.15rem; }
.wb-action { position: relative; display: grid; justify-items: center; gap: 0.1rem; padding: 0.25rem 0.55rem; border-radius: 10px; font-size: 0.72rem; font-weight: 600; color: #fff; }
.wb-action:hover { background: rgba(255,255,255,.12); }
.wb-action__badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; border-radius: 999px; background: #fff; color: var(--wb-purple); font-size: 0.68rem; display: grid; place-items: center; }

.wb-main { min-height: 50vh; padding-bottom: 2rem; background: #fff; }
.wb-alert { margin: 1rem 0 0; padding: 0.85rem 1rem; border-radius: 12px; }
.wb-alert--ok { background: #e8f9ef; color: #14532d; }
.wb-alert--err { background: #fce8f8; color: #86198f; }
.wb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.2rem; border-radius: 12px; font-weight: 700; border: 0; cursor: pointer; }
.wb-btn--primary { background: var(--wb-purple); color: #fff; }
.wb-btn--ghost { background: #fff; border: 1px solid var(--wb-line); }
.wb-link { color: var(--wb-link); font-weight: 700; }
.wb-muted { color: var(--wb-muted); }

.wb-home { padding: 1rem 0 0; }
.wb-home__grid { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
.wb-rail { display: grid; gap: 0.65rem; }
.wb-rail__promo {
  border-radius: 16px; padding: 1rem; color: #fff; display: grid; gap: 0.25rem;
  background: linear-gradient(160deg, #ff47c5, #cb11ab);
  min-height: 88px; align-content: center;
}
.wb-rail__promo--tall { min-height: 180px; background: linear-gradient(160deg, #ff6ad5, #a50d8a); }
.wb-rail__promo strong { font-size: 1.15rem; }
.wb-rail__promo span { font-size: 0.86rem; opacity: 0.92; }
.wb-rail__cat {
  min-height: 84px; border-radius: 14px; background: #eee center/cover; color: #fff; font-weight: 800;
  display: flex; align-items: flex-end; padding: 0.75rem; position: relative; overflow: hidden;
}
.wb-rail__cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.55)); }
.wb-rail__cat span { position: relative; z-index: 1; }

.wb-feed { display: grid; gap: 0.9rem; }
.wb-feed__banner {
  border-radius: 18px; padding: 1.1rem 1.25rem; color: #fff;
  background: linear-gradient(90deg, #6b1bb0, #cb11ab 55%, #ff59cf);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center;
}
.wb-feed__banner strong { font-size: 1.35rem; }
.wb-feed__banner span { opacity: 0.95; }
.wb-feed__banner a { margin-left: auto; background: #fff; color: var(--wb-purple); font-weight: 800; border-radius: 999px; padding: 0.45rem 0.95rem; }

.wb-products { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0.75rem; }
.wb-card { background: #fff; border: 0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.wb-card:hover { box-shadow: var(--wb-shadow); }
.wb-card__media { position: relative; display: grid; place-items: center; min-height: 220px; background: #f7f7f7; padding: 0.5rem; border-radius: 14px; overflow: hidden; }
.wb-card__media img { max-height: 200px; width: auto; object-fit: contain; }
.wb-card__wish { position: absolute; top: 0.55rem; right: 0.65rem; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #888; display: grid; place-items: center; font-size: 0.95rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wb-card__sale { position: absolute; left: 0.55rem; bottom: 0.55rem; background: #f91155; color: #fff; font-size: 0.72rem; font-weight: 800; border-radius: 8px; padding: 0.2rem 0.4rem; }
.wb-card__placeholder { color: #d9b4d4; font-weight: 800; font-size: 1.1rem; }
.wb-card__body { padding: 0.65rem 0.15rem 0.35rem; display: grid; gap: 0.25rem; }
.wb-card__price { font-size: 1.2rem; font-weight: 800; color: #f91155; }
.wb-card__old { color: #999; text-decoration: line-through; font-size: 0.85rem; font-weight: 600; margin-left: 0.35rem; }
.wb-card__title { font-weight: 600; font-size: 0.86rem; min-height: 2.4em; color: #333; }
.wb-card__meta { font-size: 0.78rem; color: #888; }
.wb-card__meta b { color: #111; font-weight: 700; }
.wb-card__delivery {
  margin-top: 0.2rem; display: inline-flex; align-items: center; justify-content: center;
  background: #f3e5f5; color: var(--wb-purple); font-weight: 700; font-size: 0.78rem;
  border-radius: 10px; padding: 0.4rem 0.55rem; width: fit-content;
}

.wb-section { padding: 1.4rem 0; }
.wb-section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.wb-section__head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; }
.wb-cats, .wb-grid, .wb-rooms, .wb-usp { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.85rem; }
.wb-cat { background: #fff; border: 1px solid var(--wb-line); border-radius: 16px; overflow: hidden; transition: .18s ease; }
.wb-cat:hover { box-shadow: var(--wb-shadow); transform: translateY(-2px); }
.wb-cat__img { display: block; height: 120px; background: #fce8f8 center/cover no-repeat; }
.wb-cat__title { display: block; padding: 0.85rem 0.95rem 1rem; font-weight: 700; }
.wb-usp__item { background: #fff; border: 1px solid var(--wb-line); border-radius: 16px; padding: 1.1rem; }
.wb-usp__item strong { display: block; margin-bottom: 0.25rem; }
.wb-usp__item span { color: var(--wb-muted); font-size: 0.88rem; }
.wb-page { padding: 1.25rem 0 2rem; }
.wb-crumbs { display: flex; gap: 0.4rem; flex-wrap: wrap; color: var(--wb-muted); font-size: 0.86rem; margin-bottom: 0.85rem; }
.wb-page__head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.1rem; flex-wrap: wrap; }
.wb-page__head h1 { margin: 0 0 0.25rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.wb-catalog-switch { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.wb-catalog-switch__item { padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--wb-line); background: #fff; font-size: 0.82rem; font-weight: 700; }
.wb-catalog-switch__item.is-active { background: var(--wb-purple); border-color: var(--wb-purple); color: #fff; }
.wb-room { min-height: 140px; border-radius: 16px; background: #481173 center/cover; color: #fff; display: flex; align-items: flex-end; padding: 1rem; font-weight: 800; position: relative; overflow: hidden; }
.wb-room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65)); }
.wb-room__title { position: relative; z-index: 1; }
.wb-room--plain { background: #fff; color: var(--wb-ink); border: 1px solid var(--wb-line); }
.wb-room--plain::after { display: none; }
.wb-subchips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.wb-subchips a { background: #fff; border: 1px solid var(--wb-line); border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.84rem; font-weight: 600; }
.wb-catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.1rem; align-items: start; }
.wb-filters { background: #fff; border: 1px solid var(--wb-line); border-radius: 16px; padding: 1rem; position: sticky; top: 90px; }
.wb-filters h3 { margin: 0 0 0.75rem; }
.wb-filters label { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; font-size: 0.84rem; font-weight: 600; }
.wb-filters input, .wb-filters select, .wb-toolbar select { border: 1px solid var(--wb-line); border-radius: 10px; padding: 0.55rem 0.65rem; background: #fff; }
.wb-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.9rem; flex-wrap: wrap; }
.wb-product { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; background: #fff; border: 1px solid var(--wb-line); border-radius: 20px; padding: 1.25rem; }
.wb-product__gallery { background: #fafafa; border-radius: 16px; min-height: 320px; display: grid; place-items: center; padding: 1rem; }
.wb-product__gallery img { max-height: 360px; width: auto; object-fit: contain; }
.wb-product__price { font-size: 1.8rem; font-weight: 800; margin: 0.75rem 0; }
.wb-product__meta { color: var(--wb-muted); margin-bottom: 1rem; }
.wb-footer { background: #481173; color: #e5d4f5; padding: 2.2rem 0 1.2rem; margin-top: 1rem; }
.wb-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.25rem; }
.wb-footer__col { display: grid; gap: 0.45rem; align-content: start; }
.wb-footer__col h3 { margin: 0 0 0.35rem; color: #fff; font-size: 0.95rem; }
.wb-footer a { color: #d7b8ef; }
.wb-footer a:hover { color: #fff; }
.wb-footer__text { margin: 0.4rem 0 0.6rem; color: #c4a0e0; font-size: 0.88rem; max-width: 34ch; }
.wb-footer__phone { color: #fff !important; font-size: 1.2rem; font-weight: 800; }
.wb-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #6b3a96; color: #c4a0e0; font-size: 0.82rem; }
.wb-logo--footer .wb-logo__mark { color: #f2b8ea; }
@media (max-width: 1100px) {
  .wb-header__row { grid-template-columns: auto 1fr auto; }
  .wb-home__grid { grid-template-columns: 1fr; }
  .wb-rail { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .wb-products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .wb-catalog-layout, .wb-product, .wb-footer__grid { grid-template-columns: 1fr; }
  .wb-cats, .wb-grid, .wb-rooms, .wb-usp { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wb-filters { position: static; }
}
@media (max-width: 760px) {
  .wb-topbar__left a:nth-child(n+3) { display: none; }
  .wb-header__actions span:not(.wb-action__badge) { font-size: 0; }
  .wb-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wb-rail { grid-template-columns: 1fr 1fr; }
}


/* Forms / panels */
.wb-panel {
  background: #fff;
  border: 1px solid var(--wb-line, #e5e7eb);
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 560px;
}
.wb-panel h1 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 800; }
.wb-label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.84rem;
  font-weight: 650;
}
.wb-input,
.wb-panel textarea.wb-input {
  width: 100%;
  border: 1px solid var(--wb-line, #e5e7eb);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}
.wb-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  border-color: var(--wb-link, #2563eb);
}
.wb-input--qty { width: 5.5rem; max-width: 100%; }
.wb-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}
.wb-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.wb-check { display: flex; gap: 0.5rem; align-items: center; }
.error-list { color: #b91c1c; margin: 0 0 1rem; padding-left: 1.1rem; }
