.product .product-description, main[role=main] {
  *zoom: 1;
}
.product .product-description:after, main[role=main]:after {
  content: "";
  display: table;
  clear: both;
}

*,
*::after,
*::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

p {
  margin: 0 0 30px;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
  color: #31353d;
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

abbr {
  cursor: help;
}


img {
  max-width: 100%;
}

figure {
  margin: 0;
  line-height: 0;
}

main[role=main] {
  max-width: 500px;
  margin: 20px auto;
  position: relative;
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 300px;
  background: #fff;
  margin: 0 auto;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}
.product .product-description {
  z-index: 15;
  background: #fff;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}
.product .product-description .info {
  padding: 10px;
  /*color: #aaa;*/
  color: black;
  font-size: 1.00em;
  float: left;
}
.product .product-description .info h1 {
  font-size: 20px;
  margin: 0 0 5px;
}
.product .product-description .info p {
  margin-bottom: 15px;
  line-height: 1.3em;
}
.product .product-description .price {
  color: black;
  font-size: 1.5em;
  margin-top: 15px;
    text-align: left;
    padding-left: 20px;
}
.add-to-cart-bar {
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
}

.add-to-cart-bar button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    padding: 10px;
}

.add-to-cart-bar button:hover {
    background-color: #333;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.info {
    flex-grow: 1; /* Wypełnia wolną przestrzeń, aby cena i przycisk były zawsze na dole */
}

.product-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    background-color: white;
    display: block;
    margin: 0 auto;
}
.no-products{
    text-align: center;
    font-size: 1.5em;
    margin-top: 50px;
    margin-bottom: 100px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 30px;
}

.page-link {
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
}

.page-link:hover {
  background-color: #f2f2f2;
}

.page-link.current {
  background-color: #333;
  color: white;
  font-weight: bold;
  cursor: default;
}

.page-link.disabled {
  color: #999;
  border-color: #eee;
  cursor: not-allowed;
}

