/* Kargarin store frontend modernizer — overlay for CodeIgniter 3 + Bootstrap 3 */

:root {
  --mz-accent: #ff9800;
  --mz-accent-hover: #fb8c00;
  --mz-accent-soft: rgba(255, 152, 0, 0.16);
  --mz-bg: #f6f1e8;
  --mz-bg-elev: rgba(255, 253, 248, 0.92);
  --mz-surface: #fffdf8;
  --mz-surface-2: #ffffff;
  --mz-card: #ffffff;
  --mz-card-ink: #1c1917;
  --mz-border: rgba(28, 25, 23, 0.12);
  --mz-text: #1c1917;
  --mz-muted: #6b6560;
  --mz-link: #c2410c;
  --mz-danger: #ef5350;
  --mz-ok: #43a047;
  --mz-radius: 18px;
  --mz-radius-sm: 12px;
  --mz-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
  --mz-header-h: 76px;
  --mz-font: "Vazirmatn", "IRANSans", iran_sens, Tahoma, "Segoe UI", sans-serif;
  --mz-font-bold: "Vazirmatn", "IRANSans", iran_sens_bold, Tahoma, sans-serif;
  --mz-footer-bg: #efe8dc;
  --mz-header-top: rgba(28, 25, 23, 0.05);
  --mz-header-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  --mz-table-stripe: rgba(28, 25, 23, 0.04);
  --mz-placeholder: #8a837c;
}

html.mz {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"],
html.mz[data-theme="dark"] {
  color-scheme: dark;
  --mz-accent: #ff9800;
  --mz-accent-hover: #ffa726;
  --mz-accent-soft: rgba(255, 152, 0, 0.16);
  --mz-bg: #0c0c0e;
  --mz-bg-elev: rgba(14, 14, 18, 0.86);
  --mz-surface: #17171c;
  --mz-surface-2: #1e1e25;
  --mz-card: #f7f4ee;
  --mz-card-ink: #1c1917;
  --mz-border: rgba(255, 255, 255, 0.08);
  --mz-text: #f4f4f5;
  --mz-muted: #a1a1aa;
  --mz-link: #ffcc80;
  --mz-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --mz-footer-bg: #101014;
  --mz-header-top: rgba(0, 0, 0, 0.28);
  --mz-header-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  --mz-table-stripe: rgba(255, 255, 255, 0.03);
  --mz-placeholder: #8b8b93;
}

html.mz,
html.mz body {
  background: var(--mz-bg) !important;
  color: var(--mz-text) !important;
  font-family: var(--mz-font) !important;
  font-weight: 500 !important;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.mz body *:not(.fa):not(.glyphicon) {
  font-family: inherit;
}

html.mz body,
html.mz p,
html.mz li,
html.mz label,
html.mz input,
html.mz textarea,
html.mz select,
html.mz .form-control,
html.mz .mz-card__title,
html.mz .description-pre {
  font-weight: 500 !important;
}

html.mz b,
html.mz strong,
html.mz h1,
html.mz h2,
html.mz h3,
html.mz h4,
html.mz h5,
html.mz h6,
html.mz button,
html.mz input[type="submit"],
html.mz th,
html.mz .navbar .navbar-nav a,
html.mz .site-logo-text,
html.mz .mz-hero__title,
html.mz .mz-btn,
html.mz .mz-card__cta,
html.mz .mz-steps__num {
  font-family: var(--mz-font-bold) !important;
  font-weight: 700 !important;
}

html.mz a {
  color: var(--mz-link);
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

html.mz a:hover,
html.mz a:focus {
  color: var(--mz-accent);
}

html.mz *:focus-visible {
  outline: 2px solid var(--mz-accent) !important;
  outline-offset: 3px;
}

.mz-skip {
  position: absolute;
  right: -999px;
  top: 8px;
  z-index: 10000;
  background: var(--mz-accent);
  color: #111 !important;
  padding: 8px 14px;
  border-radius: 8px;
}

.mz-skip:focus {
  right: 12px;
}

html.mz #wrapper {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(255, 152, 0, 0.1), transparent 58%),
    radial-gradient(800px 380px at 92% 8%, rgba(255, 152, 0, 0.05), transparent 50%),
    var(--mz-bg);
}

html.mz #content {
  padding-bottom: 0;
}

html.mz img,
html.mz iframe,
html.mz video,
html.mz embed,
html.mz object {
  max-width: 100%;
}

html.mz #content > .container,
html.mz .mz-home-main,
html.mz .site-footer .container {
  max-width: 1180px;
  width: 100%;
}

/* Header */
html.mz .site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--mz-bg-elev);
  border-bottom: 1px solid var(--mz-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.mz .site-header.is-scrolled {
  box-shadow: var(--mz-header-shadow);
}

html.mz .site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 7px 22px;
  font-size: 13px;
  background: var(--mz-header-top);
  border-bottom: 1px solid var(--mz-border);
}

