/* ══════════════════════════════════════════════════════════
   Katalog sahifasi
   styles.css dagi rang va shrift o'zgaruvchilarini ishlatadi
   ══════════════════════════════════════════════════════════ */

.page-catalog {
  background: var(--bg);
  overflow-x: hidden;
}

/* ═══════════ Yuqori panel ═══════════ */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}

.top__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: .85rem 2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.top__logo { display: block; flex: none; }
.top__logo img { height: 46px; width: auto; display: block; }

/* ─── Qidiruv ─── */

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  left: .95rem;
  width: 20px; height: 20px;
  color: var(--text-dim);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: .72rem 2.6rem;
  background: var(--field-2);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .95rem;
  color: var(--text);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.search input::placeholder { color: var(--text-dim); }
.search input::-webkit-search-cancel-button { display: none; }

.search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.search__clear {
  position: absolute;
  right: .8rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-dim);
  background: var(--stroke);
  transition: background .18s ease, color .18s ease;
}
.search__clear:hover { background: var(--stroke-2); color: var(--text); }

.top__right { display: flex; align-items: center; gap: 1rem; }

.top__enter {
  padding: .6rem 1.15rem;
  border-radius: 100px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
.top__enter:hover { background: #0A5F5A; }

/* ═══════════ Tuzilma ═══════════ */

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* ═══════════ Chap panel ═══════════ */

.side {
  position: sticky;
  top: 6.2rem;
  /* Panel ekrandan baland bo'lsa o'z ichida aylanadi —
     aks holda sticky pastki qismini ko'rsatmay qo'yadi */
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: .4rem;
  scrollbar-width: thin;
}

.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: var(--stroke-2); border-radius: 3px; }
.side::-webkit-scrollbar-track { background: transparent; }

.cats { display: flex; flex-direction: column; gap: 2px; margin-bottom: 1.5rem; }

.cat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .62rem .7rem;
  border-radius: var(--r);
  text-align: left;
  color: var(--text-soft);
  transition: background .18s ease, color .18s ease;
}

.cat:hover { background: var(--card-2); color: var(--text); }

.cat.is-on {
  background: var(--brand-dim);
  color: var(--brand);
  font-weight: 600;
}

.cat__icon {
  width: 26px; height: 26px;
  color: currentColor;
  opacity: .78;
}
.cat__icon img { width: 100%; height: 100%; display: block; }

.cat__name { font-size: .92rem; line-height: 1.3; }

.cat__n {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
}
.cat.is-on .cat__n { color: var(--brand); }

/* ─── Filtrlar ─── */

.filters {
  border-top: 1px solid var(--stroke);
  padding-top: 1.25rem;
}

.filters__title {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .9rem;
}

.filter { margin-bottom: 1.1rem; }

.filter__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.filter__list { display: flex; flex-direction: column; gap: .35rem; }

.check {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .87rem;
  color: var(--text-soft);
  cursor: pointer;
  padding: .18rem 0;
}

.check input {
  width: 17px; height: 17px;
  accent-color: var(--brand);
  cursor: pointer;
  flex: none;
}

.check:hover { color: var(--text); }

.check__n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
}

.filters__reset {
  margin-top: .4rem;
  font-size: .84rem;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filters__reset:hover { color: #0A5F5A; }

/* ═══════════ Natijalar ═══════════ */

.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.results__count { font-size: .9rem; color: var(--text-soft); }
.results__count b { color: var(--text); font-weight: 600; }

.sort {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .87rem;
  color: var(--text-soft);
}

.sort select {
  font: inherit;
  padding: .4rem 2rem .4rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: var(--r-s);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234A736F' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 11px;
}

.sort select:focus { outline: none; border-color: var(--brand); }

/* ─── Mahsulot to'ri ─── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card-p {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  transition: border-color .2s ease, transform .2s cubic-bezier(.2,.75,.3,1), box-shadow .2s ease;
}

.card-p:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -20px rgba(6,64,60,.35);
}

.card-p__art {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-2);
  border-bottom: 1px solid var(--stroke);
  color: var(--brand);
  position: relative;
}

.card-p__art img { width: 104px; height: 104px; }

.card-p__badge {
  position: absolute;
  top: .6rem; left: .6rem;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-brand);
  background: var(--brand);
  padding: .22rem .5rem;
  border-radius: 100px;
}

.card-p__body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-p__brand {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .3rem;
}

.card-p__name {
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--text);
  margin-bottom: .5rem;
  overflow-wrap: break-word;
}

.card-p__attrs {
  font-size: .78rem;
  color: var(--text-soft);
  margin-bottom: .85rem;
  line-height: 1.45;
}

.card-p__foot { margin-top: auto; }

.card-p__from {
  font-size: .72rem;
  color: var(--text-dim);
  margin-bottom: .1rem;
}

.card-p__price {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.028em;
  color: var(--text);
  line-height: 1.2;
}

.card-p__unit { font-size: .82rem; font-weight: 500; color: var(--text-soft); }

.card-p__shops {
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  color: var(--brand);
  font-weight: 600;
}

.card-p__spread { color: var(--text-dim); font-weight: 400; }

/* ─── Bo'sh natija ─── */

.empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-soft);
  font-size: .95rem;
}

/* ═══════════ Mahsulot oynasi ═══════════ */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sheet[hidden] { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,32,30,.42);
  backdrop-filter: blur(3px);
  animation: fade .25s ease both;
}

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.sheet__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 90px -40px rgba(6,64,60,.55);
  animation: pop .3s cubic-bezier(.2,.75,.3,1) both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.sheet__x {
  position: absolute;
  top: .9rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dim);
  background: var(--card-2);
  z-index: 2;
  transition: background .18s ease, color .18s ease;
}
.sheet__x:hover { background: var(--stroke); color: var(--text); }

