#ipp-products-grid {
  opacity: 1;
  transition: opacity 0.12s ease-in-out;
}
#ipp-products-grid.ipp-fading {
  opacity: 0;
}
.ipp-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}
.ipp-controls select {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  font-size: 14px;
  color: #111;
  min-width: 160px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .ipp-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  #ipp-sort {
    margin-left: 0;
    width: 100%;
  }
  #ipp-category-filter {
    width: 100%;
  }
}
.custom-select-wrapper {
  position: relative;
  width: 30%;
  max-width: 438px;
  height: 62px;
  border-radius: 8px;
  border: 1px solid #acacac;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 15px;
}
.custom-select-wrapper.sort {
  max-width: 241px;
}
.custom-select-wrapper select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #000;
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.custom-select-wrapper .custom-arrow {
  width: 26px;
  height: 26px;
  pointer-events: none;
  position: absolute;
  right: 15px;
}
.custom-select-wrapper .custom-arrow svg {
  width: 26px;
  height: 26px;
}
.ipp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-content: start;
}
@media (max-width: 1440px) {
  .ipp-grid {
    grid-template-columns: repeat(3, 335px);
  }
}
@media (max-width: 1024px) {
  .ipp-grid {
    grid-template-columns: repeat(2, 335px);
    padding: 0 80px;
  }
}
@media (max-width: 768px) {
  .ipp-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
}
@media (max-width: 480px) {
  .ipp-grid {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0 20px;
  }
}
.ipp-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ipp-card-rect1 {
  background: linear-gradient(to bottom right, #fdecd3 0%, #ffe9c9 50%) bottom
      right / 50% 50% no-repeat,
    linear-gradient(to bottom left, #fdecd3 0%, #ffe9c9 50%) bottom left / 50%
      50% no-repeat,
    linear-gradient(to top left, #fdecd3 0%, #ffe9c9 50%) top left / 50% 50%
      no-repeat,
    linear-gradient(to top right, #fdecd3 0%, #ffe9c9 50%) top right / 50% 50%
      no-repeat;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.ipp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.12);
}
.ipp-card-image {
  width: 100%;
  padding: 22px;
  height: 252px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ipp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ipp-card-body {
  width: 100%;
  height: 162px;
  padding: 20px 25px 14px;
  border-radius: 0 0 12px 12px;
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
  font-family: var(--wp--preset--font-family--open-sans);
}
.ipp-title {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  font-family: inherit;
}
.ipp-order-wrap {
  display: flex;
  justify-content: flex-end;
}
.ipp-order-btn {
  width: 145px;
  height: 40px;
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  background: #ec8914;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}
.ipp-order-btn:hover {
  background-color: #ec8914;
  transform: translateY(-2px);
}
.ipp-pagination {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ipp-page-btn {
  position: relative;
  width: 35px;
  height: 35px;
  border: none;
  background: none;
  padding: 0;
  margin: 0 4px;
  cursor: pointer;
}
.ipp-page-btn .page-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
}
.ipp-loading,
.ipp-error,
.ipp-no-results {
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
