﻿@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/IRANYekanRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/IRANYekanBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanFa";
  src: url("../fonts/IRANYekanRegularMobile(FaNum).ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanFa";
  src: url("../fonts/IRANYekanMobileBold(FaNum).ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ic-text: #2d3a4a;
  --ic-muted: #8e8e93;
  --ic-bg: #ffffff;
  --ic-soft: #f5f5f5;
  --ic-line: #ececee;
  --ic-radius: 16px;
  --ic-wrap: 1120px;
  --ic-header: 72px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.icmadar {
  margin: 0;
  background: var(--ic-bg);
  color: var(--ic-text);
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* وردپرس برای نوار ادمین margin-top روی html می‌گذارد — کل قاب پایین می‌آید */
html,
html.wp-toolbar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.icmadar,
body.icmadar.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ic-phone-shell,
.ic-site {
  margin-top: 0;
  padding-top: 0;
}

body.icmadar #wpadminbar {
  display: none !important;
}

html.ic-scroll-lock,
body.ic-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.ic-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

a,
button,
input,
textarea,
select,
label,
summary,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "IRANYekan", Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; }

.ic-toman {
  display: inline-flex;
  flex-direction: row;
  direction: rtl;
  align-items: baseline;
  gap: 0.3em;
  white-space: nowrap;
  unicode-bidi: isolate;
}

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

/* قیمت صفر → «رایگان» سبز، مثل اپ */
.ic-free {
  display: inline-block;
  color: #43a047;
  unicode-bidi: isolate;
}

.ic-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ic-skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  inset: 8px auto auto 8px;
  padding: 8px 12px;
  background: var(--ic-text);
  color: #fff;
  z-index: 1000;
}

.ic-wrap {
  width: min(var(--ic-wrap), calc(100% - 32px));
  margin-inline: auto;
}

.ic-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.ic-header-inner {
  min-height: var(--ic-header);
  display: flex;
  align-items: center;
  gap: 20px;
}

.ic-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.ic-brand-mark,
.ic-brand .custom-logo-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--ic-text);
}

.ic-brand .custom-logo { max-height: 36px; width: auto; }

.ic-brand-sub {
  font-size: 11px;
  color: var(--ic-muted);
}

.ic-nav { display: flex; }

.ic-menu,
.ic-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.ic-menu a,
.ic-footer-menu a { color: var(--ic-text); font-size: 14px; }

.ic-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ic-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 30px;
  background: #f1f1f3;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ic-text);
}

.ic-icon {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ic-acc-row-icon .ic-icon {
  color: #919aaf;
}

/* ── Shared in-app page header (account sub-pages, cart, category, …) ── */
.ic-cat-header {
  direction: ltr;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 0;
  background: #fff;
}

.ic-cat-title {
  flex: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  color: var(--ic-text);
}

.ic-cat-header-space {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ic-cat-search,
.ic-cat-close,
.ic-cat-back,
.ic-cat-back-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ic-text);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.ic-cat-back[hidden],
.ic-cat-close[hidden],
.ic-cat-header-space[hidden] {
  display: none !important;
}

.ic-cat-search {
  margin-left: 5px;
}

.ic-forum-filter-btn {
  position: relative;
}

.ic-forum-filter-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #2d3a4a;
  background: transparent;
  border: 0;
}

.ic-forum-filter {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ic-forum-filter-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.ic-forum-filter-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 16px 24px;
  padding: 20px 16px 12px;
  border-radius: 20px;
  background: #fff;
}

.ic-forum-filter-card h2 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #2d3a4a;
}

.ic-forum-filter-option {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  background: #f8f9fb;
  color: #2d3a4a;
  font-family: inherit;
  font-size: 13px;
  text-align: right;
  cursor: pointer;
}

.ic-forum-filter-option span:first-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #c5ced9;
  background: #fff;
}

.ic-forum-radio {
  display: block;
}

