.lq-product-category {
  --lq-prod-cat-bg: #fff;
  --lq-prod-cat-border: #d9e0e8;
  --lq-prod-cat-title: #121922;
  --lq-prod-cat-text: #445263;
  --lq-prod-cat-link: #0f5cbe;
  --lq-prod-cat-shadow: 0 10px 28px rgba(10, 20, 30, 0.08);
  margin: var(--lqpc-container-margin, 0);
  padding: var(--lqpc-container-padding, 0);
  background: var(--lqpc-container-bg, transparent);
  max-width: var(--lqpc-wrapper-max-width, none);
}

.lq-product-category__grid {
  display: grid;
  gap: var(--lqpc-gap, 1.2rem);
}

.lq-product-category.is-grid.cols-2 .lq-product-category__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lq-product-category.is-grid.cols-3 .lq-product-category__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lq-product-category.is-grid.cols-4 .lq-product-category__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lq-product-category.is-list .lq-product-category__grid {
  grid-template-columns: minmax(0, 1fr);
}

.lq-product-category__item {
  position: relative;
  border: 1px solid var(--lq-prod-cat-border);
  border-radius: var(--lqpc-item-radius, 14px);
  background: var(--lqpc-item-bg, var(--lq-prod-cat-bg));
  overflow: hidden;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lq-product-category__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--lq-prod-cat-shadow);
}

.lq-product-category__image {
  position: relative;
  width: 100%;
  background: #edf2f7;
  overflow: hidden;
}

.lq-product-category__image-link {
  display: block;
}

.lq-product-category__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(170px, 20vw, 235px);
  object-fit: cover;
  border-radius: var(--lqpc-image-radius, 0);
}

.lq-product-category__image-placeholder {
  width: 100%;
  height: clamp(170px, 20vw, 235px);
  background: linear-gradient(130deg, #edf2f7 0%, #d7e0ea 100%);
}

.lq-product-category__icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 24, 35, 0.15);
}

.lq-product-category__icon img {
  display: block;
  max-width: 30px;
  max-height: 30px;
  width: auto;
  height: auto;
}

.lq-product-category__icon svg {
  display: block;
  max-width: 30px;
  max-height: 30px;
  width: auto;
  height: auto;
}

.lq-product-category__content {
  padding: var(--lqpc-item-padding, 1rem 1rem 1.1rem);
}

.lq-product-category__title {
  margin: 0;
  color: var(--lqpc-title-color, var(--lq-prod-cat-title));
  font-size: var(--lqpc-title-size, 1.08rem);
  font-weight: var(--lqpc-title-weight, 700);
  line-height: 1.25;
}

.lq-product-category__title a {
  color: inherit;
  text-decoration: none;
}

.lq-product-category__title a:hover,
.lq-product-category__title a:focus {
  text-decoration: underline;
}

.lq-product-category__description {
  margin: 0.6rem 0 0;
  color: var(--lqpc-desc-color, var(--lq-prod-cat-text));
  font-size: var(--lqpc-desc-size, 0.94rem);
  line-height: 1.5;
}

.lq-product-category__link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  color: var(--lqpc-button-color, var(--lq-prod-cat-link));
  background: var(--lqpc-button-bg, transparent);
  border-radius: var(--lqpc-button-radius, 0);
  padding: var(--lqpc-button-padding, 0);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.lq-product-category__link:hover,
.lq-product-category__link:focus {
  text-decoration: underline;
}

.lq-product-category__empty {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px dashed #d2dbe5;
  border-radius: 10px;
  background: #f8fafc;
  color: #4b5b6f;
  font-size: 0.96rem;
}

@media (max-width: 1080px) {
  .lq-product-category.is-grid.cols-4 .lq-product-category__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lq-product-category.is-grid.cols-3 .lq-product-category__grid,
  .lq-product-category.is-grid.cols-4 .lq-product-category__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lq-product-category.is-grid .lq-product-category__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lq-product-category__content {
    padding: 0.95rem 0.9rem 1rem;
  }
}