.sheet__head {
  padding: 1.6rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--stroke);
}

.sheet__art {
  width: 128px; height: 128px;
  margin: 0 auto .9rem;
  background: var(--card-2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet__art img { width: 104px; height: 104px; }

.sheet__brand {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .35rem;
}

.sheet__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.026em;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: .85rem;
  padding-right: 2rem;
}

.sheet__attrs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.sheet__attr {
  font-size: .78rem;
  color: var(--text-soft);
  background: var(--card-2);
  border-radius: 100px;
  padding: .28rem .7rem;
}

.sheet__attr b { color: var(--text); font-weight: 600; }

.sheet__body { padding: 1.35rem 1.75rem 1.75rem; }

.sheet__sub {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .85rem;
}

.sheet__n {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* ─── Taklif kartasi ─── */

.offer {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  margin-bottom: .7rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.offer:hover { border-color: var(--stroke-2); box-shadow: 0 6px 20px -14px rgba(6,64,60,.4); }

.offer.is-best {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand) inset, 0 10px 26px -18px rgba(13,122,116,.5);
}

.offer__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.offer__who { display: flex; gap: .7rem; align-items: center; min-width: 0; }

/* Sotuvchi belgisi */
.ava {
  flex: none;
  display: block;
  border-radius: 11px;
  object-fit: cover;
}

.ava--md { width: 42px; height: 42px; }
.ava--lg { width: 68px; height: 68px; border-radius: 16px; }

.ava--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dim);
  color: var(--brand);
  font-weight: 700;
  font-size: 1.15rem;
}

.ava--lg.ava--letter { font-size: 1.9rem; }
.ava--letter.is-maker { background: #FFF1DC; color: #8C5610; }

.offer__shop {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.018em;
  color: var(--text);
  line-height: 1.3;
}

.offer__check { width: 15px; height: 15px; flex: none; color: var(--brand); }

.offer__maker {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8C5610;
  background: #FFF1DC;
  padding: .14rem .42rem;
  border-radius: 100px;
}

.offer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .15rem;
  font-size: .78rem;
  color: var(--text-dim);
}

.offer__rate { color: var(--text-soft); font-weight: 600; }

.dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  flex: none;
}

.offer__right { text-align: right; }

.offer__tag {
  display: inline-block;
  margin-bottom: .2rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-brand);
  background: var(--brand);
  padding: .18rem .5rem;
  border-radius: 100px;
}

.offer__price {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.15;
}

.offer__unit {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
}

.offer__facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--stroke);
  font-size: .8rem;
  color: var(--text-soft);
}

.offer__facts b { color: var(--text); font-weight: 600; }

.offer__more { margin-top: .2rem; }


/* ─── Filtr sarlavhasi ─── */

.filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}

.filters__title { margin-bottom: 0; }

/* ─── Yig'iladigan bo'lim ─── */

.filter__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: .5rem;
  padding: 0;
}

.filter__toggle svg {
  width: 11px; height: 8px;
  color: var(--text-dim);
  transition: transform .22s ease;
  flex: none;
}

.filter__toggle.is-folded svg { transform: rotate(-90deg); }

/* ─── Narx oralig'i ─── */

.range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
}

.range input {
  width: 100%;
  min-width: 0;
  padding: .48rem .55rem;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--r-s);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.range input::placeholder { font-family: var(--body); color: var(--text-dim); }
.range input::-webkit-outer-spin-button,
.range input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.range input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-dim);
}

.range__dash { color: var(--text-dim); font-size: .8rem; }

.range__hint {
  margin-top: .4rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-dim);
}

/* ─── Atribut tugmachalari ─── */

.pills { display: flex; flex-wrap: wrap; gap: .35rem; }

.pill {
  padding: .32rem .6rem;
  font-size: .78rem;
  color: var(--text-soft);
  background: var(--card-2);
  border: 1px solid transparent;
  border-radius: 100px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.pill:hover { color: var(--text); border-color: var(--stroke-2); }

.pill.is-on {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}

.check__ok { color: var(--brand); font-size: .78rem; }

/* ─── Faol filtrlar qatori ─── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}

.chips:empty { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .34rem .5rem .34rem .7rem;
  font-size: .8rem;
  color: var(--brand);
  background: var(--brand-dim);
  border-radius: 100px;
  transition: background .18s ease;
}

.chip:hover { background: rgba(13,122,116,.2); }
.chip__x { font-size: 1rem; line-height: 1; opacity: .7; }

.chip--clear { color: var(--text-soft); background: var(--card-2); }
.chip--clear:hover { background: var(--stroke); color: var(--text); }

/* ═══════════ Moslashuvchanlik ═══════════ */

@media (max-width: 1080px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; }
  .top__inner { padding: .75rem 1.5rem; gap: 1.2rem; }
  .top__logo img { height: 40px; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }

  .side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .filters__open { display: block; }

  /* Filtrlar sukut bo'yicha yopiq, tugma bosilganda ochiladi */
  .filters { display: none; }
  .filters-open .filters {
    display: block;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-2);
    border-radius: 14px;
    border-top: none;
  }

  /* Kategoriyalar gorizontal lentaga aylanadi */
  .cats {
    flex-direction: row;
    overflow-x: auto;
    gap: .5rem;
    padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .cats::-webkit-scrollbar { display: none; }

  .cat {
    grid-template-columns: auto auto;
    flex: none;
    border: 1px solid var(--stroke);
    white-space: nowrap;
  }
  .cat__icon, .cat__n { display: none; }
  .cat__name { font-size: .87rem; }

  .filters { padding-top: 1rem; }
}

