/* ================================
   CATEGORY PAGE
================================ */

.category-page {
  padding-top: 28px;
  padding-bottom: 0;
}

.category-page .container {
  max-width: 1470px;
}

/* ================================
   BREADCRUMBS
================================ */

.category-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 28px;

  color: #777777;
  font-size: 13px;
  line-height: 1.3;
}

.category-breadcrumbs__link {
  color: #777777;
  text-decoration: none;
}

.category-breadcrumbs__link:hover {
  color: #b57a24;
  text-decoration: none;
}

.category-breadcrumbs__sep {
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1;
}

.category-breadcrumbs__current {
  color: #555555;
}

/* ================================
   HEADER
================================ */

.category-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;

  margin-bottom: 32px;
}

.category-header--with-image {
  grid-template-columns: minmax(0, 1fr) 250px;
}

.category-header__content {
  min-width: 0;
}

.category-title {
  margin: 0;

  color: #1e1e1e;

  font-size: 38px;
  line-height: 1.08;
  font-weight: 400;
  text-transform: uppercase;
}

.category-header__image {
  width: 100%;
  aspect-ratio: 4 / 3;

  border: 1px solid #e4e4e4;
  border-radius: 3px;
  background: #f5f1ea;

  overflow: hidden;
}

.category-header__image img {
  display: block;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center;
}

/* ================================
   COMMON SECTION HEAD
================================ */

.category-section-head {
  margin-bottom: 24px;
}

.category-section-head--products {
  margin-bottom: 18px;
}

.category-section-title {
  position: relative;
  display: inline-block;

  margin: 0;
  padding-bottom: 14px;

  color: #1e1e1e;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 400;
  text-transform: uppercase;
}

.category-section-title::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 46px;
  height: 2px;

  background: #b57a24;
}

/* ================================
   SUBCATEGORIES
================================ */

.category-subcategories {
  margin-bottom: 44px;
}

.category-subcategories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.category-subcategory-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  border: 1px solid #a86c18;
  background: linear-gradient(180deg, #c69038 0%, #a86c18 100%);
  color: #ffffff;

  text-decoration: none;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.category-subcategory-card:hover {
  color: #1e1e1e;
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(181, 122, 36, 0.45);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.category-subcategory-card__image {
  display: block;
  width: 100%;
  height: 210px;

  overflow: hidden;
  background: #f3f0eb;
}

.category-subcategory-card__image img {
  display: block;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center top;

  transition: transform 0.35s ease;
}

.category-subcategory-card:hover .category-subcategory-card__image img {
  transform: scale(1.04);
  color: #000000;
}

.category-subcategory-card:hover .category-subcategory-card__name,
.category-subcategory-card:hover .category-subcategory-card__arrow  {
  color: #000000;
}

.category-subcategory-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;

  width: 100%;
  padding: 24px 22px;
}

.category-subcategory-card--image .category-subcategory-card__body {
  min-height: 96px;
  padding: 22px 20px 18px;
}

.category-subcategory-card__name {
  min-width: 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.08;
  font-weight: 400;
  text-transform: uppercase;
}

.category-subcategory-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;

  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

/* ================================
   TOOLBAR
================================ */

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 30px;
  padding: 16px 18px;

  border: 1px solid #e4e4e4;
  background: #ffffff;
}

.category-toolbar__compare {
  display: none;
  /* display: inline-flex; */
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 18px;

  border: 1px solid #1e1e1e;
  border-radius: 3px;
  background: #ffffff;
  color: #1e1e1e;

  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.category-toolbar__compare:hover {
  border-color: #b57a24;
  background: #b57a24;
  color: #ffffff;
  text-decoration: none;
}

.category-toolbar__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;

  margin-left: auto;
}

.category-select-field {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0;
}

.category-select-field__label {
  flex-shrink: 0;

  color: #555555;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
}

.category-select-field__select {
  display: block;

  min-width: 185px;
  height: 42px;
  padding: 0 38px 0 14px;

  border: 1px solid #d2d2d2;
  border-radius: 2px;
  background: #ffffff;
  color: #1e1e1e;

  font-size: 13px;
  line-height: 1.2;
  outline: none;

  cursor: pointer;
}

