@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
#sg_product_card {
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    color: #2f2a24;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 22px;
}

#sg_product_card * {
    box-sizing: border-box;
}

#sg_product_card p {
    margin: 0;
}

#sg_product_card video,
#sg_product_card img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

#sg_product_card video {
    width: 100%;
}

#sg_product_card .sg_hero {
    position: relative;
    color:#ffffff
}

#sg_product_card .sg_hero:after {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 70%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 5;
    position: absolute;
}

#sg_product_card .sg_card_content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 36px;
    padding-inline: 40px;
}

#sg_product_card .sg_hisense {
    text-align: center;
    padding: 88px 0;
}

#sg_product_card .sg_strong {
    font-family: 'Playfair Display';
    font-weight: 650;
	font-size: 37px;
}

#sg_product_card .sg_medium {
    font-weight: 500;
}

#sg_product_card .sg_hero_content {
    position: absolute;
    left: 48px;
    bottom: 80px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1.2), 
        0 0 2px rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: 400;
    line-height: 46px;
    z-index: 10;
}

#sg_product_card .sg_main_section {
    padding-block: 32px;
    border-radius: 48px;
    border: 1px solid #dfdfdf;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4f4 100%);
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

/* ------------------------- POŚWIATA ------------------------- */
#sg_product_card .sg_main_section_bg { 
    border-radius: 100%;
    width: 170px; /* szerokość */
    height: 260px; /* wysokość */
    background: #2f2a24; /* Kolor */
    filter: blur(48px);
    position: absolute;
    right: 20%; /* Pozycja lewo/prawo */
    bottom: 37px; /* Pozycja góra/dół */
}

#sg_product_card .sg_title {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    position: relative;
    z-index: 1;
}

#sg_product_card .sg_main_section_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 92px; /* szerokość zdjęcie a siatka */
    position: relative;
    z-index: 1;
    padding: 0 132px;
}


/* Siatka 2 kolumny (np. 2 x 2)*/
#sg_product_card .sg_main_section_icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Siatka na 3 kolumny (np 3 x 2)

#sg_product_card .sg_main_section_icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}*/

/* Ostatni wiersz wyśrodkowany - jeden element*/
.sg_main_section_icon:last-child {
    grid-column: 1 / 3;
    justify-self: center;
}

#sg_product_card .sg_main_section_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

#sg_product_card .sg_main_section_icon_desc {
    font-size: 10px;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 2px;
	font-size: 13px;
}


#sg_product_card .sg_inline_icon {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-inline: auto;
    padding: 30px 0 0;
}

#sg_product_card .sg_inline_icon_title {
    color: #2f2a24;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    text-align: center;
}

#sg_product_card .sg_headline {
    position: relative;
    text-align: center;
    padding: 30px 0;
}

/* NAGŁÓWEK nad sekcjami*/
#sg_product_card .sg_headline_title {
    position: absolute;
    left: 50%;
    top: 0; 
    transform: translate(-50%, 0px); /* druga wartość -> przesunięcie góra-dół = im niższa wartość tym napis jest wyżej*/
    font-size: 36px; /* Wielkość czcionki */
    font-weight: 700; /* Grubość czcionki */
    line-height: normal;
    background: #FFFFFF;
    padding: 12px 18px;
}

#sg_product_card .sg_headline_title span {
    color: #2f2a24;
}

#sg_product_card .sg_video_with_desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 12px;
    line-height: 18px;
}

#sg_product_card .sg_video_with_desc img {
    border-radius: 32px;
}

#sg_product_card .sg_video_with_desc video {
    border-radius: 32px;
}

#sg_product_card .sg_chess_header {
    display: flex;
    align-items: center;
    gap: 10px;
}

#sg_product_card .sg_chess_header img {
    flex-shrink: 0;
}

#sg_product_card .sg_chess_header_title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#sg_product_card .sg_chess_title {
    color: #2f2a24;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

