/* =========================================================
   NEW ARRIVALS — STABLE CONTINUOUS LOOP
   ========================================================= */
#newArrivalsContinuousViewport{
  overflow:hidden !important;
  width:100% !important;
  position:relative !important;
}

#newArrivalsContinuousTrack{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:18px !important;
  width:max-content !important;
  max-width:none !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  will-change:auto !important;
}

#newArrivalsContinuousTrack > *{
  flex:0 0 222px !important;
  width:222px !important;
  min-width:222px !important;
  box-sizing:border-box !important;
}

@media(max-width:900px){
  #newArrivalsContinuousTrack > *{
    flex-basis:210px !important;
    width:210px !important;
    min-width:210px !important;
  }
}
@media(max-width:620px){
  #newArrivalsContinuousTrack > *{
    flex-basis:78vw !important;
    width:78vw !important;
    min-width:78vw !important;
  }
}

/* Library-selection options remain styled as cards even though buttons */
.new-arrivals-library-option{
  width:100%;
  border:1px solid #e0e6ef;
  text-align:left;
  cursor:pointer;
}

/* =========================================================
   NEW ARRIVALS DESTINATION PAGE POPUP
   ========================================================= */
.new-arrivals-page-popup{
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.new-arrivals-page-popup.open{display:flex}
.new-arrivals-page-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,15,38,.82);
  backdrop-filter:blur(6px);
}
.new-arrivals-page-dialog{
  position:relative;
  z-index:2;
  width:min(1180px,96vw);
  height:min(82vh,820px);
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  animation:newArrivalsPageIn .28s ease both;
}
@keyframes newArrivalsPageIn{
  from{opacity:0;transform:translateY(18px) scale(.985)}
  to{opacity:1;transform:none}
}
.new-arrivals-page-close{
  position:absolute;
  z-index:5;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#0f1e4a;
  color:#fff;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(0,0,0,.18);
}
#newArrivalsPageFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}
body.new-arrivals-page-open{overflow:hidden}