@media (max-width: 620px) {
  .top__inner {
    grid-template-columns: auto auto;
    grid-template-areas: "logo right" "search search";
    gap: .75rem;
    padding: .7rem 1rem;
  }
  .top__logo { grid-area: logo; }
  .top__right { grid-area: right; }
  .search { grid-area: search; }
  .top__logo img { height: 34px; }
  .top__enter { padding: .5rem .85rem; font-size: .84rem; }

  .shell { padding: 1.25rem 1rem 2.5rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
  .card-p__art { height: 96px; }
  .card-p__body { padding: .75rem .8rem .85rem; }
  .card-p__price { font-size: 1.15rem; }

  .sheet { padding: 0; align-items: flex-end; }
  .sheet__box { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .sheet__head { padding: 1.35rem 1.25rem 1.1rem; }
  .sheet__body { padding: 1.1rem 1.25rem 1.5rem; }
  .offer { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .offer__right { text-align: left; }
}

/* ══════════════════════════════════════════════════════════
   Sotuvchilar sahifasi
   ══════════════════════════════════════════════════════════ */

/* ─── Yuqori menyu ─── */

.nav { display: flex; gap: .25rem; flex: none; }

.nav__link {
  padding: .5rem .85rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.nav__link:hover { background: var(--card-2); color: var(--text); }
.nav__link.is-on { background: var(--brand-dim); color: var(--brand); }

/* ─── Keng maket ─── */

.wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

.wide.is-hidden { display: none; }

/* ─── Tablar ─── */

.tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: .75rem;
  flex-wrap: wrap;
}

.tab {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background .18s ease, color .18s ease;
}

.tab b {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  color: var(--text-dim);
}

.tab:hover { background: var(--card-2); color: var(--text); }

.tab.is-on { background: var(--brand); color: var(--on-brand); }
.tab.is-on b { color: rgba(255,255,255,.75); }

/* ─── Sotuvchi kartasi ─── */

.shopgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
}

.shopcard {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.15rem 1.2rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s cubic-bezier(.2,.75,.3,1), box-shadow .2s ease;
}

.shopcard:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -20px rgba(6,64,60,.35);
}

.shopcard__top { display: flex; align-items: center; gap: .8rem; }

.shopcard__id { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }

.shopcard__name {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.018em;
  color: var(--text);
}

.shopcard__type {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  padding: .16rem .45rem;
  border-radius: 100px;
  align-self: flex-start;
}

.shopcard__type.is-maker { color: #8C5610; background: #FFF1DC; }

.shopcard__about {
  font-size: .84rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.shopcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  font-size: .78rem;
  color: var(--text-dim);
}

.shopcard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--stroke);
  font-size: .82rem;
  color: var(--text-soft);
  margin-top: auto;
}

.shopcard__stat b { color: var(--text); font-weight: 700; }

.shopcard__best {
  font-size: .76rem;
  color: var(--brand);
  background: var(--brand-dim);
  padding: .16rem .5rem;
  border-radius: 100px;
  font-weight: 600;
}

.shopcard__rate { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.star { color: #E0A21A; }
.shopcard__rev { font-family: var(--mono); font-size: .72rem; color: var(--text-dim); }

/* ─── Sotuvchi sarlavhasi ─── */

.back {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand);
}
.back:hover { color: #0A5F5A; }

.shophead {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--card-2);
  border-radius: 16px;
  margin-bottom: 1.75rem;
}

.shophead__body { min-width: 0; }

.shophead__name {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.026em;
  color: var(--text);
  margin-bottom: .35rem;
}

.shophead__about {
  font-size: .9rem;
  color: var(--text-soft);
  margin-bottom: .95rem;
  max-width: 62ch;
}

.shophead__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
}

.shophead__stats dt {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .15rem;
}

.shophead__stats dd { font-size: .9rem; font-weight: 600; color: var(--text); }

/* ─── Gorizontal kategoriya lentasi ─── */

.cats--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.1rem;
}

.cats--row .cat {
  grid-template-columns: auto auto;
  border: 1px solid var(--stroke);
  padding: .45rem .85rem;
}

.cats--row .cat.is-on { border-color: var(--brand); }

/* ─── Sotuvchi mahsuloti kartasi ─── */

.card-p--flat { cursor: default; }
.card-p--flat:hover { transform: none; border-color: var(--stroke); box-shadow: none; }

.card-p__tier {
  display: block;
  margin-top: .25rem;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--brand);
}

/* ═══════════ Moslashuvchanlik ═══════════ */

@media (max-width: 1080px) {
  .nav__link { padding: .45rem .65rem; font-size: .85rem; }
  .wide { padding: 1.5rem; }
}

