/* TOPYOU responsive fixes validated in the local test site. */

html {
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

:where(.elementor-widget-text-editor, .elementor-widget-heading, .elementor-widget-theme-post-title) {
  min-width: 0;
}

:where(.elementor-heading-title, .elementor-widget-text-editor, .elementor-widget-theme-post-title) {
  overflow-wrap: break-word;
}

/* Product and blog loop cards */
.elementor-loop-container.elementor-grid,
.elementor-loop-container.elementor-grid > .e-loop-item,
.elementor-loop-container.elementor-grid .elementor-widget-container {
  min-width: 0;
}

.elementor-10841 .elementor-widget-theme-post-featured-image a,
.elementor-9573 .elementor-widget-theme-post-featured-image a {
  display: block;
  width: 100%;
  overflow: hidden;
}

.elementor-10841 .elementor-widget-theme-post-featured-image img,
.elementor-10841 img.wp-post-image {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.elementor-9573 .elementor-widget-theme-post-featured-image img,
.elementor-9573 img.wp-post-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.elementor-10841 .elementor-heading-title,
.elementor-9573 .elementor-heading-title {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.elementor-10841 .elementor-widget-text-editor p:last-child,
.elementor-9573 .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

/* Product detail buyer guidance */
.topyou-product-buyer-guidance {
  margin: clamp(28px, 4vw, 52px) auto;
  padding: clamp(24px, 4vw, 44px);
  max-width: 1180px;
  border: 1px solid #e6dfd3;
  border-radius: 8px;
  background: #faf8f4;
  color: #3f3525;
}

.topyou-product-buyer-guidance h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.25;
}

.topyou-product-buyer-guidance h2:not(:first-child) {
  margin-top: 30px;
}

.topyou-product-buyer-guidance h3 {
  margin: 20px 0 6px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.35;
}

.topyou-product-buyer-guidance p {
  margin: 0 0 12px;
  max-width: 80ch;
  font-size: 16px;
  line-height: 1.7;
}

.topyou-product-buyer-guidance a {
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Customer Reviews: preserve landscape video framing and stabilize supporting content. */
.page-id-14704 .elementor-widget-video {
  width: 100%;
  margin-inline: auto;
}

.page-id-14704 .elementor-widget-video .elementor-wrapper {
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  border-radius: 8px;
  background: #171717;
}

.page-id-14704 .elementor-widget-video iframe,
.page-id-14704 .elementor-widget-video .elementor-video {
  width: 100%;
  height: 100%;
}

.page-id-14704 .elementor-widget-image-carousel .swiper-slide-image {
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.page-id-14704 .pp-testimonial-content,
.page-id-14704 .pp-testimonials-content {
  font-size: 16px !important;
  line-height: 1.65 !important;
}

/* PowerPack's restored Slick bundle does not initialize reliably in the lab.
   Keep every verified testimonial visible as a static grid when that happens. */
.page-id-14704 .pp-testimonials-carousel:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.page-id-14704 .pp-testimonials-carousel:not(.slick-initialized) .pp-testimonial-slide {
  display: block !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}

.page-id-14704 .pp-testimonials-carousel:not(.slick-initialized) .pp-testimonial {
  height: 100%;
  padding: 24px;
  border: 1px solid #e6dfd3;
  border-radius: 8px;
  background: #fff;
}

.page-id-14704 .pp-testimonial-image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* Forms and content blocks */
.elementor-field-group,
.wpcf7-form-control-wrap,
.wpcf7-form-control {
  min-width: 0;
  max-width: 100%;
}

textarea {
  resize: vertical;
}

@media (max-width: 1024px) {
  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-con.e-con-boxed > .e-con-inner {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  h1,
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.2 !important;
  }

  h2,
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(23px, 6.5vw, 30px) !important;
    line-height: 1.25 !important;
  }

  .elementor-button,
  button,
  input[type="submit"] {
    min-height: 44px;
  }

  .elementor-loop-container.elementor-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .topyou-product-buyer-guidance {
    margin: 24px 10px 34px;
    padding: 22px 18px;
  }

  .page-id-14704 .elementor-widget-video {
    max-width: min(100%, 300px);
  }

  .page-id-14704 .pp-testimonials-carousel:not(.slick-initialized) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-id-14704 .pp-testimonials-carousel:not(.slick-initialized) .pp-testimonial {
    padding: 20px 16px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-loop-container.elementor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.page-id-14704 .topyou-video-play {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background-color: #171717;
  background-position: center;
  background-size: cover;
  font: inherit;
  text-shadow: 0 1px 4px #000;
}
.page-id-14704 .topyou-video-play span { font-size: 42px; line-height: 1; }
.page-id-14704 .topyou-video-play strong { font-size: 16px; }
.page-id-14704 .topyou-video-play:focus-visible { outline: 3px solid #1377d5; outline-offset: -3px; }