/* product.php */

.product-ranking__card {
    max-width: 1320px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #c2c2c2;
    padding: 0px 30px 30px 30px;
}
.product-ranking__header {
    padding: 20px 15px;
    border-bottom: 1px solid #ddd;
}

.product-ranking__header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: #333;
}
.product-ranking__header span {
    font-size: 1rem;
    color: #777;
}
.product-ranking__content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}
.product-ranking__info-image {
    flex: 1 1 250px;
    text-align: center;
}
.product-ranking__info-image img {
    max-width: 100%;
    border-radius: 8px;
}
.product-ranking__details {
    flex: 2 1 400px;
    padding: 20px;
}
.product-ranking__description {
    margin-top: 10px;
}
.product-ranking__description h2 {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 10px;
}
.product-ranking__description p, ul, li {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
}
.product-ranking__attributes-inline {
    font-size: 1rem;
    color: #333;
}
.product-ranking__attributes-inline strong {
    font-weight: bold;
}

.product-ranking_pros p{
    color: #5e7f96;
    font-weight: bold;
}

.product-ranking_cons p{
    color: #ff7877;
    font-weight: bold;
}

.border-pros{
    border: 2px solid #1bbc9b !important;
    padding-left: 10px;
}

.border-cons{
    border: 2px solid #ff7877 !important;
    padding-left: 10px;
}

.product-ranking__button-check {
    text-decoration: none;
    background-color: #ff0000;
    color: #fff;
    padding: 14px 40px;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.9s;
    text-transform: uppercase;
}
.product-ranking__button-check:hover {
    background-color: #fff;
    color: #cc0000;
    border: 1px solid #cc0000;
}



@media (max-width: 768px) {
    .product-ranking__content {
        flex-direction: column;
    }
    .product-ranking__details {
        padding: 10px;
    }
}


/* table-new */
.product-table_attribute {
  width: 100%;
  margin:0;
  border:none;
  border-collapse: collapse;
}

.product-table_attribute thead tr:hover {
  background: transparent;
}

.product-table_attribute tr:hover {
  background: #E9ECF2;
}

.product-table_attribute th {
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #e5e5e5;
  color:#FFF;
  padding: 15px 10px;
  text-align: center;
  position: relative;
}

.product-table_attribute th a {
  color: #000000;
}

.product-table_attribute th a:hover {
  text-decoration: underline;
}

.product-table_attribute th img {
  max-width: 80px;
  max-height: 80px;
}

.product-table_attribute td {
  font-weight: 400;
  font-size: 14px;
  color: #000000;
  border: 1px solid #e5e5e5;
  padding: 10px;
  text-align: center; 
}



.product-table_attribute th:first-child {
  position:sticky;
  left:0;
  z-index:2;
}

.product-table_attribute td:nth-child(1) {
  text-align: left;
}

.product-table_attribute-link{
  color: #333;
  text-decoration: none;
}

.product-table_attribute-product-name {
    display: flex;
    flex-direction: column; /* Zapewnia układ w kolumnie */
    justify-content: center; /* Wyśrodkowanie pionowe */
    align-items: center; /* Wyśrodkowanie poziome */
    text-align: center;
}

.product-table_attribute-product-name span {
    margin: 0;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    max-width: 150px;
}

@media screen and (min-width: 992px) and (max-width: 1199px) {

	.product-table_attribute-wrapper {
		overflow-x: auto;
 	}

 	.product-table_attribute td {
 		min-width: 200px;
 	}

	.chart td {
 		min-width: 200px;
 	}

 	.chart td p {
		display: inline-block;
	}


} 

/*FOR-TABLATE-START*/
@media screen and (min-width: 768px) and (max-width: 991px) {

	.main-carousel2 .carousel-cell {
	  width: 30%;
	}
	
	.product-table_attribute-wrapper {
		overflow-x: auto;
 	}

 	.product-table_attribute td {
 		min-width: 200px;
 	}

	.chart td {
 		min-width: 200px;
 	}

 	.chart td p {
		display: inline-block;
	}

}

/*FOR-MOBIL-START*/
@media screen and (max-width: 767px) {

	.main-carousel2 .carousel-cell {
		width: 75%;
	}

	.pradla-title h2 {
		font-size: 25px;
		text-align: center;
	}

	.product-table_attribute-wrapper {
		overflow-x: auto;
 	}

 	.product-table_attribute td {
 		min-width: 200px;
 	}

	.chart td {
 		min-width: 200px;
 	}

 	.souhrnnych-area {
	  	padding: 25px 0;
	}

	.chart td p {
		display: inline-block;
	}


}


/* floating-bar */

.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  color: #000;
  display: flex;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.16);
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  visibility: hidden;
}

.floating-bar.visible {
  visibility: visible;
}

.floating-bar__button {
  border-radius: 3px;
  background-color: red;
  color: rgb(255, 255, 255);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;

  min-width: 156px;
  width: auto;
  height: 44px;
  margin: unset;
  line-height: 16px;
  padding: 0 16px;

  font-weight: 700;
  padding: 0 12px;
  white-space: break-spaces;
  text-transform: uppercase;
}

.floating-bar__button:hover {
  background-color: #cc0000;
  color: #fff;
}

/* Ogólne wyrównanie w tabeli */
.product-table_ranking td {
    text-align: center;
    vertical-align: middle;
}

/* Zdjęcie produktu */
.product-img {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Nazwa produktu */
.product-table_ranking__product-name {
    font-weight: bold;
    font-size: 16px;
    display: block;
    text-align: center;
}

/* Przyciski */

.product-table_ranking__btn-review{
    background-color: #f8f9fa;
    color: #333;
    padding: 10px 20px;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.product-table_ranking__btn-price {
    background-color: #ff0000;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.product-table_ranking__btn-review:hover{
    background-color: #333;
    color: #f8f9fa;
    border: 1px solid #333;
}

/* Efekt hover */

.product-table_ranking__btn-price:hover {
    background-color: #fff;
    color: #cc0000;
    border: 1px solid #cc0000;
}

/* MOBILE VIEW */
/* MOBILE VIEW */
@media (max-width: 768px) {
    .product-table_ranking tr {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #dee2e6;
    }

    .product-table_ranking td {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        flex-grow: 1;
    }

    .product-table_ranking__product-name {
        font-size: 14px;
        flex-grow: 1;
    }

    /* Przycisk "Sprawdź Cenę" na mobile maksymalnie po prawej */
    .product-table_ranking__btn-price {
        width: fit-content;
        font-size: 14px;
        padding: 8px 15px;
        margin-top: 5px;
        align-self: flex-end; /* Przycisk wyrównany do prawej */
    }

    /* Ukrycie przycisku recenzji na mobile */
    .product-table_ranking__btn-review {
        display: none;
    }
}