.ideas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: start;
  padding-block: 1.5rem;
}

.ideas-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  width: 100%;
}

.ideas-aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #fff;
  box-shadow: 3px 0px 8px rgba(96, 74, 47, 0.12);
}

.ideas-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.ideas-cat-title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  background-color: #f4f1ec;
  padding: 0.5rem 2rem;
  width: 100%;
  position: relative;

  &:before {
    content: "";
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translate(0, -50%);
    width: 32px;
    height: 50px;
    background: linear-gradient(
      90deg,
      rgba(255, 175, 64, 0.3) 0%,
      rgba(255, 255, 255, 0.3) 100%
    );
    z-index: 1;
  }
}

.ideas-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.75rem;
}

.ideas-category {
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;

  &:hover,
  &.active {
    color: #9b6d36;
  }

  &::before {
    content: "";
    display: block;
    width: 14px;
    height: 2px;
    background-color: #877a6a55;
  }
}

.ideas {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 220px);
  gap: 6px;
  grid-template-areas:
    "a1 a2 a3 a4"
    "a1 a5 a3 a6"
    "a7 a7 a8 a9";
}

.ideas-item:nth-child(1) {
  grid-area: a1;
}
.ideas-item:nth-child(2) {
  grid-area: a2;
}
.ideas-item:nth-child(3) {
  grid-area: a3;
}
.ideas-item:nth-child(4) {
  grid-area: a4;
}
.ideas-item:nth-child(5) {
  grid-area: a5;
}
.ideas-item:nth-child(6) {
  grid-area: a6;
}
.ideas-item:nth-child(7) {
  grid-area: a7;
}
.ideas-item:nth-child(8) {
  grid-area: a8;
}
.ideas-item:nth-child(9) {
  grid-area: a9;
}

.ideas-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
}

.ideas-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ideas-item:hover img {
  transform: scale(1.05);
}

.ideas-label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  line-height: 130%;
  font-size: 1rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(88, 60, 6, 0) 0%,
    rgba(88, 60, 6, 0.87) 100%
  );
}

.idea-mark {
  color: #453b27;
  padding: 0.5rem;
  background: linear-gradient(
    90deg,
    rgba(255, 175, 64, 0.8) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  z-index: 10;
}

.ideas-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media all and (max-width: 1240px) {
  .ideas {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 220px);
    grid-template-areas:
      "a1 a2 a3"
      "a1 a4 a3"
      "a5 a5 a6"
      "a7 a8 a9";
  }
}

@media all and (max-width: 1023px) {
  .ideas-aside {
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
    overflow: auto;
    max-width: 310px;
    padding: 1rem;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
  }

  .ideas-aside.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ideas-content {
    grid-template-columns: 1fr;
  }

  .catalog-filters-btn-mob {
    display: flex;
  }
}

@media all and (max-width: 767px) {
  .catalog-aside {
    max-width: unset;
  }

  .close-filters {
    display: block;
  }

  .ideas {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 200px);
    grid-template-areas:
      "a1 a2"
      "a1 a3"
      "a4 a4"
      "a5 a6"
      "a7 a8"
      "a7 a9";
  }
}