html.mz .site-header__top a,
html.mz .site-header__top p {
  margin: 0;
  color: var(--mz-muted) !important;
}

html.mz .site-header__top a[href^="tel"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--mz-text) !important;
  letter-spacing: 0.02em;
}

html.mz #top-user-panel,
html.mz #top-user-panel .container {
  padding: 0;
  filter: none;
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

html.mz .site-header__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  min-height: var(--mz-header-h);
  min-width: 0;
}

html.mz .site-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mz-text) !important;
  flex-shrink: 0;
  min-width: 0;
  order: 1;
}

html.mz .site-logo-link img {
  height: 42px;
  width: auto;
  border-radius: 10px;
}

html.mz .site-logo-text {
  font-size: 15px;
  color: var(--mz-text);
  line-height: 1.3;
  max-width: 160px;
}

html.mz .navbar.cloth {
  margin: 0;
  border: 0;
  background: transparent;
  min-height: 0;
  flex: 0 0 auto;
  order: 2;
}

html.mz .site-search {
  flex: 1 1 280px;
  min-width: 180px;
  max-width: 460px;
  padding-top: 0;
  margin: 0;
  order: 3;
}

html.mz .mz-theme-toggle {
  order: 4;
}

html.mz .header-cart {
  order: 5;
}

html.mz .site-search .input-group {
  display: flex;
  width: 100%;
  min-width: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--mz-border);
  background: var(--mz-surface-2);
}

html.mz .site-search .input-group-btn {
  width: auto;
  flex-shrink: 0;
}

html.mz .site-search .form-control {
  height: 46px;
  min-height: 44px;
  min-width: 0;
  flex: 1 1 auto;
  width: 1%;
  font-size: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mz-text) !important;
  box-shadow: none !important;
  padding: 8px 18px;
}

html.mz .site-search .form-control:focus {
  box-shadow: none !important;
}

html.mz .site-search .btn-red {
  height: 46px;
  border-radius: 0 !important;
  background: var(--mz-accent) !important;
  border: 0;
  min-width: 54px;
  color: #111 !important;
}

html.mz .site-search .dropdown {
  display: none;
}

html.mz .navbar.cloth .container {
  width: auto;
  padding: 0;
  margin: 0;
}

html.mz .navbar-header {
  margin: 0;
}

html.mz .navbar-toggle {
  display: none;
  float: none;
  order: 6;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px 8px;
  border: 1px solid var(--mz-border);
  border-radius: 10px;
  background: var(--mz-surface-2);
}

html.mz .navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto 4px;
  background: var(--mz-text);
  border-radius: 2px;
}

html.mz .navbar-toggle .icon-bar:last-child {
  margin-bottom: 0;
}

html.mz #navbar {
  float: none;
  padding: 0;
}

html.mz .navbar .navbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
}

html.mz .navbar .navbar-nav > li {
  float: none;
}

html.mz .navbar .navbar-nav a {
  color: var(--mz-text) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  padding: 8px 14px !important;
  border-radius: 999px;
}

html.mz .navbar.cloth .navbar-nav li.active a,
html.mz .navbar.cloth .navbar-nav li a:hover,
html.mz .navbar.cloth .navbar-nav li a:focus {
  color: #111 !important;
  background: var(--mz-accent) !important;
}

html.mz .mz-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--mz-border);
  border-radius: 999px;
  background: var(--mz-surface-2);
  color: var(--mz-text);
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

html.mz .mz-theme-toggle:hover,
html.mz .mz-theme-toggle:focus {
  border-color: var(--mz-accent);
  color: var(--mz-accent);
  background: var(--mz-surface-2);
}

html.mz .mz-theme-toggle .fa {
  font-size: 18px;
  line-height: 1;
}

html.mz .header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--mz-text) !important;
  background: var(--mz-surface-2);
  border: 1px solid var(--mz-border);
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 44px;
  min-height: 44px;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}

html.mz .header-cart .sumOfItems,
html.mz .header-cart .mz-cart-count {
  background: var(--mz-accent);
  color: #111;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
  line-height: 1;
}

html.mz .btn.noback {
  background: transparent !important;
  box-shadow: none;
}

html.mz #home_vendor_login,
html.mz #home_vendor_register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 152, 0, 0.45) !important;
  color: var(--mz-text) !important;
}

html.mz #home_vendor_register {
  background: var(--mz-accent) !important;
  color: #111 !important;
  border-color: var(--mz-accent) !important;
}

/* Hero */
html.mz .home-landing {
  padding: 0;
}