.ic-forum-filter-option.is-selected .ic-forum-radio {
  border-color: #4e91e6;
  background: radial-gradient(circle, #4e91e6 0 5px, #fff 6px);
}

.ic-forum-filter[hidden],
.ic-forum-filter-dot[hidden] {
  display: none !important;
}

.ic-pur-more-btn {
  min-width: 160px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #f1f6ff;
  color: #4e91e6;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ic-pur-more-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.ic-ord-back {
  display: inline-block;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #f1f6ff;
  color: #4e91e6;
  text-decoration: none;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ic-pur-loading,
.ic-ord-loading,
.ic-msg-loading,
.ic-wal-loading,
.ic-inv-loading,
.ic-prj-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 16px;
  color: #2d3a4a;
  font-size: 12px;
}

.ic-pur-spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border: 3px solid #e9f0f8;
  border-top-color: #4e91e6;
  border-radius: 50%;
  animation: ic-spin 0.8s linear infinite;
}

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

.ic-pur-error,
.ic-ord-error,
.ic-msg-error,
.ic-wal-error,
.ic-inv-error,
.ic-prj-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
  color: #919aaf;
  font-size: 13px;
}

.ic-pur-error p,
.ic-ord-error p,
.ic-msg-error p,
.ic-wal-error p,
.ic-inv-error p,
.ic-prj-error p {
  margin: 0;
}

.ic-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--ic-text);
  color: #fff;
  font-size: 10px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  display: grid;
  place-items: center;
}

.ic-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: var(--ic-soft);
  padding: 12px 11px;
  cursor: pointer;
}

.ic-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ic-text);
  margin: 5px 0;
  border-radius: 2px;
}

.ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.ic-btn-sm { min-height: 42px; padding: 0 14px; font-size: 13px; }

.ic-btn-primary { background: var(--ic-text); color: #fff; }

.ic-btn-ghost { background: var(--ic-soft); color: var(--ic-text); }

.ic-hero {
  padding: 56px 0 28px;
}

.ic-hero-inner { text-align: center; max-width: 720px; margin-inline: auto; }

.ic-hero h1 { font-size: clamp(26px, 4vw, 40px); }

.ic-kicker {
  color: var(--ic-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.ic-lead { color: var(--ic-muted); font-size: 15px; }

.ic-hero-actions,
.ic-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.ic-section { padding: 28px 0; }

.ic-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ic-section-head h1,
.ic-section-head h2 { margin: 0; font-size: 20px; }

.ic-section-head p { margin: 0; color: var(--ic-muted); font-size: 13px; }

.ic-link { color: var(--ic-muted); font-size: 13px; }

.ic-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ic-chip {
  background: var(--ic-soft);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ic-chip span {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: var(--ic-muted);
  font-size: 12px;
}

.ic-cards,
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ic-card-item,
ul.products li.product {
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}

.ic-card {
  display: block;
  background: #fff;
  border-radius: var(--ic-radius);
  overflow: hidden;
}

.ic-card-media {
  background: var(--ic-soft);
  border-radius: var(--ic-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ic-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-card-title {
  font-size: 13px;
  margin: 10px 4px 4px;
  min-height: 2.6em;
}

.ic-card-price,
.woocommerce .price {
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  color: var(--ic-muted);
  font-size: 13px;
  margin: 0 4px 4px;
}

.ic-app-cta {
  margin: 24px 0 0;
  padding: 36px 0;
  background: var(--ic-soft);
}

.ic-app-cta-inner,
.ic-app-cta--product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ic-app-cta--product {
  background: var(--ic-soft);
  border-radius: var(--ic-radius);
  padding: 24px;
  margin: 28px 0;
}

.ic-app-cta-text h2 { font-size: 20px; }

.ic-app-cta-text p { color: var(--ic-muted); margin: 0; }

.ic-page { padding: 32px 0 48px; }

.ic-article h1 { font-size: 28px; }

.ic-prose p { margin-bottom: 16px; }

.ic-post-list { display: grid; gap: 12px; }

.ic-post-item {
  display: block;
  background: var(--ic-soft);
  border-radius: var(--ic-radius);
  padding: 18px;
}

.ic-post-item h2 { font-size: 16px; margin: 0 0 6px; }

.ic-empty { color: var(--ic-muted); }

.ic-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ic-feature {
  background: var(--ic-soft);
  border-radius: var(--ic-radius);
  padding: 20px;
}

.ic-feature h2 { font-size: 16px; }

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

.ic-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.ic-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 58, 74, .45);
}

.ic-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 32px));
  margin: 18vh auto 0;
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
}

.ic-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ic-soft);
  font-size: 22px;
  cursor: pointer;
  color: var(--ic-text);
}

