/* Pizzaovne produktliste */
.pizza-listing-section {
  background-color: #f5f5f5;
  padding: 40px 8% 100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 45px;
  color: #2b2b2b;
}

.pizza-filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Filter knap */
.pizza-filter-button {
  background-color: #403B3B;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: white;
  margin-bottom: 12px;
}

.pizza-filter-button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pizza-filter-button span {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 1px;
}

.pizza-filter-group {
  background-color: #403B3B;
  color: white;
  border-radius: 5px;
  overflow: hidden;
  padding-bottom: 12px;
}

/* Filter gruppe */
.pizza-filter-group h3 {
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.pizza-filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: 0.2s ease
}

.pizza-filter-group label:hover {
  color: #d6d6d6;
  transform: translateX(2px);
}

.pizza-filter-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 18px;
  height: 18px;

  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 4px;

  background-color: transparent;

  cursor: pointer;
  transition: 0.2s ease;

  position: relative;
}

.pizza-filter-group input[type="checkbox"]:hover {
  border-color: white;
}

.pizza-filter-group input[type="checkbox"]:checked {
  background-color: #315E3A;
  border-color: #315E3A;
}

.pizza-filter-group input[type="checkbox"]:checked::after {
  content: "";

  position: absolute;

  left: 5px;
  top: 2px;

  width: 4px;
  height: 8px;

  border: solid white;
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

.pizza-extra-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease;
}

.pizza-extra-filters.active {
  max-height: 3000px;
  opacity: 1;
}

.pizza-filter-button {
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.pizza-products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.pizza-products-toolbar p {
  font-size: 15px;
  font-weight: 600;
}

.pizza-products-toolbar select {
  padding: 12px 16px;
  border: none;
  background-color: #3b3b3b;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  border-radius: 5px;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pizza-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.pizza-product-card {
  background-color: white;
  padding: 20px 20px 0;
  min-height: 430px;
  transition: 0.3s ease;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.pizza-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.pizza-product-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.pizza-product-card:hover img {
  transform: scale(1.05);
}

.pizza-product-brand {
  font-size: 12px;
  color: #8a8a8a;
}

.pizza-product-description,
.pizza-product-meta {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.pizza-product-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.pizza-product-status.in-stock span {
  background-color: #3A7E29;
}

.pizza-product-status span {
  width: 12px;
  height: 12px;
  background-color: #FFD562;
  border-radius: 50%;
}

.pizza-product-status p {
  font-size: 12px;
  color: #8a8a8a;
  margin: 0;
  line-height: 1;
}

.pizza-product-link {
  margin: auto -20px 0;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid #e1e1e1;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
}

.pizza-product-card:hover .pizza-product-link {
  color: #315E3A;
}

.pizza-product-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pizza-product-card > p {
  font-size: 13px;
}

.pizza-product-price {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 12px;
}

.pizza-product-card a {
  margin: auto -20px 0;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid #e1e1e1;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
}

.pizza-product-card a:hover {
  color: #315E3A;
}

.pizza-load-more-btn {
  display: block;
  margin: 55px auto 0;
  padding: 14px 34px;
  background: transparent;
  border: 1px solid #303030;
  color: #303030;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: .25s ease;
}

.pizza-load-more-btn:hover {
  background: #315E3A;
  border-color: #315E3A;
  color: white;
  transform: translateY(-2px);
}

.pizza-load-more-btn.hidden {
  display: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 12px 16px;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}


/* Animation til produktkortene ved filtrering*/
.pizza-product-card {
  animation: productFadeIn .35s ease forwards;
}

@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobil optimering */
@media (max-width: 768px) {

  .pizza-listing-section {
    display: flex;
    flex-direction: column;
    padding: 45px 6% 70px;
    gap: 30px;
  }

  .pizza-filter-sidebar {
    width: 100%;
  }

  .pizza-filter-button {
    width: 100%;
    justify-content: center;
  }

  .pizza-products-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  .pizza-filter-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.pizza-filter-group h3 {
  grid-column: 1 / -1;
}

.pizza-filter-group label {
  padding: 8px 12px;
  font-size: 12px;
}

  .sort-box {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .sort-box select {
    width: 170px;
  }

  .pizza-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .pizza-product-card {
    padding: 12px 12px 0;
    min-height: 360px;
  }

  .pizza-product-card img {
    height: 135px;
    margin-bottom: 8px;
  }

  .pizza-product-card h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  .pizza-product-brand,
  .pizza-product-description,
  .pizza-product-meta,
  .pizza-product-card > p {
    font-size: 11px;
  }

  .pizza-product-status span {
    width: 9px;
    height: 9px;
  }

  .pizza-product-status p {
    font-size: 10px;
  }

  .pizza-product-price {
    font-size: 13px;
  }

  .pizza-product-link {
    margin: auto -12px 0;
    padding: 13px 0;
    font-size: 11px;
  }
}