.cart-popup,
.popup-message {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;
  animation: fadeInOut 2s ease-in-out;
}

.cart-popup {
  background: #4caf50;
}

.popup-message {
  background: #f44336;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #f44336;
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 15px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #87bffd 0%, #1f8ed6 100%);
  min-height: 100vh;
  padding: 40px;
  font-family: "Segoe UI", sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px;
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-icon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .main-brand {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-text .sub-brand {
  font-size: 12px;
  color: #1f8ed6;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: -3px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #1f8ed6;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1f8ed6;
  border-radius: 2px;
}

.contact-link {
  color: #666 !important;
  font-weight: 600;
  transition: color 0.3s;
}

.contact-link:hover {
  color: #1f8ed6 !important;
}

.benefit-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #a0c8ff, #3a79ff);
  padding: 24px 32px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(31, 142, 214, 0.25);
  margin-bottom: 40px;
  max-width: 720px;
  font-family: "Segoe UI", sans-serif;
  transition: all 0.3s ease-in-out;
  margin-left: auto;
  margin-right: 0;
}

.benefit-filter label {
  font-size: 1.25rem;
  color: #174ea6;
  font-weight: 700;
  margin-right: 16px;
  white-space: nowrap;
}

.benefit-filter select {
  border-radius: 16px;
  border: 2px solid #3a79ff;
  padding: 14px 20px;
  font-size: 1rem;
  background: linear-gradient(180deg, #e6f0ff 0%, #c7d9ff 100%);
  color: #174ea6;
  min-width: 220px;
  min-height: 50px;
  box-shadow: 0 4px 10px rgba(58, 121, 255, 0.3);
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" fill="%23174ea6" viewBox="0 0 16 16"><path d="M4 6l4 4 4-4H4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.benefit-filter select:focus {
  outline: none;
  border-color: #1a5fff;
  box-shadow: 0 0 0 4px rgba(58, 121, 255, 0.4);
}

.benefit-filter button[type="submit"] {
  background: linear-gradient(180deg, #3a79ff, #174ea6);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(58, 121, 255, 0.6);
}

.benefit-filter button[type="submit"]:hover {
  background: linear-gradient(180deg, #174ea6, #0a2f70);
  transform: translateY(-2px);
}

.benefit-filter a {
  color: #174ea6;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s;
  background-color: rgba(200, 220, 255, 0.85);
  box-shadow: 0 2px 6px rgba(58, 121, 255, 0.15);
}

.benefit-filter a:hover {
  background-color: #aacdff;
  color: #0a2f70;
  box-shadow: 0 4px 10px rgba(26, 94, 255, 0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-card {
  background: white;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(31, 142, 214, 0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-card-flex {
  display: flex;
  gap: 20px;
  align-items: stretch;
  min-height: 320px;
}

.product-benefits {
  flex: 0 0 140px;
  background: linear-gradient(135deg, #f8f9ff, #e7f3ff);
  border-radius: 15px;
  padding: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid rgba(31, 142, 214, 0.1);
  order: 1;
}

.product-benefits li {
  font-size: 1rem;
  font-weight: 600;
  color: #1f8ed6;
  background: rgba(31, 142, 214, 0.15);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 15px;
  height: 100%;
  order: 2;
}

.product-image {
  width: 90px;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 15px;
  text-align: center;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f8ed6;
  margin-bottom: 15px;
}

.product-prijs {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.product-prijs .nieuw {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4caf50;
}

.product-prijs .oud {
  font-size: 1rem;
  text-decoration: line-through;
  color: #999;
}

.product-prijs .korting {
  font-size: 0.9rem;
  color: #f44336;
  font-weight: 600;
  background: rgba(244, 67, 54, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.add-to-cart {
  background: linear-gradient(135deg, #4c82fc, #1f8ed6);
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 130, 252, 0.3);
  min-width: 140px;
  margin-top: auto;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(76, 130, 252, 0.4);
}

.add-to-cart:disabled,
.add-to-cart[style*="background-color: #aaa"] {
  background: #aaa !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .logo {
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .benefit-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    text-align: center;
  }

  .benefit-filter select {
    min-width: auto;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .product-card-flex {
    flex-direction: column;
    gap: 15px;
    min-height: auto;
  }

  .product-benefits {
    flex: none;
    order: 2;
  }

  .product-info {
    order: 1;
    gap: 10px;
  }

  .product-info {
    display: flex;
    flex-direction: column;
  }

  .product-price,
  .product-prijs {
    order: 3;
  }

  .add-to-cart {
    width: 100%;
    padding: 15px;
    order: 4; 
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .product-card {
    padding: 20px;
  }

  .product-image {
    width: 70px;
    height: 90px;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-desc {
    font-size: 0.9rem;
  }

  .product-benefits li {
    font-size: 0.8rem;
  }
}
