/* DISTRO DIRECT - COMPACT HOMEPAGE BANNERS - 29 OCTOBER 2026
   Paste this ENTIRE file at the TOP of Appearance > Custom CSS, then Save.
   Keep your existing non-banner CSS underneath. Do not add  tags.
   This targets the Amerce / Botble slider found on your live homepage.
   It is not generic WooCommerce, Elementor or Revolution Slider code.

   Expected height: 130px at 390px wide; about 342px at 1366px wide.
   Phone: reference-style 3:1 photograph. Desktop: compact 4:1, max 360px.
   The existing tall bed photograph is cropped, never stretched.
   The END marker below must be present after pasting.
*/

#page-home .homepage > .tf-slideshow.distro-hero {
  --dd-compact-version: 20261029;
  --dd-compact-height: clamp(192px, 25vw, 360px);
  box-sizing: border-box !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--dd-compact-height) !important;
  min-height: 0 !important;
  max-height: var(--dd-compact-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #c2b5a6;
}

/* Every nested height must agree. Leave Swiper widths/transforms intact. */
#page-home .homepage > .tf-slideshow.distro-hero :is(
  .tf-swiper, .swiper-wrapper, .swiper-slide, .slideshow-wrap,
  .sld_image, .sld_image picture
) {
  box-sizing: border-box !important;
  height: var(--dd-compact-height) !important;
  min-height: 0 !important;
  max-height: var(--dd-compact-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .tf-swiper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .slideshow-wrap {
  position: relative !important;
  overflow: hidden !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .sld_image,
#page-home .homepage > .tf-slideshow.distro-hero .sld_image picture {
  display: block !important;
  width: 100% !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .sld_image img {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--dd-compact-height) !important;
  min-height: 0 !important;
  max-height: var(--dd-compact-height) !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center 45% !important;
  transform: none !important;
}

/* Keep the reader's face and headboard in the existing bed image crop. */
#page-home .homepage > .tf-slideshow.distro-hero .sld_image img[src*="/rrrrr"] {
  object-position: center 39% !important;
}

/* Keep text legible without darkening the whole photograph. */
#page-home .homepage > .tf-slideshow.distro-hero .slideshow-wrap::after {
  content: "";
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgb(25 21 17 / 55%), rgb(25 21 17 / 16%) 48%, transparent 72%) !important;
  pointer-events: none !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .sld_content {
  box-sizing: border-box !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 22px clamp(24px, 5vw, 80px) 30px !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  z-index: 2 !important;
  pointer-events: none;
}

#page-home .homepage > .tf-slideshow.distro-hero .content-sld_wrap {
  width: 46% !important;
  max-width: 560px !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .heading {
  display: block !important;
  margin: 0 !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .sub-text_sld {
  display: block !important;
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(15px, 1.6vw, 23px) !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

/* Safe sizing if a slide title is added in Simple Sliders later. */
#page-home .homepage > .tf-slideshow.distro-hero .title_sld {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: clamp(22px, 2.6vw, 38px) !important;
  line-height: 1.1 !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .title_sld-line {
  white-space: normal !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .tf-btn {
  pointer-events: auto;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #171717 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  text-align: center !important;
}

/* Retain Swiper's active/inactive slide logic and clickable pagination. */
#page-home .homepage > .tf-slideshow.distro-hero .tf-sw-pagination {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: 8px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: 5 !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .swiper-pagination-bullet {
  width: 18px !important;
  height: 6px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  opacity: .55 !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .swiper-pagination-bullet-active {
  background: #171717 !important;
  opacity: 1 !important;
}

#page-home .homepage > .tf-slideshow.distro-hero .group-nav-action {
  display: none !important;
}

@media (max-width: 767px) {
  #page-home .homepage > .tf-slideshow.distro-hero {
    --dd-compact-height: max(108px, 33.333333vw);
  }

  #page-home .homepage > .tf-slideshow.distro-hero .sld_content {
    padding: 10px 14px 20px !important;
  }

  #page-home .homepage > .tf-slideshow.distro-hero .content-sld_wrap {
    width: 50% !important;
    max-width: 240px !important;
  }

  #page-home .homepage > .tf-slideshow.distro-hero .sub-text_sld {
    font-size: clamp(11px, 2.8vw, 16px) !important;
    line-height: 1.25 !important;
    margin-bottom: 7px !important;
  }

  #page-home .homepage > .tf-slideshow.distro-hero .title_sld {
    font-size: clamp(13px, 3.3vw, 22px) !important;
    margin-bottom: 7px !important;
  }

  #page-home .homepage > .tf-slideshow.distro-hero .tf-btn {
    font-size: clamp(10px, 2.6vw, 13px) !important;
    min-height: 36px !important;
    padding: 8px 11px !important;
  }

  #page-home .homepage > .tf-slideshow.distro-hero .tf-sw-pagination {
    bottom: 7px !important;
  }
}