@media (max-width: 860px) {
  .top__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav { display: none; }
  .shophead { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .ava--lg { width: 56px; height: 56px; }
}

@media (max-width: 620px) {
  .wide { padding: 1.25rem 1rem 2.5rem; }
  .shopgrid { grid-template-columns: minmax(0, 1fr); }
  .shophead__stats { gap: .5rem 1.25rem; }
  .shophead__name { font-size: 1.2rem; }
  .tabs { gap: .25rem; }
  .tab { padding: .45rem .7rem; font-size: .85rem; }
}

.offer__maker {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8C5610;
  background: #FFF1DC;
  padding: .14rem .42rem;
  border-radius: 100px;
}

/* ═══════════ Optom shkalasi ═══════════ */

.offer { display: block; }

.offer__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.offer__min {
  margin-top: .2rem;
  font-size: .74rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.bulk {
  margin-top: .55rem;
  border-top: 1px dashed var(--stroke);
  padding-top: .55rem;
}

.bulk__sum::after {
  content: '';
  flex: 1;
}

.bulk__sum {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
  list-style: none;
  padding: .1rem 0;
  transition: color .18s ease;
}

.bulk__sum:hover { color: var(--text); }
.bulk[open] > .bulk__sum { color: var(--brand); }

.bulk__sum::-webkit-details-marker { display: none; }

.bulk__sum::before {
  content: '';
  width: 7px; height: 7px;
  flex: none;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .22s ease;
  margin-right: .1rem;
}

.bulk[open] .bulk__sum::before { transform: rotate(-135deg) translate(-2px, -2px); }



.bulk__badge {
  order: 3;
  font-size: .68rem;
  font-weight: 700;
  color: #1B6E3F;
  background: #E4F4EA;
  padding: .14rem .45rem;
  border-radius: 5px;
  white-space: nowrap;
}

.bulk__table {
  margin-top: .5rem;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  overflow: hidden;
  background: #FCFDFD;
}

.bulk__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 3.4rem;
  align-items: center;
  gap: .6rem;
  padding: .52rem .7rem;
  font-size: .84rem;
  border-bottom: 1px solid var(--stroke);
}

.bulk__row:last-child { border-bottom: none; }
.bulk__row.is-base { background: #F4F7F7; color: var(--text-soft); }

.bulk__qty { color: var(--text-soft); }
.bulk__row.is-base .bulk__qty { color: var(--text-dim); }

.bulk__price {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.bulk__save {
  text-align: right;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  color: var(--brand);
}

.bulk__none {
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid var(--stroke);
  font-size: .78rem;
  color: var(--text-dim);
}

@media (max-width: 620px) {
  .offer__head { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .offer__right { text-align: left; }
  .bulk__row { grid-template-columns: minmax(0, 1fr) auto 3rem; font-size: .8rem; }
}

/* ═══════════ Yetkazib berish ═══════════ */

.ship .bulk__sum { color: var(--text-soft); }
.ship .bulk__sum .ship__free { order: 3; }

.ship__free {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  color: #1B6E3F;
  background: #E4F4EA;
  padding: .12rem .42rem;
  border-radius: 5px;
  white-space: nowrap;
}

.ship__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 3.6rem;
  align-items: center;
  gap: .6rem;
  padding: .52rem .7rem;
  font-size: .84rem;
  border-bottom: 1px solid var(--stroke);
}

.ship__row:last-child { border-bottom: none; }

.ship__zone { color: var(--text-soft); }

.ship__price {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.ship__days {
  text-align: right;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.ship__note {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Do'kon kartasidagi qisqa qator */
.shopcard__ship {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.shopcard__ship svg { width: 19px; height: 14px; flex: none; color: var(--brand); }

/* Do'kon sarlavhasidagi blok */
.shophead .bulk { margin-top: 1rem; max-width: 30rem; }

/* Do'kon mahsuloti kartasidagi optom jadvali */
.card-p--flat .bulk { margin-top: .6rem; padding-top: .55rem; }
.card-p--flat .bulk__sum { font-size: .78rem; }
.card-p--flat .bulk__badge { font-size: .66rem; }
.card-p--flat .bulk__row { padding: .42rem .55rem; font-size: .78rem; }

@media (max-width: 620px) {
  .ship__row { grid-template-columns: minmax(0, 1fr) auto; }
  .ship__days { grid-column: 2; text-align: right; }
}

/* ═══════════ Hudud tanlagichi ═══════════ */

.region {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem .4rem .6rem;
  background: var(--card-2);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color .18s ease;
}

.region:hover { border-color: var(--stroke-2); }
.region:focus-within { border-color: var(--brand); }

.region svg { width: 14px; height: 18px; flex: none; color: var(--brand); }

.region select {
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  max-width: 11rem;
  appearance: none;
  padding-right: .9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234A736F' stroke-width='1.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
}

.region select:focus { outline: none; }

/* ─── Tanlangan hududga yetkazish qatori ─── */

.ship__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .7rem;
  padding: .5rem .65rem;
  background: #F1F8F4;
  border: 1px solid #DBEDE1;
  border-radius: 9px;
  font-size: .82rem;
  color: var(--text-soft);
}

.ship__line svg { width: 19px; height: 14px; flex: none; color: var(--brand); }
.ship__line b { color: var(--text); font-weight: 700; }

.ship__freeword { color: #1B6E3F !important; }

.ship__no {
  margin-top: .8rem;
  padding: .55rem .7rem;
  background: #FDF0EC;
  border-radius: var(--r-s);
  font-size: .82rem;
  color: #A83E28;
}

.ship__zone .ship__free { margin-left: .4rem; }

@media (max-width: 860px) {
  .region select { max-width: 7rem; font-size: .8rem; }
}

@media (max-width: 620px) {
  .region { padding: .35rem .55rem; }
  .region select { max-width: 5.5rem; }
}

/* Tuman tanlagichi */
.region__sep { color: var(--text-dim); font-size: .8rem; }
.region__sep.is-hidden, .region select.is-hidden { display: none; }
.region select#district { max-width: 9rem; font-weight: 500; color: var(--text-soft); }

@media (max-width: 860px) {
  .region select#district { max-width: 6rem; }
}

/* ═══════════ Manzil va joylashuv ═══════════ */

.offer__addr {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin-top: .28rem;
  font-size: .78rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.offer__addr svg { width: 12px; height: 15px; flex: none; margin-top: .1rem; color: var(--text-dim); }

.offer__phone {
  display: inline-block;
  margin-top: .2rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(13,122,116,.3);
}
.offer__phone:hover { border-color: var(--brand); }

.tag-remote {
  font-size: .66rem;
  font-weight: 600;
  color: #8C5610;
  background: #FFF1DC;
  padding: .12rem .42rem;
  border-radius: 5px;
  white-space: nowrap;
}

.shopcard__addr { line-height: 1.4; }

.shophead__stats .wide-dd { flex-basis: 100%; }
.shophead__stats a { color: var(--brand); text-decoration: none; }
.shophead__stats a:hover { text-decoration: underline; }

/* Do'konlar sahifasidagi belgi */
#viewList > .check {
  margin: -.5rem 0 1.1rem;
  width: fit-content;
}

/* ═══════════ Kategoriya daraxti ═══════════ */

.catgroup { display: block; }

.cat { position: relative; }

.cat__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-left: -.2rem;
  border-radius: 6px;
  color: var(--text-dim);
  transition: background .16s ease, transform .22s ease;
}

.cat__arrow svg { width: 11px; height: 8px; }
.cat__arrow:hover { background: var(--stroke); color: var(--text); }


.cat { grid-template-columns: 34px minmax(0, 1fr) auto auto; }

.subs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: .15rem 0 .35rem 2.55rem;
  padding-left: .7rem;
  border-left: 1px solid var(--stroke);
}

.sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .4rem .6rem;
  border-radius: 8px;
  text-align: left;
  font-size: .85rem;
  color: var(--text-soft);
  transition: background .16s ease, color .16s ease;
}

.sub:hover { background: var(--card-2); color: var(--text); }
.sub.is-on { background: var(--brand-dim); color: var(--brand); font-weight: 600; }

.cat__n--0 { opacity: .45; }

/* Nom va strelka — alohida tugmalar, yonma-yon */
.catrow { display: flex; align-items: stretch; gap: 2px; }
.catrow > .cat, .catrow > .sub { flex: 1; min-width: 0; }
.catrow > .cat__arrow {
  flex: none;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-dim);
  transition: background .16s ease, color .16s ease, transform .2s ease;
}
.catrow > .cat__arrow:hover { background: var(--card-2); color: var(--text); }
.catgroup.is-open > .catrow > .cat__arrow,
.subgroup.is-open > .catrow > .cat__arrow { transform: rotate(180deg); }

/* Uchinchi daraja: kategoriya ichidagi turlar */
.sub > span:first-child { flex: 1; min-width: 0; }
.catrow > .cat__arrow--sm { width: 26px; }
.catrow > .cat__arrow--sm svg { width: 10px; height: 7px; }

.kinds {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: .1rem 0 .3rem 1rem;
  padding-left: .6rem;
  border-left: 1px dashed var(--stroke);
}

.kind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .32rem .55rem;
  border-radius: 7px;
  text-align: left;
  font-size: .8rem;
  color: var(--text-soft);
  transition: background .16s ease, color .16s ease;
}

.kind:hover { background: var(--card-2); color: var(--text); }
.kind.is-on { background: var(--brand-dim); color: var(--brand); font-weight: 600; }

@media (max-width: 860px) {
  .catgroup { flex: none; }
  .subs, .kinds { display: none; }
}

/* ═══════════ Bo'lim takliflari ═══════════ */

.suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1rem;
  margin-bottom: 1.1rem;
  background: var(--card-2);
  border-radius: 12px;
}

.suggest.is-hidden { display: none; }

.suggest__label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-right: .2rem;
}

