/* پیام: کارت‌های مینیمال زیردسته مرحله دوم */
.shop-category-context{
  margin:0 0 14px;
  padding:3px 2px 0;
}
.shop-category-context h1{
  margin:8px 0 0;
  color:#111827;
  font-size:22px;
  font-weight:850;
  line-height:1.55;
}
.shop-category-breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  color:#8a96a8;
  font-size:12px;
  line-height:1.8;
}
.shop-category-breadcrumb a{
  color:#6f7d91;
  text-decoration:none;
  transition:color .18s ease;
}
.shop-category-breadcrumb a:hover{color:#0f766e}
.shop-category-breadcrumb strong{color:#4b5563;font-weight:750}

.shop-child-categories{
  margin:0 0 17px;
  min-width:0;
}
.shop-child-categories-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.shop-child-categories-head h2{
  margin:0;
  color:#273244;
  font-size:14px;
  font-weight:800;
}
.shop-child-categories-track{
  display:flex;
  align-items:flex-start;
  gap:9px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 1px 7px;
  scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.shop-child-categories-track::-webkit-scrollbar{display:none}

.shop-child-category-card{
  box-sizing:border-box;
  flex:0 0 140px;
  min-width:140px;
  padding:5px 4px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  scroll-snap-align:start;
  background:transparent;
  border:0;
  border-radius:13px;
  color:#273244;
  text-align:center;
  text-decoration:none;
  transition:background-color .18s ease, transform .18s ease;
}
.shop-child-category-card:hover{
  transform:translateY(-1px);
  background:#fafbfc;
}
.shop-child-category-card:focus-visible{
  outline:2px solid rgba(15,118,110,.35);
  outline-offset:2px;
}
.shop-child-category-image{
  box-sizing:border-box;
  width:100%;
  aspect-ratio:4 / 3;
  min-height:0;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #f0f2f4;
  border-radius:12px;
  background:#f7f8f9;
}
.shop-child-category-image img{
  box-sizing:border-box;
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:auto !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
  border-radius:0 !important;
}
.shop-child-category-card strong{
  width:100%;
  min-height:34px;
  color:#283448;
  font-size:11.5px;
  font-weight:750;
  line-height:1.55;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

@media(min-width:1200px){
  .shop-child-category-card{
    flex-basis:142px;
    min-width:142px;
  }
}
@media(max-width:900px){
  .shop-category-context{margin-bottom:11px}
  .shop-category-context h1{font-size:19px}
  .shop-child-categories{margin-bottom:14px}
  .shop-child-categories-track{
    gap:7px;
    margin-left:-12px;
    margin-right:-12px;
    padding-right:12px;
    padding-left:12px;
  }
  .shop-child-category-card{
    flex-basis:119px;
    min-width:119px;
    padding:4px 3px 6px;
    border-radius:12px;
  }
  .shop-child-category-image{
    padding:8px;
    border-radius:11px;
  }
  .shop-child-category-card strong{
    min-height:32px;
    font-size:11px;
  }
}
@media(max-width:520px){
  .shop-category-breadcrumb{font-size:11px;gap:6px}
  .shop-category-context h1{font-size:18px;margin-top:7px}
  .shop-child-categories-head h2{font-size:13px}
  .shop-child-category-card{
    flex-basis:108px;
    min-width:108px;
  }
  .shop-child-category-image{padding:7px}
  .shop-child-category-card strong{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
  .shop-child-category-card{transition:none}
  .shop-child-category-card:hover{transform:none}
}
