.terpzz-product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}

.terpzz-product-grid .card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  border:1px solid rgba(0,217,255,.36);
  background:linear-gradient(90deg,rgba(0,217,255,.10),rgba(4,5,17,.92),rgba(255,20,159,.06));
  box-shadow:0 0 16px rgba(0,217,255,.12);
}

.terpzz-product-grid .card:nth-child(even){
  border-color:rgba(255,20,159,.44);
}

.terpzz-product-grid .media{
  position:relative;
  flex:0 0 auto;
  background:#000;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.terpzz-product-grid .main-media-wrap{
  width:100%;
  aspect-ratio:1/.72;
  max-height:190px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:radial-gradient(circle at center,rgba(0,217,255,.08),transparent 50%),#000;
}

.terpzz-product-grid .main-media,
.terpzz-product-grid .main-media-link{
  width:100%;
  height:100%;
  display:block;
}

.terpzz-product-grid .main-media{
  object-fit:contain;
  object-position:center center;
}

.terpzz-product-grid .main-media-link{
  line-height:0;
}

.terpzz-product-grid video.main-media{
  object-fit:contain;
  object-position:center center;
}

.terpzz-product-grid .product-video-zoom{
  cursor:zoom-in;
  pointer-events:none;
}

.terpzz-product-grid .product-image-zoom{
  cursor:zoom-in;
}

.terpzz-product-grid .no-media{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:.75rem;
}

.terpzz-product-grid .thumbs-wrap{
  height:52px;
  padding:5px;
  overflow:hidden;
  background:rgba(0,0,0,.42);
  border-top:1px solid rgba(255,255,255,.08);
}

.terpzz-product-grid .thumbs{
  height:100%;
  display:flex;
  gap:5px;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:0;
  scrollbar-width:none;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
}

.terpzz-product-grid .thumbs::-webkit-scrollbar{
  display:none;
}

.terpzz-product-grid .thumbs-wrap-empty{
  pointer-events:none;
}

.terpzz-product-grid .thumb-link{
  flex:0 0 42px;
  width:42px;
  height:40px;
  display:block;
  line-height:0;
  border:1px solid rgba(255,255,255,.18);
  background:#000;
  cursor:pointer;
  opacity:.78;
  overflow:hidden;
  scroll-snap-align:start;
}

.terpzz-product-grid .thumb-link video{
  pointer-events:none;
}

.terpzz-product-grid .thumb{
  width:100%;
  height:100%;
  display:block;
  border:0;
  background:#000;
  object-fit:cover;
}

.terpzz-product-grid .thumb-link:hover,
.terpzz-product-grid .thumb-link.active{
  opacity:1;
  border-color:var(--cyan);
  box-shadow:0 0 10px rgba(0,217,255,.32);
}

.terpzz-product-grid .info{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  min-height:0;
  padding:9px;
}

.terpzz-product-grid .info-top{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}

.terpzz-product-grid .info h2{
  min-height:2.3em;
  margin:0 0 3px;
  font-family:'Dela Gothic One','Arial Black',Impact,sans-serif;
  text-transform:uppercase;
  font-size:.92rem;
  line-height:1.15;
  color:#fff;
}

.terpzz-product-grid .meta{
  min-height:1.5em;
  display:inline-block;
  width:max-content;
  max-width:100%;
  margin:0 0 3px;
  color:transparent;
  background:linear-gradient(90deg,var(--cyan),var(--blue),var(--pink2));
  -webkit-background-clip:text;
  background-clip:text;
  font-size:.76rem;
  line-height:1.25;
  text-shadow:0 0 12px rgba(0,217,255,.20);
}

.terpzz-product-grid .desc{
  min-height:4.4em;
  max-height:none;
  overflow:visible;
  margin:3px 0 4px;
  padding-right:0;
  color:#dce4f4;
  line-height:1.28;
  font-size:.80rem;
  overflow-wrap:anywhere;
}

.terpzz-product-grid .desc::-webkit-scrollbar{
  display:none;
}