.suggest__b {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem .45rem .55rem;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  text-align: left;
  transition: border-color .18s ease, transform .16s ease;
}

.suggest__b:hover { border-color: var(--brand); transform: translateY(-1px); }
.suggest__b img { width: 22px; height: 22px; color: var(--brand); flex: none; }
.suggest__b b { display: block; font-size: .84rem; font-weight: 600; color: var(--text); }
.suggest__b em { display: block; font-size: .7rem; font-style: normal; color: var(--text-dim); }

/* ═══════════ Yuklangan rasm va chegirma ═══════════ */

.card-p__art.has-photo { padding: 0; }
.card-p__art.has-photo img { width: 100%; height: 100%; object-fit: cover; }

.card-p__sale {
  position: absolute;
  top: .6rem; left: .6rem;
  font-size: .74rem;
  font-weight: 700;
  color: #fff;
  background: #C0392B;
  padding: .2rem .5rem;
  border-radius: 100px;
}

.offer__was {
  margin-top: .15rem;
  font-size: .76rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.offer__was b { color: #A83E28; font-weight: 700; }

/* Galereya */
.sheet__gallery {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .4rem;
  margin-bottom: .9rem;
  scrollbar-width: thin;
}

.sheet__gallery img, .sheet__gallery video {
  height: 150px;
  border-radius: 12px;
  flex: none;
  object-fit: cover;
  background: var(--card-2);
}

.sheet__gallery img { width: 150px; }
.sheet__gallery video { width: 220px; }

.sheet__desc {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--stroke);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.sheet__desc.is-hidden { display: none; }

/* ═══════════ Optom oynasi ═══════════ */

.b2b-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8C5610;
  background: #FFF1DC;
  padding: .3rem .7rem;
  border-radius: 100px;
  white-space: nowrap;
}

.page-b2b .top { border-bottom-color: #E8D5B5; }

.lockbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  margin-bottom: 1.1rem;
  background: #FFF9EF;
  border: 1px solid #F0DFC2;
  border-radius: 14px;
}

.lockbar.is-hidden { display: none; }
.lockbar b { display: block; font-size: .98rem; color: var(--text); }
.lockbar span { font-size: .85rem; color: var(--text-soft); }
.lockbar .btn { width: auto; padding: .7rem 1.2rem; text-decoration: none; }

/* Yopiq narx */
.card-p__locked,
.offer__locked {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .84rem;
  font-weight: 600;
  color: #8C5610;
  background: #FFF1DC;
  padding: .3rem .6rem;
  border-radius: 8px;
}

.card-p__locked svg { width: 14px; height: 16px; }
.offer__locked { font-size: .9rem; }

@media (max-width: 620px) {
  .b2b-badge { display: none; }
  .lockbar { flex-direction: column; align-items: flex-start; }
  .lockbar .btn { width: 100%; text-align: center; }
}

/* ═══════════ Foydalanuvchi menyusi ═══════════ */

.acc { position: relative; }

.acc__btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .7rem .35rem .35rem;
  background: var(--card-2);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  transition: border-color .18s ease;
}

