.codexup-products__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.codexup-products__tabs .tab-item {
  cursor: pointer;
  appearance: none;
  background: #f4f4f6;
  color: #33343a;
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.codexup-products__tabs .tab-item.active {
  background: #151515;
  color: #ffffff;
  border-color: #151515;
}

.codexup-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-item[hidden] {
  display: none;
}

.product-item .thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f4f4f6;
}

.product-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-item .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #151515;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 50px;
  line-height: 1.4;
  z-index: 2;
}

.product-item .content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px;
}

.product-item .title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.product-item .title a {
  color: inherit;
  text-decoration: none;
}

.product-item .description {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #6c6c72;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-item .price {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-item .price del {
  color: #9a9a9f;
  opacity: 1;
  margin-right: 6px;
}

.product-item .price ins {
  text-decoration: none;
}

.product-item .btn-wrap {
  display: flex;
  align-items: center;
}

.product-item .btn-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #151515;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.product-item .btn-wrap a.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-item .btn-wrap a.added::after {
  display: none;
}

.product-item .btn-wrap a.added_to_cart {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  background: none;
  color: #151515;
  padding: 0;
}

.product-item .glidy-btn-group .btn-icon {
  height: 52px;
  width: 52px;
}

.product-item .glidy-btn-group .btn-text {
  padding: 18px 40px;
}

@media (max-width: 1024px) {
  .codexup-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .codexup-products__tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .codexup-products__grid {
    grid-template-columns: 1fr;
  }
}