.shop-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}

.shop-sidebar {
  align-self: start;
}

.shop-cat-item {
  border-bottom: 1px solid var(--line);
}

.shop-cat-title {
  min-height: 44px;
  padding: 0 18px;
  background: #aaa48a;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-cat-title strong {
  font-size: 18px;
  font-weight: 400;
}

.shop-cat-children {
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.shop-cat-children a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #111;
  font-size: 13px;
  text-decoration: none;
}

.shop-cat-children a::before {
  content: "›";
  margin-right: 8px;
  color: #aaa48a;
}

.shop-category-description {
  margin-bottom: 36px;
  font-size: 14px;
  line-height: 1.7;
}

.products-topbar {
  height: 54px;
  margin-bottom: 34px;
  padding: 0 18px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products-grid--search {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 24px;
}

.product-card--search {
  border: 0;
  box-shadow: none;
  padding-bottom: 0;
}

.product-card--search:hover {
  transform: none;
  box-shadow: none;
}

.product-card--search .product-card__image {
  border: 1px solid var(--line);
  background: #fff;
}

.product-card--search .product-card__image img {
  border-bottom: 0;
  object-fit: contain;
}

@media (max-width: 991px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .products-grid--search {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .products-grid--search {
    grid-template-columns: 1fr;
  }
}

.products-grid--search.is-list-view {
  grid-template-columns: 1fr;
}

.products-grid--search.is-list-view .product-card {
  width: 100%;
  max-width: 100%;
}

.products-grid--search.is-list-view .product-card__inner {
  display: grid !important;
  grid-template-columns: 320px 72px 1fr !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.products-grid--search.is-list-view .product-card__image {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
}

.products-grid--search.is-list-view .product-card__thumbs {
  grid-column: 2 !important;
  grid-row: 1 / 4 !important;

  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;

  width: 72px !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
}

.products-grid--search.is-list-view .product-card h3,
.products-grid--search.is-list-view .product-card .price,
.products-grid--search.is-list-view .product-card__actions {
  grid-column: 3 !important;
}

.products-grid--search.is-list-view .product-card h3 {
  margin-top: 28px !important;
}

.products-grid--search.is-list-view .product-card__actions {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  align-self: end !important;
  margin: 20px 0 0 !important;
}

.products-grid--search.is-list-view .product-card__image img {
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

@media (max-width: 768px) {
  .products-grid--search.is-list-view .product-card__inner {
    grid-template-columns: 1fr !important;
  }

  .products-grid--search.is-list-view .product-card__image,
  .products-grid--search.is-list-view .product-card__thumbs,
  .products-grid--search.is-list-view .product-card h3,
  .products-grid--search.is-list-view .product-card .price,
  .products-grid--search.is-list-view .product-card__actions {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

.products-view-icons {
  display: flex;
  gap: 12px;
}

.view-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.view-toggle span {
  display: grid;
  gap: 2px;
}

.view-toggle i {
  display: block;
  background: #111;
  transition: .2s ease;
}

.view-toggle.is-active i {
  background: #aaa48a;
}

/* GRID */

.icon-grid {
  grid-template-columns: repeat(3, 3px);
}

.icon-grid i {
  width: 3px;
  height: 3px;
}

/* LIST */

.icon-list {
  grid-template-columns: 3px 10px;
  align-items: center;
}

.icon-list i:nth-child(odd) {
  width: 3px;
  height: 3px;
}

.icon-list i:nth-child(even) {
  width: 10px;
  height: 3px;
}


.shop-cat-title {
  min-height: 44px;
  background: #b5b39e;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.shop-cat-title > a {
  flex: 1;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}

.shop-cat-title > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shop-cat-toggle {
  width: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.shop-cat-toggle:hover {
  opacity: .7;
}

.shop-cat-item.is-open .shop-cat-title {
  background: #9d987f;
}

.shop-cat-children {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: max-height .35s ease;
}

.shop-cat-item.is-open .shop-cat-children {
  max-height: 800px;
}

.shop-cat-children a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #111;
  font-size: 13px;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
}

.shop-cat-children a::before {
  content: "›";
  margin-right: 8px;
  color: #aaa48a;
}

.shop-cat-children a:hover,
.shop-cat-children a.is-active {
  color: #aaa48a;
  padding-left: 24px;
  font-weight: 800;
}

.shop-cat-children a:hover span,
.shop-cat-children a.is-active span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
