:root{
    --mtS-surface:#fff;
    --mtS-text:#0f172a;
    --mtS-muted:#475569;
    --mtS-border:#e2e8f0;
    --mtS-radius:22px;
    --mtS-radius2:16px;
    --mtS-shadow: 0 10px 30px rgba(2,6,23,.08);
    --mtS-shadow2: 0 14px 36px rgba(2,6,23,.10);
    --mtS-focus: 0 0 0 3px rgba(15,23,42,.14);
    --mtS-accent: currentColor;
  }
  .swiper-slide{
    width: 300px;
  }
  .swiper-slide .mt-shop__card{
      min-height:100%;
  }
  .swiper-wrapper{
       display: grid;                     /* فعال‌سازی grid */
    gap: 16px;                         /* فاصله بین آیتم‌ها (اختیاری) */
    justify-content: center;           /* چینش سطرها از سمت چپ */
    /* 200px ثابت برای هر ستون، به‌صورت خودکار تکرار می‌شود */
    grid-template-columns: repeat(auto-fill, 300px);
  }
  .scl_container a:hover{
    text-decoration: none;
  }
  .scl_container{
      margin-bottom: 10px;
  }
  .shop-card-title{
    display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  }
   .shop-card-title h2{
    font-weight: 400;
   }
  .shop-card-title a{
    color: var(--link);
  }
  .shop-card-title a:hover{
    text-decoration: none;
  }
  .shop-card-title a:visited{
color: var(--link);
  }
.mt-shop__card{
    grid-column: span 4; /* 3-up desktop */
    border:1px solid var(--mtS-border);
    background: #fefefe;
    border-radius: var(--mtS-radius);
    overflow:hidden;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .mt-shop__card:hover{
    transform: translateY(-3px);
    box-shadow: var(--mtS-shadow2);
    border-color: rgba(2,6,23,.16);
  }

  .mt-shop__cardLink{
    display:flex;
    flex-direction:column;
    height:100%;
    text-decoration:none;
    color: inherit;
  }

  /* Image sizing: stable ratio (4:3) feels “product-like” */
  .mt-shop__media{
    position:relative;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
  }
  .mt-shop__img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
    transform: scale(1.0001);
    transition: transform .25s ease;
  }
  .mt-shop__card:hover .mt-shop__img{
    transform: scale(1.03);
  }

  .mt-shop__media::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(2,6,23,.18), rgba(2,6,23,0) 60%);
    pointer-events:none;
  }

  .mt-shop__badges{
    position:absolute;
    left:12px;
    bottom:12px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    z-index:2;
  }
  .mt-shop__badge{
    display:inline-flex;
    align-items:center;
    height:28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.30);
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .mt-shop__badge--soft{
    opacity: .92;
    font-weight: 650;
  }

  .mt-shop__content{
    display:flex;
    flex-direction:column;
    gap: 10px;
    padding: 14px 14px 16px 14px;
    flex: 1 1 auto; /* makes all cards equal height */
  }

  .mt-shop__row1{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    min-width:0;
  }

  .mt-shop__name{
    margin:0;
    font-size: 15.5px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight:400;
    min-width:0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow:hidden;
  }

  .mt-shop__mini{
    flex: 0 0 auto;
    display:flex;
    align-items:center;
    gap:8px;
    color: var(--mtS-muted);
    font-size: 12px;
    margin-top: 2px;
    white-space:nowrap;
  }
  .mt-shop__dot{
    width:7px;height:7px;
    border-radius: 999px;
    background: rgba(2,6,23,.25);
  }

  .mt-shop__desc{
    margin:0;
    color: var(--mtS-muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow:hidden;
  }

  /* Bottom row is meaningfully consistent: facts left, CTA right */
  .mt-shop__row3{
    margin-top:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top: 6px;
  }

  .mt-shop__facts{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    color: var(--mtS-muted);
    font-size: 12.5px;
  }
  .mt-shop__fact{
    padding: 6px 10px;
    border-radius: 999px;
    border:1px solid var(--mtS-border);
    background: rgba(2,6,23,.02);
  }
  .mt-shop__sep{ display:none; } /* keeping for a11y parity; we use pill facts */

  .mt-shop__cta{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height: 38px;
    padding: 0 12px 0 14px;
    border-radius: 999px;
    border:1px solid rgba(2,6,23,.18);
    background: rgba(2,6,23,.03);
    color: var(--mtS-text);
    font-weight: 800;
    box-shadow: 0 1px 0 rgba(2,6,23,.03);
  }
  .mt-shop__cta svg{
    width:18px;height:18px;
  }

  .mt-shop__cardLink:focus-visible{
    outline:none;
    box-shadow: var(--mtS-focus);
    border-radius: var(--mtS-radius);
  }
