.tlx-sg-wrap,
.tlx-sg-wrap *{
  box-sizing:border-box;
}

.tlx-sg-wrap{
  --tlx-bg:#050b18;
  --tlx-card:#121b2d;
  --tlx-card-2:#17243a;
  --tlx-line:rgba(62,187,255,.22);
  --tlx-line-strong:rgba(62,187,255,.42);
  --tlx-line-soft:rgba(255,255,255,.08);
  --tlx-text:#f5f8ff;
  --tlx-muted:#b6c5dd;
  --tlx-cyan:#12c9ff;
  --tlx-blue:#327cff;
  --tlx-violet:#8658ff;
  --tlx-grad:linear-gradient(135deg,#2c78ff 0%,#805cff 100%);
  --tlx-glow:0 0 28px rgba(35,132,255,.22);
  --tlx-sg-columns:4;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:18px 16px 44px;
  color:var(--tlx-text);
  font-family:Inter,Poppins,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.tlx-sg-hero{
  position:relative;
  isolation:isolate;
  display:block;
  min-height:0;
  margin:0 0 20px;
  padding:46px 48px;
  overflow:hidden;
  border:1px solid var(--tlx-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 82% 20%,rgba(112,91,255,.38),transparent 33%),
    radial-gradient(circle at 14% 4%,rgba(18,201,255,.22),transparent 32%),
    linear-gradient(135deg,rgba(5,14,29,.96),rgba(9,12,30,.98) 58%,rgba(16,10,43,.98));
  box-shadow:var(--tlx-glow),0 24px 80px rgba(0,0,0,.32);
}

.tlx-sg-hero:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(90deg,#000,rgba(0,0,0,.84),rgba(0,0,0,.38));
}

.tlx-sg-hero:after{
  content:"";
  position:absolute;
  inset:auto -16% -42% 28%;
  z-index:-1;
  height:240px;
  background:radial-gradient(ellipse at center,rgba(18,201,255,.24),transparent 67%);
  filter:blur(10px);
}

.tlx-sg-heroContent{
  position:relative;
  z-index:2;
  max-width:820px;
}

.tlx-sg-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 13px;
  color:var(--tlx-cyan);
  font-size:12px;
  line-height:1;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.tlx-sg-kicker:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--tlx-cyan);
  box-shadow:0 0 16px rgba(18,201,255,.9);
}

.tlx-sg-title{
  margin:0;
  color:#fff;
  font-family:inherit;
  font-size:clamp(38px,5.4vw,72px);
  line-height:.95;
  letter-spacing:-.055em;
  font-weight:950;
  text-align:left !important;
  text-wrap:balance;
}

.tlx-sg-subtitle{
  max-width:760px;
  margin:18px 0 0;
  color:var(--tlx-muted);
  font-size:16px;
  line-height:1.7;
  font-weight:600;
}

.tlx-sg-heroActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:24px 0 0;
}

.tlx-sg-heroActions span{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 14px;
  border:1px solid rgba(62,187,255,.22);
  border-radius:999px;
  background:rgba(8,20,39,.72);
  color:#dcecff;
  font-size:12px;
  line-height:1;
  font-weight:850;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}

.tlx-sg-heroVisual{
  position:relative;
  min-height:300px;
  border:1px solid rgba(62,187,255,.18);
  border-radius:22px;
  overflow:hidden;
  background:
    radial-gradient(circle at 52% 38%,rgba(18,201,255,.22),transparent 32%),
    radial-gradient(circle at 72% 68%,rgba(134,88,255,.26),transparent 30%),
    linear-gradient(135deg,rgba(8,23,46,.92),rgba(9,12,31,.9));
  box-shadow:inset 0 0 60px rgba(18,201,255,.08),0 22px 60px rgba(0,0,0,.28);
}

.tlx-sg-heroVisual img{
  display:block;
  width:100%;
  height:100%;
  min-height:300px;
  object-fit:cover;
  object-position:center;
}

