﻿.ic-cir {
  min-height: calc(100dvh - 12px);
  padding-bottom: 88px;
  background: #fff;
}

body.ic-circuit {
  background: #fff;
}


/* ── Header (parity با CircuitScreen / CircuitScreenStyle) ── */
.ic-cir-head-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  overflow: visible;
}

/* نام + کاربرد — مثل titleContainer / mainTitle / subTitle در اپ */
.ic-cir-title-block {
  padding: 12px 17px;
  margin-bottom: -10px;
  text-align: center;
}

.ic-cir-main-title {
  margin: 0 0 8px;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  color: #2d3a4a;
  text-align: center;
}

.ic-cir-sub-title {
  margin: 0;
  padding: 0 12px;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  line-height: 22px;
  color: #919aaf;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Web mirrors app L/R: close on right, cart on left (opposite of RN RTL). */
.ic-cir-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  direction: ltr;
}

.ic-cir-head-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 30px;
  background: #f1f1f3;
  color: #2d3a4a;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
}

.ic-cir-head-btn--plain {
  background: transparent;
  width: 42px;
  height: 42px;
}

.ic-cir-head-btn--plain .ic-icon {
  width: 20.5px;
  height: 20.5px;
  background-color: #2d3a4a;
}

.ic-cir-head-btn--close {
  color: #4c5662;
}

.ic-cir-head-btn--close .ic-icon {
  background-color: #4c5662;
}

.ic-cir-head-btn--cart .ic-icon {
  width: 18px;
  height: 18px;
  background-color: #2d3a4a;
}

.ic-cir-head-btn.is-muted,
.ic-cir-head-btn:disabled {
  color: #919aaf;
  cursor: default;
  opacity: 1;
}

.ic-cir-head-btn.is-muted .ic-icon,
.ic-cir-head-btn:disabled .ic-icon {
  background-color: #919aaf !important;
}

.ic-cir-head-btn.is-active {
  background: transparent;
}

.ic-cir-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #4e91e6;
  color: #fff;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
}

.ic-cir-cart-badge[hidden] {
  display: none !important;
}

.ic-cir-cart-notify[hidden] {
  display: none !important;
}

.ic-cir-cart-notify {
  position: absolute;
  z-index: 10000;
  max-width: 92%;
  padding: 8px 14px;
  border-radius: 144px;
  pointer-events: none;
  opacity: 0;
}

.ic-cir-cart-notify.is-go-cart {
  background: #34a853;
}

.ic-cir-cart-notify.is-already-in-cart {
  background: #2d3a4a;
}

.ic-cir-cart-notify.is-visible {
  animation:
    ic-cir-cart-notify-fade-in 400ms ease forwards,
    ic-cir-cart-notify-float 2s ease-in-out 400ms infinite;
}

.ic-cir-cart-notify.is-hiding {
  animation: ic-cir-cart-notify-fade-out 400ms ease forwards;
}

.ic-cir-cart-notify-arrow {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 0;
  height: 0;
  background: transparent;
  border-style: solid;
  border-width: 0 8px 8px;
  border-color: transparent transparent #34a853;
  transform: translateX(-40px);
}

.ic-cir-cart-notify.is-already-in-cart .ic-cir-cart-notify-arrow {
  border-bottom-color: #2d3a4a;
  transform: translateX(-63px);
}

.ic-cir-cart-notify-text {
  display: block;
  color: #fff;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

@keyframes ic-cir-cart-notify-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ic-cir-cart-notify-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ic-cir-cart-notify-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* â”€â”€ Hero image â”€â”€ */
.ic-cir-hero {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin-bottom: 0;
}

.ic-cir-hero-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.ic-cir-hero-zoom > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ic-cir-hero-locked {
  cursor: pointer;
}

.ic-cir-hero.is-locked > .ic-cir-hero-zoom > img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.ic-cir-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.ic-cir-lock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  padding: 16px 20px;
  border-radius: 15px;
  max-width: 86%;
}

.ic-cir-lock-icon {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin-bottom: 15px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(42%) sepia(72%) saturate(1200%) hue-rotate(190deg) brightness(95%) contrast(90%);
}

.ic-cir-lock-icon.is-shake {
  animation: ic-cir-lock-shake 0.25s ease;
}

