/* PTF Homepage 1.3.39 — all front-end sections full viewport width. */
/* Only the shortcode output is modified; other Flatsome containers remain intact. */
.ptfh-home {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  position: relative;
  min-width: 0;
  overflow-x: clip;
}
.ptfh-home > .ptfh-section,
.ptfh-home > .ptfh-hero {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
}
/* Preserve the section's original vertical padding/background, but remove every
   historic 1240px/1280px/1360px/1490px inner width cap. */
.ptfh-home > .ptfh-section > .ptfh-shell,
.ptfh-home .ptfh-section-categories .ptfh-shell,
.ptfh-home .ptfh-section-flash_sale .ptfh-shell,
.ptfh-home .ptfh-section-news .ptfh-shell,
.ptfh-home .ptfh-section-consult .ptfh-shell {
  width: calc(100% - 2 * clamp(30px, 9.375vw, 180px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: 0;
}
.ptfh-home > .ptfh-section > .ptfh-shell > * {min-width: 0;}
/* Do not force overflowing tracks to expand the viewport. */
.ptfh-home .ptfh-video-slider,
.ptfh-home .ptfh-intro-gallery,
.ptfh-home .ptfh-flash-carousel,
.ptfh-home .ptfh-pg-block,
.ptfh-home .ptfh-news-panel,
.ptfh-home .ptfh-category-mosaic {max-width:100%;min-width:0;}
/* Tablet */
@media (max-width: 1199px) {
  .ptfh-home > .ptfh-section > .ptfh-shell,
  .ptfh-home .ptfh-section-categories .ptfh-shell,
  .ptfh-home .ptfh-section-flash_sale .ptfh-shell,
  .ptfh-home .ptfh-section-news .ptfh-shell,
  .ptfh-home .ptfh-section-consult .ptfh-shell {
    width: calc(100% - 60px) !important;
  }
}
@media (max-width: 767px) {
  .ptfh-home > .ptfh-section > .ptfh-shell,
  .ptfh-home .ptfh-section-categories .ptfh-shell,
  .ptfh-home .ptfh-section-flash_sale .ptfh-shell,
  .ptfh-home .ptfh-section-news .ptfh-shell,
  .ptfh-home .ptfh-section-consult .ptfh-shell {
    width: calc(100% - 32px) !important;
  }
}

/* v1.4.7: intro content keeps a comfortable gap below the hero banner.
   Other sections keep their original vertical spacing and horizontal gutters. */
.ptfh-home > .ptfh-hero + .ptfh-section-intro {
  margin-top: 0 !important;
  padding-top: clamp(28px, 3.2vw, 48px) !important;
}
.ptfh-home > .ptfh-hero {
  margin-bottom: 0 !important;
}
@media (max-width: 1199px) {
  .ptfh-home > .ptfh-hero + .ptfh-section-intro {
    padding-top: 34px !important;
  }
}
@media (max-width: 767px) {
  .ptfh-home > .ptfh-hero + .ptfh-section-intro {
    padding-top: 24px !important;
  }
}

/* v1.6.8: category background full bleed, content aligned to other sections.
   Fix the double side-gutter introduced in v1.6.7. */
.ptfh-home > .ptfh-section-categories > .ptfh-shell {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(30px, 9.375vw, 180px) !important;
  padding-right: clamp(30px, 9.375vw, 180px) !important;
}
@media (max-width: 1199px) {
  .ptfh-home > .ptfh-section-categories > .ptfh-shell {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}
@media (max-width: 767px) {
  .ptfh-home > .ptfh-section-categories > .ptfh-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