.tlx-sg-orbit{
  position:absolute;
  border:1px solid rgba(18,201,255,.24);
  border-radius:999px;
  transform:rotate(-16deg);
}

.tlx-sg-orbit:before,
.tlx-sg-orbit:after{
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--tlx-cyan);
  box-shadow:0 0 18px rgba(18,201,255,.86);
}

.tlx-sg-orbitOne{
  inset:48px 58px 76px 54px;
}

.tlx-sg-orbitOne:before{
  top:16%;
  right:10%;
}

.tlx-sg-orbitOne:after{
  bottom:22%;
  left:12%;
}

.tlx-sg-orbitTwo{
  inset:82px 92px 106px 96px;
  transform:rotate(20deg);
}

.tlx-sg-orbitTwo:before{
  top:5%;
  left:26%;
}

.tlx-sg-orbitTwo:after{
  bottom:4%;
  right:20%;
}

.tlx-sg-heroVial{
  position:absolute;
  left:50%;
  top:50%;
  width:128px;
  height:210px;
  transform:translate(-50%,-48%);
  border:1px solid rgba(99,197,255,.34);
  border-radius:20px 20px 26px 26px;
  background:linear-gradient(90deg,rgba(255,255,255,.09),rgba(18,201,255,.1) 28%,rgba(2,8,18,.68) 62%,rgba(255,255,255,.08));
  box-shadow:inset 18px 0 28px rgba(255,255,255,.06),inset -18px 0 28px rgba(0,0,0,.36),0 0 34px rgba(18,201,255,.22);
}

.tlx-sg-heroVial:before{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  top:-28px;
  height:38px;
  border-radius:12px 12px 8px 8px;
  background:linear-gradient(180deg,#4a70ff,#102f90 62%,#06183e);
  box-shadow:0 0 24px rgba(50,124,255,.42);
}

.tlx-sg-heroVial span{
  position:absolute;
  left:18px;
  right:18px;
  top:70px;
  height:74px;
  border:1px solid rgba(18,201,255,.28);
  border-radius:12px;
  background:rgba(3,10,24,.54);
}

.tlx-sg-heroVial span:before{
  content:"TechnoLabX";
  position:absolute;
  left:0;
  right:0;
  top:18px;
  color:#dff4ff;
  font-size:12px;
  line-height:1;
  font-weight:900;
  text-align:center;
}

.tlx-sg-heroVial span:after{
  content:"Research";
  position:absolute;
  left:0;
  right:0;
  top:38px;
  color:var(--tlx-cyan);
  font-size:11px;
  line-height:1;
  font-weight:900;
  text-align:center;
}

.tlx-sg-heroPanel{
  position:absolute;
  right:22px;
  bottom:22px;
  display:grid;
  gap:3px;
  min-width:128px;
  padding:14px 16px;
  border:1px solid rgba(62,187,255,.26);
  border-radius:16px;
  background:rgba(5,13,28,.76);
  backdrop-filter:blur(14px);
}

.tlx-sg-heroPanel strong{
  color:#fff;
  font-size:25px;
  line-height:1;
  font-weight:950;
}

.tlx-sg-heroPanel span{
  color:var(--tlx-muted);
  font-size:12px;
  line-height:1.25;
  font-weight:800;
}

.tlx-sg-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 20px;
  padding:14px 18px;
  border:1px solid var(--tlx-line-soft);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(18,27,45,.96),rgba(10,17,31,.96));
  box-shadow:0 14px 42px rgba(0,0,0,.18);
}

.tlx-sg-toolbarText{
  display:grid;
  gap:4px;
  min-width:220px;
}

.tlx-sg-toolbarText strong{
  color:#fff;
  font-size:15px;
  line-height:1.25;
  font-weight:900;
}

.tlx-sg-toolbarText span{
  color:var(--tlx-muted);
  font-size:13px;
  line-height:1.35;
  font-weight:600;
}

