/* Mobile Najafi — Persian RTL storefront */

/*
 * Vazirmatn, self-hosted (SIL Open Font License — see assets/fonts/OFL.txt).
 * Three static weights cover every font-weight value used in this file
 * (400 for body text, 700–800 for medium/bold headings, 900–950 for the
 * heaviest headings), so the browser never has to fall back to Tahoma/Arial
 * or fake a bold style. font-display: swap avoids invisible text while the
 * font file loads.
 */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 501 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 801 950;
  font-style: normal;
  font-display: swap;
}

body.mshop-body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Vazirmatn", "IRANSansX", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.mshop-menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

button {
  color: inherit;
}

.mshop-container {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
}

.mshop-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.mshop-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mshop-button:hover {
  transform: translateY(-2px);
}

.mshop-button .mshop-icon {
  width: 19px;
  height: 19px;
}

.mshop-button--light {
  background: #fff;
  color: #172033;
  box-shadow: 0 12px 24px rgba(24, 17, 49, 0.15);
}

.mshop-button--light:hover {
  box-shadow: 0 16px 32px rgba(24, 17, 49, 0.2);
}

.mshop-button--accent {
  background: var(--mshop-accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(225, 29, 72, 0.2);
}

.mshop-button--accent:hover {
  background: var(--mshop-accent-dark);
}

.mshop-button--dark {
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.16);
}

.mshop-topbar {
  position: relative;
  z-index: 101;
  min-height: 36px;
  background: #12172a;
  color: rgba(255, 255, 255, 0.83);
  font-size: 12px;
}

.mshop-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mshop-topbar p {
  margin: 0;
}

.mshop-topbar__notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mshop-topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.13);
}

.mshop-topbar__meta,
.mshop-topbar__meta a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mshop-topbar__meta a {
  color: #fff;
  font-weight: 700;
}

.mshop-topbar__meta .mshop-icon {
  width: 15px;
  height: 15px;
}

.mshop-topbar__divider {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.2);
}

.mshop-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease;
}

.admin-bar .mshop-header {
  top: 32px;
}

.mshop-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.mshop-header__main {
  min-height: 86px;
  display: grid;
  grid-template-columns: 228px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.mshop-brand {
  min-width: 0;
}

.mshop-brand .custom-logo-link {
  display: inline-flex;
  max-width: 210px;
  align-items: center;
}

.mshop-brand .custom-logo {
  display: block;
  width: auto;
  max-height: 58px;
}

.mshop-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.mshop-brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #fb7185, #e11d48);
  color: #fff;
  box-shadow: 0 9px 20px rgba(225, 29, 72, 0.25);
}

.mshop-brand__mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.mshop-brand__mark svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mshop-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.mshop-brand__text strong {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.mshop-brand__text small {
  margin-top: 3px;
  color: #7b8191;
  font-size: 10.5px;
}

.mshop-search {
  position: relative;
  display: flex;
  height: 49px;
  min-width: 0;
  align-items: center;
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  background: #f5f6f9;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mshop-search:focus-within {
  border-color: rgba(225, 29, 72, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.07);
}

.mshop-search__icon {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  color: #858b99;
  pointer-events: none;
}

.mshop-search input[type="search"] {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 47px 0 92px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
}

.mshop-search input::placeholder {
  color: #9a9fad;
}

.mshop-search button {
  position: absolute;
  left: 7px;
  height: 35px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #343b4d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.mshop-header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mshop-action-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mshop-action-link__icon {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  background: #fff;
  color: #343b4d;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mshop-action-link:hover .mshop-action-link__icon {
  border-color: rgba(225, 29, 72, 0.24);
  background: #fff5f7;
  color: var(--mshop-accent);
}

.mshop-action-link__icon .mshop-icon {
  width: 21px;
  height: 21px;
}

.mshop-action-link__text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  line-height: 1.45;
}

.mshop-action-link__text small {
  color: #8a90a0;
  font-size: 10px;
}

.mshop-action-link__text strong {
  color: #333a4c;
  font-size: 11.5px;
  font-weight: 800;
}

.mshop-actions-divider {
  width: 1px;
  height: 30px;
  background: #e9ebf0;
}

.mshop-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 20px;
  background: var(--mshop-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.mshop-header__nav-wrap {
  border-top: 1px solid #f0f1f4;
}

.mshop-header__nav {
  min-height: 49px;
  display: grid;
  grid-template-columns: 228px 1fr auto;
  align-items: center;
  gap: 28px;
}

.mshop-category-button {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 11px;
  background: #f7f7fa;
  color: #222a3a;
  font-size: 12px;
  font-weight: 850;
  transition: background 0.2s ease, color 0.2s ease;
}

.mshop-category-button:hover {
  background: #fff0f3;
  color: var(--mshop-accent);
}

.mshop-category-button .mshop-icon {
  width: 17px;
  height: 17px;
}

.mshop-category-button .mshop-icon:last-child {
  width: 14px;
  height: 14px;
  margin-right: auto;
}

.mshop-primary-nav,
.mshop-primary-nav .nav-menu {
  min-width: 0;
}

.mshop-primary-nav .nav-menu,
.mshop-primary-nav .nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mshop-primary-nav > .nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mshop-primary-nav .nav-menu > li {
  position: relative;
}

.mshop-primary-nav .nav-menu > li > a {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 12px;
  color: #555d6f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mshop-primary-nav .nav-menu > li > a::after {
  position: absolute;
  right: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--mshop-accent);
  content: "";
  transition: width 0.2s ease, right 0.2s ease;
}

.mshop-primary-nav .nav-menu > li:hover > a,
.mshop-primary-nav .nav-menu > li.current-menu-item > a {
  color: var(--mshop-accent);
}

.mshop-primary-nav .nav-menu > li:hover > a::after,
.mshop-primary-nav .nav-menu > li.current-menu-item > a::after {
  right: 20%;
  width: 60%;
}