.acc__btn:hover { border-color: var(--stroke-2); }

.acc__ava {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: .82rem;
  font-weight: 700;
  flex: none;
}

.acc__name {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc__arrow { width: 11px; height: 8px; color: var(--text-dim); flex: none; }

.acc__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 14rem;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: 0 18px 40px -22px rgba(6,64,60,.5);
}

.acc__menu.is-hidden { display: none; }

.acc__head {
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: .3rem;
}

.acc__head b { display: block; font-size: .88rem; color: var(--text); }
.acc__head em { font-style: normal; font-size: .74rem; color: var(--text-dim); }

.acc__item {
  display: block;
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 8px;
  text-align: left;
  font-size: .88rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.acc__item:hover { background: var(--card-2); color: var(--text); }
.acc__item--out { color: #A83E28; margin-top: .2rem; border-top: 1px solid var(--stroke); border-radius: 0 0 8px 8px; }
.acc__item--out:hover { background: #FBE6E0; }

/* ═══════════ Shaxsiy kabinet ═══════════ */

.kabhead {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kabhead__ava {
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  flex: none;
}

.kabhead h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.026em;
  color: var(--text);
}

.kabhead p { margin-top: .3rem; display: flex; gap: .4rem; flex-wrap: wrap; }

.kabtag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-dim);
  padding: .22rem .6rem;
  border-radius: 100px;
}

.kabtag.is-b2b { color: #8C5610; background: #FFF1DC; }
.kabtag.is-wait { color: #8C5610; background: #FFF9EF; border: 1px solid #F0DFC2; }

.kabgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.kabcard {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.kabcard h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .9rem;
}

.kabrows { display: flex; flex-direction: column; gap: .1rem; }

.kabrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--stroke);
  font-size: .88rem;
}

.kabrow:last-child { border-bottom: none; }
.kabrow dt { color: var(--text-dim); }
.kabrow dd { color: var(--text); font-weight: 600; text-align: right; }

.kabempty { font-size: .88rem; color: var(--text-soft); margin-bottom: .9rem; }
.kabcard .btn { width: auto; padding: .65rem 1.1rem; text-decoration: none; display: inline-block; }

@media (max-width: 620px) {
  .acc__name { display: none; }
  .acc__btn { padding: .3rem; }
}

/* ═══════════ Yuqoridagi filtr paneli ═══════════ */

.shell--wide { grid-template-columns: minmax(0, 1fr); }

.toolbar {
  position: sticky;
  top: 5.2rem;
  z-index: 25;
  margin-bottom: 1.1rem;
  padding: .7rem .85rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--stroke);
  border-radius: 14px;
}

.toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

/* Ochiluvchi tugma */
.fdrop { position: relative; }
.fdrop.is-hidden { display: none; }

.fbtn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .48rem .8rem;
  background: var(--card-2);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .86rem;
  color: var(--text-soft);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.fbtn:hover { background: var(--stroke); color: var(--text); }