@keyframes ic-cir-lock-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.ic-cir-lock-text {
  color: #4289e1;
  font-size: 10.5px;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

/* â”€â”€ Sales pill â”€â”€ */
.ic-cir-sales {
  display: flex;
  justify-content: center;
  height: 35px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 32px;
  padding: 0 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 3;
}

.ic-cir-sales.is-visible {
  opacity: 1;
}

.ic-cir-sales[hidden] {
  display: none !important;
}

.ic-sales-pop-track {
  position: relative;
  width: min(100%, 320px);
  height: 35px;
  overflow: hidden;
}

.ic-sales-pop-pill {
  position: absolute;
  top: 0;
  left: 50%;
  width: fit-content;
  max-width: calc(100% - 8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 4px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: #8c8c8c;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* هر دو pill همیشه translate(-50%, y) — بدون پرش افقی هنگام swap */
.ic-sales-pop-pill.is-current {
  transform: translate(-50%, 0);
  z-index: 2;
}

.ic-sales-pop-pill.is-next {
  transform: translate(-50%, 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.ic-sales-pop-track.is-animating .ic-sales-pop-pill.is-current {
  transform: translate(-50%, -100%);
}

.ic-sales-pop-track.is-animating .ic-sales-pop-pill.is-next {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.ic-sales-pop-track.is-resetting .ic-sales-pop-pill {
  transition: none !important;
}

.ic-sales-pop-track.is-resetting .ic-sales-pop-pill.is-next {
  transform: translate(-50%, 100%);
  opacity: 0;
  visibility: hidden;
}

.ic-sales-pop-text {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.ic-sales-pop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  font-size: 10.5px;
  flex-shrink: 0;
}

/* â”€â”€ Files + Lorex combined card â”€â”€ */
.ic-cir-files-wrap {
  background: #fafbff;
  border-radius: 24px;
  margin: 0 16px 14px;
  padding: 20px 20px 22px;
}

.ic-cir-files-wrap--no-files {
  padding-top: 32px;
  padding-bottom: 32px;
}

.ic-cir-files-wrap--no-files .ic-cir-action-btns {
  margin-top: 0;
}

.ic-cir-unofficial {
  background: #f8f9ff;
  border-radius: 24px;
  margin: 0 16px 24px;
  padding: 17px 24px 0;
  text-align: center;
}

.ic-cir-unofficial-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-cir-unofficial-desc {
  margin: 0 0 15px;
  font-size: 11.2px;
  color: #2d3a4a;
  line-height: 28px;
}

.ic-cir-unofficial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  gap: 4px;
  width: 92%;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 16.5px 24px;
  border: 0;
  border-radius: 17px;
  background: #e9f0f8;
  color: #4e91e6;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.ic-cir-unofficial-btn:disabled {
  cursor: default;
}

.ic-cir-unofficial-btn.is-submitted {
  background: #e9eef2;
  color: #959ba2;
}

.ic-cir-unofficial-btn-icon {
  transform: rotate(180deg);
  filter: brightness(0) saturate(100%) invert(47%) sepia(72%) saturate(456%) hue-rotate(182deg) brightness(96%) contrast(92%);
}

.ic-cir-unofficial-btn.is-submitted .ic-cir-unofficial-btn-icon {
  display: none;
}

.ic-cir-lorex-box {
  background: #f0f5ff;
  border-radius: 20px;
  padding: 20px 18px 16px;
  margin-bottom: 0;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

a.ic-cir-lorex-box:hover {
  background: #e4eeff;
}

.ic-cir-lorex-text {
  display: block;
  font-size: 12px;
  color: #384152;
  line-height: 24px;
  min-height: 24px;
}

.ic-cir-lorex-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #4e87e6;
  font-size: 10px;
  direction: ltr;
}

.ic-cir-lorex-cta-label {
  color: #4e87e6;
  font-size: 10px;
}

.ic-cir-lorex-arrow {
  transform: rotate(180deg);
  opacity: 0.75;
  flex-shrink: 0;
}

/* ── File boxes + action buttons (CircuitBoxs parity) ── */
.ic-cir-files {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 10px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.ic-cir-file {
  grid-column: span 2;
  width: 100%;
  max-width: 104px;
  justify-self: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ic-cir-files--wide .ic-cir-file--wide {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
  justify-self: stretch;
}

.ic-cir-files--wide .ic-cir-file--wide .ic-cir-file-box {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  height: 90px;
  margin-bottom: 10px;
}

.ic-cir-files--ardino {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  direction: rtl;
}

.ic-cir-files--ardino .ic-cir-file {
  grid-column: auto;
  flex: 0 1 104px;
  width: 100%;
  max-width: 104px;
}

.ic-cir-files--ardino .ic-cir-file-box {
  max-width: 104px;
  border-radius: 20px;
  font-size: 24px;
  margin-bottom: 14px;
}

@media (max-width: 800px) {
  .ic-cir-files--ardino .ic-cir-file-box {
    border-radius: 14px;
    font-size: 16px;
  }

  .ic-cir-files--ardino .ic-cir-file-box-label {
    font-size: 16px;
  }

  .ic-cir-files--ardino .ic-cir-file-name {
    font-size: 9px;
  }
}

.ic-cir-files--small {
  column-gap: 8px;
}

.ic-cir-files--small .ic-cir-file {
  grid-column: span 1;
  max-width: 78px;
}

.ic-cir-files--small .ic-cir-file-box {
  max-width: 70px;
  border-radius: 16px;
  font-size: 16px;
  margin-bottom: 10px;
}

.ic-cir-files--small .ic-cir-file-lock-icon.ic-icon {
  width: 12px !important;
  height: 12px !important;
}

.ic-cir-file-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 104px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 20px;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 700;
}

.ic-cir-file-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ic-cir-file-lock-icon.ic-icon {
  background-color: var(--lock-color, #ca93d9) !important;
}

.ic-cir-file.is-unavailable {
  cursor: default;
}

.ic-cir-file.is-unavailable .ic-cir-file-box-label,
.ic-cir-file.is-unavailable .ic-cir-file-name {
  color: #cbcbcb !important;
}

.ic-cir-file-box-label {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-weight: 700;
}

.ic-cir-file-name {
  display: block;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 10px;
  color: #6a81a9;
}

.ic-cir-action-btns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 10px;
  padding: 0 4px;
  direction: rtl;
}

.ic-cir-action-btn {
  grid-column: span 3;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #E8E9EC;
  border-radius: 24px;
  padding: 12px 12px;
  background: #fff;
  cursor: pointer;
  direction: rtl;
  gap: 0;
  position: relative;
  transition: opacity 0.15s;
  min-height: 74px;
}

.ic-cir-action-btn.is-unavailable {
  opacity: 1;
  cursor: default;
  background: #fff;
}

.ic-cir-action-btn.is-unavailable .ic-cir-action-btn-icon {
  background: #f1f1f1 !important;
}

.ic-cir-action-btn.is-unavailable .ic-cir-action-btn-title,
.ic-cir-action-btn.is-unavailable .ic-cir-action-btn-sub {
  color: #cbcbcb;
}

.ic-cir-action-btn.is-unavailable .ic-cir-action-btn-icon .ic-icon {
  background-color: #cbcbcb !important;
}

.ic-cir-action-btn.is-disabled {
  opacity: 0.5;
  cursor: default;
}

.ic-cir-action-btn-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  left: 8px;
}

.ic-cir-action-btn-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 2px 4px 62px;
}

.ic-cir-action-btn-title {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  color: #8b909c;
  text-align: right;
  margin-bottom: 0;
}

.ic-cir-action-btn-sub {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 10.5px;
  color: #8b909c;
  text-align: right;
}

.ic-cir-action-btn-icon-img {
  display: block;
  object-fit: contain;
}

.ic-cir-action-btn-icon .ic-icon {
  background-color: #fff !important;
}

/* ── Actions info row (دسته / نظر / نفر / کد) ── */
.ic-cir-actions {
  display: flex;
  align-items: center;
  margin: 0 16px 24px;
  background: #f9fafd;
  border-radius: 20px;
  padding: 24px 9px;
  direction: rtl;
}

.ic-cir-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 10px;
  color: #6a81a9;
  text-align: center;
  text-decoration: none;
}

.ic-cir-action-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.ic-cir-action span {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  line-height: 1.4;
}

.ic-cir-action.is-link span {
  display: block;
  width: 100%;
  padding: 0 7px;
}

.ic-cir-action-divider {
  width: 1px;
  height: 40px;
  background: #E8E9EC;
  flex-shrink: 0;
}

.ic-cir-action.is-link {
  color: #6a81a9;
}

.ic-cir-section {
  padding: 0 16px 24px;
}

.ic-cir-section h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
  text-align: right;
}

.ic-cir-section--ghetes h2 {
  margin-bottom: 22px;
}

.ic-cir-desc h2 {
  text-align: center;
}

.ic-cir-desc-text {
  text-align: center;
}

.ic-cir-desc-text p {
  margin: 0 0 5px;
  font-size: 12.2px;
  line-height: 32px;
  color: #384152;
}

.ic-cir-read-more {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4e91e6;
  font-family: inherit;
  font-size: 12.2px;
  line-height: 32px;
  cursor: pointer;
  vertical-align: baseline;
}

.ic-cir-read-more[hidden] {
  display: none !important;
}

button.ic-cir-read-more[data-cir-desc-toggle]:not([hidden]) {
  display: block;
  margin: 8px auto 0;
  text-align: center;
}

.ic-cir-read-more--section {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  text-align: right;
}

.ic-cir-analysis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 88%;
  max-width: 340px;
  margin: 20px auto 0;
  padding: 20px 40px;
  border-radius: 16px;
  background: #f2f2ff;
  color: #7f7fbd;
  font-size: 11.5px;
  text-decoration: none;
  position: relative;
}

.ic-cir-analysis-badge {
  position: absolute;
  top: 9px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e4e7ff;
  color: #7f7fbd;
  font-size: 8.5px;
}

.ic-cir-analysis-arrow {
  transform: none;
}

.ic-cir-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ic-cir-list li {
  margin: 0 0 10px;
  font-size: 12.2px;
  line-height: 24px;
  color: #5a6978;
  text-align: right;
}

.ic-cir-components {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  direction: rtl;
  -webkit-overflow-scrolling: touch;
}

.ic-cir-components::-webkit-scrollbar {
  display: none;
}

.ic-cir-comp {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2d3a4a;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  direction: rtl;
}

.ic-cir-comp-pill {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 55px;
  padding: 0 14px 0 16px;
  border-radius: 26px;
  min-width: 0;
  width: max-content;
}

.ic-cir-comp-name {
  font-size: 10.5px;
  line-height: 1.3;
  color: #2d3a4a;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  margin-inline: 4px 2px;
}

.ic-cir-comp-dot {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ic-cir-comp-dot img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  display: block;
}

.ic-cir-montaj-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: 76px;
  padding: 13px 16px;
  box-sizing: border-box;
  background: #fff;
  border-top: 0.5px solid #f0f0f0;
  direction: ltr;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

body.ic-cmt-composer-open .ic-cir-montaj-bar,
.ic-cir-montaj-bar.is-away {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.ic-cir-montaj-bar-inner {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 50px;
  max-width: 640px;
  margin: 0 auto;
}

/* قیمت + زیرنویس — سمت چپ */
.ic-cir-montaj-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  order: 1;
  text-align: left;
}

.ic-cir-montaj-price {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  padding-left: 5px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #2d3a4a;
  line-height: 1.25;
  white-space: nowrap;
  unicode-bidi: isolate;
}

.ic-cir-montaj-price-num,
.ic-cir-montaj-price-unit {
  display: inline-block;
  unicode-bidi: isolate;
}

.ic-cir-montaj-sub {
  display: block;
  margin: 2px 0 0;
  padding-left: 7px;
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  color: #919aaf;
  line-height: 1.35;
  white-space: nowrap;
}

/* دکمه / تعداد — سمت راست */
.ic-cir-montaj-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  order: 2;
  min-width: 0;
}