.mshop-primary-nav .sub-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  min-width: 190px;
  padding: 8px !important;
  visibility: hidden;
  opacity: 0;
  border: 1px solid #eceef2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.13);
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.mshop-primary-nav li:hover > .sub-menu,
.mshop-primary-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mshop-primary-nav .sub-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #596174;
  font-size: 12px;
}

.mshop-primary-nav .sub-menu a:hover {
  background: #fff2f4;
  color: var(--mshop-accent);
}

.mshop-nav-offer {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mshop-accent);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.mshop-nav-offer__spark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f3;
  font-size: 12px;
}

.mshop-menu-toggle,
.mshop-search-mobile,
.mshop-mobile-panel,
.mshop-mobile-dock {
  display: none;
}

.mshop-icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.mshop-close-icon {
  display: none;
}

.mshop-menu-toggle[aria-expanded="true"] .mshop-menu-icon {
  display: none;
}

.mshop-menu-toggle[aria-expanded="true"] .mshop-close-icon {
  display: inline-flex;
}

.mshop-hero {
  padding-top: 24px;
}

.mshop-slider {
  position: relative;
  min-height: 448px;
  overflow: hidden;
  border-radius: 28px;
  background: #2e2047;
  box-shadow: 0 20px 55px rgba(25, 31, 51, 0.12);
}

.mshop-slider__track {
  position: relative;
  min-height: 448px;
}

.mshop-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  min-height: 448px;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  color: #fff;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.7s ease, visibility 0.55s;
}

.mshop-slide.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.mshop-slide--coral {
  background: linear-gradient(120deg, #281d43 0%, #41245f 47%, #ed4663 100%);
}

.mshop-slide--violet {
  background: linear-gradient(120deg, #161d3d 0%, #292057 48%, #7958d4 100%);
}

.mshop-slide--blue {
  background: linear-gradient(120deg, #112d41 0%, #17415d 48%, #2097b5 100%);
}

.mshop-slide__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.18) 1px, transparent 0);
  background-size: 27px 27px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.mshop-slide::before,
.mshop-slide::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.mshop-slide::before {
  top: -180px;
  right: -80px;
  width: 520px;
  height: 520px;
}

.mshop-slide::after {
  right: 80px;
  bottom: -340px;
  width: 620px;
  height: 620px;
}

.mshop-slide__content {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 52px 68px 72px 34px;
}

.mshop-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 750;
}

.mshop-slide__eyebrow i {
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.mshop-slide h1,
.mshop-slide h2 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(32px, 3.3vw, 52px);
  font-weight: 950;
  line-height: 1.32;
  letter-spacing: -1.5px;
}

.mshop-slide__content > p {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 2;
}

.mshop-slide__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.mshop-slide__microcopy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.mshop-slide__microcopy .mshop-icon {
  width: 17px;
  height: 17px;
}

.mshop-slide__visual {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 28px 44px 28px 15px;
}

.mshop-slide__visual > img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 30px 32px rgba(5, 10, 30, 0.28));
}

.mshop-slide__halo {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 55%, transparent 70%);
  box-shadow: inset 0 0 55px rgba(255, 255, 255, 0.06);
}

/*
 * "Banner-only" slide layout (see mshop_render_repeater_row()'s slide
 * "نوع نمایش اسلاید" control): the slide becomes a single full-bleed,
 * optionally clickable image with no text/button — .mshop-slide keeps its
 * own grid/absolute-positioning/transition rules above (still needed for
 * the slider's fade transition and active-state handling), this just
 * removes the two-column content/visual split and the decorative circles
 * for this one variant.
 */
.mshop-slide--banner {
  display: block;
}

.mshop-slide--banner::before,
.mshop-slide--banner::after {
  display: none;
}

.mshop-slide__banner-link,
.mshop-slide__banner-image {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
}

.mshop-slide__banner-image {
  object-fit: cover;
}

.mshop-float-badge {
  position: absolute;
  z-index: 3;
  bottom: 72px;
  left: 56px;
  display: flex;
  width: 86px;
  height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: #27213c;
  box-shadow: 0 15px 35px rgba(13, 12, 31, 0.22);
  transform: rotate(-7deg);
}

.mshop-float-badge strong {
  font-size: 19px;
  font-weight: 950;
  line-height: 1.2;
}

.mshop-float-badge span {
  margin-top: 2px;
  color: #6f6a7b;
  font-size: 9px;
}

.mshop-slider__controls {
  position: absolute;
  z-index: 5;
  bottom: 25px;
  right: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mshop-slider__arrow {
  display: grid;
  width: 33px;
  height: 33px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mshop-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mshop-slider__arrow .mshop-icon {
  width: 17px;
  height: 17px;
}

.mshop-slider__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mshop-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.mshop-slider__dots button.is-active {
  width: 27px;
  background: #fff;
}

.mshop-service-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px solid #eaecf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(16, 24, 40, 0.04);
}

.mshop-service-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 16px;
}

.mshop-service-item:not(:last-child)::after {
  position: absolute;
  top: 8px;
  left: 0;
  width: 1px;
  height: calc(100% - 16px);
  background: #eceef2;
  content: "";
}

.mshop-service-item__icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
}

.mshop-service-item__icon .mshop-icon {
  width: 21px;
  height: 21px;
}

.mshop-service-item__icon--rose {
  background: #fff0f3;
  color: #e11d48;
}

.mshop-service-item__icon--blue {
  background: #edf6ff;
  color: #2f78c4;
}

.mshop-service-item__icon--amber {
  background: #fff7e6;
  color: #d88813;
}

.mshop-service-item__icon--green {
  background: #eafaf3;
  color: #15966d;
}

.mshop-service-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.55;
}

.mshop-service-item strong {
  color: #343b4c;
  font-size: 12px;
  font-weight: 850;
}

