/**
 * London Premium v87
 * Homepage Immediate Selection — final mobile one-card carousel correction.
 * Keeps exactly one complete card in view, equalises card geometry and forces
 * campaign imagery to fill the entire media frame without dead strips.
 */

@media (max-width: 720px) {
  html,
  body.home {
    max-width: 100%;
    overflow-x: clip;
  }

  html body.home #page.site .lp-home-product-carousel {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html body.home #page.site .lp-home-product-carousel > [data-lp-reveal]:last-child,
  html body.home #page.site .lp-home-product-carousel .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products,
  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products[class*="columns-"] {
    --lp-carousel-edge: 18px;
    --lp-carousel-gap: 18px;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    direction: ltr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 34px 0 0 !important;
    padding: 0 var(--lp-carousel-edge) 4px !important;
    gap: var(--lp-carousel-gap) !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: var(--lp-carousel-edge) !important;
    scrollbar-width: none !important;
    touch-action: pan-x pan-y !important;
    list-style: none !important;
  }

  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products::before,
  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products::after {
    display: none !important;
    content: none !important;
  }

  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products > li.product,
  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products[class*="columns-"] > li.product,
  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products > li.product.lp-product-card {
    float: none !important;
    clear: none !important;
    flex: 0 0 calc(100% - (2 * var(--lp-carousel-edge))) !important;
    width: calc(100% - (2 * var(--lp-carousel-edge))) !important;
    min-width: calc(100% - (2 * var(--lp-carousel-edge))) !important;
    max-width: calc(100% - (2 * var(--lp-carousel-edge))) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }

  /* Media is a fixed square on every card. The image link is absolutely
     stretched over it so no inherited padding/flex sizing can leave a strip. */
  html body.home #page.site .lp-home-product-carousel .lp-product-card__media,
  html body.home #page.site .lp-home-product-carousel li.product:only-child .lp-product-card__media {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-product-card__image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-product-card__image > img,
  html body.home #page.site .lp-home-product-carousel .lp-product-card__image-secondary,
  html body.home #page.site .lp-home-product-carousel .lp-product-card__image-secondary img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    box-sizing: border-box !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-product-card__content {
    flex: 0 0 182px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 182px !important;
    min-height: 182px !important;
    max-height: 182px !important;
    margin: 0 !important;
    padding: 22px 20px 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-product-card__meta {
    flex: 0 0 auto !important;
    margin: 0 0 11px !important;
  }

  html body.home #page.site .lp-home-product-carousel .woocommerce-loop-product__title {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body.home #page.site .lp-home-product-carousel .woocommerce-loop-product__title,
  html body.home #page.site .lp-home-product-carousel .woocommerce-loop-product__title a {
    display: -webkit-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: clamp(24px, 7vw, 29px) !important;
    line-height: 1.04 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-product-card__price,
  html body.home #page.site .lp-home-product-carousel .price {
    margin-top: auto !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v86-carousel-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 20px 0 0 !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v86-carousel-arrow {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(201, 166, 87, .68) !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .12) !important;
    color: #f7f2e8 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    line-height: 0 !important;
    transition: opacity .2s ease, border-color .2s ease, background-color .2s ease !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v86-carousel-arrow svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.65 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v86-carousel-arrow:disabled {
    opacity: .32 !important;
    border-color: rgba(201, 166, 87, .35) !important;
    cursor: default !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v86-carousel-status {
    min-width: 58px !important;
    color: #c9a657 !important;
    font: 700 10px/1.2 Manrope, Arial, sans-serif !important;
    letter-spacing: .15em !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products,
  html body.home #page.site .lp-home-product-carousel .woocommerce ul.products[class*="columns-"] {
    --lp-carousel-edge: 16px;
    --lp-carousel-gap: 16px;
  }

  html body.home #page.site .lp-home-product-carousel .lp-product-card__content {
    flex-basis: 178px !important;
    height: 178px !important;
    min-height: 178px !important;
    max-height: 178px !important;
  }
}
