.pvc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(var(--pvc-mobile-cols, 2), minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 992px) {
  .pvc-catalog-grid {
    grid-template-columns: repeat(var(--pvc-desktop-cols, 4), minmax(0, 1fr));
  }
}

.pvc-catalog-card {
  appearance: none;
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pvc-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.pvc-catalog-image-wrap {
  aspect-ratio: 1 / 1;
  background: #fafafa;
}

.pvc-catalog-image,
.pvc-catalog-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pvc-catalog-name {
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.pvc-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.pvc-catalog-modal.is-open {
  display: block;
}

.pvc-catalog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.pvc-catalog-dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  width: min(960px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  padding: 20px;
}

.pvc-catalog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: #111;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.pvc-catalog-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .pvc-catalog-modal-grid {
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: start;
  }
}

.pvc-catalog-modal-image-col {
  background: #fafafa;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.pvc-catalog-modal-content-col h3 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
}

.pvc-catalog-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.pvc-catalog-spec-item {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px;
}

.pvc-catalog-spec-item strong {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.pvc-catalog-description {
  color: #333;
  line-height: 1.6;
  margin-bottom: 18px;
}

.pvc-catalog-length-box {
  margin-bottom: 18px;
}

.pvc-catalog-length-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.pvc-catalog-length-box input {
  width: 100%;
  max-width: 240px;
  min-height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 0 14px;
}

.pvc-catalog-length-box small {
  display: block;
  margin-top: 6px;
  color: #666;
}

.pvc-catalog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pvc-catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 600;
}

.pvc-catalog-btn-primary {
  background: #25D366;
  color: #fff;
}

.pvc-catalog-btn-secondary {
  background: #111;
  color: #fff;
}

.pvc-catalog-empty {
  padding: 20px;
  border: 1px dashed #ddd;
  border-radius: 12px;
}