.ic-product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 24px;
}

.woocommerce div.product .product_title {
  font-size: 24px;
  margin-bottom: 12px;
}

.woocommerce div.product .woocommerce-product-gallery {
  margin: 0;
}

.woocommerce-tabs {
  margin-top: 12px;
}

.woocommerce-Tabs-panel {
  padding: 16px 0 8px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--ic-soft);
  border: 0;
  border-radius: 12px;
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 8px 14px;
  font-size: 13px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--ic-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }

.woocommerce div.product form.cart {
  margin-top: 16px;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce button.button.alt {
  background: var(--ic-text);
  color: #fff;
  border-radius: 16px;
  font-weight: 700;
  padding: 12px 18px;
}

.woocommerce a.added_to_cart { margin-right: 8px; }

.woocommerce .woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--ic-muted);
  padding: 16px 0 0;
}

.woocommerce-pagination { margin: 28px 0; text-align: center; }

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
  display: inline-flex;
  gap: 6px;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ic-soft);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 16px; }

.related.products > h2,
.upsells.products > h2 {
  font-size: 20px;
  margin: 8px 0 16px;
}

@media (max-width: 1024px), (min-width: 801px) {
  .ic-cards,
  ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px), (min-width: 801px) {
  .ic-nav {
    display: none;
    position: absolute;
    top: var(--ic-header);
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--ic-line);
    padding: 12px 16px 20px;
  }

  body.ic-nav-open .ic-nav { display: block; }

  .ic-menu { flex-direction: column; gap: 12px; }

  .ic-menu-toggle { display: block; }

  .ic-header-download { display: none; }

  .ic-cards,
  ul.products,
  .ic-feature-grid,
  .ic-product-top { grid-template-columns: 1fr 1fr; }

  .ic-app-cta-inner,
  .ic-app-cta--product { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 560px), (min-width: 801px) {
  .ic-cards,
  ul.products { grid-template-columns: 1fr 1fr; gap: 10px; }

  .ic-feature-grid,
  .ic-product-top { grid-template-columns: 1fr; }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ic-app-home {
  padding-top: 8px;
}

@media (max-width: 800px), (min-width: 801px) {
  body.ic-home .ic-brand-sub { display: none; }

  body.ic-home .ic-header {
    border-bottom: 0;
    background: #fff;
  }

  body.ic-home .ic-header-inner { min-height: 56px; }
}

.ic-app-home > .ic-wrap + .ic-wrap {
  margin-top: 6px;
}

.ic-home-search-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 0 10px;
  direction: ltr;
}

.ic-home-reels {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 16px;
  background: var(--ic-soft);
  color: var(--ic-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

.ic-home-reels-new-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb5d5d;
  pointer-events: none;
}

.ic-home-reels-new-dot[hidden] {
  display: none;
}

.ic-home-reels-icon {
  display: block;
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(12%) saturate(1200%) hue-rotate(182deg) brightness(95%) contrast(90%);
}

.ic-home-search {
  flex: 1;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 60px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--ic-soft);
  color: var(--ic-muted);
  font-size: 14px;
  text-decoration: none;
}

.ic-home-search > span:first-child {
  flex: 1;
  text-align: right;
}

.ic-home-search-icon {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ic-muted);
  padding: 0;
  display: grid;
  place-items: center;
}

.ic-banner {
  position: relative;
  margin: 10px 0 18px;
}

.ic-banner-viewport {
  overflow: hidden;
  border-radius: 16px;
  /* pan-y: صفحه عمودی اسکرول شود؛ افقی برای سوایپ JS آزاد بماند */
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  direction: ltr;
}

.ic-banner-viewport.is-dragging {
  cursor: grabbing;
}

.ic-banner-track {
  display: flex;
  direction: ltr;
  transition: transform .45s ease;
  will-change: transform;
}

.ic-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  overflow: hidden;
  background: var(--ic-soft);
}

a.ic-banner-slide,
a.ic-mid-banner {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

button.ic-banner-slide,
div.ic-banner-slide {
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button.ic-banner-slide {
  cursor: pointer;
  width: 100%;
}

.ic-banner-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}

.ic-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.ic-banner-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}

