/* Ogólny styl strony produktu */
#product-page-container {
    font-family: Roboto, sans-serif;
    margin: 0 auto 20px auto;
    max-width: 1200px;
    padding: 0 20px 20px 20px;
    display: block;
    gap: 40px;
}
#product-page-container #produkt-gal-det {
    display: flex;
	justify-content: center;
	gap: 15px;
    width: 100%;
	margin-bottom: 25px;
}
/* style dla listy niepunktowanej */
#product-page-container .prod-accordion-body ul, 
#product-page-container .prod-accordion-body ol,
#product-page-container .prod-accordion-body li {
    list-style-type: disc; /* Możesz również użyć 'circle', 'square', lub 'decimal' */
    padding-left: 10px; /* Odstęp od lewej dla estetyki */
}

#product-page-container .prod-accordion-body ol {
    list-style-type: decimal; /* Ustawienie numeracji dla listy uporządkowanej */
}

/* Styl dla galerii zdjęć */
#product-page-container .product-gallery {
    display: flex;
	position: relative;
    max-width: 600px;
    flex-direction: row-reverse;
    gap: 20px;
	overflow: hidden;
}

#product-page-container .gallery-main {
	width: 500px;
    height: 500px;
    margin-bottom: 20px;
    text-align: center;
}

#product-page-container #main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

#product-page-container .gallery-thumbnails {
    display: flex;
	width: 80px;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
}
#product-page-container .gallery-thumbnail {
    width: 100%;
    height: 80px;
	object-fit: contain;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#product-page-container .gallery-thumbnail:hover {
    transform: scale(1.1);
    opacity: 1;
}

#product-page-container .gallery-thumbnail.active {
    border: 2px solid #333;
    opacity: 1;
}
@media only screen and (max-width: 768px) {
	#product-page-container .gallery-thumbnails {
	width: 100%;
    flex-direction: row;
	}
	#product-page-container .gallery-thumbnail {
    width: 80px;
	}
	#product-page-container .gallery-main {
    width: 100%;
    height: 450px;
	}
}

/* Style dla logo kategorii */
.category-logo {
    content: '';
    position: absolute;
    top: -100%; /* Logo zaczyna się poza widoczną częścią */
    left: 10%;
    width: 140px; /* Rozmiar logo */
    height: 160px; /* Wysokość logo */
    background-size: contain;
    background-repeat: no-repeat;
    animation: slideInFromTop 1.5s forwards;
}

/* Przypisanie logo dla poszczególnych kategorii */
.category-bio {
    background-image: url('https://www.agrimpex.pl/wp-content/uploads/2024/11/tongue-bio.png');
}

.category-hobby {
    background-image: url('https://www.agrimpex.pl/wp-content/uploads/2024/11/tongue-hobby.png');
}

.category-profi {
    background-image: url('https://www.agrimpex.pl/wp-content/uploads/2024/11/tongue-profi.png');
}

/* Animacja wjazdu logo */
@keyframes slideInFromTop {
    from {
        top: -100%;
    }
    to {
        top: -20px;
    }
}

/* Szczegóły produktu */
#product-page-container .product-details {
    flex: 1;
    max-width: 500px;
	padding-top: 20px;
	position: relative;
}

#product-page-container .product-details h1 {
    font-size: 32px;
    margin-bottom: 20px;
	color: #01963e;
}
.product-title-style {
    position: relative; /* Ustawienie pozycji dla pseudo-elementów */
}

.product-title-style::before,
.product-title-style::after {
    content: ""; /* Wstawienie pustego elementu */
    position: absolute;
    left: 0;
    right: 0;
    height: 2px; /* Wysokość linii */
    background-color: #ffffff; /* Kolor linii */
    z-index: 2; /* Umieszczenie za tekstem */
}

.product-title-style::before {
    top: 2px; /* Linia nad tekstem */
}

.product-title-style::after {
    bottom: 2px; /* Linia pod tekstem */
}