#sg_product_card .sg_chess_att, .sg_inline_icon_att {
    font-weight: bold;
}

#sg_product_card .sg_inline_icon_att {
    text-align: center;
}

#sg_product_card .sg_chess {
    gap: 36px;
    display: flex;
    flex-direction: column;
}

#sg_product_card .sg_chess_item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    grid-template-areas: "image text";
}

#sg_product_card .sg_chess--reversed .sg_chess_item {
    grid-template-areas: "text image";
}

#sg_product_card .sg_chess_image {
    grid-area: image;
}

#sg_product_card .sg_chess_image video {
    border-radius: 32px;
    max-width: 100%;
    height: auto;
}

#sg_product_card .sg_chess_item:nth-of-type(2n) {
    grid-template-areas: "text image";
}

#sg_product_card .sg_chess--reversed .sg_chess_item:nth-of-type(2n) {
    grid-template-areas: "image text";
}

#sg_product_card .sg_chess_content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-area: text;
}

#sg_product_card .sg_chess_text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#sg_product_card .sg_chess_image img {
    width: 100%;
    border-radius: 20px;
    font-size: 0;
    line-height: 0;
}



#sg_product_card .sg_center {
    text-align: center;
}

#sg_product_card .sg_other_features {
    padding: 48px 80px 68px;
    display: flex;
    flex-direction: column;
    gap: 55px;
    /* min-width: 0; */
    border-radius: 32px;
    border: 1px solid #dfdfdf;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4f4 100%);
}

/* Kluczowe parametry*/
#sg_product_card .sg_other_features_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Jeżeli w wierszu mają być 4 ikony to wpisujemy 8, odpowiednio 3 -> 6, 5 -> 10*/
    gap: 64px 24px;
}

#sg_product_card .sg_other_features_grid_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    grid-column: span 2;
}

#sg_product_card .sg_other_features_grid_item_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#sg_product_card .sg_other_features_grid_item_title {
    color: #2f2a24;
    text-align: center;
    font-weight: 600;
	font-size: 16px; 
}

#sg_product_card .sg_other_features_grid_item_text {
    font-size: 13px;
    line-height: 20px;
	font-size: 14px; 
}

#sg_product_card .sg_spec {
    padding-inline: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

#sg_product_card .sg_spec img {
    width: 265px;
}

#sg_product_card .sg_spec_title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: #2f2a24;
}

#sg_product_card .sg_spec_table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 360px;
}

#sg_product_card .sg_semibold {
    font-weight: 600;
}

#sg_product_card .sg_dimensions {
    padding: 0 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

#sg_product_card .sg_dimensions_table {
    border: 1px solid #2f2a24;
    width: 300px;
}

#sg_product_card .sg_spec_table_row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

#sg_product_card .sg_dimensions_table_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #2f2a24;
    text-align: center;
}

#sg_product_card .sg_dimensions_table_row:last-child {
    border-bottom: none;
}

#sg_product_card .sg_dimensions_table_row div {
    padding: 4px;
}

#sg_product_card .sg_dimensions_table_row div:first-child {
    border-right: 1px solid #2f2a24;
}

#sg_product_card .sg_spec_table_row div:last-child {
    text-align: right;
}

@media (max-width: 991px) {
    #sg_product_card .sg_chess_item {
        gap: 24px;
    }

    #sg_product_card .sg_main_section_grid {
        padding: 0 80px;
    }

    #sg_product_card .sg_main_section_icons {
        gap: 16px;
    }

    #sg_product_card .sg_main_section_bg {
        right: 25%;
    }
}

