.strona-glowna-produkty-wrap{
  --sgp-gap:22px;
  --sgp-page-gutter:26px;
  width:100%;
  max-width:1920px;
  margin:0 auto;
  padding:8px var(--sgp-page-gutter) 28px;
  color:#111;
  font-family:inherit;
}
.strona-glowna-produkty-wrap *,
.strona-glowna-produkty-wrap *::before,
.strona-glowna-produkty-wrap *::after{box-sizing:border-box;}

.sgp-products-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  margin:0 auto 24px;
  padding:0 2px;
}
.sgp-products-title{
  margin:0;
  font-size:clamp(30px,2.4vw,44px);
  line-height:1.08;
  font-weight:500;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.sgp-products-all{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border:1px solid #171717;
  border-radius:999px;
  color:#171717;
  background:#fff;
  font-size:clamp(15px,1.05vw,18px);
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.06em;
  text-decoration:none;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}
.sgp-products-all:hover{background:#171717;color:#fff;border-color:#171717;transform:translateY(-1px);}

.sgp-products-tabs{
  display:flex;
  gap:24px;
  margin:0 auto 24px;
  padding:0 2px 10px;
  overflow-x:auto;
  scrollbar-width:none;
  white-space:nowrap;
  border-bottom:1px solid #ececec;
}
.sgp-products-tabs::-webkit-scrollbar{display:none;}
.sgp-products-tabs button{
  position:relative;
  flex:0 0 auto;
  border:0;
  background:transparent;
  padding:0 0 8px;
  margin:0;
  color:#9a9a9a;
  font:inherit;
  font-size:clamp(15px,1.15vw,19px);
  line-height:1.2;
  letter-spacing:.07em;
  text-transform:uppercase;
  cursor:pointer;
  transition:color .2s ease;
}
.sgp-products-tabs button::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-11px;
  height:2px;
  border-radius:2px;
  background:#111;
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .2s ease;
}
.sgp-products-tabs button:hover{color:#333;}
.sgp-products-tabs button.is-active{color:#111;}
.sgp-products-tabs button.is-active::after{transform:scaleX(1);}

.strona-glowna-produkty{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--sgp-gap);
  width:100%;
  margin:0 auto;
  align-items:stretch;
}
.sgp-product-card{
  min-width:0;
  margin:0;
  padding:0;
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:18px;
  overflow:hidden;
  height:100%;
  box-shadow:0 6px 22px rgba(17,17,17,.055);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.sgp-product-card:hover{
  transform:translateY(-4px);
  border-color:#d9d9d9;
  box-shadow:0 12px 30px rgba(17,17,17,.10);
}
.sgp-product-link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.sgp-product-image{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  background:#fff;
  overflow:hidden;
  flex:0 0 auto;
  border-bottom:1px solid #eeeeee;
}
.sgp-product-image::after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(0,0,0,.045);
  border-radius:12px;
  pointer-events:none;
}
.sgp-product-image img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:contain;
  object-position:center;
  margin:0 !important;
  padding:14px !important;
  background:#fff;
  transition:transform .25s ease;
}
.sgp-product-card:hover .sgp-product-image img{transform:scale(1.025);}
.sgp-product-meta{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:182px;
  padding:18px 18px 20px;
  background:#fff;
}
.sgp-product-name{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
  min-height:calc(1.14em * 4);
  margin:0;
  font-size:clamp(20px,1.42vw,27px);
  line-height:1.14;
  font-weight:500;
  letter-spacing:-.01em;
  text-align:left;
}
.sgp-product-price,
.sgp-product-price .price{
  margin-top:auto;
  margin-bottom:0;
  min-height:2.5em;
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:2px 7px;
  font-size:clamp(18px,1.25vw,24px);
  line-height:1.2;
  font-weight:400;
}
.sgp-product-price del{opacity:.42;margin-left:0;}
.sgp-product-price ins{text-decoration:none;}

.sgp-product-card.is-hidden{display:none;}
.sgp-products-empty,
.sgp-products-error{padding:30px 0;font-size:20px;}

@media (min-width:1440px){
  .strona-glowna-produkty{grid-template-columns:repeat(5,minmax(0,1fr));}
}

@media (max-width:1100px){
  .strona-glowna-produkty-wrap{--sgp-gap:16px;--sgp-page-gutter:20px;}
  .sgp-products-title{font-size:32px;}
  .sgp-products-all{font-size:14px;min-height:40px;padding:9px 15px;}
  .sgp-product-meta{min-height:166px;padding:16px 14px 18px;}
}

@media (max-width:900px){
  .strona-glowna-produkty-wrap{
    --sgp-gap:10px;
    --sgp-page-gutter:10px;
    padding-top:4px;
  }
  .sgp-products-head{
    gap:14px;
    margin-bottom:18px;
    padding:0 2px;
    align-items:center;
  }
  .sgp-products-title{font-size:23px;letter-spacing:.07em;}
  .sgp-products-all{font-size:12px;min-height:36px;padding:8px 12px;letter-spacing:.045em;}
  .sgp-products-tabs{gap:22px;margin-bottom:18px;padding:0 2px 8px;}
  .sgp-products-tabs button{font-size:13px;}
  .strona-glowna-produkty{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sgp-product-card{border-radius:14px;}
  .sgp-product-image::after{inset:7px;border-radius:9px;}
  .sgp-product-image img{padding:9px !important;}
  .sgp-product-meta{min-height:160px;padding:13px 11px 15px;}
  .sgp-product-name{
    min-height:calc(1.13em * 4);
    font-size:clamp(17px,4.2vw,22px);
    line-height:1.13;
  }
  .sgp-product-price,
  .sgp-product-price .price{font-size:clamp(16px,3.8vw,21px);min-height:2.45em;}
}

@media (max-width:560px){
  .strona-glowna-produkty-wrap{--sgp-gap:8px;--sgp-page-gutter:7px;padding-bottom:20px;}
  .sgp-products-head{margin-bottom:16px;gap:8px;}
  .sgp-products-title{font-size:16px;letter-spacing:.055em;}
  .sgp-products-all{font-size:10.5px;min-height:32px;padding:7px 10px;}
  .sgp-products-tabs{gap:20px;margin-bottom:15px;}
  .sgp-products-tabs button{font-size:11px;letter-spacing:.05em;}
  .sgp-product-card{border-radius:12px;box-shadow:0 4px 16px rgba(17,17,17,.05);}
  .sgp-product-image::after{inset:5px;border-radius:8px;}
  .sgp-product-image img{padding:7px !important;}
  .sgp-product-meta{min-height:142px;padding:10px 8px 12px;}
  .sgp-product-name{
    min-height:calc(1.13em * 4);
    font-size:15px;
    line-height:1.13;
  }
  .sgp-product-price,
  .sgp-product-price .price{font-size:14px;min-height:2.4em;}
}