.ic-banner-dot.is-active {
  background: #fff;
}

.ic-rail {
  margin: 14px 0 26px;
}

.ic-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ic-rail-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--ic-text);
}

.ic-rail--product .ic-rail-head h2 {
  font-size: 15px;
}

.ic-rail-all {
  appearance: none;
  border: 0;
  background: transparent;
  color: #919aaf;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.ic-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 2px 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x pan-y;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.ic-hscroll::-webkit-scrollbar { display: none; }

.ic-hscroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.ic-hscroll a,
.ic-hscroll img {
  -webkit-user-drag: none;
  user-select: none;
}

.ic-rail-card {
  flex: 0 0 250px;
  width: 250px;
  scroll-snap-align: start;
}

.ic-rail--product .ic-rail-card {
  flex: 0 0 170px;
  width: 170px;
  text-align: center;
}

.ic-rail-media {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--ic-soft);
}

.ic-rail-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.ic-rail-media video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  background: var(--ic-soft);
  pointer-events: none;
}

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

.ic-rail-media video.is-sakht-thumb-ready,
.ic-rail-media img.ic-sakht-video-poster {
  opacity: 1;
}

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

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

/* همان لایه شفاف لیست ورکشاپ / تعمیر / کالبدشکافی */
.ic-rail--workshop .ic-rail-media::after,
.ic-rail--repair .ic-rail-media::after,
.ic-rail--teardown .ic-rail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.ic-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  display: grid;
  place-items: center;
}

.ic-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: rgba(0,0,0,.6);
  display: grid;
  place-items: center;
}

.ic-rail-name {
  display: block;
  font-size: 11px;
  color: var(--ic-text);
  text-align: center;
  padding: 12px 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-rail--product .ic-rail-name {
  margin-top: 6px;
  padding: 0 8px;
}

.ic-product-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: #f2f2f2;
  border-radius: 30px;
  overflow: hidden;
  padding: 16px;
}

.ic-product-tile img {
  width: 140px;
  height: 140px;
  max-width: 100%;
  object-fit: contain;
}

.ic-product-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

.ic-product-price {
  font-size: 12px;
  font-weight: 700;
  color: #4e91e6;
}

.ic-product-sep {
  font-size: 11px;
  color: #bdbdbd;
  padding: 0 6px;
}

.ic-product-reviews {
  font-size: 11px;
  color: #888;
}

.ic-mid-banner {
  display: block;
  margin: 14px 0 22px;
  height: 190px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ic-soft);
}

button.ic-mid-banner,
div.ic-mid-banner {
  border: 0;
  padding: 0;
  margin: 14px 0 22px;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

button.ic-mid-banner {
  cursor: pointer;
}

.ic-mid-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

a.ic-mid-banner {
  display: block;
}

.ic-special {
  background: #503add;
  margin: 14px -16px 22px;
  padding: 16px 0 20px;
}

.ic-special-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 16px;
  margin-bottom: 16px;
}

.ic-special-lead h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
}

.ic-special-head .ic-rail-all {
  color: #fff;
  margin-top: 2px;
  flex-shrink: 0;
}

.ic-special-note {
  display: block;
}

.ic-special-note span {
  display: inline-block;
  background: #5d46eb;
  color: #fff;
  font-size: 11px;
  border-radius: 99px;
  padding: 6px 12px;
}

.ic-special .ic-hscroll {
  padding-inline: 10px;
}

.ic-special-card {
  flex: 0 0 240px;
  width: 240px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

.ic-special-card img {
  width: 125px;
  height: 125px;
  margin: 0 auto 12px;
  object-fit: contain;
  transform: scale(1.6);
  transform-origin: center center;
}

.ic-special-card span {
  display: block;
  font-size: 11px;
  color: #3f3f3f;
}

.ic-audio-row {
  align-items: flex-start;
  gap: 10px;
}

.ic-audio-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}

.ic-audio-pill {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  height: 55px;
  padding: 0 8px;
  border-radius: 26px;
  background: #efefef;
  overflow: visible;
}