.ic-cir-montaj-add {
  position: relative;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 210px;
  max-width: 280px;
  min-height: 50px;
  margin-left: auto;
  padding: 14px 28px;
  border: 0;
  border-radius: 14px;
  background: #2b75f0;
  color: #fff;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.ic-cir-montaj-add-label {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.ic-cir-montaj-add[hidden] {
  display: none !important;
}

.ic-cir-montaj-add.is-loading .ic-cir-montaj-add-label {
  visibility: hidden;
}

.ic-cir-montaj-dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 28px;
  line-height: 0;
  color: #fff;
  pointer-events: none;
}

.ic-cir-montaj-dots span {
  display: block;
  line-height: 0;
  transform: translateY(-5px);
  opacity: 0.3;
  animation: ic-cir-montaj-dot 1.2s infinite ease-in-out;
}

.ic-cir-montaj-dots[hidden] {
  display: none !important;
}

.ic-cir-montaj-dots span:nth-child(2) { animation-delay: 0.2s; }
.ic-cir-montaj-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ic-cir-montaj-dot {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.ic-cir-montaj-qty {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  height: 44px;
  margin-left: auto;
  gap: 0;
}

.ic-cir-montaj-qty[hidden] {
  display: none !important;
}

.ic-cir-montaj-qty-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #f0f5ff;
  color: #2b75f0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ic-cir-montaj-qty-btn.ic-cir-montaj-plus {
  margin-left: 20px;
}

