/* =========================
   ASEH Glassmorphism Theme
   ========================= */
.aseh-component{
  --aseh-accent: 120,190,255;

  /* ✅ Font: مطابق CSS سایت (Abar) */
  --aseh-font: 'Abar', sans-serif;

  --aseh-text: rgba(255,255,255,.95);
  --aseh-muted: rgba(255,255,255,.78);
  --aseh-glass: rgba(30, 34, 48, .48);
  --aseh-glass3: rgba(255,255,255,.085);
  --aseh-border: rgba(255,255,255,.16);

  direction: rtl;
  font-family: var(--aseh-font) !important;
  color: var(--aseh-text);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* ✅ Force all inner text to use Abar */
.aseh-component,
.aseh-component * ,
.aseh-component *::before,
.aseh-component *::after{
  box-sizing:border-box;
  font-family: var(--aseh-font) !important;
  font-style: inherit !important;
  letter-spacing: inherit !important;
}

.aseh-component img{ max-width:100% !important; height:auto; display:block; }

/* Background glow */
.aseh-component::before{
  content:"";
  position:absolute;
  inset:-24px;
  border-radius: 26px;
  background:
    radial-gradient(900px 500px at 18% 18%, rgba(var(--aseh-accent), .22), transparent 58%),
    radial-gradient(800px 520px at 82% 10%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(900px 600px at 70% 85%, rgba(var(--aseh-accent), .12), transparent 60%);
  filter: blur(10px);
  opacity: .78;
  pointer-events:none;
  z-index:0;
}

/* Layout */
.aseh-component .aseh-layout{
  position:relative;
  z-index:1;
  direction:ltr;
  display:grid;
  grid-template-columns: clamp(340px, 32vw, 460px) minmax(0, 1fr);
  gap:18px;
  align-items: stretch;
}
.aseh-component .aseh-left,
.aseh-component .aseh-right{ min-width:0; height:100%; display:grid; gap:14px; }
.aseh-component .aseh-left{ direction:rtl; grid-template-rows: 1fr auto; }
.aseh-component .aseh-right{ direction:rtl; grid-template-rows: 1fr auto; }

/* Glass panel */
.aseh-component .aseh-panel{
  position:relative;
  border-radius: 18px;
  border: 1px solid var(--aseh-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.03)),
    var(--aseh-glass);
  box-shadow:
    0 24px 80px rgba(0,0,0,.50),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow:hidden;
}
.aseh-component .aseh-panel::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(var(--aseh-accent), .14), transparent 50%);
  transform: rotate(12deg);
  opacity:.55;
  pointer-events:none;
}

/* Specs panel */
.aseh-component .aseh-specs-panel{ padding:18px 18px 16px; }

/* Product title (چپ‌چین) */
.aseh-component .aseh-product-title{
  font-size: 18px;
  font-weight: 950;
  line-height: 1.6;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  text-align: left;
}

/* Header (Updated: فقط خلاصه مشخصات فنی) */
.aseh-component .aseh-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.aseh-component .aseh-head-fa{ font-size:16px; font-weight:950; }
.aseh-component .aseh-head-en{
  font-size:12px; font-weight:800; letter-spacing: .8px;
  color: rgba(255,255,255,.72);
}

/* Summary */
.aseh-component .aseh-summary{ display:grid; gap:12px; }

.aseh-component .aseh-usecase{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, var(--aseh-glass3), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  line-height: 1.95;
  font-size: 13px;
}
.aseh-component .aseh-usecase b{ font-weight:950; }

.aseh-component .aseh-highlights{ display:grid; gap:10px; }
.aseh-component .aseh-chip{
  display:flex; align-items:center; gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, var(--aseh-glass3), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  font-weight: 950;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.aseh-component .aseh-chip:hover{
  transform: translateY(-2px);
  border-color: rgba(var(--aseh-accent), .40);
  box-shadow: 0 22px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
}
.aseh-component .aseh-chip i{
  width:28px; height:28px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(var(--aseh-accent), .30);
  background: rgba(var(--aseh-accent), .12);
  font-style: normal;
  flex: 0 0 28px;
}

/* Key spec grid (summary) */
.aseh-component .aseh-keygrid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.aseh-component .aseh-metric{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, var(--aseh-glass3), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  min-width:0;
  direction:ltr;
  text-align:left;
}
.aseh-component .aseh-metric:hover{
  transform: translateY(-2px);
  border-color: rgba(var(--aseh-accent), .40);
  box-shadow: 0 22px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
}

.aseh-component .aseh-metric-k{
  font-size: 11px;
  color: rgba(255,255,255,.76);
  font-weight: 950;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  text-transform: uppercase;
  letter-spacing: .6px;
  direction:ltr;
  text-align:left;
}
.aseh-component .aseh-metric-v{
  margin-top: 10px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
  padding: 7px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  justify-content:flex-start;
}

/* Short desc */
.aseh-component .aseh-subsection{ margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.12); }
.aseh-component .aseh-subtitle{ font-size:12px; font-weight:950; color: rgba(255,255,255,.78); margin-bottom:8px; }
.aseh-component .aseh-subtext{
  font-size: 13px;
  line-height: 2.0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, var(--aseh-glass3), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

/* Trust */
.aseh-component .aseh-trust{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 10px;
}
.aseh-component .aseh-trust-item{
  display:flex; align-items:center; gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, var(--aseh-glass3), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.aseh-component .aseh-trust-ico{
  width: 30px; height: 30px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(var(--aseh-accent), .30);
  background: rgba(var(--aseh-accent), .12);
  font-size: 14px;
  flex: 0 0 30px;
}
.aseh-component .aseh-trust-txt{ font-size: 13px; font-weight: 950; line-height: 1.7; }

/* CTA */
.aseh-component .aseh-actions-panel{
  padding: 14px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}
.aseh-component .aseh-btn{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%;
  text-decoration:none !important;
  padding: 14px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.96);
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
  position:relative;
  overflow:hidden;
}
.aseh-component .aseh-btn-primary{
  border-color: rgba(var(--aseh-accent), .62);
  background: linear-gradient(135deg, rgba(var(--aseh-accent), .24), rgba(255,255,255,.06));
  box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--aseh-accent), .16);
}
.aseh-component .aseh-btn-secondary{
  font-size: 12px;
  flex-direction: row;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  line-height: 1.1;
  padding: 14px 10px;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}