@media (max-width: 767px) {
    #sg_product_card .sg_card_content {
        gap: 32px;
        padding-top: 32px;
        padding-inline: 16px;
    }

    #sg_product_card .sg_hisense {
        padding: 64px 10%;
    }

    #sg_product_card .sg_chess {
        gap: 32px;
    }

    #sg_product_card .sg_hero {
        padding-top: 40px;
    }

    #sg_product_card .sg_hero_content {
        padding-bottom: 32px;
        padding-left: 16px;
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        color:#2f2a24;
        text-shadow: 2px 2px 4px rgb(255, 255, 255), 0 0 2px rgba(255, 255, 255, 0.8);
    }

    #sg_product_card .sg_main_section_grid {
        padding: 0;
        grid-template-columns: 1fr;
    }

    #sg_product_card .sg_main_section_icons {
        order: 2;
        gap: 24px;
        padding: 0 16px;
    }

    #sg_product_card .sg_main_section_grid img {
        display: block;
        margin: 0 auto;
    }

    /* ------------------------- POŚWIATA ------------------------- */
    #sg_product_card .sg_main_section_bg {
        right: 34%;/* Pozycja lewo/prawo - im wyższa wartość tym bardziej do lewej */
        bottom: auto;
        top: 160px; /* Pozycja góra/dół - im wyzsza wartosc tym jest nizej*/
        width: 140px;/* Szerokość */
        height: 240px; /* Wysokość */
        flex-shrink: 0;
    }

    #sg_product_card .sg_other_features {
        padding: 54px 16px 44px;
        gap: 64px;
        border-radius: 20px;
    }

   

    #sg_product_card .sg_spec {
        padding-inline: 16px;
    }

    #sg_product_card .sg_spec > div {
        width: 100%;
    }

    #sg_product_card .sg_spec_table {
        width: 100%;
    }

    #sg_product_card .sg_dimensions {
        padding: 64px 16px 0;
    }

    #sg_product_card .sg_other_features_grid_item_title {
        color: #2f2a24;
        text-align: center;
        font-weight: 600;
        font-size: 16px; 
    }

    #sg_product_card .sg_other_features_grid_item_text {
        font-size: 13px;
        line-height: 20px;
        font-size: 14px; 
    }
    #sg_product_card .sg_title_other_features {
        display: none;
    }
}

@media (max-width: 649px) {
    #sg_product_card .sg_other_features_grid_item {
        grid-column: span 1;
    }

    #sg_product_card .sg_other_features_grid_item_empty {
        display: none;
    }

    #sg_product_card .sg_chess_item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        gap: 20px;
    }

    #sg_product_card .sg_chess--reversed .sg_chess_item {
        grid-template-areas:
            "image"
            "text";
    }

    #sg_product_card .sg_chess_item:nth-of-type(2n) {
        grid-template-areas:
            "image"
            "text";
    }

    #sg_product_card .sg_chess--reversed .sg_chess_item:nth-of-type(2n) {
        grid-template-areas:
            "image"
            "text";
    }

    #sg_product_card .sg_chess_image img {
        border-radius: 24px;
    }

    #sg_product_card .sg_other_features_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #sg_product_card .sg_spec {
        flex-direction: column-reverse;
    }

    #sg_product_card .sg_dimensions {
        flex-direction: column;
    }
}


@media (max-width: 450px) {
    /*NAGŁÓWEK nad sekcjami - mobile*/
    #sg_product_card .sg_headline_title {
        transform: translate(-50%, 0px);/* druga wartość -> przesunięcie góra-dół = im niższa wartość tym napis jest wyżej*/
        font-size: 28px; /* Wielkość czcionki */
    }

    #sg_product_card .sg_headline {
        padding-bottom: 40px;
    }

    #sg_product_card .sg_dimensions_table {
        width: 100%;
    }
}

/* ---------------- WARIANTY PRODUKTU ---------------- */

#sg_product_card .sg_variants {
    padding: 48px 80px 0px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#sg_product_card .sg_variants_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