html.mz .mz-hero {
  position: relative;
  width: 100%;
  margin: 0 0 8px;
  padding: 28px 0 12px;
  overflow: hidden;
}

html.mz .mz-hero__glow {
  position: absolute;
  inset: auto -10% 10% 40%;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.18), transparent 68%);
  pointer-events: none;
}

html.mz .mz-hero__grid {
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 1;
}

html.mz .mz-hero__copy {
  flex: 1 1 46%;
  min-width: 0;
}

html.mz .mz-hero__media {
  flex: 1 1 54%;
  min-width: 0;
}

html.mz .mz-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mz-accent-soft);
  color: var(--mz-accent);
  font-size: 13px;
}

html.mz .mz-hero__title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.45;
  color: var(--mz-text);
}

html.mz .mz-hero__lead {
  margin: 0 0 22px;
  max-width: 34em;
  color: var(--mz-muted);
  font-size: 16px;
  line-height: 1.9;
}

html.mz .mz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

html.mz .mz-hero__actions .mz-btn {
  min-width: 140px;
}

html.mz .mz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
}

html.mz .mz-btn--primary {
  background: var(--mz-accent);
  color: #111 !important;
}

html.mz .mz-btn--primary:hover,
html.mz .mz-btn--primary:focus {
  background: var(--mz-accent-hover);
  color: #111 !important;
}

html.mz .mz-btn--ghost {
  background: transparent;
  color: var(--mz-text) !important;
  border: 1px solid var(--mz-border);
}

html.mz .mz-btn--ghost:hover,
html.mz .mz-btn--ghost:focus {
  border-color: var(--mz-accent);
  color: var(--mz-accent) !important;
}

html.mz .mz-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.mz .mz-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  background: var(--mz-surface);
  border: 1px solid var(--mz-border);
  border-radius: 999px;
}

html.mz .mz-steps__num {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mz-accent);
  color: #111;
  font-size: 13px;
}

html.mz .mz-steps__label {
  color: var(--mz-text);
  font-size: 13px;
}

html.mz .mz-hero__media,
html.mz .mz-hero__media .carousel,
html.mz .mz-hero__media .carousel-inner,
html.mz .mz-hero__slide {
  max-width: 100%;
  border-radius: 24px;
}

html.mz .mz-hero__media .carousel-inner {
  overflow: hidden;
  box-shadow: var(--mz-shadow);
  border: 1px solid var(--mz-border);
  background: var(--mz-surface);
}

html.mz .mz-hero__slide {
  display: block;
  position: relative;
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.05), rgba(12, 12, 14, 0.35)),
    var(--mz-surface);
}

html.mz .mz-hero__slide img {
  width: 100%;
  max-width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

html.mz .mz-hero__caption {
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(28, 25, 23, 0.72);
  color: #f4f4f5;
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

html.mz .mz-hero__dots {
  bottom: 14px;
  margin: 0;
  width: auto;
  max-width: calc(100% - 24px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

html.mz .mz-hero__dots li {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  text-indent: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

html.mz .mz-hero__dots li.active {
  background: var(--mz-accent);
  width: 22px;
  border-radius: 999px;
}

html.mz .mz-hero__ctrl {
  width: 44px;
  height: 44px;
  top: 50%;
  margin-top: -22px;
  background: rgba(28, 25, 23, 0.5);
  color: #fff;
  border-radius: 50%;
  opacity: 1;
  text-shadow: none;
  font-size: 22px;
  line-height: 44px;
}

html.mz .mz-hero__ctrl.left {
  left: 12px;
  right: auto;
}

html.mz .mz-hero__ctrl.right {
  right: 12px;
  left: auto;
}

html.mz .mz-hero .carousel-control .icon-prev,
html.mz .mz-hero .carousel-control .icon-next,
html.mz .home-hero .carousel-indicators,
html.mz #my-pics > .carousel-indicators,
html.mz .carousel-indicators:not(.mz-hero__dots),
html.mz #small_carousel .carousel-indicators {
  display: none !important;
}

html.mz .mz-home-main {
  padding-top: 8px;
  padding-bottom: 36px;
}

html.mz .mz-section {
  margin: 8px 0 28px;
}

html.mz .mz-pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
}

html.mz .mz-pagehead__title {
  margin: 0;
  font-size: 24px;
}

html.mz .mz-pagehead__back {
  color: var(--mz-accent) !important;
}

html.mz .home-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--mz-text);
}

html.mz .home-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(255, 152, 0, 0.45));
}

html.mz .mz-catalog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

html.mz .mz-catalog__hint {
  margin: 0 0 16px;
  color: var(--mz-muted);
  font-size: 14px;
}

html.mz .mz-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.mz .mz-cats a,
html.mz .list li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--mz-surface-2) !important;
  color: var(--mz-text) !important;
  border: 1px solid var(--mz-border);
  border-radius: 999px;
  padding: 8px 14px !important;
  font-size: 13px;
}

