@charset "UTF-8";

.catalog-body {
  background: var(--paper);
  color: var(--ink);
  min-height: 100svh;
}

.floating-nav a.is-current {
  background: var(--red);
  color: #fff;
}

/* Header */
.catalog-hero {
  background: var(--dark);
  color: #fff;
  padding: clamp(32px, 4.5vw, 56px) 5% clamp(36px, 5vw, 60px);
  border-bottom: 1px solid #ffffff14;
}

.catalog-hero-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.catalog-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #c3cbbf;
}

.catalog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ffffff28;
  transition: background 0.2s, border-color 0.2s;
}

.catalog-back:hover {
  background: #ffffff14;
  border-color: #ffffff55;
}

.catalog-badge {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c3cbbf;
}

.catalog-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.catalog-hero h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
}

.catalog-hero h1 > span {
  color: var(--red);
}

.catalog-hero-sub {
  margin-top: 14px;
  font-size: clamp(14px, 1.2vw, 17px);
  color: #c3cbbf;
  max-width: 620px;
  line-height: 1.55;
}

.catalog-hero-cta {
  border-radius: 999px;
  clip-path: none;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  gap: 16px;
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}

.catalog-hero-cta::before,
.cat-empty .button::before,
.cat-pagination .button::before,
.drawer-cta::before {
  inset: 0;
  border-radius: inherit;
}

.catalog-hero-cta span {
  font-size: 18px;
}

/* Shell */
.catalog-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) 5% clamp(60px, 6vw, 96px);
}

/* Controls */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #e9ece3;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cat-tab:hover {
  background: #dde2d5;
}

.cat-tab.is-active {
  background: var(--dark);
  color: #fff;
}

.cat-tab-count {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #00000012;
  color: #5b6256;
}

.cat-tab.is-active .cat-tab-count {
  background: #ffffff24;
  color: #fff;
}

