/* Storefront catalog cards v2: honest media, compact density and fluid sizing. */
.home-featured-widget{display:grid;gap:24px;min-width:0}
.buyable-home,.home-catalog{min-width:0}
.buyable-home .section-head{margin-bottom:14px}
.buyable-home .section-head h2{margin:3px 0 0;font-size:clamp(21px,2vw,27px)}
.buyable-home .eyebrow{font-size:12px;font-weight:800}
.buyable-home .section-head p{margin:4px 0 0;color:#718391;font-size:12px}

.product-row,.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));
  gap:14px;
  min-width:0;
}
.product-card{
  display:flex;
  min-width:0;
  min-height:100%;
  flex-direction:column;
  padding:10px;
  overflow:hidden;
  border:1px solid #dde7ec;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
}
.product-card>a{display:flex;min-width:0;flex:1;flex-direction:column}
.product-card .product-visual{
  height:clamp(112px,9vw,138px);
  overflow:hidden;
  border:1px solid #e6edf0;
  border-radius:11px;
  background:#f7fafb;
  text-shadow:none;
}
.product-card .product-photo{display:block;width:100%;height:100%;padding:8px;object-fit:contain}
.product-photo-placeholder{
  display:flex;
  width:100%;
  height:100%;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:#6d8190;
  text-align:center;
  background:linear-gradient(145deg,#f8fbfc,#eef5f7);
}
.product-photo-placeholder i{font-size:30px;font-style:normal;color:#7894a2;line-height:1}
.product-photo-placeholder b{max-width:90%;font-size:12px;color:#35576b}
.product-photo-placeholder small{font-size:10px!important;color:#8496a2!important}
.product-card .brand-name{display:block;margin-top:9px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card h3{
  display:-webkit-box;
  min-height:40px;
  margin:5px 0;
  overflow:hidden;
  font-size:13px;
  line-height:1.55;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.product-card .product-meta{
  display:block;
  min-width:0;
  overflow:hidden;
  color:#7d8c98;
  font-size:10.5px;
  line-height:1.65;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.product-card .product-context{display:-webkit-box;min-height:31px;margin:0 0 2px;overflow:hidden;color:#647887;font-size:10px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.product-card .price{min-height:27px;margin-top:7px;gap:6px}
.product-card .price b{font-size:13px;color:#b95608;white-space:nowrap}
.product-card .availability{margin:2px 0 8px}
.product-card .card-commerce{grid-template-columns:minmax(0,1fr) 38px 38px;margin-top:auto;gap:6px}
.product-card .card-commerce button,.product-card .card-commerce>a{min-height:38px!important;padding:7px!important}
.product-card .card-commerce .stock-alert-login{border-color:#c8dfe6!important;background:#edf8fa!important;color:#08778a!important;font-size:10px!important;font-weight:800;text-align:center;line-height:1.45}
.product-card .stock-alert-button{background:linear-gradient(110deg,#087c8d,#0799a7)!important;font-size:11px!important}
.buy .stock-alert-button{width:100%;margin:15px 0;text-align:center}
.account-product-placeholder{display:grid;width:84px;height:84px;flex:0 0 84px;place-items:center;border-radius:9px;background:#f4f7fa;color:#7b91a2;font-size:31px}

.product-crop.missing-product-image{
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#f8fbfc,#edf5f7)!important;
}
.product-detail-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#6d8290;text-align:center;text-shadow:none}
.product-detail-placeholder i{font-size:58px;font-style:normal;color:#7a98a5;line-height:1}
.product-detail-placeholder b{font-size:16px;color:#34566a}
.product-detail-placeholder small{font-size:12px;color:#7f919d}
.compare-image-placeholder{display:flex;width:110px;height:85px;margin:auto;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:1px solid #e0e9ed;border-radius:9px;background:#f3f8f9;color:#78909d;font-size:27px}
.compare-image-placeholder small{font-size:10px;color:#7e909b}

.home-catalog{margin:0!important;padding:20px!important;border-radius:18px!important;background:#f8fbfc!important;box-shadow:none}
.home-catalog-title{padding:0 0 16px!important}
.home-catalog-title h2{font-size:clamp(20px,2vw,26px)!important}
.home-catalog-title p{max-width:760px;font-size:13px;line-height:1.9}
.home-catalog-accordion{columns:2;column-gap:10px;margin-top:14px}
.home-product-group{
  display:inline-block;
  width:100%;
  margin:0 0 10px;
  break-inside:avoid;
  padding:0!important;
  overflow:hidden;
  border:1px solid #dce8ec!important;
  border-radius:12px;
  background:#fff;
}
.home-product-group summary{
  display:flex;
  min-height:58px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  cursor:pointer;
  list-style:none;
}
.home-product-group summary::-webkit-details-marker{display:none}
.home-product-group summary:after{content:'+';margin-right:auto;color:#078c9b;font-size:20px;line-height:1}
.home-product-group[open] summary:after{content:'−'}
.home-product-group summary span{display:flex;min-width:0;align-items:center;gap:9px}
.home-product-group summary i{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:9px;background:#eaf5f7;color:#087c8a;font-style:normal}
.home-product-group summary b{font-size:14px}
.home-product-group summary small{color:#788b98;font-size:11px;white-space:nowrap}
.home-product-group-body{padding:0 12px 12px;border-top:1px solid #e7eef1}
.catalog-group-link{display:inline-flex;min-height:44px;align-items:center;margin:0 2px;color:#087e8d;font-size:12px;font-weight:800}
.home-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.catalog-part-link{display:flex;min-width:0;min-height:54px;align-items:center;gap:9px;padding:8px 10px;border:1px solid #e1ebee;border-radius:10px;background:#fff;color:#15374f;transition:.16s ease}
.catalog-part-link:hover,.catalog-part-link:focus-visible{border-color:#8cced5;background:#f2fafb;box-shadow:0 5px 14px #08364d0d;transform:translateY(-1px)}
.catalog-part-link>span:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column}
.catalog-part-link b{overflow:hidden;font-size:12px;line-height:1.55;white-space:nowrap;text-overflow:ellipsis}
.catalog-part-link small{color:#7c8f9b;font-size:9.5px}
.catalog-part-link>i{color:#078998;font-size:14px;font-style:normal}
.catalog-part-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:8px;background:#edf7f8;color:#087b89;font-size:16px}
.catalog-filter-toggle,.directory-toggle{display:none}

@media(max-width:1100px){
  .home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .home-catalog-accordion{columns:1}
  .home-catalog-title{align-items:stretch;flex-direction:column}
  .home-catalog-title .primary{width:100%}
  .store-primary-links{display:flex;justify-content:flex-start;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  .store-primary-links a{display:inline-flex;min-height:44px;align-items:center;padding:0 5px}
  .store-primary-links::-webkit-scrollbar{display:none}
  .catalog>aside{order:-1!important;max-height:66px;padding:10px 12px!important;overflow:hidden;transition:max-height .25s ease}
  .catalog>aside.catalog-filters-open{max-height:2400px}
  .catalog>aside>h2{display:none}
  .catalog-filter-toggle,.directory-toggle{
    display:block;
    width:100%;
    min-height:44px;
    border:1px solid #cbdde5;
    border-radius:10px;
    background:#fff;
    color:#0a6680;
    font:800 13px VazirLocal,Tahoma,sans-serif;
    cursor:pointer;
  }
  .catalog-filters-open .catalog-filter-toggle{margin-bottom:8px;background:#edf8fa}
  .part-directory:not(.is-expanded) .part-type-grid>a:nth-child(n+7){display:none}
  .directory-toggle{margin-top:12px}
}
@media(max-width:560px){
  .product-row,.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .product-card{padding:10px}
  .product-card .product-visual{height:126px}
  .product-card .brand-name{font-size:10px}
  .product-card h3{min-height:38px;font-size:12px;line-height:1.6}
  .product-card .product-meta{font-size:9px}
  .product-card .product-context{min-height:28px;font-size:9px}
  .product-card .price{display:block;min-height:35px}
  .product-card .price del{display:block}
  .product-card .price b{font-size:12px}
  .product-card .card-commerce{grid-template-columns:minmax(0,1fr) 34px 34px;gap:4px}
  .product-card .card-commerce button,.product-card .card-commerce>a{min-height:36px!important;padding:5px!important;font-size:10px}
  .home-catalog{padding:14px!important}
  .home-product-grid{grid-template-columns:1fr!important}
  .home-product-group summary{padding:10px}
}
@media(max-width:430px){
  .product-row,.grid{grid-template-columns:1fr}
  .product-card .product-visual{height:155px}
  .product-card .card-commerce{grid-template-columns:minmax(0,1fr) 36px 36px}
  .home-product-group summary small{display:none}
}
