.elementor-339 .elementor-element.elementor-element-1c84c12{--display:flex;}.elementor-339 .elementor-element.elementor-element-2b8b11f{text-align:center;}.elementor-339 .elementor-element.elementor-element-2b8b11f .elementor-heading-title{font-size:22px;font-weight:700;color:var( --e-global-color-text );}@media(max-width:767px){.elementor-339 .elementor-element.elementor-element-1c84c12{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-339 .elementor-element.elementor-element-2b8b11f .elementor-heading-title{font-size:14px;line-height:2em;}}/* Start custom CSS for wd_products_brands, class: .elementor-element-3a38cd2 *//* حالت گرید برای دسکتاپ و تبلت */
.brand-page .wd-grid-g {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 24px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* آیتم برند در حالت گرید */
.brand-page .wd-brand-item {
  aspect-ratio: 1 / 1;
  background-color: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.brand-page .wd-brand-item:hover {
  background-color: #fff;
  border-color: #d91883;
  box-shadow: 0 4px 12px rgba(217, 24, 131, 0.1);
  transform: translateY(-3px);
}

.brand-page .wd-brand-item a {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: color 0.2s ease;
}

.brand-page .wd-brand-item a:hover {
  color: #d91883;
}

/* ✅ حالت موبایل: تغییر به فلکس */
@media screen and (max-width: 576px) {
  .brand-page .wd-grid-g {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 16px;
  }

  .brand-page .wd-col {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-page .wd-brand-item a {
    font-size: 13px;
    padding: 8px;
  }
}/* End custom CSS */