.mshop-service-item small {
  color: #8a90a0;
  font-size: 10px;
}

.mshop-section {
  padding-top: 70px;
}

.mshop-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.mshop-section-heading__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--mshop-accent);
  font-size: 11px;
  font-weight: 900;
}

.mshop-section-heading h2 {
  margin: 0;
  color: #192131;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 950;
  line-height: 1.45;
  letter-spacing: -0.6px;
}

.mshop-section-heading p {
  margin: 7px 0 0;
  color: #818798;
  font-size: 13px;
}

.mshop-section-heading--center {
  justify-content: center;
  text-align: center;
}

.mshop-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #737a8b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mshop-text-link:hover {
  color: var(--mshop-accent);
}

.mshop-text-link .mshop-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.mshop-text-link:hover .mshop-icon {
  transform: translateX(-3px);
}

.mshop-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.mshop-category-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 42, 58, 0.05);
  border-radius: 20px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.mshop-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(35, 42, 59, 0.09);
}

.mshop-category-card__image {
  display: grid;
  height: 145px;
  align-items: end;
  justify-items: center;
  overflow: hidden;
}

.mshop-category-card__image img {
  width: 132px;
  height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(29, 35, 55, 0.14));
  transition: transform 0.25s ease;
}

.mshop-category-card:hover .mshop-category-card__image img {
  transform: translateY(-3px) scale(1.035);
}

.mshop-category-card__content {
  display: flex;
  padding: 13px 16px 18px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  backdrop-filter: blur(8px);
}

.mshop-category-card__content strong {
  color: #30384a;
  font-size: 13px;
  font-weight: 900;
}

.mshop-category-card__content small {
  margin-top: 2px;
  color: #868c99;
  font-size: 9.5px;
}

.mshop-category-card__arrow {
  position: absolute;
  bottom: 22px;
  left: 14px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(38, 45, 60, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #6e7482;
}

.mshop-category-card__arrow .mshop-icon {
  width: 14px;
  height: 14px;
}

.mshop-category--lavender {
  background: linear-gradient(150deg, #eeeafb, #e5defa);
}

.mshop-category--mint {
  background: linear-gradient(150deg, #e6f7f2, #d5f1e8);
}

.mshop-category--peach {
  background: linear-gradient(150deg, #fff0e8, #ffe3d6);
}

.mshop-category--sky {
  background: linear-gradient(150deg, #e8f4ff, #d8ebfb);
}

.mshop-category--rose {
  background: linear-gradient(150deg, #ffedf1, #fbdde5);
}

.mshop-category--sand {
  background: linear-gradient(150deg, #f8f3e9, #eee5d4);
}

.mshop-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 70px;
}

.mshop-promo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44%;
  min-height: 212px;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 16px 38px rgba(29, 35, 49, 0.08);
}

.mshop-promo--dark {
  background: linear-gradient(120deg, #1a1730, #3a2457);
}

.mshop-promo--warm {
  background: linear-gradient(120deg, #c7364f, #f16f67);
}

.mshop-promo__content {
  position: relative;
  z-index: 3;
  display: flex;
  padding: 32px 34px;
  flex-direction: column;
  align-items: flex-start;
}

.mshop-promo__content small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.mshop-promo__discount {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.mshop-promo__content strong {
  max-width: 330px;
  margin-top: 7px;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 950;
  line-height: 1.55;
}

.mshop-promo__description {
  display: block;
  max-width: 300px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.8;
}

.mshop-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  font-size: 11px;
  font-weight: 800;
}

.mshop-promo__content .mshop-icon {
  width: 15px;
  height: 15px;
}

.mshop-promo > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 205px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.mshop-promo:hover > img {
  transform: scale(1.05) rotate(-1deg);
}

.mshop-promo__orb {
  position: absolute;
  left: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 101, 220, 0.42), transparent 65%);
}

.mshop-products-section {
  scroll-margin-top: 145px;
}

.mshop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mshop-product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  background: #fff;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.mshop-product-card:hover {
  border-color: #dde0e7;
  box-shadow: 0 18px 40px rgba(22, 31, 50, 0.09);
  transform: translateY(-4px);
}

.mshop-product-card[data-product-url] {
  cursor: pointer;
}

.mshop-product-card__image {
  position: relative;
  display: grid;
  min-height: 268px;
  padding: 22px 22px 5px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbfc, #f5f6f8);
}

.mshop-product-card__image::after {
  position: absolute;
  bottom: 4px;
  width: 52%;
  height: 14px;
  border-radius: 50%;
  background: rgba(25, 33, 50, 0.08);
  filter: blur(9px);
  content: "";
}

.mshop-product-card__image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 230px;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.28s ease;
}

.mshop-product-card:hover .mshop-product-card__image img {
  transform: scale(1.035);
}

.mshop-discount-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  min-width: 39px;
  height: 27px;
  padding: 0 8px;
  place-items: center;
  border-radius: 8px;
  background: var(--mshop-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

/*
 * Product card quick actions — compare, wishlist, quick view — stacked in
 * one corner instead of each button positioning itself, so a card can carry
 * any subset of the three (see mshop_render_compare_toggle() /
 * mshop_render_wishlist_toggle() / mshop_render_quick_view_trigger()) without
 * their absolute positions colliding.
 */
.mshop-product-card__quick-actions {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mshop-quick-action-btn {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4a5164;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 31, 50, 0.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mshop-quick-action-btn:hover {
  color: var(--mshop-accent);
  transform: translateY(-2px);
}

.mshop-quick-action-btn.is-active {
  background: var(--mshop-accent);
  color: #fff;
}

.mshop-quick-action-btn .mshop-icon {
  width: 16px;
  height: 16px;
}

.mshop-quick-action-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Product comparison — floating bar (footer.php), fixed above the mobile dock. */
.mshop-compare-bar {
  position: fixed;
  z-index: 160;
  right: 0;
  bottom: 0;
  left: 0;
  background: #12172a;
  box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.18);
}

.mshop-compare-bar[hidden] {
  display: none;
}

.mshop-compare-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
}

.mshop-compare-bar__info {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.mshop-compare-bar__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--mshop-accent);
}

.mshop-compare-bar__icon .mshop-icon {
  width: 16px;
  height: 16px;
}

.mshop-compare-bar__info strong {
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.mshop-compare-bar__list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.mshop-compare-bar__chip {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d7dae3;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mshop-compare-bar__chip button {
  display: grid;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa0b3;
  cursor: pointer;
  place-items: center;
}

.mshop-compare-bar__chip button:hover {
  color: #fff;
}

.mshop-compare-bar__chip svg {
  width: 12px;
  height: 12px;
}

.mshop-compare-bar__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
}

.mshop-compare-bar__actions button[data-compare-clear] {
  border: 0;
  background: transparent;
  color: #9aa0b3;
  font-family: inherit;
  cursor: pointer;
}

.mshop-compare-bar__actions button[data-compare-clear]:hover {
  color: #fff;
}

.mshop-compare-bar__actions .mshop-button {
  padding: 10px 18px;
  font-size: 12px;
}

.mshop-compare-bar__actions .mshop-button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Quick view modal (footer.php shell, filled by mshop_ajax_quick_view()). */
.mshop-quick-view-modal[hidden] {
  display: none;
}

.mshop-quick-view-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mshop-quick-view-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.55);
  backdrop-filter: blur(2px);
}

.mshop-quick-view-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(640px, 90vh);
  overflow-y: auto;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.3);
}