.cat-subbar,
.cat-leafbar {
  padding-top: 2px;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.cat-chip:hover {
  border-color: var(--ink);
}

.cat-chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.cat-chip-count {
  font-size: 11px;
  opacity: 0.72;
}

.cat-chips-leaf .cat-chip {
  font-size: 12px;
  padding: 5px 11px;
  background: #f9faf6;
}

.cat-chips-leaf .cat-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Toolbar: Search + Sort */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cat-search {
  flex: 1 1 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.cat-search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.cat-search input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cat-search input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #24282314;
}

.cat-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.cat-search-clear {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9ece3;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cat-search-clear:hover {
  background: var(--red);
  color: #fff;
}

.cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.cat-sort {
  height: 46px;
  padding: 0 38px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23242823' d='M2.2 4.2 6 8l3.8-3.8-.9-.9L6 6.2 3.1 3.3z'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 44px;
  appearance: none;
  cursor: pointer;
}

.cat-sort:focus {
  outline: none;
  border-color: var(--ink);
}

/* Custom dropdown (NiceSelect2) themed to match СИЛАЧ */
.cat-sort-wrap .nice-select {
  float: none;
  display: inline-flex;
  align-items: center;
  height: 46px;
  line-height: normal;
  padding: 0 42px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cat-sort-wrap .nice-select:hover {
  border-color: #b7bdb0;
}

.cat-sort-wrap .nice-select:focus,
.cat-sort-wrap .nice-select.open {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #24282314;
}

.cat-sort-wrap .nice-select:after {
  right: 17px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.cat-sort-wrap .nice-select.open:after {
  margin-top: -2px;
  border-color: var(--red);
}

.cat-sort-wrap .nice-select .nice-select-dropdown {
  left: auto;
  right: 0;
  min-width: 100%;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px #20241f1f;
  z-index: 40;
}

.cat-sort-wrap .nice-select .list {
  margin: 0;
  padding: 0;
  border-radius: 10px;
  max-height: none;
}

.cat-sort-wrap .nice-select .option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.15s, color 0.15s;
}

.cat-sort-wrap .nice-select .option + .option {
  margin-top: 2px;
}

.cat-sort-wrap .nice-select .option:hover,
.cat-sort-wrap .nice-select .option.focus {
  background-color: #eef0e9;
  color: var(--ink);
}

.cat-sort-wrap .nice-select .list:hover .option:not(:hover) {
  background-color: transparent !important;
}

.cat-sort-wrap .nice-select .list:hover .option.selected:not(:hover) {
  background-color: var(--dark) !important;
  color: #fff;
}

.cat-sort-wrap .nice-select .option.selected,
.cat-sort-wrap .nice-select .option.selected.focus,
.cat-sort-wrap .nice-select .option.selected:hover {
  background-color: var(--dark);
  color: #fff;
  font-weight: 600;
}

.cat-sort-wrap .nice-select .option.selected::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}

.cat-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.cat-reset {
  background: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.cat-reset:hover {
  background: #ed332714;
}

/* Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: #bcc2b3;
  box-shadow: 0 14px 32px #20241f14;
}

.cat-card-btn {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 0;
  background: none;
  text-align: left;
}

.cat-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eef0e9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.45s var(--ease);
}

.cat-card:hover .cat-card-media img {
  transform: scale(1.05);
}

.cat-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ba194;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cat-card-placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.6;
}

.cat-media-count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #20241fcc;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.cat-card-art {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffffffd9;
  color: #5b6256;
  font-size: 11px;
  font-weight: 600;
}

.cat-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
  gap: 10px;
}

.cat-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-card-title {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.cat-spec-pill {
  font-size: 11px;
  color: #555c50;
  background: #f2f4ee;
  padding: 4px 8px;
  border-radius: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #ecefe7;
}

.cat-card-price {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cat-card-price.is-empty {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.cat-card-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* Empty & Pagination */
.cat-empty {
  text-align: center;
  padding: 64px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.cat-empty h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cat-empty p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 15px;
}

.cat-empty .button {
  border-radius: 999px;
  clip-path: none;
  overflow: hidden;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.cat-pagination {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cat-progress {
  font-size: 14px;
  color: var(--muted);
}

.cat-pagination .button {
  border-radius: 999px;
  clip-path: none;
  overflow: hidden;
  min-height: 50px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
}

/* Centered Product Modal + External Product Slider */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 24, 19, 0.72);
}

.product-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
  padding: clamp(12px, 2.5vw, 28px);
}

.product-modal-shell[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.modal-product-nav {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffffeb;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px #00000033;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.modal-product-nav span {
  display: block;
  transform: translateY(-2px);
}

.modal-product-nav:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.07);
}

.modal-product-nav[hidden] {
  display: none;
}

.product-drawer {
  position: relative;
  width: min(700px, calc(100vw - 170px));
  max-height: min(90svh, 920px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px #0000004d;
  animation: modal-in 0.24s var(--ease);
}

@keyframes modal-in {
  from {
    transform: translateY(16px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.drawer-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.drawer-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.drawer-position {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.65;
}

.drawer-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.drawer-mobile-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.drawer-mobile-nav[hidden] {
  display: none;
}

.drawer-mobile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9ece3;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.drawer-mobile-btn:hover {
  background: var(--dark);
  color: #fff;
}

.drawer-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9ece3;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.drawer-close:hover {
  background: var(--red);
  color: #fff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.drawer-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef0e9;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.drawer-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.drawer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffffeb;
  color: var(--ink);
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px #0000001c;
}

.drawer-nav-btn:hover {
  background: var(--dark);
  color: #fff;
}

.drawer-nav-prev {
  left: 12px;
}

.drawer-nav-next {
  right: 12px;
}

.drawer-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.drawer-thumb {
  flex: 0 0 64px;
  height: 64px;
  padding: 5px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #eef0e9;
}

.drawer-thumb.is-active {
  border-color: var(--red);
  background: #fff;
}

.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.drawer-title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-art {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-title {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.drawer-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.drawer-price {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.drawer-price-note {
  display: block;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.drawer-cta {
  border-radius: 999px;
  clip-path: none;
  overflow: hidden;
  min-height: 46px;
  padding: 0 22px;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.drawer-cta span {
  font-size: 18px;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-section h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #363c34;
  white-space: pre-line;
}

.drawer-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.drawer-specs li {
  display: grid;
  grid-template-columns: minmax(120px, 46%) 1fr;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid #eef0e9;
}

.drawer-specs li:last-child {
  border-bottom: 0;
}

.drawer-specs li:nth-child(even) {
  background: #fafbf8;
}

.drawer-spec-k {
  color: var(--muted);
}

.drawer-spec-v {
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.drawer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.drawer-doc-link:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Responsive */
@media (max-width: 1240px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cat-card-media {
    padding: 12px;
  }
  .cat-card-body {
    padding: 12px;
    gap: 8px;
  }
  .cat-card-title {
    font-size: 13px;
  }
  .cat-card-price {
    font-size: 16px;
  }
  .cat-card-open {
    display: none;
  }
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .cat-tab {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 9px 14px;
  }
  .cat-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cat-toolbar-right,
  .cat-sort-wrap,
  .cat-sort,
  .cat-sort-wrap .nice-select {
    width: 100%;
  }
  .cat-sort-label {
    display: none;
  }
  .modal-product-nav {
    display: none;
  }
  .product-modal-shell {
    padding: 12px;
  }
  .product-drawer {
    width: 100%;
    max-height: 92svh;
    border-radius: 20px;
  }
  .drawer-mobile-nav {
    display: flex;
  }
}

@media (max-width: 480px) {
  .drawer-body {
    padding: 16px;
  }
  .drawer-specs li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
