/* =========================================================
   SOHOGLAM — PRODUCT CATEGORY ARCHIVE
   ========================================================= */

.sg-category-page {
  background: #fff;
}

.sg-category-hero {
  padding: 30px 0 78px;
  background: #f5f1ee;
}

.sg-category-breadcrumbs {
  padding: 8px 0 42px;
}

.sg-category-breadcrumbs .woocommerce-breadcrumb {
  margin: 0 !important;
  color: #99908b !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
}

.sg-category-breadcrumbs .woocommerce-breadcrumb a {
  color: #746c68 !important;
  text-decoration: none !important;
}

.sg-category-breadcrumbs .woocommerce-breadcrumb > span {
  margin: 0 8px;
  color: #b7afaa;
}

.sg-category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: clamp(55px, 8vw, 130px);
  align-items: stretch;
}

.sg-category-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.sg-category-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #191919;
  font-size: clamp(58px, 6.7vw, 100px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.07em;
}

.sg-category-description {
  max-width: 720px;
  margin: 30px 0 0;
  color: #726b67;
  font-size: 13px;
  line-height: 1.8;
}

.sg-category-description p {
  margin: 0 0 12px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.sg-category-description p:last-child {
  margin-bottom: 0;
}

.sg-category-description--fallback {
  margin-bottom: 0;
}

.sg-category-hero__meta {
  display: flex;
  gap: 45px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #ddd6d2;
}

.sg-category-hero__meta > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #958d88;
  font-size: 8.5px;
  line-height: 1.4;
}

.sg-category-hero__meta strong {
  color: #292525;
  font-size: 15px;
  font-weight: 650;
}

.sg-category-hero__image {
  min-height: 420px;
  overflow: hidden;
  background: #ebe6e2;
}

.sg-category-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.sg-category-hero__editorial {
  min-height: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd5d0;
  color: #a76670;
  text-transform: uppercase;
  overflow: hidden;
}

.sg-category-hero__editorial::before,
.sg-category-hero__editorial::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(167,102,112,.18);
  border-radius: 50%;
}

.sg-category-hero__editorial::before {
  width: 280px;
  height: 280px;
}

.sg-category-hero__editorial::after {
  width: 390px;
  height: 390px;
}

.sg-category-hero__editorial span,
.sg-category-hero__editorial strong,
.sg-category-hero__editorial i {
  position: relative;
  z-index: 1;
}

.sg-category-hero__editorial span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

.sg-category-hero__editorial strong {
  margin-top: 4px;
  color: #2b2725;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: lowercase;
}

.sg-category-hero__editorial i {
  position: absolute;
  right: 24px;
  bottom: 19px;
  color: #a59d98;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
}

/* SUBCATEGORIES */

.sg-category-subcategories {
  padding: 62px 0 68px;
  border-bottom: 1px solid #e8e3df;
  background: #fff;
}

.sg-category-subcategories__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 27px;
}

.sg-category-subcategories__head h2 {
  margin: 0;
  color: #191919;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.03;
  font-weight: 520;
  letter-spacing: -.045em;
}

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

.sg-category-subcategory-card {
  min-height: 205px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #e8e3df;
  background: #fbfaf9;
  color: #292525;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.sg-category-subcategory-card:hover {
  transform: translateY(-3px);
  border-color: #d7cfca;
  background: #f7f4f2;
}

.sg-category-subcategory-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
  color: #a49b96;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
}

.sg-category-subcategory-card__top i {
  color: #4c4643;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  transition: transform .2s ease;
}

.sg-category-subcategory-card:hover .sg-category-subcategory-card__top i {
  transform: translateX(3px);
}

.sg-category-subcategory-card__image {
  width: 92px;
  height: 92px;
  position: absolute;
  right: 16px;
  top: 44px;
  opacity: .96;
}

.sg-category-subcategory-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sg-category-subcategory-card > strong {
  max-width: 72%;
  position: relative;
  z-index: 1;
  margin-top: 58px;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
}

.sg-category-subcategory-card > small {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: #9a918c;
  font-size: 8.5px;
}

.sg-category-catalog {
  padding-top: 82px;
}

/* TABLET */

@media (max-width: 1100px) {
  .sg-category-hero__grid {
    grid-template-columns: 1fr 360px;
    gap: 45px;
  }

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

@media (max-width: 900px) {
  .sg-category-hero {
    padding-bottom: 55px;
  }

  .sg-category-hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .sg-category-hero__content {
    min-height: 0;
  }

  .sg-category-hero__image,
  .sg-category-hero__image img,
  .sg-category-hero__editorial {
    min-height: 360px;
  }

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

@media (max-width: 650px) {
  .sg-category-hero {
    padding: 20px 0 45px;
  }

  .sg-category-breadcrumbs {
    padding: 6px 0 32px;
  }

  .sg-category-hero h1 {
    font-size: 49px;
  }

  .sg-category-description {
    margin-top: 22px;
    font-size: 12px;
  }

  .sg-category-hero__meta {
    margin-top: 29px;
    gap: 30px;
  }

  .sg-category-hero__image,
  .sg-category-hero__image img,
  .sg-category-hero__editorial {
    min-height: 290px;
  }

  .sg-category-hero__editorial::before {
    width: 210px;
    height: 210px;
  }

  .sg-category-hero__editorial::after {
    width: 280px;
    height: 280px;
  }

  .sg-category-subcategories {
    padding: 44px 0 48px;
  }

  .sg-category-subcategories__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(165px, 68vw);
    grid-template-columns: none;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sg-category-subcategories__grid::-webkit-scrollbar {
    display: none;
  }

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

  .sg-category-subcategory-card__image {
    width: 75px;
    height: 75px;
  }

  .sg-category-catalog {
    padding-top: 55px;
  }
}


/* =========================================================
   V1.5.0 — KOLAŻ PRODUKTÓW W NAGŁÓWKU, STRONA MARKI
   ========================================================= */

.sg-category-hero__collage {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.sg-category-hero__collage figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  overflow: hidden;
  background: #fbfaf9;
  border: 1px solid #e6dfdb;
}

.sg-category-hero__collage figure:first-child {
  grid-row: span 2;
}

.sg-category-hero__collage--1 figure:first-child {
  grid-column: span 2;
}

.sg-category-hero__collage--2 figure:last-child {
  grid-row: span 2;
}

.sg-category-hero__collage img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sg-category-hero__collage figure:not(:first-child) img {
  max-height: 160px;
}

.sg-category-subcategory-card.has-image > strong {
  max-width: 60%;
}

.sg-brand-hero {
  padding-bottom: 64px;
}

.sg-brand-hero__content {
  max-width: 860px;
}

.sg-brand-hero h1 {
  font-size: clamp(52px, 6vw, 92px);
}

@media (max-width: 900px) {
  .sg-category-hero__collage {
    min-height: 260px;
  }

  .sg-category-hero__collage figure:not(:first-child) img {
    max-height: 100px;
  }
}

@media (max-width: 650px) {
  .sg-category-hero__collage {
    display: none;
  }

  .sg-category-breadcrumbs .woocommerce-breadcrumb {
    white-space: normal !important;
    overflow: visible !important;
  }
}