#sg_product_card .sg_variant_card {
    background: linear-gradient(180deg,#1F1F1F 0%,#000 100%);
    border: 1px solid #4A4A4A;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
 /* ---------------- WARIANT WYBRANY ---------------- */
#sg_product_card #wybrany_wariant {
    background: linear-gradient(180deg,#1F1F1F 0%,#000 100%);
    border: 1px solid #2f2a24;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#sg_product_card .sg_variant_image {
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sg_product_card .sg_variant_image img {
    max-width: 80%;
    height: auto;
}

#sg_product_card .sg_variant_content {
    padding: 0 24px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

#sg_product_card .sg_variant_title {
    font-size: 18px;
    font-weight: 600;
    color: #2f2a24;
}

#sg_product_card .sg_variant_desc {
    font-size: 14px;
    line-height: 20px;
}

/* MOBILE */

@media (max-width: 767px) {

    #sg_product_card .sg_variants {
        padding: 32px 16px;
    }

    #sg_product_card .sg_variants_grid {
        grid-template-columns: 1fr;
    }

    #sg_product_card .sg_video_with_desc img {
        border-radius: 20px;
    }

    #sg_product_card .sg_video_with_desc video {
        border-radius: 20px;
    }

}


/* KLUCZOWE CECHY w przypadku nie parzystych - ostatni element wyśrodkowany*/

@media (max-width: 649px) {
    #sg_product_card .sg_other_features_grid_item:nth-last-child(2) {
        grid-column: 1 / -1;          
        justify-self: center;         
        width: 100%;                  
    }
} 


/* ---------------- ZAWARTOŚĆ ZESTAWU ---------------- */

#sg_product_card .sg_set_simple {
    padding: 40px;
    border-radius: 32px;
    border: 1px solid #dfdfdf;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4f4 100%);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#sg_product_card .sg_set_simple img {
        border-radius: 32px;
}

#sg_product_card .sg_set_simple_list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

#sg_product_card .sg_set_simple_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #dfdfdf;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    #sg_product_card .sg_set_simple {
        gap: 25px;
        padding: 25px;
    }
    
    #sg_product_card .sg_set_simple img {
        border-radius: 20px;
    }

    #sg_product_card .sg_set_simple_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #sg_product_card .sg_set_simple_item {
        min-height: auto;
        padding: 12px 5px;
        border-radius: 14px;
        font-size: 13px;
        line-height: 18px;
    }
}

/*---------------- Kafelki ----------------*/

#sg_product_card .sg_matt_wrapper{
    display:flex;
    flex-wrap:nowrap;
    justify-content:space-between;
    align-items:flex-start;
    gap:30px;
    width:100%;
    padding:32px 24px;
    padding: 24px;
    border-radius: 32px;
    border: 1px solid #dfdfdf;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4f4 100%);
}

#sg_product_card .sg_matt_wrapper .sg_matt_box{
    width:calc(33.333% - 20px);
    max-width:calc(33.333% - 20px);
    min-width:0;
    flex:0 0 calc(33.333% - 20px);
    text-align:center;
}

#sg_product_card .sg_matt_wrapper .sg_matt_box img{
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    margin: 0 0 18px;
    border-radius: 16px;
}

#sg_product_card .sg_matt_wrapper .sg_matt_box video{
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    margin: 0 0 18px;
    border-radius: 16px;
}

#sg_product_card .sg_matt_wrapper .sg_matt_title{
    color:#2f2a24;
    font-weight:600;
    font-size:16px;
    line-height:1.15;
    margin:0 0 12px;
}

#sg_product_card .sg_matt_wrapper .sg_matt_box p{
    font-size:14px;
}

@media (max-width: 767px){
    #sg_product_card .sg_matt_wrapper{
        flex-wrap:wrap;
        padding: 15px 15px 25px;
        border-radius: 25px;
    }

    #sg_product_card .sg_matt_wrapper .sg_matt_box{
        width:100%;
        max-width:100%;
        flex:0 0 100%;
        text-align: left;
    }

    #sg_product_card .sg_matt_wrapper .sg_matt_box img{
        border-radius: 15px;
        aspect-ratio: 3 / 2;
    }

    

}


/* SLIDER */

