/* Rayehe Kimia 1.2.24 — merged theme layers: rk-visual-consistency-1212, rk-search-page-unification-1213 */

/* rk-visual-consistency-1212 */
/* Rayehe Kimia 1.2.12 — shared product-card, breadcrumb and header-link consistency. */

/* Shared product-card shell: keep the same surface, border and radius on every product surface. */
body.rk-wp .product-card {
  background: var(--rk-card) !important;
  color: var(--rk-ink) !important;
  border: 1px solid var(--rk-border) !important;
  border-radius: 18px !important;
}

/* Remove any separator/decorative line between Persian and English names. */
body.rk-wp .product-card .card-text,
body.rk-wp .product-card .rk-card-title-link,
body.rk-wp .product-card .rk-card-title-link :where(h3,.rk-h3):not(rkx),
body.rk-wp .product-card .rk-card-english-subtitle {
  border-block: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
body.rk-wp .product-card .rk-card-title-link,
body.rk-wp .product-card .rk-card-english-subtitle {
  text-decoration: none !important;
  background-image: none !important;
}
body.rk-wp .product-card .rk-card-english-subtitle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 2px 0 5px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--rk-sub, #6a8579);
  opacity: .9;
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
}
body.rk-wp .product-card .rk-card-title-link::before,
body.rk-wp .product-card .rk-card-title-link::after,
body.rk-wp .product-card .rk-card-english-subtitle::before,
body.rk-wp .product-card .rk-card-english-subtitle::after {
  content: none !important;
  display: none !important;
}

/* Shared breadcrumb typography; keep each template's existing wrapper geometry. */
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) {
  font-size: 12px;
  line-height: 1.8;
}
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) a {
  color: var(--rk-sub, #6a8579);
  font-weight: 650;
}
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) a:hover {
  color: var(--rk-primary, #0f4f4a);
}

/* Breadcrumb links are never underlined, including hover/visited/focus states. */
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) a,
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) a:visited,
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) a:hover,
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) a:focus-visible,
body.rk-wp :is(.rk-context-breadcrumb, .woocommerce-breadcrumb, .rk-breadcrumbs, .rk-help-breadcrumb, .rk-404-breadcrumb) a:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none;
}

/* The logo link itself has no underline/border; the shared header shell remains unchanged. */
body.rk-wp .site-header .brand,
body.rk-wp .site-header .brand:visited,
body.rk-wp .site-header .brand:hover,
body.rk-wp .site-header .brand:focus-visible {
  display: block;
  border: 0 !important;
  text-decoration: none !important;
  background: transparent;
  box-shadow: none;
}
body.rk-wp .site-header .brand img {
  display: block;
  border: 0;
  box-shadow: none;
}

@media (max-width: 640px) {
  body.rk-wp .product-card .rk-card-english-subtitle { font-size: 10px; margin-block: 1px 3px; }
}


/* rk-search-page-unification-1213 */
/* Shared quick-view contact and footer trust-mark styles. Search uses the ordinary archive/header cascade. */

/* The fallback contact link is styled on the product page; the same treatment
   must also apply when Core renders it inside the AJAX quick-view dialog. */
body.rk-wp .rk-quick-view .rk-variation-feedback .rk-product-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  max-width: 100%;
  margin-inline: 3px;
  padding: 3px 9px;
  border: 1px solid var(--rk-border, #dceadc);
  border-radius: 999px;
  background: var(--rk-card, #fff);
  color: var(--rk-primary, #0f4f4a);
  font-weight: 850;
  text-decoration: none !important;
  text-decoration-line: none !important;
  box-shadow: none !important;
  overflow-wrap: anywhere;
}
body.rk-wp .rk-quick-view .rk-variation-feedback .rk-product-contact-link:is(:hover, :focus-visible, :active, :visited),
body.rk-wp .rk-quick-view .rk-native-variation-purchase__option--contact,
body.rk-wp .rk-quick-view .rk-native-variation-purchase__option--contact:is(:hover, :focus-visible, :active, :visited),
body.rk-wp .rk-quick-view .rk-qv-purchase-note a,
body.rk-wp .rk-quick-view .rk-qv-purchase-note a:is(:hover, :focus-visible, :active, :visited) {
  text-decoration: none !important;
  text-decoration-line: none !important;
  background-image: none !important;
}
body.rk-wp .rk-quick-view .rk-variation-feedback .rk-product-contact-link:is(:hover, :focus-visible) {
  border-color: var(--rk-primary, #0f4f4a);
  background: var(--rk-brand-soft, #e9f5ee);
  color: var(--rk-primary, #0f4f4a);
}
body.rk-wp .rk-quick-view .rk-variation-feedback .rk-product-contact-link:focus-visible {
  outline: 2px solid var(--rk-focus, #58c7be);
  outline-offset: 3px;
}

/* The Enamad image is a standalone trust mark, not a bordered placeholder card.
   Remove the old dashed/solid slot edge and every link underline on all pages. */
body.rk-wp .site-footer .rk-footer-enamad-slot {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
body.rk-wp .site-footer .rk-footer-enamad-link,
body.rk-wp .site-footer .rk-footer-enamad-link:is(:visited, :hover, :focus-visible, :active) {
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}
body.rk-wp .site-footer .rk-footer-enamad-link img {
  display: block;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