html.mz .mz-cats a:hover,
html.mz .mz-cats a.is-active,
html.mz .list li a.selected,
html.mz .list li a:hover {
  background: var(--mz-accent) !important;
  color: #111 !important;
  border-color: var(--mz-accent);
}

html.mz .clear-filter {
  float: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--mz-danger);
}

/* Product / category cards */
html.mz .products {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

html.mz .products > .product-list,
html.mz .products > .mz-card-col {
  flex: 0 0 auto;
  max-width: 100%;
}

html.mz .products .product-list,
html.mz .products .mz-card-col {
  display: flex;
  float: none;
  padding: 10px;
  margin-bottom: 0;
  vertical-align: stretch;
  text-align: right;
}

html.mz .products .product-list .inner,
html.mz .mz-card {
  display: flex;
  flex-direction: column;
  background: var(--mz-card) !important;
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--mz-radius);
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

html.mz .products .product-list .inner:hover,
html.mz .mz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 152, 0, 0.45);
}

html.mz .products .product-list .img-container,
html.mz .mz-card__media {
  position: relative;
  min-height: 0 !important;
  max-height: none !important;
  max-width: none !important;
  height: 210px;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

html.mz .products .product-list .img-container a,
html.mz .mz-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

html.mz .products .product-list .img-container img,
html.mz .mz-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
}

html.mz .mz-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 14px 16px;
}

html.mz .products .product-list h2,
html.mz .products .product-list h5 {
  margin: 0 0 10px;
  min-height: 0;
  font-size: 15px !important;
  line-height: 1.7;
  color: var(--mz-card-ink);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html.mz .products .product-list h2 a,
html.mz .products .product-list h5 a,
html.mz .products .product-list .mz-card__body a:not(.info-btn):not(.btn-add) {
  color: var(--mz-card-ink) !important;
  font-size: 15px !important;
}

html.mz .products .product-list a {
  color: var(--mz-card-ink) !important;
  font-size: 15px !important;
}

html.mz .price,
html.mz .products .product-list .price,
html.mz .product-list .price-discount {
  color: #c2410c !important;
  text-shadow: none;
  font-size: 15px !important;
  height: auto;
  padding: 0 0 8px;
}

html.mz .price-discount {
  color: #78716c !important;
  text-decoration: line-through;
}

html.mz .price-discount.invisible {
  display: none !important;
}

html.mz .products .product-list .price-down {
  background: var(--mz-danger);
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0 8px 0 0;
  position: static;
}

html.mz .products .product-list .info-btn,
html.mz .products .product-list div.add-to-cart,
html.mz .mz-card__cta,
html.mz #view-product .add-to-cart {
  margin: auto 0 0;
  border-radius: 999px !important;
  background: var(--mz-accent) !important;
  color: #111 !important;
  padding: 9px 12px;
  display: block;
  text-align: center;
}

html.mz .products .product-list div.add-to-cart {
  margin-top: 8px;
}

html.mz .products .product-list div.add-to-cart a,
html.mz .products .product-list .info-btn,
html.mz .mz-card__cta {
  color: #111 !important;
  font-size: 13px !important;
}

html.mz #products-loader {
  position: relative;
  height: auto;
  padding: 48px 0;
  font-size: 16px;
  color: var(--mz-muted);
  text-shadow: none;
  background: transparent;
  z-index: 2;
}

html.mz #products-loader.is-active {
  display: block;
}

html.mz .mz-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--mz-border);
  border-top-color: var(--mz-accent);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: mz-spin 0.8s linear infinite;
}

@keyframes mz-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Product page */
html.mz #view-product .body > .row,
html.mz .product-stage {
  background: var(--mz-surface) !important;
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius);
  padding: 24px !important;
  box-shadow: var(--mz-shadow);
}

html.mz #view-product h1 {
  font-size: 24px;
  line-height: 1.5;
  border-bottom: 1px solid var(--mz-border);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html.mz #view-product .row-info {
  direction: rtl;
  color: var(--mz-text);
}

html.mz #view-product .the-image,
html.mz #view-product .the-image.img-sl {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 420px;
  min-height: 0 !important;
  object-fit: contain;
  border-radius: var(--mz-radius);
  background: #fff;
  padding: 12px;
  margin: 0 auto;
  display: block;
}

html.mz #view-product .product-stage.row {
  margin-left: 0;
  margin-right: 0;
}

html.mz .other-img-preview {
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  max-width: 100%;
  height: auto;
}

html.mz #share_btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  color: var(--mz-link) !important;
}