.terpzz-product-grid .deals-list{
  min-height:52px;
  max-height:none;
  overflow:visible;
  margin:auto 0 0;
  padding:6px 0 0;
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:8px;
}

.terpzz-product-grid .deal-pill{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  min-height:20px;
  padding:5px 9px;
  border:1px solid rgba(255,20,159,.35);
  color:#fff;
  background:rgba(255,20,159,.10);
  font-size:.66rem;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:none;
}

.terpzz-product-grid .actions{
  flex:0 0 auto;
  display:flex;
  justify-content:flex-start;
  gap:6px;
  flex-wrap:wrap;
  margin-top:7px;
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.10);
}

.terpzz-product-grid .btn{
  flex:1;
  min-width:110px;
  margin:0;
  padding:8px;
  text-align:center;
  color:white;
  text-decoration:none;
  border:1px solid var(--cyan);
  background:linear-gradient(90deg,rgba(0,217,255,.22),rgba(0,217,255,.05));
  box-shadow:0 0 15px rgba(0,217,255,.22),inset 0 0 15px rgba(0,217,255,.10);
  font-family:'Dela Gothic One','Arial Black',Impact,sans-serif;
  font-weight:400;
  font-size:.64rem;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.image-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  width:100vw;
  height:100vh;
  height:100dvh;
  padding:24px;
  overflow:hidden;
  overscroll-behavior:none;
  background:rgba(0,0,0,.92);
  backdrop-filter:blur(8px);
}

.image-lightbox.open{
  display:flex;
}

.image-lightbox-inner{
  position:relative;
  width:min(1200px,calc(100vw - 48px));
  height:min(900px,calc(100vh - 48px));
  height:min(900px,calc(100dvh - 48px));
  max-width:100%;
  max-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.image-lightbox img,
.image-lightbox video{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  background:#000;
  border:1px solid rgba(0,217,255,.55);
  box-shadow:0 0 28px rgba(0,217,255,.30),0 0 48px rgba(255,20,159,.24);
}

.image-lightbox [hidden]{
  display:none !important;
}

.image-lightbox-close{
  position:absolute;
  top:8px;
  right:8px;
  width:46px;
  height:46px;
  min-height:46px;
  margin:0;
  padding:0;
  border-radius:50%;
  border:1px solid var(--pink);
  background:rgba(255,20,159,.24);
  color:#fff;
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
  z-index:4;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover{
  filter:brightness(1.2);
}

.image-lightbox-nav{
  position:absolute;
  top:50%;
  width:48px;
  height:64px;
  transform:translateY(-50%);
  border:1px solid rgba(0,217,255,.65);
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  z-index:3;
}

.image-lightbox-prev{left:8px;}
.image-lightbox-next{right:8px;}

.image-lightbox-nav[hidden]{
  display:none;
}

.image-lightbox-counter{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:.68rem;
  line-height:1.2;
  z-index:4;
}

body.lightbox-open{
  overflow:hidden !important;
  height:100%;
  touch-action:none;
}

@media(max-width:1150px){
  .terpzz-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:850px){
  .terpzz-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px){
  .terpzz-product-grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .terpzz-product-grid .main-media-wrap{
    aspect-ratio:1/.68;
    max-height:none;
  }

  .terpzz-product-grid .info{
    padding:9px 8px;
  }

  .terpzz-product-grid .info h2,
  .terpzz-product-grid .meta,
  .terpzz-product-grid .desc,
  .terpzz-product-grid .deals-list{
    min-height:0;
    max-height:none;
    overflow:visible;
  }

  .image-lightbox{
    padding:10px;
  }

  .image-lightbox-inner{
    width:calc(100vw - 20px);
    height:calc(100vh - 20px);
    height:calc(100dvh - 20px);
  }

  .image-lightbox-close{
    top:6px;
    right:6px;
    width:42px;
    height:42px;
    min-height:42px;
  }

  .image-lightbox-nav{
    width:42px;
    height:56px;
  }
}