.ic-cir-montaj-trash {
  background: #fff5f5;
}

.ic-cir-montaj-trash[hidden],
.ic-cir-montaj-minus[hidden] {
  display: none !important;
}

.ic-cir-montaj-trash-icon {
  width: 18px;
  height: 18px;
  filter: invert(37%) sepia(86%) saturate(2464%) hue-rotate(343deg) brightness(98%) contrast(92%);
}

.ic-cir-montaj-qty-num {
  width: 35px;
  height: 35px;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #2d3a4a;
  text-align: center;
}

body.ic-circuit.has-cir-montaj-bar .ic-cir-body {
  padding-bottom: 90px;
}

body.ic-circuit.has-cir-montaj-bar.ic-cmt-composer-open .ic-cir-body {
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

.ic-cir-made {
  margin: 0 16px 10px;
  text-align: center;
}

.ic-cir-made-title {
  margin: 12px 0 30px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
  line-height: 1.5;
}

.ic-cir-made-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 10px;
}

.ic-cir-made-row {
  display: flex;
  justify-content: center;
  gap: 3%;
  width: 100%;
  margin-bottom: 15px;
}

/* مثل اپ: ردیف آخر با ۱ کارت = عرض کامل (سه پروژه)، با ۲ کارت = ۵۰٪ */
.ic-cir-made-row--1 .ic-cir-made-card {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
}

