/* VehitekRD 3.1 — structured product content and clean media. */
.product-art:has(img)::before,
.product-art:has(img)::after,
.modal-art:has(img)::before,
.modal-art:has(img)::after {
  display: none !important;
  content: none !important;
}

.product-art:has(img),
.modal-art:has(img) {
  background: #f5f5f3 !important;
}

.product-art:has(img) img,
.modal-art:has(img) img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}

.technical-specs { margin-top: 28px; }
.technical-specs h2 { margin: 0 0 15px; font-size: 20px; }
.technical-specs-table {
  overflow: hidden;
  border: 1px solid #2b2b2e;
  border-radius: 10px;
  background: #0b0b0c;
}
.technical-specs-head,
.technical-specs-row {
  display: grid;
  grid-template-columns: minmax(150px, 42%) minmax(0, 58%);
  gap: 18px;
  padding: 13px 16px;
}
.technical-specs-head { background: #171719; color: #f3f3f1; font-size: 11px; }
.technical-specs-row {
  border-top: 1px solid #242427;
  color: #b8b8b4;
  font-size: 12px;
  line-height: 1.5;
}
.technical-specs-row strong { color: #f1f1ee; overflow-wrap: anywhere; }
.technical-specs-row span { overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .technical-specs-head { display: none; }
  .technical-specs-row { grid-template-columns: 1fr; gap: 5px; padding: 13px; }
  .technical-specs-row:first-of-type { border-top: 0; }
  .technical-specs-row strong { font-size: 11px; }
  .technical-specs-row span { font-size: 12px; }
}

/* Administrative specification editor. */
.product-spec-editor {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--aq-line, #d8e1ea);
  border-radius: 13px;
  background: #f9fbfd;
}
.product-spec-editor > header {
  display: flex !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.product-spec-editor > header b,
.product-spec-editor > header small { display: block; }
.product-spec-editor > header b { color: var(--aq-text, #14253a); font-size: 17px; }
.product-spec-editor > header small { margin-top: 4px; color: var(--aq-muted, #61748a); }
.product-spec-editor > label {
  display: grid;
  gap: 7px;
  color: var(--aq-text, #14253a);
  font-size: 12px;
  font-weight: 800;
}
.product-spec-editor textarea,
.product-spec-editor input {
  width: 100%;
  padding: 11px;
  border: 1px solid #c8d5e3;
  border-radius: 9px;
  background: #fff;
  color: var(--aq-text, #14253a);
}
.product-spec-editor textarea { min-height: 110px; resize: vertical; }
.spec-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spec-editor-heading button,
.spec-paste button { min-height: 38px !important; }
.spec-editor-rows { display: grid; gap: 9px; }
.spec-editor-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.5fr) 42px;
  gap: 9px;
  align-items: center;
}
.spec-editor-row .remove-spec {
  width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  color: #b33b2f !important;
}
.spec-paste { padding: 12px; border: 1px dashed #bdccda; border-radius: 10px; background: #fff; }
.spec-paste summary { cursor: pointer; color: #176bc5; font-weight: 800; }
.spec-paste p { color: var(--aq-muted, #61748a); font-size: 11px; }
.spec-paste textarea { margin-bottom: 9px; }

@media (max-width: 760px) {
  .spec-editor-row { grid-template-columns: 1fr 42px; }
  .spec-editor-row input:nth-child(2) { grid-column: 1 / 2; }
  .spec-editor-row .remove-spec { grid-column: 2; grid-row: 1 / 3; }
  .spec-editor-heading { align-items: flex-start; flex-direction: column; }
}