html.mz .multi_btn {
  background: var(--mz-accent) !important;
  border: 0;
  color: #111 !important;
  border-radius: 12px;
  padding: 12px 18px;
  margin: 12px 0 0;
  width: 100%;
  max-width: 420px;
  min-height: 44px;
}

html.mz .description-pre {
  color: var(--mz-muted);
  font-size: 15px;
  line-height: 1.9;
}

html.mz #share_board_back {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}

html.mz #share_board {
  background: var(--mz-surface);
  color: var(--mz-text);
  border-radius: var(--mz-radius);
  width: min(480px, 100%) !important;
  max-width: 100%;
  margin: 12vh auto 24px !important;
  padding: 16px;
  box-sizing: border-box;
}

html.mz #share_board_close {
  min-width: 44px;
  min-height: 44px;
}

html.mz #share_board input,
html.mz #to_copy {
  width: 100% !important;
  max-width: 100%;
  font-size: 16px !important;
  min-height: 44px;
  box-sizing: border-box;
}

html.mz #share_board .fa-telegram,
html.mz #share_board .fa-whatsapp,
html.mz #share_board .fa-copy {
  width: 48px;
  height: 48px;
  font-size: 28px !important;
}

html.mz #products-side {
  background: transparent;
  border: 0;
  margin-top: 28px;
}

html.mz .view_product_title {
  background: transparent !important;
}

/* Forms / auth / checkout / contacts */
html.mz .loginmodal-container,
html.mz .well,
html.mz .jumbotron,
html.mz #goOrder,
html.mz .user-page .table-responsive {
  background: var(--mz-surface) !important;
  border: 1px solid var(--mz-border) !important;
  border-radius: var(--mz-radius) !important;
  box-shadow: var(--mz-shadow);
  color: var(--mz-text);
}

html.mz .loginmodal-container {
  padding: 28px;
  margin: 28px 0;
}

html.mz .gParent {
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
  overflow: hidden;
  max-width: 100%;
}

html.mz .g-recaptcha {
  transform: scale(0.92);
  transform-origin: center top;
}

html.mz .login-help {
  margin-top: 16px;
  text-align: center;
}

html.mz .product-main-image {
  text-align: center;
  margin-bottom: 16px;
  background: #fff;
  border-radius: var(--mz-radius);
  padding: 12px;
}

html.mz .jumbotron {
  padding: 12px !important;
  overflow: hidden;
}

html.mz .jumbotron iframe {
  height: 280px;
  border: 0;
  border-radius: var(--mz-radius-sm);
  width: 100% !important;
  max-width: 100%;
}

html.mz .btn-danger.login,
html.mz .loginmodal-submit + a.loginmodal-submit {
  margin-top: 10px;
}

html.mz .user-page .col-sm-8,
html.mz .dynPage .text-content,
html.mz .confirmed h1 {
  color: var(--mz-text);
}

html.mz .go-shop {
  margin-right: 10px;
}

html.mz .form-control,
html.mz textarea,
html.mz select,
html.mz #goOrder .form-control,
html.mz input[type="text"],
html.mz input[type="email"],
html.mz input[type="password"],
html.mz input[type="tel"],
html.mz input[type="number"] {
  background: var(--mz-surface-2) !important;
  border: 1px solid var(--mz-border) !important;
  color: var(--mz-text) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  height: 44px;
  min-height: 44px;
  font-size: 16px !important;
}

html.mz textarea.form-control,
html.mz textarea {
  height: auto;
  min-height: 96px;
}

html.mz .form-control:focus {
  border-color: var(--mz-accent) !important;
}

html.mz .input-group-addon {
  background: var(--mz-surface-2);
  border-color: var(--mz-border);
  color: var(--mz-muted);
}

html.mz label,
html.mz legend {
  color: var(--mz-text) !important;
}

html.mz .table {
  color: var(--mz-text);
  background: var(--mz-surface);
  border-color: var(--mz-border);
}

html.mz .table > thead > tr > th,
html.mz .table > tbody > tr > td,
html.mz .table-bordered,
html.mz .table-bordered > thead > tr > th,
html.mz .table-bordered > tbody > tr > td {
  border-color: var(--mz-border) !important;
  background: transparent;
}

html.mz .table-striped > tbody > tr:nth-of-type(odd) {
  background: var(--mz-table-stripe);
}

html.mz .btn,
html.mz .btn-blue-round,
html.mz .go-shop,
html.mz .go-order,
html.mz .go-checkout,
html.mz #btnContactUs,
html.mz .loginmodal-submit {
  border-radius: 10px !important;
  border: 0;
  font-weight: 700 !important;
  min-height: 44px;
}

html.mz .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html.mz .table-products img.product-image {
  width: 56px;
  max-width: 100%;
  height: auto;
}

html.mz .table-products .btn-xs {
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
}

html.mz .user-page img {
  max-width: 80px !important;
  height: auto !important;
}