.mshop-quick-view-modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f2f5;
  color: #4a5164;
  cursor: pointer;
}

.mshop-quick-view-modal__close:hover {
  background: var(--mshop-accent);
  color: #fff;
}

.mshop-quick-view-modal__close .mshop-icon {
  width: 16px;
  height: 16px;
}

body.mshop-quick-view-open {
  overflow: hidden;
}

.mshop-quick-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 26px;
}

.mshop-quick-view__image img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mshop-quick-view__body h2 {
  margin: 0 0 10px;
  color: #202838;
  font-size: 19px;
  font-weight: 950;
}

.mshop-quick-view__price {
  margin-bottom: 12px;
  color: #222a3a;
  font-size: 16px;
  font-weight: 900;
}

.mshop-quick-view__excerpt {
  margin-bottom: 14px;
  color: #667085;
  font-size: 12.5px;
  line-height: 1.9;
}

.mshop-quick-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 11.5px;
  color: #858c9b;
}

.mshop-quick-view__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mshop-quick-view__loading,
.mshop-quick-view__error {
  padding: 40px 0;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 620px) {
  .mshop-quick-view {
    grid-template-columns: 1fr;
  }

  .mshop-quick-view-modal__panel {
    padding: 22px;
  }
}

.mshop-product-card__body {
  padding: 17px 18px 18px;
}

.mshop-product-card__category,
.mshop-product-card__category a {
  overflow: hidden;
  color: #a0a4af;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mshop-product-card h3 {
  min-height: 50px;
  margin: 7px 0 8px;
  color: #343b4b;
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.95;
}

.mshop-product-card h3 a:hover {
  color: var(--mshop-accent);
}

.mshop-product-meta {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f1f4;
}

.mshop-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #777d8b;
  font-size: 10px;
  font-weight: 750;
}

.mshop-rating span {
  color: #f1a928;
  font-size: 14px;
  line-height: 1;
}

.mshop-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8f95a2;
  font-size: 9px;
}

.mshop-stock::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a2a8b3;
  content: "";
}

.mshop-stock.is-in-stock::before {
  background: #22b07d;
  box-shadow: 0 0 0 3px rgba(34, 176, 125, 0.1);
}

.mshop-stock.is-out::before {
  background: #e65d70;
}

.mshop-product-card__bottom {
  display: flex;
  min-height: 57px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.mshop-product-price,
.mshop-product-price .price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  color: #232a39;
  line-height: 1.6;
}

.mshop-product-price del {
  color: #b2b6bf;
  font-size: 9px;
}

.mshop-product-price ins,
.mshop-product-price > .woocommerce-Price-amount,
.mshop-product-price .price > .woocommerce-Price-amount {
  color: #232a39;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.mshop-product-price small,
.mshop-product-price .woocommerce-Price-currencySymbol {
  margin-right: 2px;
  color: #666d7c;
  font-size: 8.5px;
  font-weight: 700;
}

.mshop-add-cart {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #f1f2f5;
  color: #3a4253;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mshop-add-cart:hover {
  background: var(--mshop-accent);
  color: #fff;
  transform: translateY(-2px);
}

.mshop-add-cart .mshop-icon {
  width: 19px;
  height: 19px;
}

.mshop-add-cart.added {
  background: #1ba879;
  color: #fff;
}

.mshop-product-card a.added_to_cart {
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: #16946b;
  font-size: 9px;
  font-weight: 800;
}

.mshop-demo-note {
  margin: 15px 0 0;
  padding: 10px 14px;
  border: 1px dashed #dfe2e8;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.55);
  color: #8a90a0;
  font-size: 10px;
  text-align: center;
}

.mshop-deal-section {
  margin-top: 78px;
  overflow: hidden;
  background: linear-gradient(120deg, #141a2d 0%, #202b43 55%, #273c59 100%);
}

.mshop-deal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  min-height: 470px;
  align-items: center;
  color: #fff;
}

.mshop-deal::before {
  position: absolute;
  top: -240px;
  right: -180px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.mshop-deal__content {
  position: relative;
  z-index: 3;
  padding: 58px 55px 58px 0;
}

.mshop-deal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fb7185;
  font-size: 11px;
  font-weight: 900;
}

.mshop-deal__eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 0 5px rgba(251, 113, 133, 0.1);
}