#sg_product_card .slider {
  width: min(1100px, calc(100%));
  margin: auto;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  margin: 25px 0 0;
  border-radius: 32px;
  border: 1px solid #dfdfdf;
  background: linear-gradient(180deg, #ffffff 0%, #f5f4f4 100%);
}

/* inputs */
#sg_product_card .slider > input {
  position: absolute;
  opacity: 0;
}


#sg_product_card .slide {
  position: absolute;
  inset: 0;
  transition: transform .6s ease;
  overflow: hidden;
}

#sg_product_card .slide.s1 .sg_other_features_grid {
  gap: 60px 20px; /* Odstępy miedzy ikonami w kluczowych parametrach */
  width: 100%;
}

/* images */
#sg_product_card .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sg_product_card .slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

/* Gradient */
#sg_product_card .slide_gradient {
  width: auto;
  height: auto;
  object-fit: cover;
}

/* overlay */
#sg_product_card .slide_gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.7) 0%,
    rgba(0,0,0,.3) 25%,
    rgba(0,0,0,.1) 50%,
    transparent 100%
  );
}

/* text */
#sg_product_card .slide_text {
  position: absolute;
  left: 60px;
  bottom: 60px;
  max-width: 520px;
  z-index: 2;
  color: #fff;
}

#sg_product_card .slide_text h2 {
      color: #fff;
      font-size: 30px;
      margin: 10px 0;
      font-weight: 600;
}

#sg_product_card .slide_text p {
      margin: 0;
      line-height: 1.6;
      color: rgba(255,255,255,0.85);
      font-size: 20px;
}


/* SLIDER LOGIC */
#sg_product_card #s1:checked ~ .slides .s1 { transform: translateX(0); }
#sg_product_card #s1:checked ~ .slides .s2 { transform: translateX(100%); }
#sg_product_card #s1:checked ~ .slides .s3 { transform: translateX(200%); }
#sg_product_card #s1:checked ~ .slides .s4 { transform: translateX(300%); }

#sg_product_card #s2:checked ~ .slides .s1 { transform: translateX(-100%); }
#sg_product_card #s2:checked ~ .slides .s2 { transform: translateX(0); }
#sg_product_card #s2:checked ~ .slides .s3 { transform: translateX(100%); }
#sg_product_card #s2:checked ~ .slides .s4 { transform: translateX(200%); }

#sg_product_card #s3:checked ~ .slides .s1 { transform: translateX(-200%); }
#sg_product_card #s3:checked ~ .slides .s2 { transform: translateX(-100%); }
#sg_product_card #s3:checked ~ .slides .s3 { transform: translateX(0); }
#sg_product_card #s3:checked ~ .slides .s4 { transform: translateX(100%); }

#sg_product_card #s4:checked ~ .slides .s1 { transform: translateX(-300%); }
#sg_product_card #s4:checked ~ .slides .s2 { transform: translateX(-200%); }
#sg_product_card #s4:checked ~ .slides .s3 { transform: translateX(-100%); }
#sg_product_card #s4:checked ~ .slides .s4 { transform: translateX(0); }

/* NAV (base) */
#sg_product_card .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: #ffffff93;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 26px;
  z-index: 10;
}

/* position */
#sg_product_card .prev { left: 15px; }
#sg_product_card .next { right: 15px; }

/* 🔥 NAV STATE CONTROL */

#sg_product_card #s1:checked ~ .navs .navset1 { display: block; }
#sg_product_card #s1:checked ~ .navs .navset2,
#sg_product_card #s1:checked ~ .navs .navset3,
#sg_product_card #s1:checked ~ .navs .navset4 { display: none; }

#sg_product_card #s2:checked ~ .navs .navset2 { display: block; }
#sg_product_card #s2:checked ~ .navs .navset1,
#sg_product_card #s2:checked ~ .navs .navset3,
#sg_product_card #s2:checked ~ .navs .navset4 { display: none; }