html.mz .dynPage .text-content,
html.mz .dynPage img,
html.mz .blog-description,
html.mz .description-pre {
  max-width: 100%;
  overflow-wrap: break-word;
}

html.mz #small_carousel {
  overflow: hidden;
  max-width: 100%;
}

html.mz #small_carousel .product-list img {
  width: 100% !important;
  height: 160px !important;
  max-width: 100% !important;
  min-height: 0 !important;
  object-fit: contain;
}

html.mz .btn-success,
html.mz .go-order,
html.mz .login.btn-success {
  background: var(--mz-ok) !important;
}

html.mz .btn-warning,
html.mz .cloth-bg-color,
html.mz .part-label,
html.mz .filter-sidebar .title,
html.mz #blog .alone,
html.mz .blog-inner .alone,
html.mz .orders-from-category .title,
html.mz #goOrder .title,
html.mz .pagination li.active a,
html.mz .btn-blog {
  background: var(--mz-accent) !important;
  border-color: var(--mz-accent) !important;
  color: #111 !important;
}

html.mz .alert {
  border-radius: 12px;
  color: var(--mz-text);
}

html.mz .alert-info {
  background: rgba(3, 169, 244, 0.12) !important;
  border-color: #29b6f6;
}

html.mz .alert-danger {
  background: rgba(244, 67, 54, 0.12) !important;
  border-color: var(--mz-danger);
}

html.mz .alert-success {
  background: rgba(76, 175, 80, 0.12) !important;
  border-color: var(--mz-ok);
}

html.mz .thumbnail,
html.mz .blog-list {
  background: var(--mz-surface);
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius);
  overflow: hidden;
}

html.mz .blog-list h5,
html.mz .blog-inner h1,
html.mz .blog-description,
html.mz .dynPage .text-content {
  color: var(--mz-text);
}

html.mz .blog-description h4 {
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500 !important;
}

/* Footer */
html.mz .site-footer {
  background: var(--mz-footer-bg) !important;
  border-top: 1px solid var(--mz-border);
  padding: 40px 16px 18px !important;
  margin-top: 0;
}

html.mz .body-footer {
  padding-top: 0;
  text-align: right;
}

html.mz .mz-footer-grid {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

html.mz .mz-footer-col {
  margin-bottom: 28px;
}

html.mz .body-footer h3 {
  color: var(--mz-text);
  font-size: 16px;
  margin: 0 0 14px;
}

html.mz .body-footer h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--mz-accent);
}

html.mz .body-footer p,
html.mz .body-footer li,
html.mz .footer-text,
html.mz .body-footer ul li a {
  color: var(--mz-muted) !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

html.mz .body-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
}

html.mz .body-footer .social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  float: none;
}

html.mz .body-footer .social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mz-surface-2);
  border: 1px solid var(--mz-border);
  padding: 0;
}

html.mz .social li a i {
  color: var(--mz-text);
}

html.mz .footer-icon li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  direction: rtl;
  text-align: right;
}

html.mz .footer-icon .f-cont-info,
html.mz .footer-icon .f-cont-info a {
  position: static !important;
  color: var(--mz-muted) !important;
}

html.mz .newsletter-box .full {
  background: var(--mz-surface-2);
  color: var(--mz-text);
  border-radius: 999px !important;
  border: 1px solid var(--mz-border);
  height: 44px;
  min-height: 44px;
  font-size: 16px !important;
  padding: 0 14px;
  width: 100%;
  max-width: 100%;
}

html.mz .newsletter-box .bg-red,
html.mz .newsletter-box .btn {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  border-radius: 999px !important;
  background: var(--mz-accent) !important;
  color: #111 !important;
}

html.mz .mz-footer-copy {
  border-top: 1px solid var(--mz-border);
  padding-top: 16px;
}

html.mz .h-line {
  display: none;
}

html.mz #jump_up {
  left: 12px;
  top: auto;
  bottom: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 44px;
  z-index: 1030;
}

html.mz #jump_up[style*="display: block"],
html.mz #jump_up[style*="display:block"] {
  display: flex !important;
}

html.mz #notificator {
  border-radius: 12px;
  width: min(320px, 90%);
  margin-left: 0;
  left: 50%;
  transform: translateX(-50%);
}

html.mz .swiper-container {
  background: var(--mz-surface);
  border-radius: var(--mz-radius);
}

html.mz ::-webkit-scrollbar-thumb {
  background: var(--mz-accent);
}

html.mz input::placeholder,
html.mz textarea::placeholder {
  color: var(--mz-placeholder);
  text-align: right;
}