/* END DISTRO COMPACT BANNERS 20261029 */


  color: #fff !important;
  margin: 0 0 12px !important;
  font-size: clamp(12px,1.15vw,16px) !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}
.homepage .tf-slideshow.distro-hero .tf-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 40px !important;
  padding: 9px 17px !important;
  border: 1px solid white !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: var(--dd-black) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}
.homepage .tf-slideshow.distro-hero .group-nav-action {
  display: none !important;
}
.homepage .tf-slideshow.distro-hero .tf-sw-pagination {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 6px !important;
  z-index: 5 !important;
  width: 100% !important;
  height: auto !important;
}

/* CATEGORY DISPLAY — Only styles blocks already inserted in Homepage */
.homepage :is(
  .tf-section.section-categories.categories-grid,
  section[data-block-id='categories-grid'],
  section[data-block-id='ecommerce-categories']
) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 100% !important;
  padding-top: clamp(24px,4vw,54px);
  padding-bottom: clamp(24px,4vw,54px);
}
.homepage :is(.section-categories,.categories-grid,.ecommerce-categories)
  :is(.category-item,.category-card,.card-category) {
  min-width: 0;
  max-width: 100%;
  border-radius: 5px;
  overflow: hidden;
}
.homepage :is(.section-categories,.categories-grid,.ecommerce-categories)
  :is(.category-item,.category-card,.card-category) img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.homepage .card-product { min-width: 0; max-width: 100%; }
.homepage .card-product .name-product {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: break-word;
}

/* MOBILE BANNER — about 152px high on a 390px phone */
@media (max-width: 767px) {
  .homepage .tf-slideshow.distro-hero {
    --dd-height: clamp(145px,39vw,180px);
  }
  .homepage .tf-slideshow.distro-hero .sld_content {
    padding: 9px 14px 15px !important;
  }
  .homepage .tf-slideshow.distro-hero .content-sld_wrap {
    width: 56% !important;
    max-width: 230px !important;
  }
  .homepage .tf-slideshow.distro-hero .title_sld {
    font-size: clamp(15px,4vw,21px) !important;
    line-height: 1.12 !important;
    margin-bottom: 5px !important;
  }
  .homepage .tf-slideshow.distro-hero .sub-text_sld {
    font-size: clamp(10px,2.6vw,12px) !important;
    margin-bottom: 6px !important;
  }
  .homepage .tf-slideshow.distro-hero .tf-btn {
    min-height: 32px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
  }
  .homepage .tf-slideshow.distro-hero .tf-sw-pagination {
    bottom: 4px !important;
  }
  .homepage :is(.sect-heading,.section-heading) { text-align: left !important; }
  .homepage .card-product .name-product { font-size: 13px; }
}
/* END — DISTRO DIRECT RESPONSIVE REDESIGN */


/* Remove registration requirement on mobile devices */
@media screen and (max-width: 767px) {

    .checkout-page .login-form,
    .checkout-page .register-form,
    .checkout-page .customer-login,
    .checkout-page .customer-register,
    .checkout-page .login-required,
    .checkout-page .register-required,
    .checkout-page .login-box,
    .checkout-page .register-box,
    .checkout-page .checkout-login,
    .checkout-page .checkout-register,
    .checkout-page .login-wrapper,
    .checkout-page .register-wrapper {
        display: none !important;
    }

}