/* =========================================================
RESET
========================================================= */

#stacy-shop-reels-live,
#stacy-shop-reels-live *,
#stacy-shop-reels-live *::before,
#stacy-shop-reels-live *::after,
#ssrl-popup,
#ssrl-popup *,
#ssrl-popup *::before,
#ssrl-popup *::after{
  box-sizing:border-box;
}


/* =========================================================
SECTION
ORIGINAL SPACING
========================================================= */

#stacy-shop-reels-live{

  --ssrl-cream:#f4f0eb;
  --ssrl-brown:#806854;
  --ssrl-brown-dark:#5f3c28;
  --ssrl-ink:#2c2524;
  --ssrl-white:#f9f6f2;

  width:100%;
  max-width:100%;

  margin:0;

  padding:82px 0 92px;

  overflow:hidden;

  background:
    var(--ssrl-white);

  color:
    var(--ssrl-ink);

  font-family:
    "Hanken Grotesk",
    Arial,
    sans-serif;

  line-height:1.5;
}


/* =========================================================
CONTAINER
ORIGINAL WIDTH
========================================================= */

#stacy-shop-reels-live .ssrl-container{

  width:
    min(calc(100% - 48px),1440px);

  margin-inline:auto;
}


/* =========================================================
HEADING
ORIGINAL STYLE
========================================================= */

#stacy-shop-reels-live .ssrl-heading{

  max-width:920px;

  margin:
    0 auto 42px;

  text-align:center;
}


#stacy-shop-reels-live .ssrl-eyebrow{

  margin:
    0 0 14px;

  color:
    var(--ssrl-brown);

  font-size:11px;

  font-weight:700;

  line-height:1.3;

  letter-spacing:.18em;

  text-transform:uppercase;
}


#stacy-shop-reels-live .ssrl-heading h2{

  margin:0;

  color:
    var(--ssrl-ink);

  font-family:
    "Castoro",
    Georgia,
    serif;

  font-size:
    clamp(42px,3.9vw,58px);

  font-weight:400;

  line-height:1.05;

  letter-spacing:-.045em;
}


#stacy-shop-reels-live .ssrl-heading h2 em{

  color:
    var(--ssrl-brown);

  font-weight:400;
}


#stacy-shop-reels-live .ssrl-copy{

  max-width:680px;

  margin:
    18px auto 0;

  color:#6b5c53;

  font-size:16px;

  line-height:1.7;
}


/* =========================================================
SLIDER
========================================================= */

#stacy-shop-reels-live .ssrl-slider{

  width:100%;

  position:relative;
}


/* =========================================================
5 VIDEO GRID
ORIGINAL 14PX GAP
========================================================= */

#stacy-shop-reels-live .ssrl-track{

  width:100%;

  display:grid;

  grid-template-columns:
    repeat(5,minmax(0,1fr));

  gap:14px;

  outline:none;
}


/* =========================================================
VIDEO CARD
========================================================= */

#stacy-shop-reels-live .ssrl-card{

  min-width:0;

  position:relative;

  aspect-ratio:9 / 16;

  overflow:hidden;

  border-radius:8px;

  background:
    var(--ssrl-cream);
}


#stacy-shop-reels-live .ssrl-video{

  position:absolute;

  inset:0;

  width:100%;

  height:100%;

  display:block;

  object-fit:cover;

  background:#e6ddd4;
}


/* =========================================================
BOTTOM SHADE
========================================================= */

#stacy-shop-reels-live .ssrl-card::after{

  content:"";

  position:absolute;

  right:0;
  bottom:0;
  left:0;

  height:35%;

  z-index:1;

  background:
    linear-gradient(
      180deg,
      rgba(20,15,13,0),
      rgba(20,15,13,.76)
    );

  pointer-events:none;
}


/* =========================================================
PRODUCT OVERLAY
========================================================= */

#stacy-shop-reels-live .ssrl-product-trigger{

  position:absolute;

  right:8px;

  bottom:8px;

  left:8px;

  z-index:4;

  min-width:0;

  min-height:70px;

  padding:7px;

  display:grid;

  grid-template-columns:
    61px
    minmax(0,1fr);

  align-items:center;

  gap:10px;

  border:0;

  border-radius:5px;

  background:
    rgba(38,29,25,.61);

  color:#fff;

  font-family:
    "Hanken Grotesk",
    Arial,
    sans-serif;

  text-align:left;

  cursor:pointer;

  backdrop-filter:
    blur(3px);

  -webkit-backdrop-filter:
    blur(3px);

  transition:
    background .25s ease;
}