/* Product grid: 2 phone / 3 tablet / 4 desktop */
@media (max-width: 767px) {
  html.mz .products > .product-list,
  html.mz .products > .mz-card-col {
    width: 50%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  html.mz .products > .product-list,
  html.mz .products > .mz-card-col {
    width: 33.33333333%;
  }
}

@media (min-width: 992px) {
  html.mz .products > .product-list,
  html.mz .products > .mz-card-col {
    width: 25%;
  }

  html.mz .jumbotron iframe {
    height: 360px;
  }
}

@media (max-width: 991px) {
  html.mz .site-header__bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  html.mz .site-logo-link {
    order: 1;
  }

  html.mz .mz-theme-toggle {
    order: 2;
    margin-right: auto;
  }

  html.mz .header-cart {
    order: 3;
    margin-right: 0;
  }

  html.mz .navbar-toggle {
    display: block !important;
    order: 4;
  }

  html.mz .site-search {
    order: 5;
    max-width: none;
    min-width: 0;
    flex: 1 0 100%;
  }

  html.mz .navbar.cloth {
    order: 6;
    width: 100%;
    margin-right: 0;
    flex: 1 0 100%;
  }

  html.mz .navbar-header {
    float: none;
  }

  html.mz .navbar-collapse {
    background: var(--mz-surface);
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid var(--mz-border);
    padding: 0;
    overflow: hidden;
  }

  html.mz .navbar-collapse.collapse {
    display: none !important;
    height: auto !important;
  }

  html.mz .navbar-collapse.collapse.in {
    display: block !important;
  }

  html.mz .navbar-collapse.collapsing {
    display: block !important;
    height: auto !important;
  }

  html.mz .navbar .navbar-nav {
    display: block;
    float: none;
    padding: 8px;
    margin: 0;
  }

  html.mz .navbar .navbar-nav > li {
    float: none;
    display: block;
  }

  html.mz .navbar .navbar-nav a {
    display: block;
    min-height: 44px;
    padding: 12px 14px !important;
  }

  html.mz .mz-hero__grid {
    flex-direction: column;
    gap: 22px;
  }

  html.mz .mz-hero__title {
    font-size: 26px;
  }

  html.mz .mz-hero__slide,
  html.mz .mz-hero__slide img {
    min-height: 200px;
    height: 240px;
  }

  html.mz .products .product-list .img-container,
  html.mz .mz-card__media {
    height: 170px;
  }

  html.mz .mz-pagehead {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  html.mz .site-header__top,
  html.mz .site-header__bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  html.mz .site-header__top {
    justify-content: center;
    text-align: center;
  }

  html.mz #top-user-panel {
    width: 100%;
    justify-content: center;
  }

  html.mz .site-logo-text {
    font-size: 13px;
    max-width: 110px;
  }

  html.mz .site-logo-link img {
    height: 36px;
  }

  html.mz .mz-hero {
    padding-top: 18px;
  }

  html.mz .mz-hero__title {
    font-size: 22px;
  }

  html.mz .mz-hero__actions {
    flex-direction: column;
  }

  html.mz .mz-hero__actions .mz-btn {
    width: 100%;
    min-width: 0;
  }

  html.mz .mz-hero__ctrl {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    line-height: 36px;
    font-size: 18px;
  }

  html.mz .mz-steps li {
    flex: 1 1 100%;
  }

  html.mz .products .product-list h2,
  html.mz .products .product-list h5,
  html.mz .products .product-list h2 a,
  html.mz .products .product-list h5 a {
    font-size: 13px !important;
  }

  html.mz .products .product-list .img-container,
  html.mz .mz-card__media {
    height: 140px;
  }

  html.mz #view-product .product-stage,
  html.mz #view-product .body > .row {
    padding: 14px !important;
  }

  html.mz #view-product h1 {
    font-size: 20px;
  }

  html.mz .multi_btn {
    max-width: 100%;
  }

  html.mz .loginmodal-container {
    padding: 18px 14px;
    margin: 16px 0;
  }

  html.mz .g-recaptcha {
    transform: scale(0.86);
  }

  html.mz .go-shop,
  html.mz .go-order,
  html.mz .go-checkout,
  html.mz #btnContactUs {
    display: block;
    width: 100%;
    float: none !important;
    margin: 8px 0;
  }

  html.mz .jumbotron iframe {
    height: 220px;
  }

  html.mz #share_board {
    width: 100% !important;
    margin-top: 10vh !important;
  }

  html.mz #jump_up {
    left: 10px;
    bottom: 12px;
  }
}

@media (max-width: 414px) {
  html.mz .site-header__bar {
    gap: 8px;
  }

  html.mz .mz-theme-toggle,
  html.mz .navbar-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  html.mz .mz-hero__slide,
  html.mz .mz-hero__slide img {
    min-height: 180px;
    height: 200px;
  }

  html.mz .g-recaptcha {
    transform: scale(0.78);
  }
}

