/* ================================================================
   layout.css  --  Page wrapper, header, breadcrumbs, navigation buttons
   ================================================================ */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}

.crumbs .sep {
  opacity: 0.6;
}

.crumbs .crumb {
  padding: 4px 8px;
  border: 1px solid #2a2f3a;
  border-radius: 999px;
  background: #10131a;
}

/* ---------- Navigation buttons ---------- */

.catalog-button-main {
  display: flex;
  margin-bottom: 24px;
}

.nav-buttons-wrapper {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.navigation-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #4b90ff;
  background: rgba(75, 144, 255, 0.1);
  color: #4b90ff;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--btn-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  line-height: 1;
}

.nav-btn:hover {
  background: rgba(75, 144, 255, 0.2);
  border-color: #6ba3ff;
  color: #6ba3ff;
}

.nav-btn:active {
  background: rgba(75, 144, 255, 0.3);
}

/* ---------- Generic button ---------- */

.btn {
  border: 1px solid #2a2f3a;
  background: #0f1116;
  color: #e8e8e8;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.btn:focus {
  outline: 2px solid #4b90ff;
  outline-offset: 2px;
}

/* ---------- View switcher ---------- */

.view-switcher {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: var(--btn-transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-switcher:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.view-switcher.active {
  background: rgba(77, 171, 247, 0.2);
  border-color: rgba(77, 171, 247, 0.4);
  color: #4dabf7;
}