.tlx-sg-sort{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
}

.tlx-sg-sortBtn{
  appearance:none;
  min-height:42px;
  margin:0;
  padding:0 18px;
  border:1px solid rgba(64,178,255,.24);
  border-radius:12px;
  background:rgba(9,23,45,.92);
  color:#d9e8ff;
  font:inherit;
  font-size:13px;
  line-height:1;
  font-weight:850;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}

.tlx-sg-sortBtn:hover,
.tlx-sg-sortBtn:focus{
  transform:translateY(-1px);
  border-color:rgba(18,201,255,.52);
  color:#fff;
  outline:none;
}

.tlx-sg-sortBtn.is-active{
  border-color:transparent;
  background:var(--tlx-grad);
  color:#fff;
  box-shadow:0 14px 34px rgba(72,91,255,.28);
}

.tlx-sg-grid{
  display:grid;
  grid-template-columns:repeat(var(--tlx-sg-columns,4),minmax(0,1fr));
  gap:34px 38px;
  width:100%;
}

.tlx-sg-item{
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--tlx-line);
  border-radius:14px;
  background:linear-gradient(180deg,var(--tlx-card-2) 0%,var(--tlx-card) 100%);
  box-shadow:0 16px 42px rgba(0,0,0,.25);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,opacity .22s ease;
}

.tlx-sg-item:hover{
  transform:translateY(-4px);
  border-color:rgba(18,201,255,.55);
  box-shadow:0 20px 52px rgba(0,0,0,.30),0 0 30px rgba(18,201,255,.12);
}

.tlx-sg-thumb{
  display:block;
  width:100%;
  aspect-ratio:1121 / 1403;
  margin:0;
  overflow:hidden;
  background:#071121;
  border-bottom:1px solid rgba(64,178,255,.16);
  text-decoration:none !important;
}

.tlx-sg-thumb img,
.tlx-sg-img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:contain;
  object-position:center center;
  margin:0 !important;
  transition:filter .24s ease;
}

.tlx-sg-item:hover .tlx-sg-img{
  transform:none;
  filter:saturate(1.08);
}

.tlx-sg-cardBody{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:16px 16px 18px;
}

.tlx-sg-name{
  min-height:42px;
  margin:0;
  color:#fff;
  font-family:inherit;
  font-size:15px;
  line-height:1.34;
  font-weight:900;
  letter-spacing:-.012em;
  text-align:left;
}

.tlx-sg-name a{
  color:inherit !important;
  text-decoration:none !important;
}

.tlx-sg-name a:hover{
  color:var(--tlx-cyan) !important;
}

.tlx-sg-price{
  margin:8px 0 0;
  color:var(--tlx-cyan);
  font-family:inherit;
  font-size:15px;
  line-height:1.35;
  font-weight:900;
  text-align:left;
}

.tlx-sg-price del{
  color:#7f91ae;
  opacity:.8;
  font-weight:700;
}

.tlx-sg-price ins{
  color:var(--tlx-cyan);
  text-decoration:none;
}

.tlx-sg-cart{
  display:flex;
  align-items:flex-end;
  margin-top:auto;
  padding-top:18px;
}

.tlx-sg-cart .button,
.tlx-sg-cart a.button,
.tlx-sg-cart button.button,
.tlx-sg-cart input.button,
.tlx-sg-cart a.added_to_cart{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:100% !important;
  min-height:48px !important;
  height:48px !important;
  margin:0 !important;
  padding:0 18px !important;
  border:0 !important;
  border-radius:9px !important;
  background:var(--tlx-grad) !important;
  background-image:var(--tlx-grad) !important;
  color:#fff !important;
  box-shadow:0 14px 30px rgba(76,98,255,.32) !important;
  font-family:inherit !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  text-decoration:none !important;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

.tlx-sg-cart .button:hover,
.tlx-sg-cart a.button:hover,
.tlx-sg-cart button.button:hover,
.tlx-sg-cart input.button:hover,
.tlx-sg-cart a.added_to_cart:hover{
  transform:translateY(-1px);
  color:#fff !important;
  box-shadow:0 18px 36px rgba(76,98,255,.42) !important;
  filter:saturate(1.08);
}

.tlx-sg-empty{
  grid-column:1 / -1;
  display:grid;
  gap:6px;
  padding:26px;
  border:1px solid var(--tlx-line);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(18,27,45,.96),rgba(10,17,31,.96));
  color:var(--tlx-muted);
  text-align:center;
}