.mshop-deal h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 950;
  line-height: 1.4;
  letter-spacing: -1px;
}

.mshop-deal__content > p {
  max-width: 590px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 2;
}

.mshop-deal__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10.5px;
}

.mshop-deal__features li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mshop-deal__features .mshop-icon {
  width: 15px;
  height: 15px;
  color: #41d29f;
}

.mshop-countdown {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0 25px;
}

.mshop-countdown > div {
  display: flex;
  width: 57px;
  flex-direction: column;
  align-items: center;
}

.mshop-countdown strong {
  display: grid;
  width: 57px;
  height: 51px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 18px;
  font-weight: 900;
}

.mshop-countdown span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
}

.mshop-countdown i {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
  font-weight: 800;
}

.mshop-deal__visual {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  place-items: center;
}

.mshop-deal__visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 510px);
  height: 450px;
  object-fit: contain;
  filter: drop-shadow(0 35px 35px rgba(3, 9, 24, 0.4));
}

.mshop-deal__circle {
  position: absolute;
  width: 365px;
  height: 365px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.23), transparent 65%);
}

.mshop-deal__discount {
  position: absolute;
  z-index: 3;
  top: 70px;
  left: 45px;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--mshop-accent);
  color: #fff;
  line-height: 1.25;
  transform: rotate(-8deg);
}

.mshop-deal__discount strong,
.mshop-deal__discount small {
  grid-area: 1 / 1;
}

.mshop-deal__discount strong {
  align-self: start;
  margin-top: 16px;
  font-size: 17px;
  font-weight: 950;
}

.mshop-deal__discount small {
  align-self: end;
  margin-bottom: 14px;
  font-size: 8px;
}

.mshop-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mshop-benefits-grid article {
  padding: 27px 24px 24px;
  border: 1px solid #e8eaf0;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mshop-benefits-grid article:hover {
  box-shadow: 0 16px 35px rgba(16, 24, 40, 0.07);
  transform: translateY(-4px);
}

.mshop-benefit-icon {
  display: grid;
  width: 55px;
  height: 55px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 17px;
}

.mshop-benefit-icon .mshop-icon {
  width: 25px;
  height: 25px;
}

.mshop-benefit-icon--rose {
  background: #fff0f3;
  color: #e11d48;
}

.mshop-benefit-icon--blue {
  background: #ecf6ff;
  color: #337fc3;
}

.mshop-benefit-icon--amber {
  background: #fff6e6;
  color: #d98d1f;
}

.mshop-benefit-icon--green {
  background: #e9faf3;
  color: #139771;
}

.mshop-benefits-grid h3 {
  margin: 0;
  color: #32394a;
  font-size: 13px;
  font-weight: 900;
}

.mshop-benefits-grid p {
  margin: 8px 0 0;
  color: #858b99;
  font-size: 10.5px;
  line-height: 1.95;
}

.mshop-consult {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 70px;
  margin-bottom: 70px;
  padding: 27px 34px;
  overflow: hidden;
  border: 1px solid #e5e7ec;
  border-radius: 22px;
  background: linear-gradient(115deg, #fff 0%, #fff 52%, #fff0f2 100%);
  box-shadow: 0 15px 38px rgba(16, 24, 40, 0.055);
}

.mshop-consult__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #fff0f3;
  color: var(--mshop-accent);
}

.mshop-consult__icon .mshop-icon {
  width: 26px;
  height: 26px;
}

.mshop-consult__content {
  display: flex;
  flex-direction: column;
}

.mshop-consult__content span {
  color: #8a90a0;
  font-size: 11px;
}

.mshop-consult__content strong {
  color: #282f3f;
  font-size: 18px;
  font-weight: 950;
}

.mshop-footer {
  padding-top: 62px;
  background: #111626;
  color: rgba(255, 255, 255, 0.66);
}

.mshop-footer__top {
  display: grid;
  grid-template-columns: 1.45fr minmax(0, 2.2fr) 1.15fr;
  gap: 52px;
  padding-bottom: 45px;
}

/*
 * Holds however many footer columns the admin has configured (see the
 * "فوتر" settings tab / mshop_get_footer_columns()) — unlike a fixed
 * grid-template-columns count on the parent .mshop-footer__top, auto-fit
 * lets this middle section grow from one column to several without the
 * brand/contact tracks on either side needing to change.
 */
.mshop-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
}

.mshop-brand__link--footer .mshop-brand__text strong {
  color: #fff;
}

.mshop-brand__link--footer .mshop-brand__text small {
  color: rgba(255, 255, 255, 0.45);
}

.mshop-footer__brand > p {
  max-width: 380px;
  margin: 17px 0 0;
  font-size: 10.5px;
  line-height: 2.15;
}

.mshop-footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.mshop-footer__socials a {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, color 0.2s ease;
}

.mshop-footer__socials a:hover {
  background: var(--mshop-accent);
  color: #fff;
}

.mshop-footer__socials .mshop-icon {
  width: 17px;
  height: 17px;
}

.mshop-footer h2 {
  margin: 5px 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mshop-footer__column ul,
.mshop-footer-menu,
.mshop-footer-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mshop-footer__column li,
.mshop-footer-menu li {
  margin-bottom: 8px;
}

.mshop-footer__column a,
.mshop-footer-menu a {
  color: rgba(255, 255, 255, 0.57);
  font-size: 10.5px;
  transition: color 0.2s ease, padding 0.2s ease;
}

.mshop-footer__column a:hover,
.mshop-footer-menu a:hover {
  padding-right: 3px;
  color: #fff;
}

.mshop-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.mshop-contact-card > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(225, 29, 72, 0.16);
  color: #fb7185;
}

.mshop-contact-card .mshop-icon {
  width: 18px;
  height: 18px;
}

.mshop-contact-card > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}

.mshop-contact-card small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 8.5px;
}