.ic-audio-play {
  width: 44px;
  height: 44px;
  border-radius: 30px;
  background: #33374f;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
}

.ic-audio-play .ic-audio-play-icon,
.ic-audio-play .ic-icon {
  width: 14px !important;
  height: 14px !important;
  background-color: #fff;
}

.ic-audio-title {
  font-size: 10.5px;
  color: var(--ic-text);
  padding: 0 10px;
  white-space: nowrap;
}

.ic-comments-row {
  align-items: stretch;
  gap: 14px;
  scroll-snap-type: x proximity;
}

.ic-comment-card {
  appearance: none;
  border: 0;
  flex: 0 0 calc(100% - 24px);
  width: calc(100% - 24px);
  max-width: 520px;
  height: 205px;
  padding: 16px;
  border-radius: 22px;
  background: #f1f4f6;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  text-decoration: none;
}

.ic-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ic-comment-avatar-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  flex: 0 0 44px;
}

.ic-comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 21px;
  object-fit: cover;
  display: block;
  background: #ececec;
  flex: 0 0 44px;
}

.ic-comment-name-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ic-comment-badge {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
  display: inline-block;
  background: #4e91e6;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.ic-comment-badge--tick {
  -webkit-mask-image: url('../icons/Blue-Tick.png');
  mask-image: url('../icons/Blue-Tick.png');
}

.ic-comment-badge--diamond {
  background: #a1b6ed;
  -webkit-mask-image: url('../icons/diamond.png');
  mask-image: url('../icons/diamond.png');
}

.ic-comment-meta {
  flex: 1;
  min-width: 0;
}

.ic-comment-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ic-comment-name {
  font-size: 12px;
  color: #383f48;
}

.ic-comment-replies {
  font-size: 10px;
  color: #919aaf;
  flex-shrink: 0;
}

.ic-comment-replies.is-empty { color: #d29c78; }
.ic-comment-replies.is-expert { color: #5cb86a; }

.ic-comment-time {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #8e8e93;
  text-align: right;
}

.ic-comment-text {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #6c6e6f;
  height: 4.8em;
  overflow: hidden;
  text-align: right;
}

.ic-comment-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
  font-size: 10px;
  color: #919aaf;
}

.ic-comment-reply {
  color: #4e91e6;
  font-size: 11px;
  flex-shrink: 0;
}

.ic-comment-more {
  align-items: center;
  justify-content: center;
  background: #eff4f8;
  color: #4e91e6;
  font-size: 11px;
  text-decoration: none;
}

.ic-learn-card {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: row;
  direction: rtl;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f5f7ff;
  text-decoration: none;
  color: inherit;
  margin-left: 10px;
  overflow: hidden;
}

.ic-rail--learning {
  margin-top: 14px;
  margin-bottom: 22px;
}

.ic-rail--learning .ic-rail-head {
  margin-bottom: 0;
}

.ic-rail--learning .ic-rail-all {
  margin-top: -15px;
  color: #919aaf;
  font-size: 11px;
}

.ic-hscroll--learning {
  margin-top: 10px;
  margin-inline: -8px;
  padding-inline: 4px 0;
  direction: rtl;
}

.ic-learn-card[hidden] {
  display: none !important;
}

.ic-learn-img {
  flex: 0 0 95px;
  width: 95px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e9f0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
}

.ic-learn-img img {
  width: 90%;
  height: 90%;
  object-fit: cover;
}

.ic-learn-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.ic-learn-title {
  font-size: 13px;
  color: #6a81a9;
  margin-bottom: 4px;
}

.ic-learn-desc {
  font-size: 10px;
  line-height: 1.55;
  color: #92a5c7;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ic-learn-progress {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
  padding-right: 2px;
}

.ic-learn-progress > .ic-learn-bar-wrap,
.ic-learn-progress > .ic-learn-pct {
  display: block;
}

.ic-learn-bar-wrap {
  display: block;
  width: 85%;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.ic-learn-bar {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background-color: #d2deee;
  overflow: hidden;
  direction: ltr;
}

.ic-learn-bar span,
.ic-learn-bar [data-home-learning-bar] {
  display: block;
  height: 100%;
  background-color: #99bce5;
  border-radius: 6px;
}

.ic-learn-pct {
  font-size: 10px;
  color: #99bce5;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
  width: 35px;
  text-align: left;
  padding-left: 12px;
  margin-top: -8px;
  margin-left: 2px;
  flex-shrink: 0;
}

.ic-learn-online {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  gap: 4px;
  margin-top: -2px;
  font-size: 9px;
  color: #6a81a9;
  text-align: right;
}

.ic-learn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #99bce5;
  flex-shrink: 0;
  animation: ic-learn-dot-pulse 3.5s ease-in-out infinite;
}

@keyframes ic-learn-dot-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

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

button.ic-media-card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: inherit;
}

