/* Spices To Snacks 2.2.3 — isolated thumbnails + Collections */

/* ---------- Product thumbnails: completely isolated from source theme ---------- */
body #sts-storefront .sts-source-product .sts5-thumb-wrapper{
  position:relative!important;
  width:84%!important;
  max-width:84%!important;
  margin:16px auto 24px!important;
  padding:0 38px!important;
  box-sizing:border-box!important;
}
body #sts-storefront .sts-source-product .sts5-thumb-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body #sts-storefront .sts-source-product .sts5-thumb{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:block;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  aspect-ratio:1/1!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:none!important;
  cursor:pointer!important;
  position:relative!important;
  box-sizing:border-box!important;
}
body #sts-storefront .sts-source-product .sts5-thumb.is-active{border-color:#232323!important}
body #sts-storefront .sts-source-product .sts5-thumb img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  object-fit:cover!important;
  object-position:center!important;
  opacity:1!important;
  box-sizing:border-box!important;
}
body #sts-storefront .sts-source-product .sts5-thumb-arrow{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:20!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  height:48px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:#fff!important;
  color:#232323!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
body #sts-storefront .sts-source-product .sts5-thumb-arrow svg{width:22px!important;height:22px!important;display:block!important}
body #sts-storefront .sts-source-product .sts5-thumb-prev{left:0!important}
body #sts-storefront .sts-source-product .sts5-thumb-next{right:0!important}
@media(min-width:768px){
  body #sts-storefront .sts-source-product .sts5-thumb.is-active img{opacity:.42!important}
}
@media(max-width:767px){
  body #sts-storefront .sts-source-product .sts5-thumb-wrapper{
    width:100%!important;
    max-width:100%!important;
    margin:8px 0 18px!important;
    padding:0 28px!important;
  }
  body #sts-storefront .sts-source-product .sts5-thumb-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body #sts-storefront .sts-source-product .sts5-thumb{
    width:100%!important;
    aspect-ratio:1/1!important;
    height:auto!important;
  }
  body #sts-storefront .sts-source-product .sts5-thumb img{object-fit:cover!important}
  body #sts-storefront .sts-source-product .sts5-thumb-arrow{width:24px!important;height:42px!important;background:transparent!important}
  body #sts-storefront .sts-source-product .sts5-thumb-prev{left:1px!important}
  body #sts-storefront .sts-source-product .sts5-thumb-next{right:1px!important}
}

/* ---------- Collections: brand-new grid; no flex/background-image reuse ---------- */
body #sts-storefront .sts5-collections-main{width:100%!important;margin:0!important;padding:0!important}
body #sts-storefront .sts5-collections-page{
  width:100%!important;
  max-width:1510px!important;
  margin:0 auto!important;
  padding:34px 20px 90px!important;
  box-sizing:border-box!important;
}
body #sts-storefront .sts5-collections-breadcrumb{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 38px!important;font-size:13px!important;color:#8f8f8f!important}
body #sts-storefront .sts5-collections-breadcrumb a{color:#8f8f8f!important;text-decoration:none!important}
body #sts-storefront .sts5-collections-page>h1{margin:0 0 30px!important;font-size:36px!important;line-height:1.2!important;font-weight:500!important;color:#171717!important}
body #sts-storefront .sts5-collections-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  column-gap:28px!important;
  row-gap:56px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body #sts-storefront .sts5-collection-card{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  contain:layout paint!important;
  isolation:isolate!important;
  background:#fff!important;
}
body #sts-storefront .sts5-collection-card::before,
body #sts-storefront .sts5-collection-card::after,
body #sts-storefront .sts5-collection-image::before,
body #sts-storefront .sts5-collection-image::after{display:none!important;content:none!important}
body #sts-storefront .sts5-collection-image{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  aspect-ratio:1/1!important;
  margin:0 0 28px!important;
  padding:0!important;
  overflow:hidden!important;
  clip-path:inset(0)!important;
  contain:strict!important;
  background:#f7f3ee!important;
  box-sizing:border-box!important;
}
body #sts-storefront .sts5-collection-image img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center!important;
  transform:none!important;
  box-sizing:border-box!important;
}
body #sts-storefront .sts5-collection-card h2{margin:0 0 14px!important;font-size:22px!important;line-height:1.1!important;font-weight:800!important;color:#050505!important}
body #sts-storefront .sts5-collection-card h2 a{color:inherit!important;text-decoration:none!important}
body #sts-storefront .sts5-collection-count{margin:0 0 22px!important;font-size:11px!important;line-height:1.4!important;color:#9b9b9b!important;text-transform:uppercase!important}
body #sts-storefront .sts5-collection-card p{max-width:390px!important;min-height:66px!important;margin:0 auto 24px!important;font-size:12px!important;line-height:1.8!important;color:#333!important}
body #sts-storefront .sts5-collection-shop{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:180px!important;height:48px!important;padding:0 28px!important;border-radius:26px!important;background:#232323!important;color:#fff!important;text-decoration:none!important;font-size:12px!important;font-weight:700!important;box-sizing:border-box!important}
body #sts-storefront .sts5-collection-extra{display:none!important}
body #sts-storefront .sts5-collections-page.is-expanded .sts5-collection-extra{display:block!important}
body #sts-storefront .sts5-collections-more{display:block!important;min-width:285px!important;height:48px!important;margin:56px auto 0!important;padding:0 30px!important;border:1px solid #232323!important;border-radius:25px!important;background:#fff!important;color:#232323!important;font-size:12px!important;font-weight:700!important}
@media(max-width:767px){
  body #sts-storefront .sts5-collections-page{padding:22px 14px 80px!important}
  body #sts-storefront .sts5-collections-page>h1{font-size:28px!important;margin-bottom:22px!important}
  body #sts-storefront .sts5-collections-grid{grid-template-columns:1fr!important;gap:38px!important}
  body #sts-storefront .sts5-collection-card p{min-height:0!important}
}

/* ---------- Benefit modal remains centered ---------- */
body #sts-storefront .sts-v223-modal-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;display:none!important;align-items:center!important;justify-content:center!important;padding:24px!important;background:rgba(0,0,0,.58)!important;box-sizing:border-box!important}
body #sts-storefront .sts-v223-modal-overlay.is-open{display:flex!important}
body #sts-storefront .sts-v223-modal{position:relative!important;width:min(760px,calc(100vw - 48px))!important;margin:0!important;background:#fff!important;color:#232323!important;box-shadow:0 16px 40px rgba(0,0,0,.18)!important}
body #sts-storefront .sts-v223-modal-inner{padding:30px 30px 34px!important}
body #sts-storefront .sts-v223-modal-inner h3{margin:0 0 26px!important;font-size:22px!important;line-height:1.3!important;font-weight:700!important;text-transform:uppercase!important}
body #sts-storefront .sts-v223-modal-content,body #sts-storefront .sts-v223-modal-content p{font-size:15px!important;line-height:1.7!important;color:#444!important}
body #sts-storefront .sts-v223-modal-close{position:absolute!important;top:-15px!important;right:-15px!important;width:32px!important;height:32px!important;padding:0!important;border:0!important;background:#000!important;color:#fff!important;font-size:24px!important;display:flex!important;align-items:center!important;justify-content:center!important}
html.sts-v223-modal-open,body.sts-v223-modal-open{overflow:hidden!important}
