/*
 * RAKHSH Persian/RTL adaptation.
 * This stylesheet deliberately preserves NIAAR dimensions, grids, spacing,
 * card geometry and transitions. Only direction, typography and brand accent
 * are adapted.
 */
@font-face {
  font-family: "IRANSans Pro";
  src: url("../fonts/iransans-pro/IRANSansXFaNum-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans Pro";
  src: url("../fonts/iransans-pro/IRANSansXFaNum-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans Pro";
  src: url("../fonts/iransans-pro/IRANSansXFaNum-DemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans Pro";
  src: url("../fonts/iransans-pro/IRANSansXFaNum-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --rakhsh-primary: #017f6a;
  --rakhsh-primary-dark: #006454;
  --rakhsh-primary-soft: #e8f5f2;
}

html {
  direction: rtl;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "IRANSans Pro", Tahoma, sans-serif !important;
}

body {
  direction: rtl;
  text-align: right;
  font-feature-settings: "ss02";
}

/* Preserve technical identifiers in their natural reading direction. */
.sku,
.product_meta,
[data-ltr],
input[type="email"],
input[type="url"],
input[name*="sku" i],
input[name*="model" i],
input[name*="part" i],
code,
pre,
.woocommerce-order-details__title + table .product-sku {
  direction: ltr;
  unicode-bidi: embed;
  text-align: left;
}

/* Tailwind brand utilities compiled in the reference theme. */
.text-primary,
.hover\:text-primary:hover,
.group:hover .group-hover\:text-primary,
.prose-primary,
.prose-a\:text-primary a {
  color: var(--rakhsh-primary) !important;
}

.bg-primary,
.wpcf7-form .wpcf7-submit,
.wpcf7 form.sent .wpcf7-response-output {
  background-color: var(--rakhsh-primary) !important;
}

.border-primary,
.border-b-primary,
.group:hover .group-hover\:border-b-primary {
  border-color: var(--rakhsh-primary) !important;
}

a:focus-visible,
button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  --tw-ring-color: var(--rakhsh-primary) !important;
}

input[type="checkbox"],
input[type="radio"] {
  color: var(--rakhsh-primary) !important;
}

/* Logical mirroring while retaining the original component proportions. */
.header-content,
.fixed-header .container > div,
.header-menu > ul,
.main-menu ul,
.woocommerce-MyAccount-navigation ul,
.niaar-crm-shell,
.niaar-crm-form-grid,
.niaar-portal-grid {
  direction: rtl;
}

.header-content,
.fixed-header .container > div {
  flex-wrap: nowrap !important;
}

.header-content > nav,
.fixed-header nav {
  min-width: 0;
}

.niaar-header-account-actions {
  height: auto !important;
  min-height: 38px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center !important;
}

.menu-toggle.ml-auto,
#menu-close.ml-auto,
.md\:ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.hero video,
.hero img {
  left: auto !important;
  right: 0 !important;
}

.niaar-home-section-title::before,
.niaar-home-static-section h2::before {
  background: var(--rakhsh-primary) !important;
}

.niaar-home-brand-track {
  direction: ltr;
}

.niaar-home-trending .lucide-chevron-right,
.pagination .next svg,
.woocommerce-breadcrumb svg {
  transform: scaleX(-1);
}

.niaar-floating-contact {
  right: auto !important;
  left: 0 !important;
  align-items: flex-start !important;
}

.niaar-floating-contact::before {
  right: auto !important;
  left: 0 !important;
  background: linear-gradient(to bottom, #239f40 0 33.333%, #fff 33.333% 66.666%, #da0000 66.666% 100%) !important;
}

.niaar-floating-contact-link {
  flex-direction: row !important;
  border-right: 1px solid transparent !important;
  border-left: 0 !important;
}

.niaar-floating-contact-link:first-child {
  border-radius: 0 12px 0 0 !important;
}

.niaar-floating-contact-link:last-child {
  border-radius: 0 0 12px 0 !important;
}

.niaar-floating-contact-link:hover,
.niaar-floating-contact-link:focus-visible {
  transform: translateX(2px) !important;
}

.niaar-floating-contact-email,
.niaar-floating-contact-email:hover,
.niaar-floating-contact-email:focus-visible {
  color: var(--rakhsh-primary) !important;
}

.niaar-floating-contact-whatsapp,
.niaar-floating-contact-whatsapp:hover,
.niaar-floating-contact-whatsapp:focus-visible {
  background: #239f40 !important;
}

.niaar-floating-contact-call,
.niaar-floating-contact-call:hover,
.niaar-floating-contact-call:focus-visible {
  background: #da0000 !important;
}

.rakhsh-trending-card {
  min-height: 210px;
}

.rakhsh-trending-card .aspect-video {
  height: 100%;
  min-height: 210px;
}

.rakhsh-trending-card .aspect-video img {
  display: block;
  object-fit: contain !important;
}

.rakhsh-trending-copy {
  right: 0 !important;
  left: auto !important;
  z-index: 3;
  max-width: 50%;
  line-height: 1.65;
}

.rakhsh-trending-copy > div:first-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 18px;
}

.rakhsh-division-title {
  right: 1.5rem !important;
  left: auto !important;
  max-width: calc(100% - 3rem);
}

.niaar-footer-product-categories-list,
.footer-menu ul {
  padding-right: 0;
}

.woocommerce form .form-row,
.woocommerce table,
.woocommerce-account .woocommerce-MyAccount-content,
.niaar-crm-table,
.niaar-crm-card,
.niaar-auth-card,
.niaar-quote-modal,
.niaar-consent-modal {
  text-align: right;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  right: auto;
  left: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-right: 12px;
  padding-left: 30px;
}

.rakhsh-site-logo {
  object-position: right center;
}

.niaar-site-footer-main {
  background-image:
    linear-gradient(rgba(1, 127, 106, .90), rgba(0, 100, 84, .94)),
    url("../images/footer.jpg") !important;
}

.rakhsh-clients-home .niaar-home-section-title::before {
  height: 42px;
}

.rakhsh-client-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.rakhsh-client-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rakhsh-client-card:hover {
  border-color: var(--rakhsh-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.rakhsh-client-card img {
  width: auto;
  max-width: 150px;
  height: 70px;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .rakhsh-client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* NIAAR uses its desktop header from 984px. Persian labels need a compact
   adaptation in the narrow desktop band without changing the header model. */
@media (min-width: 984px) and (max-width: 1199px) {
  .rakhsh-site-logo {
    min-width: 145px !important;
    max-width: 155px !important;
    height: 34px !important;
  }

  .header-menu > ul {
    gap: 12px !important;
    font-size: 13px;
  }

  .niaar-header-quote-desktop {
    margin-left: 7px !important;
  }

  .niaar-header-quote-link,
  .niaar-header-account-button {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  .niaar-header-account-actions {
    margin-right: 5px !important;
    margin-left: 5px !important;
  }
}

@media (max-width: 700px) {
  .rakhsh-site-logo {
    min-width: 145px !important;
    max-width: 175px !important;
    height: 36px !important;
  }

  .niaar-floating-contact {
    right: auto !important;
    left: 10px !important;
  }

  .niaar-floating-contact::before {
    right: auto !important;
    left: 4px !important;
    border-radius: 10px 0 0 10px !important;
  }

  .rakhsh-trending-card,
  .rakhsh-trending-card .aspect-video {
    min-height: 190px;
  }

  .rakhsh-trending-copy > div:first-child {
    font-size: 16px;
  }

  .niaar-floating-contact-link {
    border-radius: 10px !important;
  }

  .rakhsh-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rakhsh-client-card { min-height: 130px; padding: 16px; }
}

@media (max-width: 380px) {
  .niaar-floating-contact { left: 7px !important; }
}

/* Final NIAAR-family polish for RAKHSH. */
.rakhsh-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.rakhsh-section-heading .niaar-home-section-title { margin-bottom: 10px; }
.rakhsh-section-heading p { margin: 0; color: #5f6866; line-height: 1.9; }
.rakhsh-section-heading > a { color: var(--rakhsh-primary); font-weight: 800; white-space: nowrap; }

.rakhsh-services { padding: 76px 0; background: #f3f4f4; }
.rakhsh-slider-controls,.rakhsh-related-controls { display: flex; gap: 8px; direction: ltr; }
.rakhsh-slider-controls button,.rakhsh-related-controls button {
  width: 44px; height: 44px; border: 1px solid #d9dfdd; border-radius: 50%; background: #fff;
  color: #111; font-size: 25px; display: grid; place-items: center; transition: .2s;
}
.rakhsh-slider-controls button:hover,.rakhsh-related-controls button:hover { border-color: var(--rakhsh-primary); background: var(--rakhsh-primary); color: #fff; }
.rakhsh-services-viewport { position: relative; min-height: 370px; }
.rakhsh-service-slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; background: #fff;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s, transform .35s, visibility .35s;
}
.rakhsh-service-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.rakhsh-service-image { min-height: 370px; overflow: hidden; }
.rakhsh-service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.rakhsh-service-slide.is-active .rakhsh-service-image img { transform: scale(1.025); }
.rakhsh-service-copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; text-align: right; }
.rakhsh-service-copy > span { color: var(--rakhsh-primary); font-weight: 900; letter-spacing: .12em; }
.rakhsh-service-copy h3 { margin: 12px 0 16px; font-size: clamp(25px,3vw,38px); line-height: 1.35; }
.rakhsh-service-copy p { margin: 0 0 24px; color: #59615f; line-height: 2; }
.rakhsh-service-copy a { color: var(--rakhsh-primary); font-weight: 800; }
.rakhsh-services-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; direction: ltr; }
.rakhsh-services-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: #c9cfcd; transition: .2s; }
.rakhsh-services-dots button.is-active { width: 30px; background: var(--rakhsh-primary); }

.rakhsh-home-customers { padding: 52px 0; background: #fff; border-bottom: 1px solid #e8ebe9; }
.rakhsh-home-customer-strip { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border: 1px solid #e6e9e8; }
.rakhsh-home-customer-logo {
  min-height: 126px; padding: 20px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border-left: 1px solid #e6e9e8; background: #fff; color: #303735; transition: .2s;
}
.rakhsh-home-customer-logo:hover { background: #f5faf8; color: var(--rakhsh-primary); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(1,127,106,.09); }
.rakhsh-home-customer-logo img { width: 100%; max-width: 115px; height: 54px; object-fit: contain; filter: saturate(.88); }
.rakhsh-home-customer-logo span { font-size: 12px; font-weight: 700; text-align: center; }

.rakhsh-footer-main {
  position: relative; padding: 76px 0 68px; color: #fff;
  background-image: linear-gradient(90deg,rgba(0,50,43,.9),rgba(0,34,30,.86)),url("../images/rakhsh-footer-industrial-v2.png");
  background-size: cover; background-position: center bottom;
}
.rakhsh-footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .9fr 1fr; gap: 48px; align-items: start; }
.rakhsh-footer-logo { width: 170px; height: 64px; object-fit: contain; object-position: right center; margin-bottom: 18px; }
.rakhsh-footer-intro > p { margin: 0 0 24px; max-width: 360px; color: rgba(255,255,255,.83); line-height: 1.95; }
.rakhsh-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rakhsh-footer-contact li { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #fff; }
.rakhsh-footer-contact li span { color: #79d1c1; min-width: 44px; }
.rakhsh-footer-contact a,.rakhsh-footer-contact b { color: #fff; font-weight: 700; }
.rakhsh-footer-column h2 { margin: 8px 0 22px; color: #fff; font-size: 18px; font-weight: 900; }
.rakhsh-footer-column h2::after { content:""; display:block; width: 28px; height: 3px; margin-top: 10px; background:#27a88f; }
.rakhsh-footer-column ul { list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.rakhsh-footer-column a { color:rgba(255,255,255,.82); font-size:14px; line-height:1.6; transition:.2s; }
.rakhsh-footer-column a:hover { color:#fff; padding-right:5px; }
.rakhsh-footer-bottom { background:#071d1a; color:rgba(255,255,255,.7); font-size:13px; }
.rakhsh-footer-bottom .container { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:20px; }

.rakhsh-directory-page { padding-bottom: 96px; background: #fff; }
.rakhsh-directory-hero { margin-bottom: 54px; padding: 74px 0; color:#fff; background: linear-gradient(105deg,#005c4d,#017f6a 58%,#239d86); }
.rakhsh-directory-hero span { display:block; margin-bottom:10px; color:#bce9df; font-size:13px; font-weight:900; letter-spacing:.05em; }
.rakhsh-directory-hero h1 { margin:0 0 14px; color:#fff; font-size:clamp(34px,5vw,58px); line-height:1.25; }
.rakhsh-directory-hero p { max-width:760px; margin:0; color:rgba(255,255,255,.88); font-size:17px; line-height:2; }
.rakhsh-directory-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:30px; padding-bottom:22px; border-bottom:1px solid #e5e9e7; }
.rakhsh-directory-toolbar > div { display:flex; align-items:baseline; gap:9px; }
.rakhsh-directory-toolbar strong { color:var(--rakhsh-primary); font-size:28px; }
.rakhsh-directory-toolbar input { width:min(360px,42vw); height:46px; border:1px solid #dce1df; padding:0 16px; outline:none; }
.rakhsh-directory-toolbar input:focus { border-color:var(--rakhsh-primary); box-shadow:0 0 0 3px rgba(1,127,106,.09); }
.rakhsh-brands-directory-layout { display:grid; grid-template-columns:58px minmax(0,1fr); gap:26px; align-items:start; }
.rakhsh-brands-alphabet-wrap { position:sticky; top:94px; z-index:2; }
.rakhsh-brands-alphabet { display:flex; flex-direction:column; gap:3px; max-height:calc(100vh - 120px); padding:8px; border:1px solid #e1e6e4; border-radius:8px; background:#fff; box-shadow:0 12px 34px rgba(18,45,40,.07); direction:ltr; overflow-y:auto; scrollbar-width:none; }
.rakhsh-brands-alphabet::-webkit-scrollbar { display:none; }
.rakhsh-brands-alphabet button { display:grid; place-items:center; width:40px; min-height:30px; padding:0 3px; border:0; background:transparent; color:#4d5653; font:800 12px/1 Arial,sans-serif; cursor:pointer; transition:.18s ease; }
.rakhsh-brands-alphabet button:first-child { min-height:38px; color:var(--rakhsh-primary); font-family:inherit; font-size:11px; }
.rakhsh-brands-alphabet button:hover:not(:disabled),.rakhsh-brands-alphabet button.is-active { background:var(--rakhsh-primary); color:#fff; }
.rakhsh-brands-alphabet button:disabled { color:#c7cecb; cursor:not-allowed; }
.rakhsh-brand-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.rakhsh-brand-card { display:grid; grid-template-columns:132px 1fr; min-height:190px; border:1px solid #e1e5e3; background:#fff; color:#111; transition:.25s; }
.rakhsh-brand-card:hover { border-color:var(--rakhsh-primary); transform:translateY(-4px); box-shadow:0 18px 44px rgba(18,45,40,.11); }
.rakhsh-brand-card-logo { display:flex; align-items:center; justify-content:center; padding:20px; border-left:1px solid #edf0ef; background:#fafbfb; }
.rakhsh-brand-card-logo img { width:100%; max-height:80px; object-fit:contain; }
.rakhsh-brand-card-logo span { color:var(--rakhsh-primary); font-size:48px; font-weight:900; }
.rakhsh-brand-card-copy { padding:24px 22px; display:flex; flex-direction:column; justify-content:center; }
.rakhsh-brand-card-copy h2 { margin:0 0 8px; font-size:20px; }
.rakhsh-brand-card-copy p { margin:0 0 18px; color:#6a716f; font-size:13px; line-height:1.8; }
.rakhsh-brand-card-copy b { color:var(--rakhsh-primary); font-size:13px; }
.rakhsh-directory-empty { padding:34px; border:1px dashed #ccd5d2; background:#f7faf9; text-align:center; color:#66706d; }

.rakhsh-customer-intro { display:grid; grid-template-columns:.55fr 1.45fr; gap:40px; margin-bottom:34px; padding:30px 34px; background:#f3f7f6; border-right:5px solid var(--rakhsh-primary); }
.rakhsh-customer-intro strong { font-size:24px; }
.rakhsh-customer-intro p { margin:0; color:#5f6765; line-height:2; }
.rakhsh-customer-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.rakhsh-customer-card { min-height:220px; padding:25px; border:1px solid #e1e5e3; background:#fff; text-align:center; transition:.2s; }
.rakhsh-customer-card:hover { border-color:var(--rakhsh-primary); box-shadow:0 16px 34px rgba(18,45,40,.09); transform:translateY(-3px); }
.rakhsh-customer-card a { color:#111; }
.rakhsh-customer-logo { height:112px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.rakhsh-customer-logo img { max-width:160px; max-height:86px; object-fit:contain; }
.rakhsh-customer-card h2 { margin:0; font-size:17px; line-height:1.6; }

.rakhsh-industry-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.rakhsh-industry-card { display:grid; grid-template-columns:46% 54%; min-height:290px; border:1px solid #e2e6e4; background:#fff; overflow:hidden; transition:.25s; }
.rakhsh-industry-card:hover { transform:translateY(-4px); box-shadow:0 18px 42px rgba(18,45,40,.1); border-color:var(--rakhsh-primary); }
.rakhsh-industry-image { position:relative; overflow:hidden; }
.rakhsh-industry-image img { width:100%; height:100%; object-fit:cover; transition:.5s; }
.rakhsh-industry-card:hover .rakhsh-industry-image img { transform:scale(1.045); }
.rakhsh-industry-image span { position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(0,0,0,.15)); }
.rakhsh-industry-card > div { padding:30px; display:flex; flex-direction:column; justify-content:center; text-align:right; }
.rakhsh-industry-card h2 { margin:0 0 12px; font-size:24px; line-height:1.5; }
.rakhsh-industry-card p { margin:0 0 22px; color:#626a68; line-height:1.95; }
.rakhsh-read-more { color:var(--rakhsh-primary); font-weight:800; }

.rakhsh-related-blogs { padding:70px 0 96px; background:#f5f6f6; }
.rakhsh-related-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }
.niaar-related-blogs-title { display:flex; align-items:center; gap:12px; margin:0; font-size:30px; }
.niaar-related-blogs-title::before { content:""; width:5px; height:34px; background:var(--rakhsh-primary); }
.rakhsh-related-viewport { overflow:auto hidden; scroll-snap-type:x mandatory; scrollbar-width:none; }
.rakhsh-related-track { display:flex; gap:22px; direction:rtl; }
.rakhsh-blog-card { flex:0 0 calc(33.333% - 15px); scroll-snap-align:start; background:#fff; border-bottom:3px solid transparent; }
.rakhsh-blog-card:hover { border-color:var(--rakhsh-primary); }
.rakhsh-blog-card-image { display:block; aspect-ratio:1.35; overflow:hidden; background:#e9eceb; }
.rakhsh-blog-card-image img { width:100%; height:100%; object-fit:cover; transition:.4s; }
.rakhsh-blog-card:hover img { transform:scale(1.04); }
.rakhsh-blog-card > div { padding:20px 22px 25px; }
.rakhsh-blog-card time { color:#8a918f; font-size:12px; }
.rakhsh-blog-card h3 { margin:8px 0 0; font-size:17px; line-height:1.75; }
.rakhsh-related-empty { padding:26px; border:1px dashed #cbd3d0; background:#fff; color:#68716e; text-align:center; }

/* Floating contact: keep closed rows pinned to the viewport edge while one row expands. */
.niaar-floating-contact {
  width:54px !important;
  overflow:visible !important;
  direction:ltr !important;
}
.niaar-floating-contact-link {
  width:54px !important;
  min-width:54px !important;
  max-width:54px !important;
  align-self:flex-start !important;
  direction:rtl !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  transition:width .22s ease,max-width .22s ease,transform .2s !important;
}
.niaar-floating-contact-link:hover,.niaar-floating-contact-link:focus-visible { width:176px !important; max-width:176px !important; }
.niaar-floating-contact-link:not(:hover):not(:focus-visible) { width:54px !important; max-width:54px !important; }

/* Branded empty-image state shared by products, industries, clients and posts. */
.rakhsh-fallback-image {
  display:block;
  width:100% !important;
  height:100% !important;
  padding:6%;
  box-sizing:border-box;
  object-fit:contain !important;
  object-position:center bottom !important;
  background:#f6f8f7;
}
.niaar-main-cat-placeholder,
.product-no-image,
.category-tile-placeholder,
.niaar-products-industry-placeholder,
.niaar-brand-industry-placeholder,
.niaar-home-brand-placeholder,
.niaar-related-partner-placeholder {
  color:transparent !important;
  background:#f6f8f7 url('../images/404-not-found.png') center bottom / contain no-repeat !important;
}
.niaar-main-cat-placeholder > svg,
.product-no-image > svg,
.category-tile-placeholder > svg { display:none !important; }
.rakhsh-industry-image:not(:has(img))::before,
.rakhsh-blog-card-image:not(:has(img))::before,
.rakhsh-customer-logo:not(:has(img))::before,
.rakhsh-home-customer-logo:not(:has(img))::before {
  content:"";
  display:block;
  width:100%;
  height:100%;
  min-height:inherit;
  background:#f6f8f7 url('../images/404-not-found.png') center bottom / contain no-repeat;
}

/* Equal card rows and catalogue/RFQ details. */
.rakhsh-site .main-category-card,.rakhsh-site .rakhsh-trending-card,.rakhsh-site .niaar-product-card { height:100%; }
.rakhsh-main-category-grid { grid-auto-rows:1fr; align-items:stretch; }
.rakhsh-main-category-item { display:flex; height:100%; min-width:0; }
.rakhsh-site .main-category-card { display:flex; width:100%; flex-direction:column; }
.rakhsh-site .main-category-card .aspect-square { width:100%; flex:0 0 auto; }
.rakhsh-main-category-title {
  display:flex;
  height:52px;
  min-height:52px;
  flex:0 0 52px;
  align-items:center;
  justify-content:center;
  line-height:1.6;
}
.rakhsh-site .niaar-products-items-grid,.rakhsh-site .grid:has(.main-category-card) { align-items:stretch; }
.rakhsh-site .niaar-product-add-btn { display:grid !important; place-items:center !important; padding:0 !important; line-height:1 !important; }
.rakhsh-site .niaar-products-sidebar-box { border:1px solid #dfe5e2 !important; background:#fff !important; box-shadow:0 10px 30px rgba(18,45,40,.06); }
.rakhsh-site .niaar-products-tree-item.is-selected>.niaar-products-tree-row { background:#f1faf7 !important; }
.rakhsh-site .niaar-products-tree-link,.rakhsh-site .niaar-products-tree-toggle { text-align:right; }
.rakhsh-site .niaar-product-add-btn::before { letter-spacing:0 !important; right:46px; }
.rakhsh-site .niaar-quote-manual-box,.rakhsh-site .niaar-quote-checkbox,.rakhsh-site .niaar-quote-browser-save-note { border-color:#cfe9e4 !important; background:#f4fbf9 !important; }
.rakhsh-site .niaar-quote-message.success { border-right:5px solid #0d8c72; border-radius:6px; box-shadow:0 12px 30px rgba(1,127,106,.08); }
.rakhsh-site .niaar-rfq-progress-item { flex-direction:row; }
.rakhsh-site input[type=date],.rakhsh-site input[type=email],.rakhsh-site input[type=tel],.rakhsh-site input[type=url],.rakhsh-site [dir=ltr] { direction:ltr; text-align:left; }
.rakhsh-site textarea,.rakhsh-site input:not([type=email]):not([type=tel]):not([type=url]):not([type=date]) { text-align:right; }

@media (max-width:1023px) {
  .rakhsh-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rakhsh-brands-directory-layout { grid-template-columns:1fr; }
  .rakhsh-brands-alphabet-wrap { position:static; overflow-x:auto; padding-bottom:4px; }
  .rakhsh-brands-alphabet { width:max-content; min-width:100%; max-height:none; flex-direction:row; padding:7px; overflow-x:auto; overflow-y:hidden; }
  .rakhsh-brands-alphabet button { flex:0 0 34px; width:34px; min-height:34px; }
  .rakhsh-brands-alphabet button:first-child { flex-basis:48px; }
  .rakhsh-brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rakhsh-customer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .rakhsh-home-customer-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .rakhsh-industry-grid { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .rakhsh-section-heading,.rakhsh-directory-toolbar,.rakhsh-related-head { align-items:flex-start; flex-direction:column; }
  .rakhsh-services { padding:52px 0; }
  .rakhsh-services-viewport { min-height:610px; }
  .rakhsh-service-slide { grid-template-columns:1fr; grid-template-rows:245px 1fr; }
  .rakhsh-service-image { min-height:245px; }
  .rakhsh-service-copy { padding:28px 24px; }
  .rakhsh-footer-grid,.rakhsh-brand-grid,.rakhsh-customer-grid { grid-template-columns:1fr; }
  .rakhsh-footer-main { padding:54px 0; }
  .rakhsh-footer-bottom .container { padding-top:14px; padding-bottom:14px; align-items:flex-start; flex-direction:column; }
  .rakhsh-home-customer-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rakhsh-directory-hero { margin-bottom:34px; padding:52px 0; }
  .rakhsh-directory-toolbar input { width:100%; }
  .rakhsh-directory-toolbar label { width:100%; }
  .rakhsh-brand-card { grid-template-columns:105px 1fr; }
  .rakhsh-customer-intro { grid-template-columns:1fr; gap:12px; padding:24px; }
  .rakhsh-industry-card { grid-template-columns:1fr; }
  .rakhsh-industry-image { min-height:230px; }
  .rakhsh-blog-card { flex-basis:86%; }
}