.ic-media-card--radio {
  flex: 0 0 150px;
  width: 150px;
}

.ic-media-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 188px;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f6f6;
}

.ic-media-card--radio .ic-media-thumb {
  height: 150px;
}

.ic-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-status-badges {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: row;
  direction: ltr;
  gap: 5px;
  pointer-events: none;
}

.ic-status-badges--onemin {
  top: -8px;
  right: 55px;
}

.ic-status-badges--media {
  top: 10px;
  right: 10px;
  gap: 3px;
}

.ic-status-badges--radio {
  top: 8px;
  right: 7px;
  gap: 3px;
}

.ic-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  line-height: 10px;
  color: #fff;
  white-space: nowrap;
}

.ic-status-badges--onemin .ic-status-badge {
  min-width: 38px;
  height: 20px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 8.5px;
  line-height: 11px;
}

.ic-status-badge--free {
  background: #4caf50;
}

.ic-status-badge--new {
  background: #2196f3;
}

.ic-status-badge--free[hidden],
.ic-status-badges:empty {
  display: none !important;
}

.ic-tabbar {
  display: none;
}

.ic-tabbar-dock {
  display: none;
}

@media (max-width: 800px), (min-width: 801px) {
  body.icmadar .ic-phone-shell {
    padding-top: 0 !important;
  }

  body.icmadar .ic-site,
  body.icmadar #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .ic-banner-slide { max-height: 280px; }

  body.ic-tabbar-visible {
    padding-bottom: 0;
  }

  body.ic-tabbar-visible .ic-phone-shell {
    padding-bottom: 0;
  }

  body.ic-tabbar-visible .ic-site,
  body.ic-tabbar-visible #content {
    padding-bottom: calc(var(--ic-tabbar-dock-h, 102px) + env(safe-area-inset-bottom, 0px));
  }

  body.ic-tabbar-visible .ic-tabbar-dock {
    display: flex !important;
  }

  body.ic-tabbar-visible .ic-tabbar {
    display: flex !important;
  }

  .ic-tabbar-dock {
    display: none;
    flex-direction: column;
    direction: rtl;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    pointer-events: auto;
  }

  @media (min-width: 801px) {
    .ic-tabbar-dock {
      left: 50%;
      right: auto;
      width: min(100%, var(--ic-phone-width, 430px));
      max-width: var(--ic-phone-width, 430px);
      transform: translateX(-50%);
    }
  }

  .ic-tabbar {
    display: none;
    direction: ltr;
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    width: 100%;
    height: 60px;
    padding: 6px 0 0;
    background: #fff;
    border: 0;
    border-top: 0 !important;
    box-shadow: none !important;
    outline: 0;
  }

  .ic-tabbar-item {
    appearance: none;
    border: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #b9bec7;
    padding: 4px 0 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
  }

  .ic-tabbar-item.is-active {
    color: #2d3a4a;
  }

  .ic-tab-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ic-tabbar-item--cart {
    overflow: visible;
  }

  .ic-tab-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    z-index: 10;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: #4e91e6;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
  }

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

  .ic-tab-icon {
    width: 24px;
    height: 24px;
    margin-top: -4px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .ic-tab-label {
    display: none;
    margin-top: 2px;
    font-size: 9.5px;
    line-height: 1.2;
    color: #2d3a4a;
  }

  .ic-tabbar-item.is-active .ic-tab-label {
    display: block;
  }
}

.ic-cart-file {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex-shrink: 0;
}

.ic-cart-file span {
  font-size: 22px;
  font-weight: 700;
  font-family: "IRANYekanFa", "IRANYekan", sans-serif;
}

