.cms-page {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cms-page-header {
  padding: 1rem 1rem 0;
}

.cms-page-header h1 {
  margin: 0;
  font-size: 1.8rem;
  text-align: center;
}

.brands-page .cms-page-header h1 {
  text-align: center;
}

.cms-page-content {
  padding: 1rem;
}

.cms-page-content img {
  height: auto;
}

.cms-page-content a {
  color: var(--color-brand);
}

.cms-page-content a:hover {
  text-decoration: underline;
}

.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3,
.cms-page-content h4,
.cms-page-content h5,
.cms-page-content h6 {
  margin-top: 1.4rem;
}

.fallback-view,
.product-view {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.brands-page .cms-page-content > p {
  margin: 0 auto 1.4rem;
  max-width: 68ch;
  text-align: center;
  color: #3b3b3b;
}

.not-found-page h1 {
  margin: 0 0 0.55rem;
  font-size: 1.85rem;
}

.not-found-page .cms-page-content {
  display: grid;
  gap: 1.5rem;
}

.not-found-page p {
  margin: 0;
}

.not-found-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(214, 116, 44, 0.14), transparent 36%),
    linear-gradient(180deg, #fffaf6 0%, #fff 100%);
  border: 1px solid #f0d5c1;
}

.not-found-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.not-found-illustration-card {
  position: relative;
  width: 150px;
  height: 170px;
  border-radius: 28px 28px 34px 34px;
  background: linear-gradient(180deg, #fff 0%, #f8eee8 100%);
  border: 1px solid #efcdb9;
  box-shadow: 0 18px 32px rgba(159, 69, 23, 0.12);
}

.not-found-illustration-card::before,
.not-found-illustration-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 8px;
  border-radius: 999px;
  background: rgba(159, 69, 23, 0.12);
}

.not-found-illustration-card::before {
  top: 42px;
}

.not-found-illustration-card::after {
  top: 64px;
  right: 44px;
}

.not-found-illustration-hole {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2d7c7;
}

.not-found-illustration-shadow {
  position: absolute;
  inset: auto 20px 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(79, 45, 23, 0.08);
  filter: blur(8px);
}

.not-found-illustration-magnifier {
  position: absolute;
  right: -10px;
  bottom: 26px;
  width: 68px;
  height: 68px;
  border: 9px solid #cb5f26;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 18px rgba(203, 95, 38, 0.18);
}

.not-found-illustration-magnifier::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -18px;
  width: 14px;
  height: 48px;
  border-radius: 999px;
  background: #2c2c2c;
  transform: rotate(-36deg);
}

.not-found-hero-copy {
  display: grid;
  gap: 0.8rem;
}

.not-found-page h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.02;
  max-width: 13ch;
}

.not-found-search-summary {
  color: #4b4b4b;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.not-found-primary-action,
.not-found-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border: 1px solid #d9d9d9;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.not-found-primary-action {
  color: #fff;
  background: #202020;
  border-color: #202020;
}

.not-found-secondary-action {
  color: #202020;
  background: #fff;
}

.not-found-primary-action:hover,
.not-found-secondary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.not-found-related,
.not-found-empty {
  display: grid;
  gap: 1rem;
}

.not-found-section-header {
  display: grid;
  gap: 0.35rem;
}

.not-found-empty {
  padding: 1.15rem 1.2rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}

.not-found-path {
  padding-top: 0.25rem;
  color: #666;
  font-size: 0.92rem;
}

.not-found-path code {
  font-size: 0.88rem;
  color: #505050;
  word-break: break-word;
}

@media (max-width: 768px) {
  .not-found-hero {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }

  .not-found-illustration {
    min-width: 0;
  }

  .not-found-illustration-card {
    width: 132px;
    height: 150px;
  }

  .not-found-page h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .cms-page-header {
    padding: 0.85rem 0.85rem 0;
  }

  .cms-page-content,
  .fallback-view,
  .product-view {
    padding: 0.85rem;
  }
}

.brands-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.brands-page .brands-index,
.brands-page .brands-index__item {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.brands-page .brands-index__item::marker {
  content: "";
}

.brands-index__item {
  min-width: 0;
}

.brands-index__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  padding: 1rem 0.8rem;
  min-height: 128px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.brands-index__card:hover {
  transform: translateY(-2px);
  border-color: #d1d1d1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.brands-index__card img {
  width: 100%;
  max-width: 120px;
  height: 58px;
  object-fit: contain;
}

.brands-index__card span {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.2;
  color: #2b2b2b;
}

@media (max-width: 768px) {
  .brands-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