@media (max-width: 360px) {
  html.mz .site-logo-text {
    max-width: 88px;
    font-size: 12px;
  }

  html.mz .products .product-list .img-container,
  html.mz .mz-card__media {
    height: 120px;
  }

  html.mz .g-recaptcha {
    transform: scale(0.72);
  }
}

@media (hover: none) {
  html.mz .products .product-list .inner:hover,
  html.mz .mz-card:hover {
    transform: none;
  }
}

@media (max-width: 991px) {
  html.mz .container,
  html.mz .container-fluid {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  html.mz .navbar-nav.navbar-right {
    float: none !important;
  }

  html.mz #checkout-page .col-sm-9,
  html.mz #checkout-page .col-sm-3,
  html.mz #checkout-page .left-side {
    width: 100%;
    float: none;
  }

  html.mz .jumbotron,
  html.mz .jumbotron iframe {
    width: 100% !important;
    max-width: 100%;
  }

  html.mz .modal-dialog {
    width: auto;
    margin: 12px;
  }

  html.mz .site-header__top .btn {
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  html.mz,
  html.mz body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  html.mz .site-header {
    padding-top: env(safe-area-inset-top, 0);
  }

  html.mz .site-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.mz .mz-header-phone {
    width: 100%;
    justify-content: center;
  }

  html.mz #top-user-panel .btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  html.mz .mz-catalog__head,
  html.mz .mz-pagehead {
    flex-direction: column;
    align-items: flex-start;
  }

  html.mz #view-product .col-sm-4,
  html.mz #view-product .col-sm-8,
  html.mz .user-page [class*="col-sm-"],
  html.mz .user-page [class*="col-md-"] {
    width: 100%;
    float: none;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
  }

  html.mz .product-main-image img,
  html.mz .the-image {
    width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: contain;
  }

  html.mz .table-products {
    min-width: 520px;
  }

  html.mz .login-help .btn,
  html.mz .login-help a {
    display: block;
    width: 100%;
    margin: 8px 0;
  }

  html.mz .body,
  html.mz .well,
  html.mz .well-sm {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html.mz #share_board {
    max-height: 85vh;
    overflow-y: auto;
    margin-top: 6vh !important;
  }

  html.mz .g-recaptcha {
    transform-origin: center top;
  }

  html.mz iframe,
  html.mz .swiper-container {
    max-width: 100%;
  }

  html.mz .brands .list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  html.mz #small_carousel .carousel-inner {
    overflow: hidden;
  }
}

@media (max-width: 374px) {
  html.mz .products > .product-list,
  html.mz .products > .mz-card-col {
    width: 100%;
  }

  html.mz .products .product-list .img-container,
  html.mz .mz-card__media {
    height: 180px;
  }
}

html.mz[data-theme="dark"] #wrapper {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(255, 152, 0, 0.14), transparent 58%),
    radial-gradient(800px 380px at 92% 8%, rgba(255, 152, 0, 0.06), transparent 50%),
    var(--mz-bg);
}

@media (prefers-reduced-motion: reduce) {
  html.mz,
  html.mz * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Persian RTL: all UI is right-to-left except numeric/English inputs */
html.mz,
html.mz body {
  direction: rtl;
  text-align: right;
}

html.mz p,
html.mz li,
html.mz label,
html.mz legend,
html.mz h1,
html.mz h2,
html.mz h3,
html.mz h4,
html.mz h5,
html.mz h6,
html.mz .navbar .navbar-nav a,
html.mz .site-logo-text,
html.mz .products .product-list h2,
html.mz .products .product-list h5,
html.mz .swiper-container h4,
html.mz #view-product .row-info,
html.mz .description-pre,
html.mz .alert,
html.mz .dynPage .text-content,
html.mz .blog-description,
html.mz .mz-hero__copy,
html.mz .mz-cats,
html.mz .nice-select,
html.mz .nice-select .list,
html.mz .nice-select .option {
  direction: rtl;
  text-align: right;
}

html.mz input,
html.mz textarea,
html.mz select,
html.mz .form-control {
  direction: rtl;
  text-align: right;
}

html.mz input[type="email"],
html.mz input[type="password"],
html.mz input[type="tel"],
html.mz input[type="number"],
html.mz input[type="url"],
html.mz input[dir="ltr"],
html.mz textarea[dir="ltr"],
html.mz a[dir="ltr"],
html.mz .mz-header-phone,
html.mz #to_copy {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

html.mz input::placeholder,
html.mz textarea::placeholder {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: isolate;
}

html.mz .price,
html.mz .price-down,
html.mz .quantity-num,
html.mz .mz-cart-count,
html.mz .mz-header-phone {
  unicode-bidi: isolate;
  direction: ltr;
}