.tlx-sg-empty strong{
  color:#fff;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}

.tlx-sg-empty span{
  color:var(--tlx-muted);
  font-size:14px;
  line-height:1.5;
  font-weight:600;
}

.tlx-sg-sorted-in{
  animation:tlxSgSortIn .24s ease both;
}

@keyframes tlxSgSortIn{
  from{opacity:.55;transform:translateY(5px);}
  to{opacity:1;transform:translateY(0);}
}

.tlx-sg-loadMore{
  display:grid;
  place-items:center;
  gap:10px;
  margin:22px 0 0;
  text-align:center;
}

.tlx-sg-loadBtn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border:0;
  border-radius:999px;
  background:var(--tlx-grad);
  color:#fff;
  font:inherit;
  font-size:14px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(76,98,255,.32);
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}

.tlx-sg-loadBtn:hover,
.tlx-sg-loadBtn:focus{
  transform:translateY(-1px);
  box-shadow:0 18px 38px rgba(76,98,255,.42);
  outline:none;
}

.tlx-sg-loadBtn:disabled{
  cursor:default;
  opacity:.72;
  transform:none;
}

.tlx-sg-loadStatus{
  color:var(--tlx-muted);
  font-size:13px;
  line-height:1.45;
  font-weight:700;
}

.tlx-sg-sentinel{
  width:100%;
  height:1px;
  pointer-events:none;
}

.tlx-sg-wrap.is-infinite-ready:not(.has-load-error) .tlx-sg-loadBtn,
.tlx-sg-wrap.is-infinite-ready:not(.has-load-error).is-loading-more .tlx-sg-loadBtn,
.tlx-sg-wrap.is-infinite-ready:not(.has-load-error).is-all-loaded .tlx-sg-loadBtn{
  position:absolute;
  width:1px;
  height:1px;
  min-height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  padding:0;
  border:0;
  box-shadow:none;
}

.tlx-sg-wrap.is-loading-more .tlx-sg-loadStatus:before{
  content:"";
  display:inline-block;
  width:12px;
  height:12px;
  margin-right:8px;
  border:2px solid rgba(18,201,255,.24);
  border-top-color:var(--tlx-cyan);
  border-radius:999px;
  vertical-align:-2px;
  animation:tlxSgSpin .7s linear infinite;
}

.tlx-sg-wrap.is-resetting-products .tlx-sg-grid{
  opacity:.62;
  pointer-events:none;
}

@keyframes tlxSgSpin{
  to{transform:rotate(360deg);}
}

@media (max-width:1040px){
  .tlx-sg-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px 22px;
  }
}

@media (max-width:720px){
  .tlx-sg-wrap{
    padding:12px 12px 38px;
  }

  .tlx-sg-hero{
    min-height:0;
    padding:34px 22px;
    border-radius:20px;
  }

  .tlx-sg-title{
    font-size:clamp(34px,12vw,48px);
  }

  .tlx-sg-subtitle{
    font-size:14px;
    line-height:1.6;
  }

  .tlx-sg-heroActions span{
    min-height:34px;
    font-size:11px;
  }

  .tlx-sg-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .tlx-sg-sort,
  .tlx-sg-toolbarText{
    width:100%;
  }

  .tlx-sg-sortBtn{
    flex:1 1 140px;
  }

  .tlx-sg-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 14px;
  }
}