.category-select-field__select:focus {
  border-color: #b57a24;
}

/* ================================
   PRODUCTS GRID
================================ */

.category-products {
  margin-bottom: 48px;
}

.category-products__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
}

.category-product-card {
  width: 100%;
  min-width: 0;
}

.category-product-card.featured-product-card {
  z-index: 1;
}

.category-product-card.featured-product-card:hover,
.category-product-card.featured-product-card.is-info-open {
  z-index: 5;
}

.category-product-card .featured-product-card__image {
  height: 370px;
}

.category-product-card .featured-product-card__info-buttons {
  bottom: 5px;
}

/* ================================
   PAGINATION
================================ */

.category-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: 34px;
}

.category-pagination__pages {
  min-width: 0;
}

.category-pagination__pages:empty,
.category-pagination__results:empty {
  display: none;
}

.category-pagination__results {
  color: #555555;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

.category-pagination ul,
.category-pagination .pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.category-pagination li,
.category-pagination .pagination > li {
  margin: 0;
  padding: 0;
}

.category-pagination a,
.category-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  border: 1px solid #e2e2e2;
  border-radius: 2px;
  background: #ffffff;
  color: #1e1e1e;

  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.category-pagination a:hover,
.category-pagination .active span {
  border-color: #b57a24;
  background: #b57a24;
  color: #ffffff;
  text-decoration: none;
}

.category-pagination .disabled span {
  color: #9a9a9a;
  background: #f8f8f8;
}

/* ================================
   EMPTY
================================ */

.category-empty {
  margin-bottom: 48px;
  padding: 34px;

  border: 1px solid #e4e4e4;
  background: #ffffff;
}

.category-empty__text {
  margin: 0 0 22px;

  color: #555555;
  font-size: 15px;
  line-height: 1.5;
}

.category-empty__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 22px;

  border: 1px solid #a86c18;
  border-radius: 3px;
  background: linear-gradient(180deg, #c69038 0%, #a86c18 100%);
  color: #ffffff;

  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.category-empty__button:hover {
  color: #000000;
  text-decoration: none;
  opacity: 0.9;
}

/* ================================
   SEO DESCRIPTION
================================ */

.category-seo {
  margin-top: 0;
  margin-bottom: 60px;
}

.category-seo__content {
  padding: 34px 38px;

  border: 1px solid #e4e4e4;
  background: #ffffff;

  color: #555555;
  font-size: 15px;
  line-height: 1.65;
}

.category-seo__content > *:first-child {
  margin-top: 0;
}

.category-seo__content > *:last-child {
  margin-bottom: 0;
}

.category-seo__content h2,
.category-seo__content h3,
.category-seo__content h4 {
  margin: 28px 0 14px;

  color: #1e1e1e;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.category-seo__content h2 {
  font-size: 24px;
}

.category-seo__content h3 {
  font-size: 21px;
}

.category-seo__content h4 {
  font-size: 18px;
}

.category-seo__content p {
  margin: 0 0 15px;
}

.category-seo__content ul,
.category-seo__content ol {
  margin: 18px 0;
  padding-left: 22px;
}

.category-seo__content li {
  margin-bottom: 8px;
}

.category-seo__content a {
  color: #b57a24;
  text-decoration: none;
}

.category-seo__content a:hover {
  color: #1e1e1e;
  text-decoration: none;
}

@media (max-width: 1268px) {
  .category-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
  }
}

/* ================================
   TABLET
================================ */

@media (max-width: 1199px) {
  .category-title {
    font-size: 32px;
  }

  .category-subcategories__grid,
  .category-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .category-subcategory-card__name {
    font-size: 18px;
  }

  .category-product-card .featured-product-card__image {
    height: 340px;
  }

  .category-toolbar {
    align-items: flex-start;
  }

  .category-toolbar__controls {
    flex-wrap: wrap;
  }

  .category-select-field__select {
    min-width: 170px;
  }
}

/* ================================
   TABLET SMALL
================================ */

@media (max-width: 991px) {
  .category-header--with-image {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .category-subcategories__grid,
  .category-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .category-product-card .featured-product-card__image {
    height: 350px;
  }

  .category-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-toolbar__controls {
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 767px) {
  .category-page {
    padding-top: 18px;
  }

  .category-breadcrumbs {
    gap: 7px;
    margin-bottom: 16px;
    font-size: 11px;
  }

  .category-header,
  .category-header--with-image {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 26px;
  }

  .category-header__image {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .category-title {
    font-size: 28px;
  }

  .category-section-head,
  .category-section-head--products {
    margin-bottom: 18px;
  }

  .category-section-title {
    font-size: 20px;
    padding-bottom: 12px;
  }

  .category-subcategories {
    margin-bottom: 36px;
  }

  .category-subcategories__grid,
  .category-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-subcategory-card {
    min-height: 48px;
  }

  .category-subcategory-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* .category-subcategory-card__image {
    height: 125px;
  } */

  .category-subcategory-card__body,
  .category-subcategory-card--image .category-subcategory-card__body {
    /* min-height: 78px; */
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 14px 12px 12px;
  }

  .category-subcategory-card__name {
    /* font-size: 13px; */
    line-height: 1.12;
  }

  .category-subcategory-card__arrow {
    font-size: 18px;
  }

  .category-toolbar {
    margin-bottom: 22px;
    padding: 14px;
  }

  .category-toolbar__compare {
    width: 100%;
    min-height: 40px;
  }

  .category-toolbar__controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-select-field {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
  }

  .category-select-field__label,
  .category-select-field__select {
    font-size: 12px;
  }

  .category-select-field__select {
    width: 100%;
    min-width: 0;
    height: 40px;
  }

  .category-products {
    margin-bottom: 42px;
  }

  .category-product-card.featured-product-card {
    min-height: 580px;
  }

  .category-product-card .featured-product-card__image {
    height: 530px;
  }

  /* .category-product-card .featured-product-card__info-buttons {
    right: 11px;
    bottom: 150px;
    gap: 11px;
  } */

  .category-product-card .product-card__info-btn {
    min-width: 0;
    width: calc(100% - 10px);
    max-width: 160px;
    min-height: 30px;
    padding: 0 8px;

    font-size: 9px;
  }

  .category-product-card .product-card__info-btn i {
    margin-right: 7px;
    font-size: 15px;
  }

  .category-product-card .featured-product-card__body {
    padding: 8px 8px 12px;
  }

  /* .category-product-card .featured-product-card__name {
    font-size: 13px;
  } */

  .category-product-card .featured-product-card__more,
  .category-product-card .featured-product-card__panel-order {
    min-height: 38px;
  }

  .category-pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }

  .category-pagination__pages,
  .category-pagination__results {
    text-align: left;
  }

  .category-pagination a,
  .category-pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .category-seo {
    margin-bottom: 42px;
  }

  .category-seo__content {
    padding: 22px 18px;
    font-size: 13px;
    line-height: 1.6;
  }

  .category-seo__content h2 {
    font-size: 20px;
  }

  .category-seo__content h3 {
    font-size: 18px;
  }

  .category-seo__content h4 {
    font-size: 16px;
  }

  .category-empty {
    margin-bottom: 42px;
    padding: 24px 18px;
  }
}

@media (max-width: 682px) { 
  .category-subcategories__grid,
  .category-products__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 374px) {
  .category-title {
    font-size: 25px;
  }

  .category-subcategories__grid,
  .category-products__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-subcategory-card__image {
    height: 265px;
  }

  .category-subcategory-card__name {
    font-size: 16px;
  }

  .category-product-card.featured-product-card {
    min-height: 400px;
  }

   .category-product-card .featured-product-card__image {
    height: 420px;
  } 

 /*  .category-product-card .featured-product-card__info-buttons {
    bottom: 136px;
  } */

  .category-select-field {
    grid-template-columns: 1fr;
  }

  .category-pagination ul,
  .category-pagination .pagination {
    gap: 6px;
  }
}