.mshop-contact-card strong {
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.mshop-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 9.5px;
  line-height: 1.9;
}

.mshop-contact-line .mshop-icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #fb7185;
}

.mshop-footer__bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9.5px;
}

.mshop-footer__bottom p {
  margin: 0;
}

.mshop-payment-badges {
  display: flex;
  gap: 8px;
}

.mshop-payment-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.mshop-payment-badges .mshop-icon {
  width: 14px;
  height: 14px;
}

/*
 * Trust badges (اینماد/زرین‌پال/etc. — see the "محتوای فوتر" settings tab).
 * footer.php renders TWO copies of the same markup (mshop_render_trust_badges()
 * called twice with a different modifier class) rather than one element
 * reordered with CSS: the desktop position (inside the brand/description
 * column) and the mobile position (below the contact column's address
 * lines) are different DOM branches entirely, not just a visual reorder
 * within the same branch, so only one copy is ever shown per viewport
 * width via the max-width: 720px rule at the bottom of this block (matching
 * the breakpoint where .mshop-footer__top itself stacks to one column).
 */
.mshop-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mshop-trust-badges--brand {
  margin: 14px 0 0;
}

.mshop-trust-badges--contact {
  display: none;
  margin-top: 14px;
}

.mshop-trust-badges__item {
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.mshop-trust-badges__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.mshop-trust-badges__item img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.mshop-content-main,
.shop-main {
  min-height: 55vh;
  padding: 55px 0 75px;
}

.mshop-content-shell,
.mshop-entry-shell,
.shop-content {
  padding: 34px;
  border: 1px solid #e8eaf0;
  border-radius: 22px;
  background: #fff;
}

.mshop-entry-shell {
  max-width: 980px;
}

.mshop-archive-header,
.mshop-entry-title {
  margin: 0 0 25px;
}

.mshop-archive-header h1,
.mshop-entry-title {
  margin-top: 0;
  color: #202838;
  font-size: 30px;
  font-weight: 950;
}

.mshop-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mshop-post-card {
  overflow: hidden;
  border: 1px solid #e8eaf0;
  border-radius: 16px;
}

.mshop-post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.mshop-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mshop-post-card__body {
  padding: 18px;
}

.mshop-post-card__body small,
.mshop-entry-meta {
  color: #969caa;
  font-size: 10px;
}

.mshop-post-card h2 {
  margin: 6px 0 9px;
  font-size: 16px;
}

.mshop-entry-summary,
.mshop-entry-content {
  color: #5f6676;
  font-size: 13px;
  line-height: 2;
}

.mshop-entry-content img {
  border-radius: 15px;
}

.mshop-entry-image {
  margin-bottom: 25px;
}

.mshop-entry-image img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.mshop-empty-state {
  padding: 80px 24px;
  text-align: center;
}

.mshop-empty-state > strong {
  display: block;
  color: #e7e9ee;
  font-size: 110px;
  font-weight: 950;
  line-height: 1;
}

.mshop-empty-state h1 {
  margin: 17px 0 8px;
  color: #252c3b;
  font-size: 28px;
}

.mshop-empty-state p {
  margin: 0 0 22px;
  color: #858c9b;
}

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 22px;
  color: #9298a5;
  font-size: 10px;
}

.woocommerce .woocommerce-breadcrumb a {
  color: #666e7e;
}

.woocommerce h1.page-title,
.woocommerce div.product .product_title {
  color: #222a3a;
  font-size: 29px;
  font-weight: 950;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #e8eaf0;
  border-radius: 17px;
  background: #fff;
}

.woocommerce ul.products li.product a img {
  border-radius: 12px;
  background: #f6f7f9;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #343b4b;
  font-size: 12px;
  line-height: 1.9;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #222a3a;
  font-size: 13px;
  font-weight: 900;
}

.woocommerce span.onsale {
  min-width: 40px;
  min-height: 26px;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--mshop-accent);
  font-size: 10px;
  line-height: 22px;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  padding: 11px 17px;
  border-radius: 10px;
  background: var(--mshop-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--mshop-accent-dark);
  color: #fff;
}

.woocommerce div.product div.images img {
  border-radius: 16px;
}

.woocommerce div.product form.cart .variations select,
.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce select {
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #dfe2e8;
  border-radius: 9px;
  background: #fff;
}