#stacy-shop-reels-live
.ssrl-product-trigger:hover{

  background:
    rgba(38,29,25,.82);
}


/* PRODUCT IMAGE */

#stacy-shop-reels-live .ssrl-thumb{

  width:61px;

  height:61px;

  overflow:hidden;

  border-radius:3px;

  background:#fff;
}


#stacy-shop-reels-live .ssrl-thumb img{

  width:100%;

  height:100%;

  display:block;

  object-fit:cover;
}


/* COPY */

#stacy-shop-reels-live .ssrl-product-copy{

  min-width:0;

  display:flex;

  flex-direction:column;

  gap:4px;
}


#stacy-shop-reels-live .ssrl-product-name{

  display:-webkit-box;

  overflow:hidden;

  color:#fff;

  font-size:14px;

  font-weight:600;

  line-height:1.25;

  -webkit-line-clamp:2;

  -webkit-box-orient:vertical;
}


#stacy-shop-reels-live .ssrl-product-price{

  color:
    rgba(255,255,255,.85);

  font-size:11px;

  font-weight:600;

  line-height:1.2;
}


/* =========================================================
MAIN ARROWS
========================================================= */

#stacy-shop-reels-live .ssrl-main-arrow{

  width:38px;

  height:38px;

  padding:0;

  position:absolute;

  top:50%;

  z-index:20;

  display:grid;

  place-items:center;

  border:
    1px solid
    rgba(44,37,36,.12);

  border-radius:50%;

  background:#fff;

  color:
    var(--ssrl-ink);

  cursor:pointer;

  box-shadow:
    0 2px 10px
    rgba(0,0,0,.10);

  transform:
    translateY(-50%);
}


#stacy-shop-reels-live .ssrl-main-prev{

  left:-19px;
}


#stacy-shop-reels-live .ssrl-main-next{

  right:-19px;
}


#stacy-shop-reels-live .ssrl-main-arrow svg{

  width:17px;

  height:17px;

  fill:none;

  stroke:currentColor;

  stroke-width:1.8;

  stroke-linecap:round;

  stroke-linejoin:round;
}


/* =========================================================
POPUP
========================================================= */

#ssrl-popup{

  position:fixed;

  inset:0;

  z-index:9999999;

  display:none;

  align-items:center;

  justify-content:center;

  font-family:
    "Hanken Grotesk",
    Arial,
    sans-serif;
}


#ssrl-popup.is-open{

  display:flex;
}


/* BACKDROP */

#ssrl-popup .ssrl-popup-backdrop{

  position:absolute;

  inset:0;

  background:
    rgba(15,15,15,.86);

  backdrop-filter:
    blur(2px);
}


/* =========================================================
POPUP PANEL
========================================================= */

#ssrl-popup .ssrl-popup-panel{

  width:min(304px,82vw);

  position:relative;

  z-index:3;
}


#ssrl-popup .ssrl-popup-video-wrap{

  width:100%;

  aspect-ratio:9 / 16;

  position:relative;

  overflow:visible;

  background:#111;
}


#ssrl-popup .ssrl-popup-video{

  width:100%;

  height:100%;

  display:block;

  object-fit:cover;

  background:#111;
}


/* =========================================================
TOP CONTROLS
========================================================= */

#ssrl-popup .ssrl-popup-top{

  position:absolute;

  top:14px;

  right:14px;

  z-index:15;

  display:flex;

  gap:8px;
}


#ssrl-popup .ssrl-popup-circle{

  width:40px;

  height:40px;

  padding:0;

  display:grid;

  place-items:center;

  border:0;

  border-radius:50%;

  background:
    rgba(65,60,58,.68);

  color:#fff;

  cursor:pointer;
}


#ssrl-popup .ssrl-popup-circle svg{

  width:18px;

  height:18px;

  fill:none;

  stroke:currentColor;

  stroke-width:1.7;

  stroke-linecap:round;

  stroke-linejoin:round;
}


#ssrl-popup .ssrl-volume-off{

  display:none;
}


/* =========================================================
SOCIAL
========================================================= */

#ssrl-popup .ssrl-popup-socials{

  position:absolute;

  top:43%;

  right:13px;

  z-index:15;

  display:flex;

  flex-direction:column;

  gap:14px;
}


