/* ══════════════════════════════════════════════
   Structured Product Description – Polished UI
   ══════════════════════════════════════════════ */

.uc-structured-desc {
  font-family: var(--theme-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  color: var(--theme-text-color, #1a1a1a);
  line-height: 1.65;
}

/* ── Section spacing ── */
.uc-section {
  margin-bottom: 40px;
}

/* ── Description ── */
.uc-section--desc {
  margin-top: 32px;
  font-size: 15px;
  color: var(--theme-text-color, #333);
}

/* ── Section titles ── */
.uc-section-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--theme-text-color, #111);
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.uc-section-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--theme-text-color, #444);
}

/* ── Warranty ── */
.uc-warranty-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 16px;
  background: #eef4ff;
  border-left: 4px solid #2872fa;
  border-radius: 4px;
  margin-top: 4px;
  font-size: 15px;
}

.uc-warranty-row + .uc-warranty-row {
  margin-top: 8px;
}

.uc-warranty-check {
  color: #2872fa;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Three-column row ── */
.uc-three-col-row {
  display: flex;
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
}

.uc-three-col {
  flex: 1 1 33.333%;
  min-width: 0;
  padding: 24px;
}

.uc-three-col + .uc-three-col {
  border-left: 1px solid #e5e7eb;
}

.uc-three-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uc-three-col ul li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 14px;
  color: var(--theme-text-color, #333);
}

.uc-three-col ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
}

.uc-compat-category {
  font-weight: 600;
  font-size: 13px;
  color: var(--theme-text-color, #555);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  margin-top: 10px;
}

.uc-compat-category:first-child {
  margin-top: 6px;
}

.uc-doc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.uc-doc-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.uc-doc-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .uc-three-col-row {
    flex-direction: column;
  }

  .uc-three-col + .uc-three-col {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
}

/* ── Specifications table ── */
.uc-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.uc-specs-table tr:nth-child(even) {
  background: #f9fafb;
}

.uc-specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.uc-specs-table td:first-child {
  font-weight: 600;
  color: var(--theme-text-color, #374151);
  width: 35%;
  white-space: nowrap;
}

.uc-specs-table td:last-child {
  color: var(--theme-text-color, #555);
}

.uc-specs-toggle {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.uc-specs-toggle:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Related products grid (product cards) ── */
.uc-related-products-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.uc-related-products-list > li {
  flex: 0 0 calc(20% - 16px) !important;
  min-width: 160px;
  max-width: none !important;
  width: auto !important;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.uc-related-products-list > li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.uc-related-products-list > li figure {
  margin: 0 0 10px 0;
  overflow: hidden;
  border-radius: 6px;
}

.uc-related-products-list > li img {
  border-radius: 6px;
  transition: transform 0.25s;
}

.uc-related-products-list > li:hover img {
  transform: scale(1.03);
}

.uc-related-products-list .woocommerce-LoopProduct-link {
  display: inline-block;
  line-height: 1.4;
}

.uc-related-products-list .price {
  margin-block-end: 0;
  margin-bottom: 16px;
}

.uc-related-products-list .ct-woo-card-actions {
  margin-top: auto;
}

.uc-related-products-list .ct-woo-card-actions .button {
  background: #fff !important;
  color: #2872fa !important;
  border: 1.5px solid #2872fa !important;
  transition: background 0.15s, color 0.15s;
}

.uc-related-products-list .ct-woo-card-actions .button:hover {
  background: #2872fa !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  .uc-related-products-list > li {
    flex: 0 0 calc(50% - 10px) !important;
  }
}

@media (max-width: 480px) {
  .uc-related-products-list > li {
    flex: 0 0 100% !important;
  }
}