.woocommerce table.shop_table {
  overflow: hidden;
  border-color: #e4e7ec;
  border-radius: 13px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--mshop-accent);
  border-radius: 10px;
  background: #f8f9fb;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .mshop-header__main {
    grid-template-columns: 200px minmax(240px, 1fr) auto;
    gap: 20px;
  }

  .mshop-action-link__text,
  .mshop-actions-divider {
    display: none;
  }

  .mshop-header__nav {
    grid-template-columns: 200px 1fr auto;
    gap: 16px;
  }

  .mshop-primary-nav .nav-menu > li > a {
    padding-inline: 8px;
  }

  .mshop-slide__content {
    padding-right: 50px;
  }

  .mshop-slide__visual {
    padding-left: 25px;
  }

  .mshop-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mshop-category-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    min-height: 150px;
    align-items: end;
  }

  .mshop-category-card__image {
    height: 150px;
  }

  .mshop-category-card__content {
    align-self: stretch;
    justify-content: center;
    background: transparent;
  }

  .mshop-products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }

  .mshop-footer__top {
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .mshop-container {
    width: min(100% - 28px, 860px);
  }

  .mshop-topbar__meta > span:first-child,
  .mshop-topbar__divider {
    display: none;
  }

  .mshop-header__main {
    min-height: 73px;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .mshop-menu-toggle {
    display: grid;
    place-items: center;
  }

  .mshop-header__main > .mshop-search,
  .mshop-account-link,
  .mshop-header__nav-wrap {
    display: none;
  }

  .mshop-header__actions {
    gap: 0;
  }

  .mshop-search-mobile {
    display: block;
    padding-bottom: 12px;
  }

  .mshop-search-mobile .mshop-search {
    height: 44px;
  }

  .mshop-search-mobile .mshop-search button {
    display: grid;
    width: 33px;
    padding: 0;
    place-items: center;
    background: var(--mshop-accent);
    color: #fff;
  }

  .mshop-search-mobile .mshop-search button .mshop-icon {
    width: 17px;
  }

  .mshop-mobile-panel {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .mshop-mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
  }

  .mshop-mobile-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 24, 0.58);
    backdrop-filter: blur(3px);
  }

  .mshop-mobile-panel__drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(340px, 87vw);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 50px rgba(7, 12, 29, 0.2);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .mshop-mobile-panel.is-open .mshop-mobile-panel__drawer {
    transform: translateX(0);
  }

  .mshop-mobile-panel__head {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #eceef2;
  }

  .mshop-mobile-panel__head strong {
    color: #252d3d;
    font-size: 17px;
    font-weight: 950;
  }

  .mshop-mobile-menu,
  .mshop-mobile-menu ul,
  .mshop-mobile-panel .nav-menu,
  .mshop-mobile-panel .nav-menu ul {
    margin: 0;
    padding: 10px;
    list-style: none;
  }

  .mshop-mobile-menu a,
  .mshop-mobile-panel .nav-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 9px;
    color: #4d5566;
    font-size: 13px;
    font-weight: 750;
  }

  .mshop-mobile-menu a:hover,
  .mshop-mobile-panel .nav-menu a:hover {
    background: #fff1f3;
    color: var(--mshop-accent);
  }

  .mshop-mobile-menu .sub-menu,
  .mshop-mobile-panel .nav-menu .sub-menu {
    padding-top: 0;
    padding-right: 18px;
  }

  .mshop-mobile-panel__contact {
    display: flex;
    margin: 15px;
    padding: 15px;
    flex-direction: column;
    border-radius: 12px;
    background: #f6f7f9;
    color: #7f8696;
    font-size: 10px;
  }

  .mshop-mobile-panel__contact a {
    margin-top: 3px;
    color: #262d3d;
    font-size: 16px;
    font-weight: 900;
  }

  /* Hero slider: stacked (content over image) below 960px. The box height
     is a hard min-height (the slide track has no in-flow content of its
     own to size around), so every value below is sized to the actual
     stacked content at this tier, not left oversized with empty space. */
  .mshop-slider,
  .mshop-slider__track,
  .mshop-slide {
    min-height: 560px;
  }

  .mshop-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .mshop-slide__content {
    padding: 32px 43px 14px;
    align-self: start;
  }

  .mshop-slide h1,
  .mshop-slide h2 {
    max-width: 680px;
  }

  .mshop-slide__content > p {
    max-width: 680px;
  }

  .mshop-slide__visual {
    padding: 0 30px 22px;
  }

  .mshop-slide__visual > img {
    max-height: 220px;
  }

  .mshop-slide__halo {
    width: 220px;
    height: 220px;
  }

  .mshop-float-badge {
    bottom: 38px;
    left: 16%;
  }

  .mshop-slider__controls {
    right: 42px;
    bottom: 22px;
  }

  .mshop-service-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px 0;
  }

  .mshop-service-item:nth-child(2)::after {
    display: none;
  }

  .mshop-products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .mshop-deal {
    grid-template-columns: 1fr 0.75fr;
  }

  .mshop-deal__content {
    padding-right: 20px;
  }

  .mshop-deal__visual img {
    height: 385px;
  }

  .mshop-benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mshop-footer__top {
    grid-template-columns: 1.3fr 1fr;
  }

  .mshop-footer__contact {
    grid-column: 1 / -1;
    max-width: 450px;
  }
}