.ic-cir-made-row--2 .ic-cir-made-card {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

.ic-cir-made-row--3 .ic-cir-made-card {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

.ic-cir-made-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.ic-cir-made-media {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: #ececec;
}

.ic-cir-made-media img,
.ic-cir-made-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-cir-made-media video {
  pointer-events: none;
}

.ic-cir-made-media video.is-sakht-thumb-loading {
  opacity: 0;
}

.ic-cir-made-media img.ic-sakht-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-cir-made-media.is-sakht-thumb-failed {
  background: #e8edf3;
}

.ic-cir-made-media video.is-sakht-thumb-failed,
.ic-cir-made-media video[hidden] {
  display: none !important;
}

.ic-cir-made-media .ic-play {
  border-radius: 10px;
}

.ic-cir-made-missing {
  display: block;
  width: 100%;
  height: 100%;
  background: #ececec;
}

.ic-cir-made-name {
  margin: 5px 0 0;
  font-size: 10px;
  color: #2d3a4a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-cir-made-all {
  display: inline-block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #4e91e6;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.ic-cir-built {
  margin: 0 16px 20px;
  padding: 18px;
  border-radius: 18px;
  background: #f6f9ff;
  text-align: center;
}

.ic-cir-built h2 {
  margin: 0 0 8px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-cir-built p {
  margin: 0 0 14px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 11px;
  color: #6a81a9;
}

.ic-cir-built-btn {
  border: 0;
  border-radius: 14px;
  background: #4e91e6;
  color: #fff;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}

.ic-cir-copy {
  margin: 28px 20px 15px;
  padding: 22px;
  border-radius: 14px;
  background: #f8f9fa;
}

.ic-cir-copy p {
  margin: 0;
  font-size: 10.7px;
  line-height: 28px;
  color: #7185a9;
  text-align: center;
  padding: 0 5px;
}

.ic-cir-similar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ic-cir-similar::-webkit-scrollbar {
  display: none;
}

.ic-cir-similar-card {
  flex: 0 0 140px;
  color: inherit;
  text-decoration: none;
}

.ic-cir-similar-card img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.ic-cir-similar-card span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #2d3a4a;
  text-align: right;
  line-height: 18px;
}

.ic-cir-lorex-wrap {
  padding: 0 16px 4px;
  margin-bottom: 18px;
}

.ic-cir-section.ic-cir-desc {
  padding-top: 4px;
}

.ic-cir-comments {
  padding: 0;
}

.ic-cir-comments .ic-cmt-show-all {
  margin-top: 4px;
  margin-bottom: 0;
}

.ic-cir-comment header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11.2px;
  color: #92a5c7;
}

.ic-cir-comment header strong {
  color: #2d3a4a;
  font-size: 12.2px;
}

.ic-cir-comment-star {
  width: 12px;
  height: 12px;
  background: #4e91e6;
  mask-image: url('../icons/star.png');
  -webkit-mask-image: url('../icons/star.png');
  mask-size: contain;
  -webkit-mask-size: contain;
}

.ic-cir-comment p {
  margin: 0;
  font-size: 11.7px;
  line-height: 22px;
  color: #3d4651;
  text-align: right;
}

.ic-cir-all-comments {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: #f6f8fc;
  color: #4e91e6;
  font-size: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
}

.ic-cir-file-modal[hidden],
.ic-cir-toast[hidden] {
  display: none !important;
}

.ic-cir-file-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic-cir-file-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.ic-cir-file-modal-card {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: #fff;
  border-radius: 30px;
  padding: 28px 28px 24px;
  direction: rtl;
  animation: ic-modal-pop 0.22s ease;
}

@keyframes ic-modal-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Ù‡Ø¯Ø± */
.ic-cir-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 18px;
}

.ic-cir-modal-close {
  position: absolute;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #f1f1f3;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic-cir-modal-close .ic-icon {
  background-color: #4c5662;
}

.ic-cir-modal-title {
  margin: 0;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #2d3a4a;
  text-align: center;
  flex: 1;
}

/* تصویر */
.ic-cir-modal-media {
  width: 75%;
  margin: 0 auto 16px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ic-cir-modal-media-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 16px;
  z-index: 1;
}

.ic-cir-modal-media-loading[hidden] {
  display: none !important;
}

.ic-cir-modal-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e9f2;
  border-top-color: #4e91e6;
  border-radius: 50%;
  animation: ic-cir-modal-spin 0.7s linear infinite;
}

