/* Homepage rhythm. Keep spacing on one layer so app wrappers cannot double it. */
.index-page {
  --bu-home-section-gap: 51px;
  --bu-home-title-gap: 27px;
  --bu-home-copy-gap: 12px;
}
.index-page #MainContent > .bu-home-section { display: flow-root; }
.index-page .bu-h-products,
.index-page .bu-h-heading,
.index-page .bu-h-heading[data-spacing],
.index-page .bu-h-gallery,
.index-page .bu-h-collections,
.index-page .bu-h-look,
.index-page .bu-h-videos,
.index-page .bu-h-logos,
.index-page .bu-h-image-text,
.index-page .bu-h-blog { margin-block: 0; padding-block: 0; }

.index-page .bu-h-products,
.index-page .bu-h-heading,
.index-page .bu-h-heading[data-spacing],
.index-page .bu-h-look,
.index-page .bu-h-logos,
.index-page .bu-h-image-text,
.index-page .bu-h-blog { padding-top: var(--bu-home-section-gap); }
.index-page .bu-h-heading,
.index-page .bu-h-heading[data-spacing] { padding-bottom: var(--bu-home-title-gap); }
.index-page .bu-h-heading h2 { margin: 0 0 var(--bu-home-copy-gap); }
.index-page .bu-h-heading h2:last-child { margin-bottom: 0; }
.index-page .bu-h-section-title { margin: 0 0 var(--bu-home-title-gap); }

/* These grids follow a separate heading section. Their own outer gaps are redundant. */
.index-page .bu-h-gallery-grid { margin-top: 0; padding-bottom: 0; }
.index-page .bu-h-product-grid { row-gap: 32px; }
.index-page .bu-h-product-grid > .bu-h-product { margin-bottom: 0; }
.index-page .bu-h-look-copy h2,
.index-page .bu-h-image-text-copy h2 { margin-bottom: var(--bu-home-title-gap); }
.index-page .bu-h-look-copy p,
.index-page .bu-h-image-text-copy p { margin-bottom: var(--bu-home-title-gap); }
.index-page .bu-h-blog { padding-bottom: var(--bu-home-section-gap); }

/* Vidhash retains its horizontal gutters and bottom shadow clearance. */
.index-page #MainContent .vidhash-app-widget .vidhash_video-swiper-iframe {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.index-page #MainContent .vidhash-app-widget .vidhash_videoListDiv { padding-top: 0 !important; }
.index-page #shopline-section-template--index__bu-partners .bu-h-logos {
  padding-top: calc(var(--bu-home-section-gap) - 8px);
}

/* Native app spacing is set in index.json; remove the review widget's extra layer. */
.index-page .trustreview-showcase--ugc-grid[data-trustreview-widget] { padding-block: 0; }
.index-page .trustreview-showcase--ugc-grid[data-bu-customer-gallery="true"] .trustreview-showcase__shell {
  gap: var(--bu-home-title-gap);
}

@media (max-width: 767px) {
  .index-page {
    --bu-home-section-gap: 35px;
    --bu-home-title-gap: 23px;
    --bu-home-copy-gap: 10px;
  }
  .index-page .bu-h-product-grid { row-gap: 24px; }
  /* Keep carousel arrows usable without a separate empty row above the photos. */
  .index-page .bu-h-collections bu-home-collections { position: relative; }
  .index-page .bu-h-collection-controls {
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    z-index: 2;
    margin: 0;
    pointer-events: none;
  }
  .index-page .bu-h-collection-controls button {
    width: 36px;
    height: 36px;
    padding: 6px;
    margin: 0;
    border-radius: 2px;
    background: rgba(255,255,255,.94);
    pointer-events: auto;
  }
  .index-page .bu-h-look-copy { padding-top: 0; padding-bottom: var(--bu-home-title-gap); }
  .index-page .bu-h-image-text-grid { gap: var(--bu-home-title-gap); }
  .index-page .bu-h-blog-grid article { padding-block: 24px; }
  .index-page .bu-h-blog-grid article:first-child { padding-top: 0; }
  .index-page .bu-h-blog-grid article:last-child { padding-bottom: 0; }
}

/* Consistent semantic type scale for the homepage content modules. */
.index-page {
  --bu-home-heading-size: 30px;
  --bu-home-subheading-size: 24px;
  --bu-home-body-size: 16px;
  --bu-home-card-size: 15px;
  --bu-home-meta-size: 13px;
}
.index-page .bu-h .bu-h-section-title,
.index-page .bu-h-heading h2,
.index-page .bu-h-look-copy h2,
.index-page .bu-h-image-text-copy h2,
.index-page .trustreview-showcase--ugc-grid[data-trustreview-widget] .trustreview-showcase__header h2 {
  font-family: Figtree, Arial, sans-serif;
  font-size: var(--bu-home-heading-size);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.index-page .bu-h-heading p,
.index-page .bu-h-look-copy p,
.index-page .bu-h-image-text-copy p,
.index-page .bu-h-blog-grid p {
  font-size: var(--bu-home-body-size);
  line-height: 1.6;
}
.index-page .bu-h-gallery-copy h3,
.index-page .bu-h-blog-grid h3 {
  font-size: var(--bu-home-subheading-size);
  font-weight: 500;
  line-height: 1.3;
}
.index-page .bu-h-gallery-copy p {
  font-size: var(--bu-home-body-size);
  line-height: 1.6;
}
.index-page .bu-h .bu-h-product-title,
.index-page .bu-h .bu-h-price,
.index-page .bu-h-collection-card h3 {
  font-size: var(--bu-home-card-size);
  line-height: 1.5;
}
.index-page .bu-h-vendor,
.index-page .bu-h-from,
.index-page .bu-h-blog-grid time {
  font-size: var(--bu-home-meta-size);
  line-height: 1.5;
}
.index-page .bu-h .bu-h-button,
.index-page .bu-h-read-more {
  font-size: var(--bu-home-card-size);
  line-height: 1.4;
}
.index-page .bu-h .bu-h-button { min-height: 44px; }
@media (max-width: 767px) {
  .index-page {
    --bu-home-heading-size: 26px;
    --bu-home-subheading-size: 22px;
    --bu-home-body-size: 15px;
    --bu-home-card-size: 14px;
    --bu-home-meta-size: 12px;
  }
}

/* Homepage image and shoppable-video alignment. */
.index-page { --bu-home-module-gutter: 16px; }
.index-page #shopline-section-template--index__1795073502998af7b7a3 .page-width {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--bu-home-module-gutter);
}
.index-page #shopline-section-template--index__1795073502998af7b7a3 .vidhash_video-swiper-iframe,
.index-page #shopline-section-template--index__1795073502998af7b7a3 .vidhash_videoListDiv {
  padding-inline: 0 !important;
}
.index-page #shopline-section-template--index__1795073502998af7b7a3 .vidhash_productList-swiper-wrap-carousel {
  width: 100% !important;
  max-width: 100%;
}
@media (min-width: 768px) {
  .index-page { --bu-home-module-gutter: 30px; }
  /* Keep the text shade inside the look image instead of on the white page gutter. */
  .index-page .bu-h-look bu-home-look { overflow: hidden; }
}
@media (min-width: 1000px) {
  .index-page { --bu-home-module-gutter: 50px; }
}
@media (min-width: 1450px) {
  .index-page { --bu-home-module-gutter: 60px; }
}
