/**
  Styling for category pages
*/

#primary {
    background-color: #F4F4F4;
}

.compaContent {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
}

#categoryHeading {
  background-color: #F4F4F4;
  padding: 50px 10px;
}

@media (max-width: 767px) {
  #categoryHeading {
    padding: 50px 10px 30px 10px;
  }
}

.headingWrapper {
  text-align: center;
}

.headingWrapper h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
}

#categoryFilters {
    background-color: #F4F4F4;
}

.compav3CategoryFilter  {
  font-family: "Inter", sans-serif;
  color: #64748B;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: 5px 10px;
  margin-right: 5px;
}

.compav3CategoryFilter:hover {
  text-decoration: none;
}

#compav3CategoryFilterButtons {
  width: fit-content;
  padding: 10px;
  background-color: #F1F5F9;
  border-radius: 10px;
}

.compav3CategoryFilterActive {
  color: #97B783;
  background-color: #fff;
  border-radius: 5px;
  border-bottom: 3px solid #97B783;
  box-shadow: 0px 1px 2px 0px #0000000D;
}

.categoryPostQueryWrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 30px 0;
}

@media (max-width: 767px) {
  .categoryPostQueryWrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    padding: 30px 15px;
  }
}

.postImage {
  width: auto;
  height: 330px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.catPostCard {
  background-color: #fff;
  box-shadow: 0px 2px 6px 0px #0000001A;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center;
}

.catPostCard:hover {
  transform: scale(1.03); /* increase to 1.05 if you want bigger */
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.catPostTitle {
  font-family: "Inter", sans-serif;
  color: #030712;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  padding: 20px;
}

.catPostTitle.is-article {
    min-height: 70px;
}

.catLink {
  padding: 20px;
  height: 20px;
  display: flex;
  justify-content: start;
  align-items: self-end;
}

.catLink a {
  color: #97B783;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.catLink a:hover {
  text-decoration: underline;
}

.postImageCatName {
  background-color: #E0E0E0;
  padding: 5px 10px;
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0px 2px 4px 0px #00000026;
  position: absolute;
  top: 10px;
  left: 10px;
}

.postImageCatName span {
  color: #424242;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.postImageAnnons {
  background-color: #FF8C42;
  padding: 5px 10px;
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0px 2px 4px 0px #00000026;
  position: absolute;
  top: 10px;
  right: 10px;
}

.postImageAnnons span {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.postImageNumOfProducts {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 10px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0px 0px 12px 2px #55A44873;
  box-shadow: 0px 2px 6px 0px #00000040;
  box-shadow: 0px 1px 2px 1px #FFFFFF59 inset;
  backdrop-filter: blur(12px);
  border: 1px solid #FFFFFF40;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
  linear-gradient(315deg, rgba(255, 255, 255, 0.25) 0%, rgba(85, 164, 72, 0.4) 100%);
}

.postImageProductNumber {
  font-family: "Inter", sans-serif;
  display: block;
  color: #FFFFFFE5;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.postImageProdukter {
  font-family: "Inter", sans-serif;
  color: #FFFFFFE5;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.categoryPostsLoadMoreWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .categoryPostsLoadMoreWrapper {
    width: unset;
  }
}

.categoryPostsLoadMoreWrapper a {
  font-family: "Inter", sans-serif;
  color: #030712;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  background-color: #fff;
  border: 1px solid #E2E8F0;
  padding: 10px 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.categoryPostsLoadMoreWrapper a.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.categoryPostsLoadMoreWrapper a.is-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #E2E8F0;
  border-top-color: #030712;
  animation: category-load-more-spinner 0.8s linear infinite;
}

@keyframes category-load-more-spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.compav3CatPageFilters {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 767px) {
  .compav3CatPageFilters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

.catProductExcerptWrapper {
  padding: 0 20px;
  min-height: 50px;
}

.catProductExcerpt {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.compav3CustomSelect {
  position: relative;
  display: inline-block;
  font-family: "Inter", sans-serif;
}

/* Trigger (closed state) */
.compav3CustomSelect__trigger {
  border: 1px solid #E2E8F0;
  background-color: #fff !important;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  color: #030712 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 150px;
  text-align: left;
  outline: none;
  position: relative;
}

.compav3CustomSelect__trigger:hover {
    border: none !important;
}

/* Arrow */
.compav3CustomSelect__trigger::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #667085 transparent transparent transparent;
}

/* Dropdown list */
.compav3CustomSelect__options {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 4px;
  background-color: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  list-style: none;
  padding: 4px 0;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  display: none;
  z-index: 50;
}

/* Open state */
.compav3CustomSelect.is-open .compav3CustomSelect__options {
  display: block;
}

/* Options */
.compav3CustomSelect__option {
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.compav3CustomSelect__option:hover {
  background-color: #eef6ed;
}

.compav3CustomSelect__option.is-selected {
  font-weight: 500;
  background-color: #eef6ed;
}

/* Base */
.dropdown-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.catPostCard {
  position: relative;
}

.wholeCatPostLink {
  position: absolute;
  inset: 0;              /* shorthand for top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  display: block;        /* important: anchors are inline by default */
  z-index: 10;
  cursor: pointer;
  /* optional: make it "invisible" but still clickable */
  text-indent: -9999px;  /* hide any text if you add it */
  background: transparent;
}

.categoryPostsLoadMore:hover {
  background-color: #75B828;
  color: white;
  text-decoration: none;
}

/* Pagination styling */
.compav3CatPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: unset;
  padding: 30px 0 50px 0;
}

.category .page-numbers {
    padding: 10px 12px;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px !important;
    background-color: #F6F7F8 !important;
    border: 1px solid #E2E8F0 !important;
    color: #030712;
    font-size: 14px;
    font-weight: 500;
    margin: 0 3px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category .page-numbers:hover {
  background-color: #97B783 !important;
  color: white;
}

.page-numbers.current {
    padding: 10px 12px;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px !important;
    background-color: #fff !important; 
    border: 1px solid #E2E8F0 !important;
    color: #030712;
    font-size: 14px;
    font-weight: 500;
    margin: 0 3px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-numbers.current:hover {
  background-color: #97B783 !important;
  color: white;
}

.page-numbers.next,
.prev.page-numbers {
    font-size: 0;
    position: relative;
}

/* shared icon styles */
.page-numbers.next::after,
.prev.page-numbers::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;

    background-color: #000; /* default color */

mask-image: url('../images/chevron-down.svg');
-webkit-mask-image: url('../images/chevron-down.svg');

    mask-size: contain;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;

    mask-position: center;
    -webkit-mask-position: center;
}

/* rotations */
.page-numbers.next::after {
    transform: rotate(-90deg);
}

.prev.page-numbers::after {
    transform: rotate(90deg);
}

/* hover → WHITE */
.page-numbers.next:hover::after,
.prev.page-numbers:hover::after {
    background-color: #fff;
}
 
.compav3CatPagination a:hover {
  text-decoration: none;
}