/* Scheme A cleaned — less chrome, clearer catalog */

.layout-a .top-note { display: none; }
.layout-a .telegram-contact { display: none !important; }

.topbar-a {
  gap: 16px;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 8;
}
.topbar-a .brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 280px;
}
.topbar-a #brand-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.topbar-a .brand-sub { color: #9a9aa8; font-weight: 500; margin-left: 4px; }
.topbar-a .top-actions { flex: 0 0 auto; margin-left: 0; }
.topbar-a .search-top {
  flex: 1 1 auto;
  width: auto;
  max-width: 480px;
  min-width: 140px;
  height: 38px;
  margin: 0 auto;
}

.sidebar-toggle { display: none; }

.shell-a {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  min-height: calc(100vh - 58px - 64px);
  align-items: start;
}

.sidebar-a {
  position: sticky;
  top: 58px;
  align-self: start;
  height: calc(100vh - 58px);
  overflow: auto;
  padding: 18px 12px 24px;
  border-right: 1px solid #ececf2;
  background: #fbfbfd;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 8px;
}
.sidebar-head strong {
  font-size: 12px;
  color: #8a8b99;
  font-weight: 600;
}
.sidebar-close { display: none; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }

.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5d5e6c;
  padding: 9px 10px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.side-item:hover { background: #f0eff6; color: #2a2840; }
.side-item.active { background: #29273e; color: #fff; }
.side-item em {
  font-style: normal;
  font-size: 11px;
  min-width: 20px;
  text-align: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ebeaf2;
  color: #6d6e7c;
}
.side-item.active em {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.side-block { margin-top: 18px; padding: 0 4px; }
.side-label {
  font-size: 11px;
  font-weight: 600;
  color: #9495a3;
  margin: 0 6px 8px;
}

.quick-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quick-chip {
  border: 0;
  background: transparent;
  color: #6a6b79;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.quick-chip:hover { background: #f0eff6; }
.quick-chip.active {
  background: #ecebf4;
  color: #29273e;
  font-weight: 600;
}

.catalog-a {
  max-width: none;
  margin: 0;
  padding: 14px 20px 56px;
}

/* Compact status strip (Scheme B essence, less card chrome) */
.workbench {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid #e8e7ef;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.wb-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 52px;
  border-right: 1px solid #efeef4;
}
.wb-cell:last-child { border-right: 0; }
.wb-member { background: #f8f9ff; }
.wb-label {
  font-size: 11px;
  font-weight: 600;
  color: #9a9ba8;
  white-space: nowrap;
}
.wb-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wb-main strong {
  font-size: 13px;
  color: #242238;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb-sub {
  font-size: 11px;
  color: #8a8b99;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.text-link {
  border: 0;
  background: transparent;
  color: #4f6fd8;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
a.text-link { display: inline-flex; align-items: center; }
.text-link:hover { color: #2f4fb8; }

.wb-meter {
  grid-column: 2 / 3;
  height: 4px;
  border-radius: 999px;
  background: #ebeaf2;
  overflow: hidden;
  margin-top: -2px;
}
.wb-quota {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.wb-quota .wb-main { grid-column: 2; }
.wb-quota .wb-meter { width: 100%; }
.wb-meter > i {
  display: block;
  height: 100%;
  width: 0;
  background: #29273e;
  border-radius: inherit;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.catalog-title {
  font-size: 16px;
  letter-spacing: -.2px;
  margin: 0;
  color: #242238;
  font-weight: 700;
}
.catalog-a .result-count {
  display: inline;
  padding: 0;
  color: #9495a3;
  font-size: 12px;
}
.catalog-a .result-count::before { content: "· "; }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-wrap select {
  height: 32px;
  border: 1px solid #e4e3eb;
  border-radius: 7px;
  background: #fff;
  padding: 0 8px;
  color: #3a3b4a;
  font-size: 12px;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid #e4e3eb;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.view-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #8a8b99;
  cursor: pointer;
  font-size: 13px;
}
.view-btn.active {
  background: #29273e;
  color: #fff;
}

/* Quieter product cards */
.layout-a .grid {
  gap: 14px;
}
.layout-a .product-card {
  border-color: #ececf2;
  border-radius: 10px;
}
.layout-a .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #29273e0a;
}
.layout-a .card-image {
  position: relative;
  height: auto;
  aspect-ratio: 1.42 / 1;
  background: #2a2840;
  padding: 22px 8px 26px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  outline: 0;
  isolation: isolate;
}
.layout-a .card-image img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.layout-a .card-image::after {
  display: none;
}
.layout-a .cover-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 8px 6px;
}
.layout-a .cover-frame-top,
.layout-a .cover-frame-bottom {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #e8e9f2;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.layout-a .cover-frame-bottom {
  color: #fff;
}
.layout-a .card-tags {
  inset: 28px 14px auto;
  gap: 4px;
  z-index: 3;
}
.layout-a .card-body { padding: 12px 12px 10px; }
.layout-a .card-title {
  font-size: 14px;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.layout-a .card-description {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: #90919f;
  margin: 0 0 10px;
  min-height: 0;
}
.layout-a .card-foot {
  margin-top: auto;
  padding-top: 0;
}
.layout-a .detail-link {
  font-size: 11px;
}

/* List view */
.grid.is-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grid.is-list .product-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
}
.grid.is-list .card-image {
  height: 78px;
  aspect-ratio: auto;
  padding: 16px 5px 18px;
  border-radius: 7px;
  overflow: hidden;
}
.grid.is-list .cover-frame-top,
.grid.is-list .cover-frame-bottom {
  font-size: 8px;
}
.grid.is-list .cover-frame {
  padding: 3px 5px 4px;
}
.grid.is-list .card-tags {
  inset: 18px 8px auto;
}
.grid.is-list .card-body { padding: 0; min-width: 0; }
.grid.is-list .card-title {
  font-size: 13px;
  margin: 0 0 2px;
  -webkit-line-clamp: 1;
  white-space: nowrap;
  display: block;
}
.grid.is-list .card-description {
  margin: 0;
  -webkit-line-clamp: 1;
}
.grid.is-list .card-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 0 4px;
  border: 0;
  margin: 0;
  white-space: nowrap;
}
.grid.is-list .product-card:hover { transform: none; }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 22, 36, .4);
  z-index: 9;
}

@media (max-width: 960px) {
  .shell-a { grid-template-columns: 1fr; }
  .sidebar-toggle { display: inline-flex; }
  .topbar-a .search-top { max-width: none; }
  .topbar-a .brand-sub { display: none; }
  .topbar-a #brand-name { max-width: 120px; }
  .workbench { grid-template-columns: 1fr; }
  .wb-cell { border-right: 0; border-bottom: 1px solid #efeef4; }
  .wb-cell:last-child { border-bottom: 0; }

  .sidebar-a {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    height: 100vh;
    z-index: 10;
    transform: translateX(-105%);
    transition: transform .2s ease;
    border-right: 0;
  }
  body.sidebar-open .sidebar-a { transform: translateX(0); }
  .sidebar-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #ececf3;
    color: #555568;
    font-size: 18px;
    cursor: pointer;
  }
  .catalog-a { padding: 12px 14px 48px; }

  .grid.is-list .product-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .grid.is-list .card-foot {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .topbar-a { padding: 0 12px; height: 54px; }
  .topbar-a .search-top kbd { display: none; }
  .layout-a .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .layout-a .card-image {
    aspect-ratio: 1.28 / 1;
    padding: 18px 6px 22px;
  }
  .layout-a .cover-frame-top,
  .layout-a .cover-frame-bottom {
    font-size: 9px;
  }
}

