
/*
 * P.Lens Mobile Only UI v1.3.5
 * Existing desktop/homepage layout is untouched.
 */

/* Dedicated Virtual Try-On page only */
.plmo-vto-page{
  max-width:1180px;
  margin:0 auto;
  padding:8px 0 28px;
}
.plmo-vto-intro{
  position:relative;
  overflow:hidden;
  margin-bottom:20px;
  padding:28px 30px;
  border-radius:26px;
  background:
    radial-gradient(circle at 8% 18%,rgba(48,187,246,.18),transparent 26%),
    linear-gradient(135deg,#041727,#082f4b 64%,#0b5278);
  color:#fff;
  box-shadow:0 20px 55px rgba(4,32,50,.10);
}
.plmo-vto-kicker{
  display:inline-flex;
  padding:7px 11px;
  border:1px solid rgba(154,224,255,.26);
  border-radius:999px;
  color:#9fe2ff;
  font-size:11px;
  font-weight:900;
}
.plmo-vto-intro h2{
  margin:12px 0 6px;
  color:#fff;
  font-size:34px;
  line-height:1.45;
}
.plmo-vto-intro p{
  margin:0;
  max-width:720px;
  color:#d2e7f2;
  font-size:14px;
  line-height:2;
}
.plmo-vto-card{
  overflow:hidden;
  border-radius:28px!important;
  box-shadow:0 24px 70px rgba(5,36,55,.09)!important;
}
.plmo-vto-stage .pl-v55-empty-visual{
  background-image:var(--plmo-face)!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
.plmo-vto-footnote{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-top:16px;
  padding:16px 18px;
  border:1px solid #dbeaf0;
  border-radius:18px;
  background:#fff;
  color:#627b8b;
  font-size:12px;
  line-height:1.9;
}
.plmo-vto-footnote strong{color:#102536}

/* MOBILE ONLY changes to the existing homepage/navigation */
@media(max-width:800px){
  body.home #virtual-try-on{display:none!important}

  body{padding-bottom:76px!important}
  .pl-mobile-nav{
    height:70px!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    padding:6px max(4px,env(safe-area-inset-right))
            calc(6px + env(safe-area-inset-bottom))!important;
  }
  .pl-mobile-nav a{
    min-width:0!important;
    gap:3px!important;
    font-size:9px!important;
  }
  .pl-mobile-nav i{font-size:18px!important}
  .pl-mobile-nav .plmo-tryon-nav span,
  .pl-mobile-nav .pl-mobile-tryon span{
    font-size:8.6px!important;
    white-space:nowrap!important;
  }

  .plmo-vto-page{
    padding:0 0 18px;
  }
  .plmo-vto-intro{
    margin-bottom:14px;
    padding:22px 18px;
    border-radius:22px;
  }
  .plmo-vto-intro h2{font-size:28px}
  .plmo-vto-intro p{font-size:13px}

  .plmo-vto-card{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    padding:0!important;
    border-radius:22px!important;
  }
  .plmo-vto-stage{
    order:-1!important;
    min-height:480px!important;
    border-radius:22px 22px 0 0!important;
  }
  .plmo-vto-copy{
    padding:24px 18px!important;
    border-radius:0 0 22px 22px!important;
  }
  .plmo-vto-copy h2{font-size:27px!important}
  .plmo-vto-copy p{font-size:13px!important}
  .plmo-vto-footnote{
    flex-direction:column;
    gap:4px;
    margin-top:14px;
  }
}

@media(max-width:520px){
  .plmo-vto-stage{min-height:430px!important}
  .plmo-vto-copy h2{font-size:24px!important}
  .plmo-vto-card{border-radius:18px!important}
  .plmo-vto-stage{border-radius:18px 18px 0 0!important}
  .plmo-vto-copy{border-radius:0 0 18px 18px!important}
}


/* v1.3.1 — STRICT MOBILE ONLY: Original Frames banner rebuilt for portrait phones */
@media(max-width:800px){
  body.home .pl-v4-original-section{
    padding-top:24px!important;
    padding-bottom:28px!important;
  }

  body.home .pl-v4-original-wrap{
    width:calc(100% - 20px)!important;
    max-width:none!important;
    margin-inline:auto!important;
  }

  body.home .pl-v4-original{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1200/650!important;
    overflow:hidden!important;
    border-radius:24px!important;
    padding:0!important;
    background:
      linear-gradient(90deg,rgba(2,14,35,.56) 0%,rgba(2,14,35,.42) 22%,rgba(2,14,35,.20) 42%,rgba(2,14,35,0) 68%),
      url('assets/original-frames-mobile.jpg') center center / cover no-repeat!important;
    box-shadow:0 18px 42px rgba(4,31,52,.13)!important;
  }

  body.home .pl-v4-original-media,
  body.home .pl-v4-original-shade{
    display:none!important;
  }

  body.home .pl-v4-original-copy{
    position:absolute!important;
    z-index:2!important;
    left:4.2%!important;
    right:auto!important;
    top:50%!important;
    bottom:auto!important;
    transform:translateY(-50%)!important;
    width:31%!important;
    max-width:none!important;
    color:#fff!important;
    direction:rtl!important;
    text-align:right!important;
  }

  body.home .pl-v4-original h2{
    margin:0 0 8px!important;
    color:#fff!important;
    font-size:22px!important;
    line-height:1.02!important;
    font-weight:900!important;
    letter-spacing:-.02em!important;
  }

  body.home .pl-v4-original p{
    max-width:none!important;
    margin:0 0 12px!important;
    color:#edf6fb!important;
    font-size:9.4px!important;
    line-height:1.75!important;
  }

  body.home .pl-v4-original a{
    display:inline-flex!important;
    width:auto!important;
    min-width:0!important;
    min-height:38px!important;
    padding:7px 9px!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#082543!important;
    font-size:9.4px!important;
    font-weight:900!important;
    box-shadow:0 9px 22px rgba(0,14,31,.18)!important;
    white-space:nowrap!important;
  }
}

@media(max-width:520px){
  body.home .pl-v4-original{
    border-radius:20px!important;
  }

  body.home .pl-v4-original-copy{
    left:3.8%!important;
    width:31.5%!important;
  }

  body.home .pl-v4-original h2{
    font-size:20px!important;
    margin-bottom:7px!important;
  }

  body.home .pl-v4-original p{
    font-size:8.9px!important;
    line-height:1.65!important;
    margin-bottom:10px!important;
  }

  body.home .pl-v4-original a{
    min-height:36px!important;
    padding:8px 10px!important;
    font-size:9px!important;
  }
}


/* v1.3.2 — STRICT MOBILE ONLY: shallow crescent top/bottom edges for Original Frames */
@media(max-width:800px){
  body.home .pl-v4-original{
    border-radius:0!important;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 520'%3E%3Cpath fill='white' d='M0 22 C250 48 750 48 1000 22 L1000 498 C750 472 250 472 0 498 Z'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 520'%3E%3Cpath fill='white' d='M0 22 C250 48 750 48 1000 22 L1000 498 C750 472 250 472 0 498 Z'/%3E%3C/svg%3E")!important;
    -webkit-mask-size:100% 100%!important;
    mask-size:100% 100%!important;
    -webkit-mask-repeat:no-repeat!important;
    mask-repeat:no-repeat!important;
    -webkit-mask-position:center!important;
    mask-position:center!important;
  }
}


/* v1.3.3 — STRICT MOBILE ONLY: keep Original Frames text off the glasses */
@media(max-width:800px){
  body.home .pl-v4-original-copy p{
    width:95%!important;
  }
  body.home .pl-v4-original-copy .pl-v4-original-cta,
  body.home .pl-v4-original-copy a{
    margin-top:2px!important;
  }
}


/* v1.3.4 — STRICT MOBILE ONLY: proper bottom-nav icons */
@media(max-width:800px){
  .pl-mobile-nav a{
    position:relative!important;
  }
  .pl-mobile-nav a .plmo-icon{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:20px!important;
    height:20px!important;
    line-height:1!important;
    margin:0 auto 1px!important;
    color:#667887!important;
  }
  .pl-mobile-nav a .plmo-icon svg{
    display:block!important;
    width:20px!important;
    height:20px!important;
    stroke:currentColor!important;
    fill:none!important;
    stroke-width:2!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }
  .pl-mobile-nav a.active .plmo-icon,
  .pl-mobile-nav a.current .plmo-icon,
  .pl-mobile-nav a[aria-current="page"] .plmo-icon{
    color:#13324a!important;
  }
}


/* v1.3.5 — STRICT MOBILE ONLY: top-right cart badge gets proper cart icon */
@media(max-width:800px){
  .plmo-mobile-cart-badge,
  .plmo-mobile-cart-badge a,
  .plmo-mobile-cart-badge button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    direction:ltr!important;
  }
  .plmo-mobile-cart-badge .plmo-cart-icon{
    display:inline-flex!important;
    width:15px!important;
    height:15px!important;
    line-height:0!important;
    color:#2a6e97!important;
    flex:0 0 15px!important;
  }
  .plmo-mobile-cart-badge .plmo-cart-icon svg{
    width:15px!important;
    height:15px!important;
    display:block!important;
    stroke:currentColor!important;
    fill:none!important;
    stroke-width:2!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }
  .plmo-mobile-cart-badge .plmo-cart-count{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:auto!important;
    min-height:auto!important;
    font-weight:800!important;
    color:#2a6e97!important;
  }
}