.product-title-link, .feature-title-link {
	text-decoration: none;
	color: inherit;
}

.feature-title-link {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

.product-title-link:hover,  .feature-title-link:hover {
	text-decoration: none;
}

.product-title-link:visited, .product-title-link:active, .feature-title-link:visited,  .feature-title-link:active {
    color: inherit; 
}

#product-page-container .product-details p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}
#product-page-container .product-details strong {
    color: #4c8cbb;
}
#product-page-container .product-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
}
#product-page-container .produkt-card-separator{
	width: 100%;
    border: 1px solid #929292;
    margin: 7px 0;
}

/* Cena produktu */
#product-page-container .product-price {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

/* Warianty produktu */
.product-variants {
    margin: 20px 0;
    font-size: 16px;
}

.product-variants h3 {
    margin-bottom: 10px;
	color: #01963e;
	font-size: 1.2rem;
}

.variant-option {
    margin-bottom: 10px;
}

.variant-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.selected-price {
    font-weight: bold;
    font-size: 18px;
    color: #e74c3c;
    margin-top: 15px;
}
.shop-link-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745; /* Główny zielony kolor */
    color: #ffffff; /* Biały kolor tekstu */
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shop-link-button:hover {
    background-color: #218838; /* Ciemniejszy zielony na hover */
    transform: translateY(-2px); /* Lekkie przesunięcie w górę na hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
	color: #ffffff; /* Biały kolor tekstu */
}

.shop-link-button:active {
    background-color: #1e7e34; /* Jeszcze ciemniejszy zielony na active */
    transform: translateY(1px); /* Delikatne przesunięcie w dół na active */
}
.spec-product-img {
    position: absolute;
    bottom: 10px; /* Odległość od dolnej krawędzi */
    right: 10px; /* Odległość od prawej krawędzi */
    max-width: 150px; /* Maksymalna szerokość obrazu */
    max-height: 150px; /* Maksymalna wysokość obrazu */
    z-index: 1; /* Ustaw priorytet wyświetlania */
}

.spec-product-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
	#product-page-container #produkt-gal-det, #product-page-container .product-gallery {
    flex-direction: column;
}
	#product-page-container .product-gallery {
		margin-bottom: 20px;
	}
	.category-logo {
    left: 1%;
}
	#product-page-container .product-details h1 {
    font-size: 26px;
}
	.spec-product-img {
    bottom: 30px;
    right: 10px;
    max-width: 100px;
    max-height: 100px;
}
}

/* Styl dla akordeonu */
/* Ogólny styl kontenera akordeonu */
.prod-accordion-container {
    width: 100%;
    font-family: Roboto, sans-serif;
    margin-bottom: 25px;
}

.prod-accordion-items {
    border-top: 1px solid #ddd;
}

.prod-accordion-item {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.prod-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
	height: 60px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}
.prod-accordion-header h4 {
    margin: 0;
}

.prod-accordion-item.prod-open .prod-accordion-header {
    background-color: #e0e0e0;
    font-weight: bold;
    color: #333;
}

.prod-accordion-header:hover {
    background-color: #f1f1f1;
}

.prod-spec-icon {
    margin-left: 10px;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

/* Ikony dla poszczególnych sekcji */
.prod-icon-use {
    background: url('https://www.agrimpex.pl/wp-content/uploads/2024/12/zastosowanie-agrimpex_grey.svg') no-repeat center center / cover;
}
.prod-icon-spec {
    background: url('https://www.agrimpex.pl/wp-content/uploads/2024/12/specyfikacja-agrimpex_2.svg') no-repeat center center / cover;
}
.prod-icon-size {
    background: url('https://www.agrimpex.pl/wp-content/uploads/2024/12/wymiary-agrimpex.svg') no-repeat center center / cover;
}
.prod-icon-usage {
    background: url('https://www.agrimpex.pl/wp-content/uploads/2024/12/sposob-uzycia-agrimpex.svg') no-repeat center center / cover;
}

.accordion-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
	margin-right: 15px;
}