@media (max-width:520px){
  .tlx-sg-grid{
    gap:16px 12px;
  }

  .tlx-sg-item{
    border-radius:12px;
  }

  .tlx-sg-cardBody{
    padding:12px 10px 12px;
  }

  .tlx-sg-name{
    min-height:38px;
    font-size:12.5px !important;
    line-height:1.28 !important;
  }

  .tlx-sg-price{
    font-size:12.5px !important;
  }

  .tlx-sg-cart{
    padding-top:12px;
  }

  .tlx-sg-cart .button,
  .tlx-sg-cart a.button,
  .tlx-sg-cart button.button,
  .tlx-sg-cart input.button,
  .tlx-sg-cart a.added_to_cart{
    min-height:40px !important;
    height:40px !important;
    border-radius:8px !important;
    font-size:12px !important;
    padding:0 10px !important;
  }
}

@media (max-width:380px){
  .tlx-sg-wrap{
    padding-left:10px;
    padding-right:10px;
  }

  .tlx-sg-grid{
    gap:14px 10px;
  }

  .tlx-sg-hero{
    padding:30px 16px;
  }
}



/* TechnoLabX Shop Grid v1.0.10 spacing fix */
body.tlx-shop-grid-archive-mode .tlx-sg-wrap{
  margin-top:-34px !important;
  padding-top:0 !important;
  padding-bottom:28px !important;
}

body.tlx-shop-grid-archive-mode .tlx-sg-loadMore{
  margin-top:20px !important;
}

@media (max-width:720px){
  body.tlx-shop-grid-archive-mode .tlx-sg-wrap{
    margin-top:-18px !important;
    padding-top:0 !important;
    padding-bottom:28px !important;
  }
}

@media (prefers-reduced-motion:reduce){
  .tlx-sg-item,
  .tlx-sg-img,
  .tlx-sg-sortBtn,
  .tlx-sg-loadBtn,
  .tlx-sg-cart .button,
  .tlx-sg-cart a.button{
    transition:none !important;
    animation:none !important;
  }
}

body.tlx-shop-grid-page .tlx-sg-wrap{
  padding-top:18px !important;
  padding-bottom:34px !important;
}

body.tlx-shop-grid-archive-mode .site-main,
body.tlx-shop-grid-archive-mode #primary,
body.tlx-shop-grid-archive-mode .content-area,
body.tlx-shop-grid-archive-mode main.site-main,
body.tlx-shop-grid-archive-mode .wp-site-blocks > main,
body.tlx-shop-grid-archive-mode .woocommerce,
body.tlx-shop-grid-archive-mode .woocommerce-page,
body.tlx-shop-grid-archive-mode .woocommerce-products-header,
body.tlx-shop-grid-archive-mode .wp-block-post-content,
body.tlx-shop-grid-archive-mode .entry-content{
  margin-top:0 !important;
  padding-top:0 !important;
}

body.tlx-shop-grid-archive-mode .site-main,
body.tlx-shop-grid-archive-mode #primary,
body.tlx-shop-grid-archive-mode .content-area,
body.tlx-shop-grid-archive-mode main.site-main,
body.tlx-shop-grid-archive-mode .wp-site-blocks > main,
body.tlx-shop-grid-archive-mode .woocommerce,
body.tlx-shop-grid-archive-mode .wp-block-post-content,
body.tlx-shop-grid-archive-mode .entry-content{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

body.tlx-shop-grid-archive-mode .wp-block-spacer,
body.tlx-shop-grid-archive-mode .woocommerce-products-header + .wp-block-spacer{
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

body.tlx-shop-grid-archive-mode .tlx-sg-hero{
  margin-top:0 !important;
  margin-bottom:20px !important;
}

body.tlx-shop-grid-archive-mode .tlx-sg-toolbar{
  margin-bottom:18px !important;
}

@media (max-width:720px){
  body.tlx-shop-grid-page .tlx-sg-wrap{
    padding-top:12px !important;
    padding-bottom:32px !important;
  }
}