@keyframes ic-cir-modal-spin {
  to { transform: rotate(360deg); }
}

.ic-cir-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

/* placeholder Ù…ØªÙ†ÛŒ */
.ic-cir-modal-media-placeholder {
  font-size: 11px;
  color: #919aaf;
  text-align: center;
  padding: 16px;
  line-height: 1.7;
}

/* ØªÙˆØ¶ÛŒØ­Ø§Øª */
.ic-cir-modal-desc {
  text-align: center;
  margin-bottom: 18px;
}

.ic-cir-modal-desc p {
  margin: 0 0 4px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 10.5px;
  color: #384152;
  line-height: 1.7;
}

/* ÙÙˆØªØ± */
.ic-cir-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ic-cir-modal-discount {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 11px;
}

.ic-cir-modal-discount[hidden] { display: none; }

[data-cir-modal-orig-price] {
  color: #919aaf;
  text-decoration: line-through;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

.ic-cir-modal-discount-sep { color: #c8cfd8; }

.ic-cir-modal-discount-label {
  color: #16a34a;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

/* Ø¯Ú©Ù…Ù‡ Ø§ØµÙ„ÛŒ (Ø¯Ø±ÛŒØ§ÙØª / Ù‚ÛŒÙ…Øª) */
.ic-cir-modal-btn-primary {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #4e91e6;
  color: #fff;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 15px;
  cursor: pointer;
  transition: opacity 0.15s;
  text-align: center;
}

.ic-cir-modal-btn-primary.is-limit {
  background: #eea864;
}

.ic-cir-modal-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Ø¯Ú©Ù…Ù‡ Ø«Ø§Ù†ÙˆÛŒ (Ø§Ø´ØªØ±Ø§Ú©) */
.ic-cir-modal-btn-sub {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #f0f5ff;
  color: #4e91e6;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  text-align: center;
}

.ic-cir-modal-btn-sub[hidden] { display: none; }

.ic-cir-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 150;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(45, 58, 74, 0.92);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 800px), (min-width: 801px) {
  .ic-cir {
    min-height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0px));
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ØµÙØ­Ù‡ ÙˆØ±Ú©Ø´Ø§Ù¾ Ø¢Ù…ÙˆØ²Ø´ÛŒ  (ic-ws)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
