/**
 * Stedrino Elementor widgets — layout helpers
 */

.elementor-widget-stedrino_home_hero .stedrino-home-hero,
.elementor-widget-stedrino_home_trust .stedrino-home-trust,
.elementor-widget-stedrino_home_categories .stedrino-home-cats,
.elementor-widget-stedrino_announcement .stedrino-el-announcement {
  width: 100%;
}

.stedrino-home-products--cols-2 .stedrino-home-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stedrino-home-products--cols-3 .stedrino-home-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stedrino-home-products--cols-4 .stedrino-home-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stedrino-el-testimonials__grid--cols-1 .stedrino-pdp-testimonials__grid {
  grid-template-columns: 1fr;
}

.stedrino-el-testimonials__grid--cols-2 .stedrino-pdp-testimonials__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stedrino-el-testimonials__grid--cols-3 .stedrino-pdp-testimonials__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stedrino-el-announcement__link {
  display: block;
  text-decoration: none;
  font-weight: 600;
}

.stedrino-el-announcement__link:hover {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .stedrino-home-products--cols-4 .stedrino-home-products,
  .stedrino-home-products--cols-3 .stedrino-home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stedrino-el-testimonials__grid--cols-3 .stedrino-pdp-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .stedrino-home-products--cols-4 .stedrino-home-products,
  .stedrino-home-products--cols-3 .stedrino-home-products,
  .stedrino-home-products--cols-2 .stedrino-home-products {
    grid-template-columns: 1fr;
  }

  .stedrino-el-testimonials__grid--cols-3 .stedrino-pdp-testimonials__grid,
  .stedrino-el-testimonials__grid--cols-2 .stedrino-pdp-testimonials__grid {
    grid-template-columns: 1fr;
  }
}