#sg_product_card #s3:checked ~ .navs .navset3 { display: block; }
#sg_product_card #s3:checked ~ .navs .navset1,
#sg_product_card #s3:checked ~ .navs .navset2,
#sg_product_card #s3:checked ~ .navs .navset4 { display: none; }

#sg_product_card #s4:checked ~ .navs .navset4 { display: block; }
#sg_product_card #s4:checked ~ .navs .navset1,
#sg_product_card #s4:checked ~ .navs .navset2,
#sg_product_card #s4:checked ~ .navs .navset3 { display: none; }

/* responsive */
@media (max-width: 768px) {

  #sg_product_card .slider {
    border-radius: 20px;
  }
  #sg_product_card .slides {
    height: auto;
    aspect-ratio: 1 / 1;
  }

    #sg_product_card .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #sg_product_card .slide_gradient {
        width: auto;
        height: auto;
        object-fit: cover;
    }

    #sg_product_card .slide_gradient::before {
        display: block;
        background: linear-gradient(
        0deg,
        rgba(0,0,0,.7) 0%,
        rgba(0,0,0,.3) 25%,
        rgba(0,0,0,.1) 50%,
        transparent 100%
        );
    }

  /* tekst pod zdjęciem */
    #sg_product_card .slide_text {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;

        background: transparent;
        color: #fff;
        padding: 16px 20px;

        max-width: 100%;
    }

    #sg_product_card .slide_text h2 { 
        color: #fff; 
        font-size: 24px;
    }

    #sg_product_card .slide_text p { 
        color: rgba(255,255,255,0.85); 
        font-size: 15px;
    }

    /* wyłącz gradient na mobile
    #sg_product_card .slide::before {
        display: none;
    } */
}


#sg_product_card .slides {
  position: relative;
  height: 613px; /* wysokość slidera */
}

#sg_product_card .slide {
    position: absolute;
    inset: 0;
    /* display: flex;  */
    align-items: flex-start;
    overflow: hidden; /* zapobiega wysuwaniu się elementów poza obszar slajdu */
}

/* Reguły tylko dla pierwszego slajdu */
#sg_product_card .slide.s1 {
overflow: auto; /* przewijanie, jeżeli zawartość będzie dłuższa niż obszar (dla użytku roboczego)*/
padding: 12px 0 8px;

}

#sg_product_card .slide.s1 .sg_other_features {
    max-width: 100%;
    margin: 0 auto;
    padding: 35px 55px 35px;
    /* gap: 46px;  */
    max-height: calc(100% - 24px); 
}


#sg_product_card .slide.s1 .sg_other_features_grid_item img {
width: 75px;  /* Wielkość ikon slider */
height: 75px; /* Wielkość ikon slider */
}


/* Mobile: dodatkowe zmniejszenie paddingów i odstępów dla s1 */
@media (max-width: 767px) {
    #sg_product_card .slide.s1 .sg_other_features {
        padding: 12px 16px 20px;
    } 

    #sg_product_card .slide.s1 .sg_other_features_grid {
        gap: 20px 20px;
        grid-template-columns: repeat(2, 1fr);
    } 
    
    #sg_product_card .slides {
        height: auto;
        aspect-ratio: 3/4;
    } 

    #sg_product_card .slide.s1 .sg_other_features_grid_item img {
        width: 40px;  /* Wielkość ikon slider */
        height: 40px; /* Wielkość ikon slider */
    }
}
#sg_product_card .sg_title_other_features {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    position: relative;
    z-index: 1;
}

/* TESTOWE TAMKI slider 
 #sg_product_card .slider, .slides, .slide {
    outline: 1px solid red;
}*/

#sg_product_card .desktop-video {
    display: block;
}

#sg_product_card .mobile-video {
    display: none;
}

@media (max-width: 767px) {
    #sg_product_card .desktop-video {
        display: none;
    }

    #sg_product_card .mobile-video {
        display: block;
    }
}