#ssrl-popup .ssrl-social{

  padding:0;

  border:0;

  display:flex;

  flex-direction:column;

  align-items:center;

  gap:3px;

  background:transparent;

  color:#fff;

  font-family:
    "Hanken Grotesk",
    Arial,
    sans-serif;

  font-size:9px;

  font-weight:600;

  cursor:pointer;
}


#ssrl-popup .ssrl-social-circle{

  width:38px;

  height:38px;

  display:grid;

  place-items:center;

  border-radius:50%;

  background:
    rgba(65,60,57,.65);
}


#ssrl-popup .ssrl-social svg{

  width:18px;

  height:18px;

  fill:none;

  stroke:currentColor;

  stroke-width:1.5;

  stroke-linecap:round;

  stroke-linejoin:round;
}


#ssrl-popup .ssrl-like.is-liked svg{

  fill:#fff;
}


/* =========================================================
POPUP PRODUCT LISTING
REFERENCE STYLE
========================================================= */

#ssrl-popup .ssrl-popup-products{

  position:absolute;

  right:14px;

  bottom:16px;

  left:14px;

  z-index:20;

  overflow:hidden;
}


#ssrl-popup .ssrl-popup-products-track{

  display:flex;

  gap:8px;

  overflow-x:auto;

  overflow-y:hidden;

  scroll-snap-type:x mandatory;

  scrollbar-width:none;

  -webkit-overflow-scrolling:touch;
}


#ssrl-popup
.ssrl-popup-products-track::-webkit-scrollbar{

  display:none;
}


/* PRODUCT CARD */

#ssrl-popup .ssrl-popup-product-card{

  width:176px;

  min-width:176px;

  padding:9px;

  flex:0 0 176px;

  scroll-snap-align:start;

  border-radius:13px;

  background:#fff;

  color:#282323;
}


/* TOP */

#ssrl-popup .ssrl-popup-product-top{

  min-height:48px;

  display:grid;

  grid-template-columns:
    46px
    minmax(0,1fr)
    18px;

  align-items:start;

  gap:7px;
}


#ssrl-popup .ssrl-popup-thumb{

  width:46px;

  height:46px;

  overflow:hidden;

  border-radius:4px;

  background:#eee;
}


#ssrl-popup .ssrl-popup-thumb img{

  width:100%;

  height:100%;

  display:block;

  object-fit:cover;
}


#ssrl-popup .ssrl-popup-info{

  min-width:0;

  padding-top:1px;
}


#ssrl-popup .ssrl-popup-product-name{

  display:-webkit-box;

  overflow:hidden;

  color:#282323;

  font-size:9px;

  font-weight:600;

  line-height:1.3;

  -webkit-line-clamp:2;

  -webkit-box-orient:vertical;
}


#ssrl-popup .ssrl-popup-product-price{

  margin-top:4px;

  color:#806854;

  font-size:9px;

  font-weight:700;

  line-height:1.2;
}


/* EXTERNAL LINK */

#ssrl-popup .ssrl-product-link{

  color:#74706e;

  text-decoration:none;

  font-size:16px;

  line-height:1;
}


/* =========================================================
ACTUAL ADD TO CART BUTTON
========================================================= */

#ssrl-popup .ssrl-add-cart{

  width:100%;

  min-height:33px;

  margin-top:9px;

  padding:0 8px;

  display:flex;

  align-items:center;

  justify-content:center;

  border:0;

  border-radius:7px;

  background:#302724;

  color:#fff;

  font-family:
    "Hanken Grotesk",
    Arial,
    sans-serif;

  font-size:7px;

  font-weight:700;

  line-height:1;

  letter-spacing:.035em;

  cursor:pointer;

  transition:
    background .2s ease,
    opacity .2s ease;
}


#ssrl-popup .ssrl-add-cart:hover{

  background:#806854;
}


#ssrl-popup .ssrl-add-cart:disabled{

  opacity:.65;

  cursor:wait;
}


#ssrl-popup .ssrl-add-cart.is-added{

  background:#806854;
}


/* =========================================================
POPUP NAV
========================================================= */

#ssrl-popup .ssrl-popup-nav{

  width:52px;

  height:52px;

  padding:0;

  position:absolute;

  top:50%;

  z-index:10;

  display:grid;

  place-items:center;

  border:0;

  border-radius:50%;

  background:#fff;

  color:#111;

  cursor:pointer;

  box-shadow:
    0 2px 10px
    rgba(0,0,0,.12);

  transform:
    translateY(-50%);
}