.fbtn.is-on { background: #fff; border-color: var(--brand); color: var(--text); }

.fbtn__label { font-weight: 600; }

.fbtn__val {
  font-size: .76rem;
  font-weight: 700;
  color: var(--brand);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbtn__val:empty { display: none; }
.fbtn svg { width: 10px; height: 7px; color: var(--text-dim); flex: none; }

/* Ochiladigan panel */
.fpanel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 15rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: .8rem;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: 0 18px 40px -22px rgba(6,64,60,.5);
}

.fpanel.is-hidden { display: none; }
.fpanel--wide { min-width: 21rem; }

/* Belgilar */
.fcheck {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .48rem .75rem;
  background: var(--card-2);
  border-radius: 100px;
  font-size: .84rem;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}

.fcheck:hover { background: var(--stroke); color: var(--text); }
.fcheck.is-hidden { display: none; }

.fcheck input {
  width: 15px; height: 15px;
  accent-color: var(--brand);
  cursor: pointer;
  flex: none;
}

.fcheck:has(input:checked) {
  background: var(--brand-dim);
  color: var(--brand);
  font-weight: 600;
}

.freset {
  font-size: .82rem;
  color: var(--text-dim);
  padding: .48rem .6rem;
  border-radius: 100px;
  transition: color .16s ease, background .16s ease;
}

.freset:hover { color: #A83E28; background: #FBE6E0; }

.toolbar .sort { margin-left: auto; }

/* Panel ichidagi kategoriya daraxti */
.fpanel .cats { margin-bottom: 0; }
.fpanel .cat { padding: .45rem .55rem; }
.fpanel .subs { margin-left: 2.2rem; }
.fpanel .subs, .fpanel .kinds { display: flex; }

.results__count { margin-bottom: .7rem; }

@media (max-width: 860px) {
  .toolbar { top: 4.6rem; padding: .6rem; }
  .toolbar .sort { margin-left: 0; width: 100%; }
  .fpanel { left: 0; right: auto; min-width: 14rem; }
  .fpanel--wide { min-width: 16rem; }
}

@media (max-width: 620px) {
  .toolbar {
    position: static;
    margin: 0 -1rem 1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .toolbar__row { gap: .35rem; }
  .fbtn, .fcheck { font-size: .8rem; padding: .42rem .65rem; }
}

/* Kengligi mazmuniga qarab tugma */
.btn--auto {
  width: auto;
  padding: .7rem 1.2rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ─── Panel ichidagi qidiruv ─── */

.fsearch {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: .6rem;
}

.fsearch svg {
  position: absolute;
  left: .6rem;
  width: 14px; height: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.fsearch input {
  width: 100%;
  min-width: 0;
  padding: .5rem .7rem .5rem 1.9rem;
  font-size: .85rem;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background .16s ease, border-color .16s ease;
}

.fsearch input::placeholder { color: var(--text-dim); }

.fsearch input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
}

/* Panel ichidagi izohlar */
.hint {
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.hint--dim { color: var(--text-dim); margin: .4rem 0 0; }


/* ═══════════ Buyurtma formasi ═══════════ */

.btn--order { width: 100%; margin-top: .7rem; }

.orderform {
  margin-top: .7rem;
  padding: .85rem;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.orderform__row { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
.orderform__row--pill { align-items: center; }

.orderform label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--text-soft); }
.orderform input[type=number] { width: 7rem; }
.orderform input {
  padding: .5rem .65rem;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: var(--card);
  font: inherit;
  color: var(--text);
}

.orderform__total { display: flex; align-items: baseline; gap: .35rem; font-size: .9rem; margin-left: auto; }
.orderform__total b { font-size: 1.15rem; }
.orderform__total em { font-style: normal; font-size: .74rem; color: var(--brand); }

.pill {
  flex-direction: row !important;
  align-items: center;
  gap: .4rem !important;
  padding: .4rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  cursor: pointer;
  background: var(--card);
}
.pill:has(input:checked) { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }

.orderform__field { width: 100%; }
.orderform__field input { width: 100%; }

.orderform__err { color: #C0392B; font-size: .82rem; }
.orderform__note { font-size: .84rem; color: var(--text-soft); }

.orderform__done { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.orderform__done > b { color: var(--brand); font-size: 1.02rem; }


/* Buyurtma xaritasi */
.orderform__lbl { font-size: .82rem; color: var(--text-soft); }
.ordmap {
  height: 260px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  cursor: crosshair;
}
.ordmap__picked { font-size: .82rem; color: var(--text); }
@media (max-width: 640px) { .ordmap { height: 220px; } }


/* ═══════════ Buyurtma oynasi ═══════════ */

.orderpage {
  position: fixed;
  inset: 0;
  z-index: 120;               /* mahsulot oynasidan tepada */
  background: var(--bg, #fff);
  overflow-y: auto;
}

.orderpage__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .9rem;
  background: var(--card, #fff);
  border-bottom: 1px solid var(--stroke);
}

.orderpage__back {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.orderpage__back svg { width: 18px; height: 18px; }
.orderpage__back:hover { background: var(--card-2); }

.orderpage__title { min-width: 0; }
.orderpage__title b { display: block; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orderpage__title span { font-size: .78rem; color: var(--text-dim); }

.orderpage__body {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem .9rem 3rem;
}
.orderpage .orderform { border: 0; background: none; padding: 0; }

.btn--loc { align-self: flex-start; padding: .45rem .8rem; font-size: .84rem; }

/* ── 2026 yangilanishi: mahsulot kartalari jonlanadi ── */
.card-p {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--stroke-2);
}
.card-p__art img { transition: transform .3s ease; }
.card-p:hover .card-p__art img { transform: scale(1.045); }

/* Chegirma — qurilish lentasi ruhidagi amber, hamma joyda bir xil */
.card-p__sale { background: var(--amber); }

.shopcard { transition: transform .18s ease, box-shadow .18s ease; }
.shopcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }

.kabhead__ava--img { object-fit: cover; padding: 0; }

/* Yuklangan logolar kvadratni to'liq to'ldiradi */
img.ava { object-fit: cover; }

/* ══════════ Savat ══════════ */

.cartbtn {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--stroke); border-radius: 11px;
  background: var(--card); color: var(--text);
  cursor: pointer; flex: none;
  transition: border-color .15s ease, color .15s ease;
}
.cartbtn:hover { border-color: var(--brand); color: var(--brand); }
.cartbtn svg { width: 21px; height: 21px; }

.cartbtn__n {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 700;
  color: #fff; background: var(--amber);
  border-radius: 100px;
}

.offer__buy { display: flex; gap: 8px; flex-wrap: wrap; }
.offer__buy .btn { flex: 1; min-width: 130px; }
.btn--cart { white-space: nowrap; }

.cartshop { margin-bottom: 1.4rem; }
.cartshop__name {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: .5rem; margin-bottom: .3rem;
  border-bottom: 1px solid var(--stroke);
}

.cartline {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto auto;
  align-items: center; gap: .7rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--stroke);
}
.cartline.is-gone { grid-template-columns: minmax(0, 1fr) auto; opacity: .65; }

.cartline__img {
  width: 54px; height: 54px; border-radius: 10px;
  object-fit: cover; background: var(--card-2);
}
.cartline__main b { font-size: .94rem; display: block; }
.cartline__main p { font-size: .78rem; color: var(--text-dim); margin-top: .15rem; }
.cartline__warn { color: var(--amber) !important; font-weight: 600; }

.cartline__qty { display: flex; align-items: center; gap: 2px; }
.cartline__qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--stroke); border-radius: 8px;
  background: var(--card); color: var(--text);
  font-size: 1rem; line-height: 1; cursor: pointer;
}
.cartline__qty button:hover { border-color: var(--brand); color: var(--brand); }
.cartline__qty input {
  width: 52px; padding: .3rem; text-align: center;
  border: 1px solid var(--stroke); border-radius: 8px;
  font: inherit; font-size: .86rem; background: var(--card);
}

.cartline__sum { font-weight: 700; font-size: .94rem; white-space: nowrap; }

.cartline__x {
  border: none; background: none; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: var(--text-dim); padding: 0 .2rem;
}
.cartline__x:hover { color: #C0392B; }

.carttotal {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .9rem 0; margin-top: .4rem;
  border-top: 1.5px solid var(--stroke);
}
.carttotal span { color: var(--text-dim); font-size: .9rem; }
.carttotal b { font-size: 1.2rem; font-family: var(--display); font-weight: 600; }

@media (max-width: 560px) {
  .cartline { grid-template-columns: 46px minmax(0, 1fr) auto; row-gap: .5rem; }
  .cartline__img { width: 46px; height: 46px; }
  .cartline__qty { grid-column: 2; }
  .cartline__sum { grid-column: 3; }
}

/* ══════════ Sharhlar ══════════ */

.star--none { opacity: .3; }
.rate--none { color: var(--text-dim); font-size: .86rem; }

.revbox { margin-top: 2rem; }
.revbox__title {
  font-size: 1.1rem; font-family: var(--display); font-weight: 600;
  margin-bottom: 1rem;
}
.revbox__title span { color: var(--text-dim); font-weight: 400; }
.revbox__empty { color: var(--text-dim); font-size: .92rem; }

.revsum {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding: 1.1rem 1.2rem; margin-bottom: 1.2rem;
  background: var(--card); border: 1px solid var(--stroke); border-radius: 14px;
}
.revsum__big { display: flex; align-items: baseline; gap: .4rem; }
.revsum__big b { font-size: 2.4rem; font-family: var(--display); font-weight: 600; }
.revsum__big .star { color: var(--amber); font-size: 1.3rem; }

.revsum__bars { flex: 1; min-width: 200px; display: grid; gap: 4px; }
.revbar { display: grid; grid-template-columns: 12px 1fr 28px; align-items: center; gap: .5rem; }
.revbar span, .revbar em {
  font-size: .78rem; color: var(--text-dim); font-style: normal;
}
.revbar em { text-align: right; }
.revbar__track { height: 6px; background: var(--card-2); border-radius: 100px; overflow: hidden; }
.revbar__track i { display: block; height: 100%; background: var(--amber); border-radius: 100px; }

.revlist { display: grid; gap: .9rem; }
.revitem {
  padding: 1rem 1.1rem;
  background: var(--card); border: 1px solid var(--stroke); border-radius: 12px;
}
.revitem header { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.revitem header b { font-size: .94rem; }
.revitem header em { font-size: .76rem; color: var(--text-dim); font-style: normal; margin-left: auto; }
.revitem__stars { color: var(--amber); font-size: .9rem; letter-spacing: 1px; }
.revitem__dim { color: var(--stroke); }
.revitem p { font-size: .92rem; margin-top: .5rem; line-height: 1.5; }

.revreply {
  margin-top: .7rem; padding: .7rem .9rem;
  background: var(--card-2); border-radius: 10px;
}
.revreply b { font-size: .76rem; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.revreply p { font-size: .88rem; margin-top: .3rem; }

/* Kabinetda sharh so'rash */
.revask {
  padding: .9rem 1rem; margin-bottom: .8rem;
  background: var(--card-2); border-radius: 12px;
}
.revask__top { display: flex; flex-direction: column; margin-bottom: .6rem; }
.revask__top b { font-size: .94rem; }
.revask__top span { font-size: .78rem; color: var(--text-dim); }
.revask__stars { display: flex; gap: 2px; margin-bottom: .6rem; }
.revask__stars button {
  border: none; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--stroke); padding: 0 2px;
  transition: color .12s ease;
}
.revask__stars button.is-on { color: var(--amber); }
.revask textarea {
  width: 100%; padding: .55rem .7rem; margin-bottom: .6rem;
  border: 1px solid var(--stroke); border-radius: 10px;
  font: inherit; font-size: .9rem; resize: vertical; background: var(--card);
}
.revask .btn { width: auto; padding: .5rem 1.2rem; font-size: .88rem; }
.revask__err { color: #C0392B; font-size: .84rem; margin-top: .5rem; }
.revask__done { color: var(--brand); font-weight: 600; padding: .8rem 0; }

/* ══════════ Sevimlilar ══════════ */

.card-p { position: relative; }
.card-p__fav {
  position: absolute; top: .5rem; right: .5rem; z-index: 2;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 1rem; line-height: 1;
  color: var(--stroke-2, #C7D6D3);
  background: rgba(255,255,255,.9);
  border-radius: 100px; cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.card-p__fav:hover { color: #D9534F; transform: scale(1.12); }
.card-p__fav.is-on { color: #D9534F; }

.favrow {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center; gap: .7rem;
  padding: .75rem 0; border-bottom: 1px solid var(--stroke);
}
.favrow__img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--card-2); }
.favrow__main b { font-size: .94rem; display: block; }
.favrow__main p { font-size: .78rem; color: var(--text-dim); margin-top: .15rem; }

.favrow__price { text-align: right; white-space: nowrap; }
.favrow__price b { font-size: 1rem; }
.favrow__price span { font-size: .76rem; color: var(--text-dim); }
.favrow__price em {
  display: block; font-size: .72rem; color: var(--text-dim);
  font-style: normal; text-decoration: line-through; margin-top: .1rem;
}
.favrow__gone { font-size: .82rem; color: var(--text-dim); }

.favmove {
  display: inline-block; margin-left: .4rem;
  font-size: .74rem; font-weight: 700;
  padding: .12rem .4rem; border-radius: 100px;
}
.favmove.is-down { color: var(--brand); background: var(--brand-dim); }
.favmove.is-up { color: #C0392B; background: rgba(192,57,43,.1); }

@media (max-width: 560px) {
  .favrow { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .favrow__img { width: 46px; height: 46px; }
  .favrow__price { grid-column: 2 / 4; text-align: left; }
}

/* Telegram ulash */
.tgrow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tgok { color: var(--brand); font-weight: 600; font-size: .92rem; }
.tgacts { display: flex; gap: 8px; margin-left: auto; }
.tgacts .btn { width: auto; padding: .45rem 1rem; font-size: .86rem; }
.tgmsg { margin-top: .6rem; font-size: .86rem; color: var(--text-dim); }