.aseh-component .aseh-btn-primary::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width: 55%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: rotate(18deg);
  animation: asehShimmer 2.1s linear infinite;
  opacity:.75;
  pointer-events:none;
}
.aseh-component .aseh-btn-primary:hover{
  transform: translateY(-2px);
  border-color: rgba(var(--aseh-accent), .88);
  box-shadow: 0 30px 80px rgba(0,0,0,.60), 0 0 30px rgba(var(--aseh-accent), .18);
}
.aseh-component .aseh-btn-secondary:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.aseh-component .aseh-cta-sub{ display:block; margin-top: 6px; font-size: 11px; font-weight: 800; opacity:.85; }

@keyframes asehShimmer{
  0%{ left:-60%; opacity:0; }
  18%{ opacity:.85; }
  100%{ left:130%; opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .aseh-component .aseh-btn-primary::before{ animation:none !important; }
  .aseh-component *{ transition:none !important; }
}

/* Image panel */
.aseh-component .aseh-image-panel{ padding: 16px; display:flex; }
.aseh-component .aseh-image-wrap{
  flex:1;
  min-height: 360px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(620px 320px at 50% 72%, rgba(var(--aseh-accent), .14), transparent 60%),
    radial-gradient(900px 420px at 50% 18%, rgba(255,255,255,.08), transparent 55%),
    rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.aseh-component .aseh-main-img{
  width:100% !important;
  height:100% !important;
  object-fit: contain;
  border-radius: 18px;
}

/* Thumbs */
.aseh-component .aseh-thumbs-panel{ padding: 12px 16px; }
.aseh-component .aseh-thumbs{
  display:flex;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: 10px;
}
.aseh-component .aseh-thumb{
  flex: 0 0 96px;
  width: 96px !important;
  height: 56px !important;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  opacity: .92;
  cursor:pointer;
  scroll-snap-align: center;
  transition: transform .14s ease, opacity .14s ease, border-color .14s ease, box-shadow .14s ease, outline-color .14s ease;
  outline:0; outline-offset:2px;
}
.aseh-component .aseh-thumb:hover{
  transform: translateY(-1px);
  opacity:1;
  border-color: rgba(var(--aseh-accent), .60);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.aseh-component .aseh-thumb.is-active{
  opacity:1;
  border-color: rgba(var(--aseh-accent), .90);
  outline: 2px solid rgba(var(--aseh-accent), .22);
}

/* Modal */
.aseh-component .aseh-modal{ position: fixed; inset: 0; z-index: 999999; display:none; }
.aseh-component .aseh-modal.is-open{ display:block; }
.aseh-component .aseh-modal__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.aseh-component .aseh-modal__panel{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%, -50%);
  width: min(940px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  overflow:auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(var(--aseh-accent), .14), transparent 55%),
    rgba(22,22,28,.90);
  box-shadow: 0 28px 90px rgba(0,0,0,.60), inset 0 1px 0 rgba(255,255,255,.12);
  padding: 16px;
}
.aseh-component .aseh-modal__top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 6px 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 12px;
}
.aseh-component .aseh-modal__title{ font-size: 14px; font-weight: 950; }
.aseh-component .aseh-modal__close{
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 950;
}

/* Responsive */
@media (max-width: 980px){
  .aseh-component .aseh-layout{ display:flex; flex-direction:column; direction:rtl; }
  .aseh-component .aseh-right{ order:1; height:auto; }
  .aseh-component .aseh-left{ order:2; height:auto; }
  .aseh-component .aseh-image-wrap{ min-height: 320px; }
  .aseh-component .aseh-thumb{ flex-basis: 90px; width:90px !important; height:52px !important; }
}
@media (max-width: 600px){
  .aseh-component .aseh-actions-panel{ grid-template-columns: 1fr; }
  .aseh-component .aseh-keygrid{ grid-template-columns: 1fr; }
  .aseh-component .aseh-image-wrap{ min-height: 260px; }

  /* Sticky CTA */
  .aseh-component .aseh-actions-panel{
    position: sticky;
    bottom: 10px;
    z-index: 20;
    border-radius: 18px;
    background: rgba(22,22,28,.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}