#ssrl-popup .ssrl-popup-prev{

  left:
    calc(50% - 215px);
}


#ssrl-popup .ssrl-popup-next{

  right:
    calc(50% - 215px);
}


#ssrl-popup .ssrl-popup-nav svg{

  width:21px;

  height:21px;

  fill:none;

  stroke:currentColor;

  stroke-width:1.7;

  stroke-linecap:round;

  stroke-linejoin:round;
}


/* =========================================================
LAPTOP
ORIGINAL BEHAVIOUR
========================================================= */

@media(max-width:1050px){

  #stacy-shop-reels-live .ssrl-track{

    display:flex;

    gap:16px;

    margin-inline:-24px;

    padding:
      0 24px 14px;

    overflow-x:auto;

    overflow-y:hidden;

    overscroll-behavior-inline:
      contain;

    scroll-snap-type:
      x mandatory;

    scroll-padding-inline:
      24px;

    scrollbar-width:none;

    -webkit-overflow-scrolling:
      touch;
  }


  #stacy-shop-reels-live
  .ssrl-track::-webkit-scrollbar{

    display:none;
  }


  #stacy-shop-reels-live .ssrl-card{

    width:
      min(36vw,300px);

    flex:
      0 0 min(36vw,300px);

    scroll-snap-align:start;
  }


  #stacy-shop-reels-live .ssrl-main-prev{

    left:-4px;
  }


  #stacy-shop-reels-live .ssrl-main-next{

    right:-4px;
  }

}


/* =========================================================
MOBILE
ORIGINAL HEADING / CONTAINER
========================================================= */

@media(max-width:700px){

  #stacy-shop-reels-live{

    padding:
      64px 0 72px;
  }


  #stacy-shop-reels-live .ssrl-container{

    width:
      calc(100% - 36px);
  }


  #stacy-shop-reels-live .ssrl-heading{

    margin-bottom:32px;
  }


  #stacy-shop-reels-live .ssrl-eyebrow{

    font-size:10px;
  }


  #stacy-shop-reels-live .ssrl-heading h2{

    font-size:
      clamp(39px,11vw,52px);
  }


  #stacy-shop-reels-live .ssrl-copy{

    margin-top:16px;

    font-size:15px;

    line-height:1.65;
  }


  #stacy-shop-reels-live .ssrl-track{

    margin-inline:-18px;

    padding-inline:18px;

    scroll-padding-inline:18px;
  }


  #stacy-shop-reels-live .ssrl-card{

    width:
      calc((100% - 16px) / 2);

    flex:
      0 0 calc((100% - 16px) / 2);
  }


  #stacy-shop-reels-live .ssrl-main-arrow{

    display:none;
  }


  #ssrl-popup .ssrl-popup-panel{

    width:
      min(82vw,330px);
  }


  #ssrl-popup .ssrl-popup-prev{

    left:5px;
  }


  #ssrl-popup .ssrl-popup-next{

    right:5px;
  }


  #ssrl-popup .ssrl-popup-nav{

    width:42px;

    height:42px;
  }

}


/* =========================================================
SMALL MOBILE
========================================================= */

@media(max-width:420px){

  #stacy-shop-reels-live .ssrl-card{

    width:
      calc((100% - 16px) / 2);

    flex:
      0 0 calc((100% - 16px) / 2);
  }


  #ssrl-popup .ssrl-popup-product-card{

    width:168px;

    min-width:168px;

    flex-basis:168px;
  }

}


/* =========================================================
REDUCE MOTION
========================================================= */

@media(prefers-reduced-motion:reduce){

  #stacy-shop-reels-live *,
  #ssrl-popup *{

    scroll-behavior:auto!important;

    transition:none!important;
  }

}


/* =========================================================
DYNAMIC BACKEND SAFETY — 6+ REELS ONLY
Default five-reel frontend remains exactly as supplied.
========================================================= */
@media(min-width:1051px){
  #stacy-shop-reels-live .ssrl-track.ssrl-track--scroll{
    display:flex;
    gap:14px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  #stacy-shop-reels-live .ssrl-track.ssrl-track--scroll::-webkit-scrollbar{display:none;}
  #stacy-shop-reels-live .ssrl-track.ssrl-track--scroll .ssrl-card{
    width:calc((100% - 56px) / 5);
    min-width:calc((100% - 56px) / 5);
    flex:0 0 calc((100% - 56px) / 5);
    scroll-snap-align:start;
  }
}
