/* WooCommerce Design D. All commerce data and links come from the native loop. */
:is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art) {
  --mt-card-navy: var(--mehrta-navy, #00007A);
  --mt-card-teal: var(--mehrta-teal, #00BCA9);
  --mt-card-panel: var(--e-global-color-b76e5ae, #0000a3);
  --mt-card-active: 0;
  --mt-card-ease: 1.05s cubic-bezier(.2,.7,.2,1);
  --mt-card-ink-ease: .75s ease;
  --mt-card-overlap: 41px;
  --mt-card-image-height: 185px;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: var(--mt-card-panel);
  box-shadow: 2px 0 10px rgba(27,105,160,.15);
  font-family: Vazirmatn, sans-serif;
  text-align: right;
}

ul.products li.product:has(.mt-product-d-art) > .woocommerce-LoopProduct-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-inline-size: 0;
  border-radius: 13px;
  text-decoration: none;
}

.mt-product-d-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: start;
  overflow: hidden;
  box-sizing: border-box;
  padding: 6px 8px calc(20px + var(--mt-card-overlap));
  border: 5px solid var(--mt-card-navy);
  border-block-end: 0;
  border-radius: 13px 13px 0 0;
  background: #fff;
}

.mt-product-d-art::before {
  content: "";
  position: absolute;
  inset: auto 17% calc(var(--mt-card-overlap) + 17px);
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(ellipse,#00007a26,transparent 72%);
  transform: scaleX(calc(1 - .12 * var(--mt-card-active)));
  opacity: calc(1 - .32 * var(--mt-card-active));
  transition: transform var(--mt-card-ease), opacity var(--mt-card-ink-ease);
  pointer-events: none;
}

.mt-product-d-figure {
  position: relative;
  display: grid;
  place-items: center;
  block-size: var(--mt-card-image-height);
  min-inline-size: 0;
  transform: translateY(calc(-7px * var(--mt-card-active)));
  filter: drop-shadow(0 calc(4px + 3px * var(--mt-card-active)) calc(5px + 2px * var(--mt-card-active))
    rgb(0 0 122 / calc(.20 + .12 * var(--mt-card-active))));
  transition: transform var(--mt-card-ease), filter var(--mt-card-ease);
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .mt-product-d-figure > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.mt-product-d-print { display: none; }

@supports (mask-image: url("")) {
  .mt-product-d-ink .mt-product-d-figure > img { opacity: 0; }
  .mt-product-d-print {
    position: absolute;
    display: block;
    inset: 0;
    background: linear-gradient(148deg,#00007a 13%,#304e9c 53%,#00bca9 84%);
    mask: var(--mt-product-ink) center / contain no-repeat;
    pointer-events: none;
  }
  .mt-product-d-print::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mt-card-navy);
    opacity: var(--mt-card-active);
    transition: opacity var(--mt-card-ink-ease);
  }
}

:is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art) .woocommerce-LoopProduct-link > .woocommerce-loop-product__title {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  box-sizing: border-box;
  flex: 1;
  overflow: hidden;
  min-block-size: 131px;
  margin: calc(-1 * var(--mt-card-overlap)) 0 0;
  padding: 19px 13px 15px;
  border-block-start: 2px solid var(--mt-card-teal);
  border-radius: 49px 8px 0 0;
  color: #fff;
  background: var(--mt-card-panel);
  font: 700 15px/1.63 Vazirmatn, sans-serif;
  overflow-wrap: anywhere;
  text-align: right;
}

ul.products li.product:has(.mt-product-d-art) .woocommerce-loop-product__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(23deg,transparent 53%,#6bf7e171 53.6%,transparent 54.4%),
    repeating-linear-gradient(23deg,transparent 0 8px,#74e5dc2e 8px 9px);
  mask-image: linear-gradient(100deg,#000 0%,transparent 66%);
  translate: calc(-12px * var(--mt-card-active)) calc(-3px * var(--mt-card-active));
  transition: translate var(--mt-card-ease);
  pointer-events: none;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art) .woocommerce-LoopProduct-link > :is(.price, .star-rating) {
  margin: 0 13px 8px;
  color: #fff;
}

.mt-product-d-action {
  position: relative;
  isolation: isolate;
  padding: 1px 13px 13px;
}

.mt-product-d-action::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px calc(16px - 6px * var(--mt-card-active)) auto 10px;
  height: 52px;
  border: 1px solid #ffffff85;
  border-radius: 10px;
  transform: rotate(calc(-1.25deg * (1 - var(--mt-card-active))));
  transition: inset .7s ease, transform .7s ease;
  pointer-events: none;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .mt-product-d-action > a.button {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 46px;
  margin: 0;
  padding: 7px 26px;
  border: 1px solid #ffffff73;
  border-radius: 10px;
  background: linear-gradient(180deg,#ffffff47,transparent 55%), #0ac8b6;
  /* The article's general link rule sets navy with !important. */
  color: #fff !important;
  box-shadow: inset 0 2px 2px #ffffff90,0 4px 8px #1b69a018;
  font: 700 14px/1.45 Vazirmatn, sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px #00007aaf;
}

.mt-product-d-action > a.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg,#FFF08A 0%,#FFD45E 26%,#FFAA42 65%,#F77723 100%);
  background-size: 160% 160%;
  background-position: calc(8% + 40% * var(--mt-card-active)) 48%;
  box-shadow: inset 0 2px 2px #ffffff80,0 3px 10px #ffad3d44;
  opacity: var(--mt-card-active);
  transition: opacity var(--mt-card-ink-ease), background-position var(--mt-card-ease);
  pointer-events: none;
}

.mt-product-d-action:not(:has(.loading, .added))::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 26px;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  border-radius: 1px;
  color: #fff;
  filter: drop-shadow(0 1px 1px #00007a8c);
  transform: translateX(calc(-2px * var(--mt-card-active))) rotate(45deg);
  transition: transform var(--mt-card-ease);
  pointer-events: none;
}

ul.products li.product .mt-product-d-action > .added_to_cart { color: #fff; }

:is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art) :is(.woocommerce-LoopProduct-link, .mt-product-d-action > a):focus-visible {
  outline: 2px dashed var(--mt-card-teal);
  outline-offset: -3px;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art :focus-visible, .woocommerce-LoopProduct-link:focus-visible, .mt-product-d-action a:focus-visible) {
  --mt-card-active: 1;
}

@media (hover: hover) {
  :is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art):hover { --mt-card-active: 1; }
}

:is(.woocommerce, .woocommerce-page) ul.products li.product:is(.mt-product-d-pressed, :has(.mt-product-d-action > a.button:active)) {
  --mt-card-active: 1;
  --mt-card-ink-ease: 0s;
}

@media (max-width: 767px) {
  :is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art) {
    --mt-card-overlap: 38px;
    --mt-card-image-height: 174px;
  }
  :is(.woocommerce, .woocommerce-page) ul.products li.product:has(.mt-product-d-art) .woocommerce-LoopProduct-link > .woocommerce-loop-product__title {
    min-block-size: 113px;
  }
}

@media (prefers-reduced-motion: reduce) {
  ul.products li.product:has(.mt-product-d-art) *,
  ul.products li.product:has(.mt-product-d-art) *::before,
  ul.products li.product:has(.mt-product-d-art) *::after { transition: none !important; }
  .mt-product-d-figure, .mt-product-d-art::before { transform: none; }
  ul.products li.product:has(.mt-product-d-art) .woocommerce-loop-product__title::before { translate: none; }
}

/* Native Elementor Loop Carousel. Each slide uses the same WooCommerce card. */
.elementor .mt-product-carousel {
  --mt-carousel-reclaim: 32px;
  --mt-arrow-width: 38px;
  --mt-arrow-gap: 6px;
  flex: 0 0 auto;
  inline-size: calc(100% + 2 * var(--mt-carousel-reclaim)) !important;
  max-inline-size: none !important;
  margin-inline: calc(-1 * var(--mt-carousel-reclaim));
}

.mt-product-carousel .elementor-loop-container {
  padding-block: 5px;
  margin-inline: calc(var(--mt-arrow-width) + var(--mt-arrow-gap));
}

.mt-product-carousel.elementor-arrows-position-inside > .elementor-widget-container {
  position: relative;
}

.mt-product-carousel.elementor-arrows-position-inside .elementor-swiper-button {
  top: 50% !important;
  bottom: auto;
  display: grid;
  width: var(--mt-arrow-width);
  height: 44px;
  place-items: center;
  border-radius: 9px;
  background: transparent !important;
  color: var(--mehrta-teal, #00bca9);
  box-shadow: none;
  transform: translateY(-50%) !important;
  transition: opacity .2s ease;
}

.mt-product-carousel.elementor-arrows-position-inside .elementor-swiper-button-prev {
  left: 0 !important;
  right: auto !important;
}

.mt-product-carousel.elementor-arrows-position-inside .elementor-swiper-button-next {
  right: 0 !important;
  left: auto !important;
}

.mt-product-carousel .elementor-swiper-button svg {
  width: 22px;
  height: 22px;
  fill: var(--mehrta-teal, #00bca9) !important;
}
.mt-product-carousel .elementor-swiper-button:focus-visible {
  outline: 2px solid var(--mehrta-navy, #00007a);
  outline-offset: 3px;
}
.mt-product-carousel .elementor-swiper-button.swiper-button-disabled { opacity: .45; }
.mt-product-carousel .elementor-swiper-button.swiper-button-lock { display: none; }

.mt-product-loop-card ul.products {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.mt-product-loop-card ul.products::before,
.mt-product-loop-card ul.products::after { content: none; }

.mt-product-loop-card ul.products li.product {
  float: none;
  inline-size: 100% !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .elementor .mt-product-carousel {
    --mt-carousel-reclaim: 28px;
    --mt-arrow-width: 44px;
    --mt-arrow-gap: 3px;
  }
}

/* Match the Services content panels to the consultation panel's side margins. */
.elementor.elementor-2880[data-elementor-type="wp-page"] > .e-con {
  width: min(1440px, calc(100% - 30px));
  margin-inline: auto;
}

.elementor.elementor-2880[data-elementor-type="wp-page"] > .e-con-boxed {
  padding-inline: 0;
}

/* Services consultation panel. The middle module has two of four columns. */
.elementor .mt-services-consultations.e-con {
  --mt-services-navy: var(--mehrta-navy, #00007a);
  --mt-services-teal: var(--mehrta-teal, #00bca9);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);
  align-items: stretch;
  gap: 12px;
  margin: 15px auto 0;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 2px 0 10px rgba(27,105,160,.15);
  font-family: Vazirmatn, sans-serif;
}

.mt-services-consultations > .e-con {
  min-width: 0;
  padding: 0;
}

.mt-services-consultations .mt-services-guide,
.mt-services-consultations > .mt-services-start {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 15px;
  border-radius: 10px;
}

.mt-services-consultations .mt-services-guide-column > .elementor-widget,
.mt-services-consultations .mt-services-guide-column > .elementor-widget > .elementor-widget-container {
  height: 100%;
}

.mt-services-consultations .mt-services-guide {
  border: 1px solid #00007a18;
  background: linear-gradient(160deg,#00bca90a,#fff 70%);
  color: inherit;
  text-decoration: none;
}

.mt-services-consultations .mt-services-guide-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 7px;
}

.mt-services-consultations .mt-services-guide h2,
.mt-services-consultations .mt-services-carousel-column .elementor-heading-title {
  margin: 0;
  color: var(--mt-services-navy);
  font: 800 clamp(17px,1.4vw,21px)/1.65 Vazirmatn, sans-serif;
}

.mt-services-consultations .mt-services-guide p,
.mt-services-consultations .mt-services-start p {
  margin: 0;
  font: 400 15px/1.9 Vazirmatn, sans-serif;
}

.mt-services-consultations > .mt-services-carousel-column {
  gap: 7px;
  padding: 9px 4px 0;
  scroll-margin-block-start: 100px;
}

.mt-services-consultations .mt-services-carousel-column .elementor-heading-title {
  text-align: center;
}

.mt-services-consultations .mt-product-carousel { --mt-carousel-reclaim: 0px; }

.mt-services-consultations > .mt-services-start {
  justify-content: center;
  padding: clamp(15px,2vw,26px);
  background: var(--mehrta-start-navy, #0000a3);
  color: #fff;
}

.mt-services-consultations .mt-services-start .elementor-heading-title {
  color: var(--mt-services-teal);
}

.mt-services-consultations .mt-services-start .elementor-widget-text-editor { color: #fff; }

.mt-services-consultations .mt-services-start .mt-services-cta { margin-block-start: 8px; }

.mt-services-consultations a.mt-services-guide:focus-visible {
  outline: 2px solid var(--mt-services-navy);
  outline-offset: 2px;
}

.mt-services-consultations .mt-services-start .elementor-button:focus-visible { outline-color: #fff; }

@media (max-width: 1100px) {
  .elementor .mt-services-consultations.e-con { grid-template-columns: minmax(0,1fr); }
  .mt-services-consultations .mt-services-guide-cover { max-height: 220px; }
}

@media (max-width: 767px) {
  .elementor .mt-services-consultations.e-con { padding: 10px; }
  .mt-services-consultations > .mt-services-carousel-column { padding-inline: 0; }
}

/* The two shared sections below the single-product content. */
.elementor-1973[data-elementor-type="product"] > .elementor-element-99b05b7 {
  width: min(1440px, calc(100% - 30px));
  margin-inline: auto;
  padding-inline: 0;
}

.elementor-1973 .mt-product-image-start.e-con {
  --display: flex;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: var(--mehrta-start-navy, #0000a3);
  color: #fff;
}

.elementor-1973 .mt-product-image-start .elementor-widget-text-editor {
  color: #fff;
  font: 600 15px/1.8 Vazirmatn, sans-serif;
}

.elementor-1973 .mt-product-image-start p { margin: 0; }

@media (max-width: 1024px) {
  .elementor-1973 .mt-product-image-start.e-con { display: none; }
}

.elementor :is(#mehrta-related-products, #mehrta-product-start, #mehrta-product-latest, #mehrta-product-consultation).e-con {
  width: min(1440px, calc(100% - 30px));
  margin: 15px auto 0;
}

.elementor :is(#mehrta-related-products, #mehrta-product-latest).e-con {
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 2px 0 10px rgba(27,105,160,.15);
}

:is(#mehrta-related-products section.related > h2, #mehrta-product-latest .elementor-heading-title) {
  margin: 0 0 14px;
  color: var(--mehrta-navy, #00007a);
  font: 800 clamp(18px,2vw,23px)/1.65 Vazirmatn, sans-serif;
  text-align: right;
}

#mehrta-related-products ul.products {
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#mehrta-related-products ul.products::before,
#mehrta-related-products ul.products::after { content: none; }

.elementor #mehrta-product-start.e-con { margin-bottom: 20px; }

.elementor-1973 .stock.out-of-stock:empty { display: none; }

#mehrta-product-consultation [data-mehrta-offer] .offer-only { margin: 0; }

#mehrta-product-latest .elementor-posts-container { gap: 14px; }

#mehrta-product-latest .elementor-post {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #00007a18;
  border-radius: 10px;
  background: #fff;
  box-shadow: 2px 0 10px rgba(27,105,160,.10);
}

#mehrta-product-latest .elementor-post__thumbnail__link { margin-bottom: 12px; }

#mehrta-product-latest .elementor-post__thumbnail {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

#mehrta-product-latest .elementor-post__thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

#mehrta-product-latest .elementor-post__text { display: flex; flex: 1; flex-direction: column; }

#mehrta-product-latest .elementor-post__title a {
  color: var(--mehrta-navy, #00007a);
  font: 700 17px/1.75 Vazirmatn, sans-serif;
}

:is(.mt-services-consultations .mt-services-guide-link, #mehrta-product-latest .elementor-post__read-more) {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: auto;
  padding: 4px 12px;
  border: 1px solid #00bca96b;
  border-radius: 9px;
  background: linear-gradient(165deg,#fff,#e8f9f7);
  color: var(--mehrta-navy, #00007a);
  font: 700 13px/1.6 Vazirmatn, sans-serif;
  text-decoration: none;
}

:is(.mt-services-consultations .mt-services-guide-link, #mehrta-product-latest .elementor-post__read-more)::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid var(--mehrta-teal, #00bca9);
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

.mt-services-consultations .mt-services-guide-link[aria-disabled="true"] { opacity: .6; }

:is(.mt-services-consultations a.mt-services-guide:is(:hover,:focus-visible) .mt-services-guide-link, #mehrta-product-latest .elementor-post__read-more:is(:hover,:focus-visible)) {
  background: #d1f5ef;
}

@media (max-width: 767px) {
  .elementor :is(#mehrta-related-products, #mehrta-product-latest).e-con { padding: 12px; }
}
