/* Mahdafzar Panel Pro 2.1.7 — refined recommendation cards.
   Loaded after the panel's responsive layer; scoped to the account dashboard. */
body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard > .mdz-growth-recommendations {
  --mdz-gr-ink: #20252d;
  --mdz-gr-muted: #737b87;
  --mdz-gr-accent: #c91e32;
  --mdz-gr-line: #e8ebef;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 24px 0 8px !important;
  padding: clamp(13px, 1.6vw, 22px) !important;
  border: 1px solid var(--mdz-gr-line) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #fff 0%, #fbfcfd 100%) !important;
  box-shadow: 0 8px 26px rgba(25, 33, 45, .045) !important;
  color: var(--mdz-gr-ink) !important;
  direction: rtl;
  overflow: hidden;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard > .mdz-growth-recommendations > header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row !important;
  gap: 14px !important;
  margin: 0 0 17px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations .mdz-growth-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 0 5px !important;
  color: var(--mdz-gr-accent) !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .13em !important;
  line-height: 1.5 !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations .mdz-growth-eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header h2 {
  margin: 0 !important;
  color: var(--mdz-gr-ink) !important;
  font-size: clamp(16px, 1.5vw, 20px) !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
  letter-spacing: -.025em !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header p {
  margin: 5px 0 0 !important;
  color: var(--mdz-gr-muted) !important;
  font-size: 11px !important;
  font-weight: 450 !important;
  line-height: 1.8 !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid #f0c6cc !important;
  border-radius: 10px !important;
  background: #fff7f8 !important;
  color: var(--mdz-gr-accent) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header > a:hover {
  border-color: var(--mdz-gr-accent) !important;
  background: #fff0f2 !important;
  transform: translateY(-1px);
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(9px, 1.15vw, 15px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-grid > .mdz-growth-product-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 9px !important;
  border: 1px solid #e9edf1 !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(24, 35, 48, .025) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-grid > .mdz-growth-product-card:hover {
  transform: translateY(-3px) !important;
  border-color: #e4b2bb !important;
  box-shadow: 0 10px 24px rgba(30, 40, 55, .075) !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-media {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 10px !important;
  padding: 8px !important;
  border-radius: 11px !important;
  background: #f6f8fa !important;
  overflow: hidden !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;
  transition: transform .22s ease !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-card:hover .mdz-growth-product-media img {
  transform: scale(1.045) !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-badge {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  padding: 2px 7px !important;
  border: 1px solid rgba(201, 30, 50, .10) !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--mdz-gr-accent) !important;
  font-size: 8px !important;
  font-weight: 850 !important;
  line-height: 1.4 !important;
  backdrop-filter: blur(6px);
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  height: 100% !important;
  color: #a1a9b4 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-placeholder svg {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 2px 2px !important;
  box-sizing: border-box !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-name {
  display: -webkit-box !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  color: #272d36 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.85 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-name:hover {
  color: var(--mdz-gr-accent) !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px 7px !important;
  min-height: 25px !important;
  margin: auto 0 0 !important;
  color: #20252d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.7 !important;
  overflow-wrap: anywhere !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-price .amount {
  color: #20252d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-price del,
body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-price del .amount {
  color: #9aa1ab !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-price ins {
  color: var(--mdz-gr-accent) !important;
  background: transparent !important;
  text-decoration: none !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-price-unavailable {
  color: #7b838e !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 2px 0 0 !important;
  padding: 7px 9px !important;
  border: 1px solid #e6aeb8 !important;
  border-radius: 9px !important;
  background: #fff7f8 !important;
  color: var(--mdz-gr-accent) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-open svg {
  display: block !important;
  flex: 0 0 15px !important;
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-open:hover {
  border-color: var(--mdz-gr-accent) !important;
  background: var(--mdz-gr-accent) !important;
  color: #fff !important;
}

@media (max-width: 1100px) {
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 850px) {
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard > .mdz-growth-recommendations {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header {
    align-items: flex-start !important;
    gap: 10px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header p {
    max-width: 42ch !important;
  }
}

@media (max-width: 480px) {
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard > .mdz-growth-recommendations {
    margin-top: 17px !important;
    padding: 10px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 12px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-recommendations > header > a {
    align-self: flex-start !important;
    min-height: 32px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-grid > .mdz-growth-product-card {
    padding: 7px !important;
    border-radius: 12px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-media {
    margin-bottom: 8px !important;
    padding: 6px !important;
    border-radius: 9px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-name {
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 10px !important;
    line-height: 1.9 !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-price,
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-price .amount {
    font-size: 11px !important;
  }
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-open {
    min-height: 36px !important;
    gap: 4px !important;
    padding: 6px !important;
    font-size: 9px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-card,
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-media img,
  body.mdz-account-page .pp-host .pp-root.mdz-account .pp-dashboard .mdz-growth-product-open {
    transition: none !important;
  }
}