.prod-accordion-item.prod-open .accordion-icon {
    transform: rotate(180deg); /* Obrót ikony, gdy sekcja jest otwarta */
}

/* Treść rozwijana akordeonu */
.prod-accordion-container .prod-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0 15px;
    background-color: #fefefe; /* Jasne tło dla większego kontrastu */
    border-left: 4px solid #4CAF50; /* Zielony pasek z boku */
    border-radius: 0 0 8px 8px; /* Zaokrąglone dolne rogi */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Otwarta sekcja akordeonu */
.prod-accordion-item.prod-open .prod-accordion-body {
    max-height: 500px; /* lub inna wartość odpowiednia do zawartości */
    transition: max-height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9fff9; /* Delikatna zieleń, aby odróżnić się od zamkniętej */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Tekst w sekcji */
.prod-accordion-body div {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Responsywność dla akordeonu */
@media (max-width: 768px) {
    .prod-accordion-header h4 {
        font-size: 18px;
    }

    .prod-spec-icon {
        margin-bottom: 5px;
    }
}

/* Styl dla tabeli rozmiarów */
/* Styl dla tabeli rozmiarów */
.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.size-table th, .size-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.size-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Styl dla kwadratu kolorów */
.color-square {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 3px;
}

/* Kolory dla kwadracików */
.color-czarny { background-color: #000000; }
.color-bialy { background-color: #FFFFFF; }
.color-brazowy { background-color: #8B4513; }
.color-zielony { background-color: #008000; }
.color-niebieski { background-color: #0000FF; }
.color-szary { background-color: #929292; }
.color-grafitowy { background-color: #36454F; }
.color-wood { background-color: #a0522d; }
.color-czerwony { background-color: #FF0000; }
.color-zolty { background-color: #FFFF00; }
.color-pomaranczowy { background-color: #FFA500; }
.color-turkusowy { background-color: #40E0D0;}
.color-krysztalowy { background-color: #E0FFFF;}

.color-bialo-czarny { background: linear-gradient(45deg, #FFFFFF 50%, #000000 50%); }
.color-brazowo-czarny { background: linear-gradient(45deg, #8B4513 50%, #000000 50%); }

@media (max-width: 768px){
	/* Styl dla kontenera tabeli z poziomym przewijaniem */
.table-scrollable {
    overflow-x: auto; /* Dodaje poziomy pasek przewijania */
    width: 100%; /* Dopasowuje do szerokości rodzica */
    margin-bottom: 20px; /* Dodatkowy odstęp na dole */
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Minimalna szerokość dla włączenia przewijania */
}

.size-table th, .size-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.size-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

} 

/* ******************************** */
/* Stylizacja kontenera przycisków */
/* Kontener przycisków */
.przydatne-linki {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center; /* Wyśrodkowanie przycisków */
}

/* Stylizacja przycisków z efektem uwypuklenia */
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px; /* Szerokość przycisku */
    height: 55px; /* Wysokość przycisku */
    background: linear-gradient(145deg, #d4e0e6, #bcc8ce); /* Gradient dla wypukłości */
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    position: relative;
    transform: skew(-20deg);
    transition: all 0.3s ease;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -4px -4px 8px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    white-space: normal;
    line-height: 1;
    font-size: 1em;
}

/* Wnętrze przycisku, aby tekst nie był zniekształcony */
.button-link span {
    display: block;
    transform: skew(20deg); /* Odwrócenie skew dla tekstu */
}

/* Efekt hover: cień i zmiana koloru */
.button-link:hover {
    background: linear-gradient(145deg, #c4d0d6, #aeb8be); /* Zmiana gradientu na hover */
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3), -6px -6px 12px rgba(255, 255, 255, 0.9); /* Wzmocnienie cieni */
    transform: skew(-20deg) translateY(-2px); /* Efekt uniesienia na hover */
    color: #222;
	text-decoration: none;
}

/* Efekt wciśnięcia na kliknięcie */
.button-link:active {
    background: linear-gradient(145deg, #aeb8be, #c4d0d6); /* Odwrócenie gradientu na kliknięcie */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.7); /* Wgłębienie na kliknięcie */
    transform: skew(-20deg) translateY(2px); /* Lekki efekt kliknięcia */
}

/* Układ przycisków na urządzeniach mobilnych */
@media (max-width: 768px) {
    .przydatne-linki {
        flex-direction: column;
		align-content: center;
        gap: 15px;
    }
}


/* Produkty powiązane */
/* Główne style dla karuzeli */
.related-carousel-container {
    position: relative;
	display:flex;
	justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.related-carousel-track {
	width:95%;
    display: flex;
    transition: transform 0.5s ease;
}

.related-carousel-item {
    flex: 0 0 25%; /* Pokazuje pięć elementów na dużym ekranie */
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
}

.related-carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.related-carousel-item h4 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.related-carousel-item p {
    font-size: 14px;
    color: #333;
}

.related-carousel-item .related-price {
    font-weight: bold;
    color: #e74c3c;
}

.related-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

.related-carousel-nav.related-prev {
    left: 0;
}

.related-carousel-nav.related-next {
    right: 0;
}

/* Style responsywne */
@media (max-width: 1200px) {
    .related-carousel-item {
        flex: 0 0 20%; /* Cztery elementy na ekrany średnie */
    }
}

@media (max-width: 1024px) {
    .related-carousel-item {
        flex: 0 0 33.333%; /* Trzy elementy na średnie ekrany */
    }
}

@media (max-width: 768px) {
    .related-carousel-item {
        flex: 0 0 50%; /* Dwa elementy na małe ekrany */
    }
}

@media (max-width: 480px) {
    .related-carousel-item {
         flex: 0 0 100%; /* Jeden element na bardzo małe ekrany */
    }
}

/* ********************** */
/* Sekcja Cechy produktu */
.product-features {
    margin: 40px 0;
    font-family: Roboto, sans-serif;
}

.product-features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); /* Maksymalnie 3 elementy w rzędzie */
    gap: 20px; /* Odstęp między elementami */
    justify-content: center; /* Wyśrodkowanie zawartości */
}

.feature-item {
    display: grid;
    grid-template-rows: auto auto 1fr; /* Ustawienie struktury elementów: ikona, tytuł, opis */
    justify-items: center; /* Wyśrodkowanie zawartości w poziomie */
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Opcjonalnie: ustaw minimalną wysokość */
    text-decoration: none;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

.feature-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-top: 10px; /* Ustaw odstęp od tytułu */
    text-align: center;
}
/* Wersja responsywna dla tabletów (dwie cechy w linii) */
@media (max-width: 1024px) {
    .product-features-container {
        grid-template-columns: repeat(2, 1fr); /* Dwie kolumny */
    }
}

/* Wersja responsywna dla urządzeń mobilnych (jedna cecha w linii) */
@media (max-width: 768px) {
    .product-features-container {
        grid-template-columns: repeat(1, 1fr); /* Jedna kolumna */
    }
}

/* sekcja sposób użycia */
.sposob-uzycia {
    margin: 40px 0;
    font-family: Roboto, sans-serif;
}
.sposob-uzycia .usage-title {
    margin-bottom: 20px;
}
.sposob-uzycia-container {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22%, 1fr)); /* Maksymalnie 3 elementy w rzędzie */
    gap: 20px; /* Odstęp między elementami */
    justify-content: center; /* Wyśrodkowanie zawartości */
}
.usage-step {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.usage-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.step-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 6px;
    display: block;
}
.step-text {
    font-size: 14px;
    line-height: 1;
    color: #333;
    text-align: justify;
}
@media (max-width: 768px) {
	.sposob-uzycia-container{
    grid-template-columns: repeat(1, 1fr); /* Jedna kolumna */
		}
}

.color-preview-square {
    width: 16px;
    height: 16px;
    border: 1px solid #aaa;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    border-radius: 3px;
}
