/* Ramki Cards | Product detail readability / three-column catalogue (v20)
 * Load on product.php only, after ramki-product-detail-assistant.css.
 * No image, thumbnail, hover, dragging, data or shopping behavior changes.
 */

/* Keep the product-detail information in Assistant, with a Tamil-safe fallback. */
body main.product-marketplace-page .marketplace-product-info {
  font-family: 'Assistant', sans-serif !important;
}

/* Product identity and introduction. */
body main.product-marketplace-page .product-breadcrumb {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
body main.product-marketplace-page .marketplace-category-link,
body main.product-marketplace-page .marketplace-sku {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
body main.product-marketplace-page .marketplace-product-info h1 {
  font-size: clamp(32px, 3.05vw, 43px) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
}
body main.product-marketplace-page .marketplace-tamil-title {
  font-size: 18px !important;
  line-height: 1.6 !important;
}
body main.product-marketplace-page .marketplace-short-copy {
  font-size: 17px !important;
  line-height: 1.6 !important;
}
body main.product-marketplace-page .marketplace-assurance,
body main.product-marketplace-page .marketplace-stock {
  font-size: 13px !important;
}

/* Prices and offer details: lift the previously tiny text. */
body main.product-marketplace-page .marketplace-special-price {
  font-size: 14px !important;
}
body main.product-marketplace-page .marketplace-price-row .detail-price {
  font-size: 36px !important;
  line-height: 1.2 !important;
}
body main.product-marketplace-page .marketplace-price-row .price-old,
body main.product-marketplace-page .marketplace-discount {
  font-size: 15px !important;
}
body main.product-marketplace-page .marketplace-section-title {
  font-size: 19px !important;
  line-height: 1.35 !important;
}
body main.product-marketplace-page .marketplace-offer-item,
body main.product-marketplace-page .marketplace-spec-row {
  font-size: 15px !important;
  line-height: 1.65 !important;
}
body main.product-marketplace-page .marketplace-offer-item {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 10px !important;
}
body main.product-marketplace-page .marketplace-offer-icon {
  font-size: 17px !important;
}

/* Options and variant labels. No change to selected-state functionality. */
body main.product-marketplace-page .variant-picker legend {
  font-size: 17px !important;
  line-height: 1.4 !important;
}
body main.product-marketplace-page .variant-option-name {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
body main.product-marketplace-page .variant-option-price {
  font-size: 12px !important;
}

/* Tabs, copy, informational content, and enquiry CTA. */
body main.product-marketplace-page .marketplace-tab {
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 13px 15px !important;
}
body main.product-marketplace-page .marketplace-tab-panel,
body main.product-marketplace-page .marketplace-tab-panel .product-description,
body main.product-marketplace-page .marketplace-tab-panel p,
body main.product-marketplace-page .marketplace-tab-panel li {
  font-size: 16px !important;
  line-height: 1.7 !important;
}
body main.product-marketplace-page .marketplace-purchase-box,
body main.product-marketplace-page .marketplace-purchase-box :is(label, input, textarea, select) {
  font-size: 15px !important;
}
body main.product-marketplace-page .rk-enquiry-trigger {
  font-size: 16px !important;
}
body main.product-marketplace-page .rk-product-enquiry-cta small,
body main.product-marketplace-page .marketplace-media-note {
  font-size: 14px !important;
}

/* Product.php only: show three catalogue categories across on desktop.
 * The related-product ('You May Also Like') grid stays exactly as before. */
body .rk-product-page-catalogue .rk-catalogue-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
body .rk-product-page-catalogue .rk-catalogue-card strong {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
body .rk-related-section > h2 {
  font-family: 'Assistant', sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
}
body .rk-recommended-grid .rk-related-product-copy > a {
  font-size: 17px !important;
  line-height: 1.4 !important;
}
body .rk-recommended-grid .rk-related-product-price {
  font-size: 16px !important;
}

@media (max-width: 900px) {
  body .rk-product-page-catalogue .rk-catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  body main.product-marketplace-page .marketplace-product-info h1 {
    font-size: clamp(30px, 5vw, 39px) !important;
  }
}
@media (max-width: 520px) {
  body main.product-marketplace-page .marketplace-product-info h1 {
    font-size: 30px !important;
  }
  body main.product-marketplace-page .marketplace-short-copy {
    font-size: 16px !important;
  }
  body main.product-marketplace-page .marketplace-section-title {
    font-size: 18px !important;
  }
  body main.product-marketplace-page .marketplace-tab {
    font-size: 14px !important;
  }
  body main.product-marketplace-page .marketplace-tab-panel,
  body main.product-marketplace-page .marketplace-tab-panel .product-description {
    font-size: 15px !important;
  }
  body .rk-product-page-catalogue .rk-catalogue-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body .rk-related-section > h2 {
    font-size: 27px !important;
  }
}
