/**
 * Product detail pages — shared layout (image + specifications)
 */

.entry-content .elementor:has(.rr-product-detail) > .elementor-section:first-child {
  max-width: 980px;
  margin: 28px auto 8px;
  padding: 0 20px;
}

.entry-content .elementor:has(.rr-product-detail) > .elementor-section:first-child .elementor-heading-title {
  text-align: center;
  color: #009a44;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.rr-products-wrap.rr-product-detail {
  box-sizing: border-box;
  max-width: 980px;
  margin: 0 auto 56px;
  padding: 24px 20px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .rr-products-wrap.rr-product-detail {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 32px 40px;
    padding: 32px 36px 40px;
    align-items: start;
  }
}

.rr-product-detail .rr-product-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

@media (min-width: 768px) {
  .rr-product-detail .rr-product-image {
    margin: 0;
    position: sticky;
    top: 96px;
  }
}

.rr-product-detail .rr-spec-table-wrap {
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e6ebe8;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rr-product-detail .rr-spec-table-wrap::before {
  content: "Specifications";
  display: block;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #009a44;
  background: #f5faf7;
  border-bottom: 1px solid #e6ebe8;
}

.rr-product-detail .rr-spec-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.rr-product-detail .rr-spec-table thead th {
  background: #009a44;
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.rr-product-detail .rr-spec-table tbody th[scope="row"] {
  background: #f7f9f8;
  color: #2d3430;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #ecefee;
  vertical-align: top;
}

.rr-product-detail .rr-spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #ecefee;
  color: #444;
  vertical-align: top;
}

.rr-product-detail .rr-spec-table tbody tr:last-child th[scope="row"],
.rr-product-detail .rr-spec-table tbody tr:last-child td {
  border-bottom: none;
}

.rr-product-detail .rr-spec-table tbody tr:hover td {
  background: #fafcfb;
}

.rr-product-detail .rr-spec-table tbody tr:hover th[scope="row"] {
  background: #eef5f1;
}

@media (max-width: 767px) {
  .rr-products-wrap.rr-product-detail {
    margin-left: 12px;
    margin-right: 12px;
    padding: 20px 16px 24px;
  }

  .entry-content .elementor:has(.rr-product-detail) > .elementor-section:first-child {
    padding: 0 12px;
  }
}
