/**
 * London Premium v88
 * Immediate Selection mobile carousel — deterministic single-card viewport.
 * Uses a clipped viewport + translated track, so the rail can never stop
 * between cards or expose two half cards at once.
 */

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

  html body.home #page.site .lp-home-product-carousel {
    width: 100% !important;
    max-width: 100% !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 .lp-v18-section-head {
    width: auto !important;
    margin-left: 20px !important;
    margin-right: 20px !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: visible !important;
    box-sizing: border-box !important;
  }

  /* JS wraps the WooCommerce list in this viewport. It is the ONLY clipping layer. */
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport {
    position: relative !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    min-width: 0 !important;
    margin: 32px 16px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    touch-action: pan-y !important;
    overscroll-behavior-x: contain !important;
    cursor: grab;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport.is-dragging {
    cursor: grabbing;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .woocommerce,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport > .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport ul.products,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport ul.products[class*="columns-"] {
    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: none !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    grid-auto-columns: auto !important;
    overflow: visible !important;
    list-style: none !important;
    box-sizing: border-box !important;
    transform: translate3d(0,0,0);
    transition: transform .46s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport.is-dragging ul.products {
    transition: none !important;
  }

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

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport ul.products > li.product,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport ul.products[class*="columns-"] > li.product,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport ul.products > li.product.lp-product-card {
    float: none !important;
    clear: none !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !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;
  }

  /* Exact media geometry. Every image fills every pixel of the card frame. */
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .lp-product-card__media,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport 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-width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #0b0908 !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .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: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #0b0908 !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .lp-product-card__image > img,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .lp-product-card__image-secondary,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .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: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 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-v88-carousel-viewport .lp-product-card__image-secondary {
    overflow: hidden !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .lp-product-card__content {
    flex: 0 0 180px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !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-v88-carousel-viewport .lp-product-card__meta {
    margin: 0 0 10px !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .woocommerce-loop-product__title,
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport .woocommerce-loop-product__title a {
    display: -webkit-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 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;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

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

  /* New controls: unmistakable horizontal arrows, not chevrons or decorative glyphs. */
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 22px 0 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(200, 164, 80, .72) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #f7f3e9 !important;
    box-shadow: none !important;
    line-height: 0 !important;
    cursor: pointer !important;
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease !important;
  }

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

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-arrow:not(:disabled):active {
    background: rgba(200, 164, 80, .12) !important;
  }

  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-arrow:disabled {
    opacity: .28 !important;
    cursor: default !important;
  }

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

  /* Hide previous-generation control bars if stale DOM survives a cache/plugin render. */
  html body.home #page.site .lp-home-product-carousel .lp-v86-carousel-nav {
    display: none !important;
  }
}

@media (max-width: 390px) {
  html body.home #page.site .lp-home-product-carousel .lp-v88-carousel-viewport {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
  }
}