@media (max-width: 782px) {
  .admin-bar .mshop-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  body.mshop-body {
    padding-bottom: 65px;
  }

  .mshop-container {
    width: min(100% - 24px, 680px);
  }

  .mshop-topbar__inner {
    justify-content: center;
  }

  .mshop-topbar__meta {
    display: none;
  }

  .mshop-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .mshop-brand__mark svg {
    width: 33px;
    height: 33px;
  }

  .mshop-brand__mark img {
    width: 28px;
    height: 28px;
  }

  .mshop-brand__text small {
    display: none;
  }

  .mshop-brand__text strong {
    font-size: 16px;
  }

  .mshop-action-link__icon,
  .mshop-icon-button {
    width: 40px;
    height: 40px;
  }

  .mshop-hero {
    padding-top: 12px;
  }

  .mshop-slider,
  .mshop-slider__track,
  .mshop-slide {
    min-height: 470px;
    border-radius: 22px;
  }

  .mshop-slide__content {
    padding: 24px 25px 8px;
  }

  .mshop-slide__eyebrow {
    margin-bottom: 7px;
    font-size: 10.5px;
  }

  .mshop-slide h1,
  .mshop-slide h2 {
    font-size: clamp(27px, 8vw, 37px);
    line-height: 1.32;
  }

  .mshop-slide__content > p {
    margin-top: 9px;
    font-size: 11.5px;
    line-height: 1.8;
  }

  .mshop-slide__actions {
    align-items: flex-start;
    margin-top: 14px;
    flex-direction: column;
    gap: 8px;
  }

  .mshop-slide__actions .mshop-button {
    min-height: 44px;
  }

  .mshop-slide__visual {
    padding: 0 14px 18px;
  }

  .mshop-slide__visual > img {
    max-height: 175px;
  }

  .mshop-slide__halo {
    width: 175px;
    height: 175px;
  }

  .mshop-float-badge {
    bottom: 34px;
    left: 10%;
    width: 70px;
    height: 70px;
  }

  .mshop-float-badge strong {
    font-size: 15px;
  }

  .mshop-slider__controls {
    right: 25px;
    bottom: 19px;
  }

  .mshop-service-strip {
    padding: 12px 8px;
  }

  .mshop-service-item {
    justify-content: flex-start;
    padding: 6px 10px;
  }

  .mshop-service-item:nth-child(3)::after {
    display: block;
  }

  .mshop-service-item__icon {
    width: 38px;
    height: 38px;
  }

  .mshop-service-item strong {
    font-size: 10px;
  }

  .mshop-service-item small {
    display: none;
  }

  .mshop-section,
  .mshop-promos {
    padding-top: 50px;
  }

  .mshop-section-heading {
    margin-bottom: 18px;
  }

  .mshop-section-heading h2 {
    font-size: 23px;
  }

  .mshop-text-link {
    font-size: 10px;
  }

  .mshop-categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mshop-category-card {
    display: block;
    min-height: 0;
  }

  .mshop-category-card__image {
    height: 123px;
  }

  .mshop-category-card__image img {
    width: 110px;
    height: 110px;
  }

  .mshop-category-card__content {
    padding: 11px 13px 14px;
    background: rgba(255, 255, 255, 0.62);
  }

  .mshop-category-card__content strong {
    font-size: 11px;
  }

  .mshop-category-card__arrow {
    bottom: 16px;
    left: 10px;
  }

  .mshop-promos {
    grid-template-columns: 1fr;
  }

  .mshop-promo {
    min-height: 180px;
  }

  .mshop-promo__content {
    padding: 25px 24px;
  }

  .mshop-promo > img {
    height: 170px;
  }

  .mshop-products-grid,
  .woocommerce ul.products {
    gap: 10px;
  }

  .mshop-product-card__image {
    min-height: 205px;
    padding: 16px 10px 0;
  }

  .mshop-product-card__image img {
    height: 185px;
  }

  .mshop-product-card__body {
    padding: 13px;
  }

  .mshop-product-card h3 {
    min-height: 58px;
    font-size: 10.5px;
  }

  .mshop-product-meta {
    display: none;
  }

  .mshop-product-card__bottom {
    min-height: 49px;
    padding-top: 9px;
  }

  .mshop-product-price ins,
  .mshop-product-price > .woocommerce-Price-amount,
  .mshop-product-price .price > .woocommerce-Price-amount {
    font-size: 11px;
  }

  .mshop-add-cart {
    width: 35px;
    height: 35px;
  }

  .mshop-deal-section {
    margin-top: 55px;
  }

  .mshop-deal {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .mshop-deal__content {
    padding: 45px 12px 10px;
  }

  .mshop-deal__visual {
    min-height: 310px;
  }

  .mshop-deal__visual img {
    height: 330px;
  }

  .mshop-deal__discount {
    top: 10px;
    left: 12%;
  }

  .mshop-benefits-grid {
    gap: 10px;
  }

  .mshop-benefits-grid article {
    padding: 21px 14px 18px;
  }

  .mshop-benefits-grid p {
    display: none;
  }

  .mshop-benefits-grid h3 {
    font-size: 10.5px;
  }

  .mshop-consult {
    grid-template-columns: auto 1fr;
    gap: 13px;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 21px;
  }

  .mshop-consult__content strong {
    font-size: 14px;
  }

  .mshop-consult .mshop-button {
    grid-column: 1 / -1;
  }

  .mshop-footer {
    padding-top: 45px;
  }

  .mshop-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .mshop-footer__brand,
  .mshop-footer__columns,
  .mshop-footer__contact {
    grid-column: 1 / -1;
  }

  .mshop-trust-badges--brand {
    display: none;
  }

  .mshop-trust-badges--contact {
    display: flex;
  }

  .mshop-footer__bottom {
    padding: 18px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .mshop-mobile-dock {
    position: fixed;
    z-index: 150;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding: 5px max(10px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid #e5e7ec;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(14px);
  }

  .mshop-mobile-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: #8d93a0;
    font-size: 8.5px;
  }

  .mshop-mobile-dock a.is-active,
  .mshop-mobile-dock a:hover {
    color: var(--mshop-accent);
  }

  .mshop-mobile-dock .mshop-icon {
    width: 20px;
    height: 20px;
  }

  .mshop-compare-bar {
    bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .mshop-compare-bar__inner {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .mshop-compare-bar__list {
    order: 3;
    width: 100%;
  }

  .mshop-compare-bar__actions {
    margin-inline-start: auto;
  }

  .mshop-content-main,
  .shop-main {
    padding: 28px 0 45px;
  }

  .mshop-content-shell,
  .mshop-entry-shell,
  .shop-content {
    padding: 22px 16px;
  }

  .mshop-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .mshop-brand__text {
    display: none;
  }

  .mshop-header__main {
    grid-template-columns: auto 1fr auto;
  }

  .mshop-brand {
    justify-self: center;
  }

  .mshop-slider,
  .mshop-slider__track,
  .mshop-slide {
    min-height: 420px;
  }

  .mshop-slide__content {
    padding: 20px 20px 6px;
  }

  .mshop-slide__microcopy {
    display: none;
  }

  .mshop-slide__visual {
    padding: 0 14px 12px;
  }

  .mshop-slide__visual > img {
    max-height: 145px;
  }

  .mshop-slide__halo {
    width: 145px;
    height: 145px;
  }

  .mshop-float-badge {
    bottom: 26px;
    width: 62px;
    height: 62px;
  }

  .mshop-service-item {
    gap: 7px;
    padding-inline: 7px;
  }

  .mshop-service-item__icon {
    width: 34px;
    height: 34px;
  }

  .mshop-section-heading .mshop-text-link {
    display: none;
  }

  .mshop-product-card__image {
    min-height: 178px;
  }

  .mshop-product-card__image img {
    height: 160px;
  }

  .mshop-product-card__body {
    padding: 11px;
  }

  .mshop-product-price del {
    display: none;
  }

  .mshop-add-cart {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

