* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f0f4f8;
  margin: 0;
  padding: 0;
}

.info-banner {
  background-color: #e1f5fe;
  color: #0277bd;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  border-bottom: 1px solid #81d4fa;
}

.container {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.sidebar {
  flex: 0 0 250px;
  background: #fff;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 20px;
}

.sidebar label {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
}

.sidebar input[type="text"],
.sidebar input[type="number"],
.sidebar select {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.sidebar input[type="range"] {
  width: 100%;
}

.sidebar span {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}

#resetFilters {
  background-color: #4fc3f7;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

#resetFilters:hover {
  background-color: #039be5;
}

.main {
  flex: 1;
  padding: 20px;
}

.sort-box {
  margin-bottom: 15px;
}

.sort-box label {
  font-weight: bold;
}

.sort-box select {
  padding: 6px;
  margin-left: 10px;
}

#productList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.product-card h3 {
  font-size: 16px;
  margin: 10px 0;
  color: #333;
}

.product-card p {
  margin: 5px 0;
  font-size: 14px;
  color: #444;
}

#loadMore {
  display: block;
  margin: 30px auto 0;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #29b6f6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#loadMore:hover {
  background-color: #0288d1;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background-color: #fff;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

#popup-close:hover {
  color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  .main {
    padding: 10px;
  }
}

.product-counter {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  color: #444;
  font-weight: 500;
}

.contact-button {
  display: block;
  margin-top: 10px;
  padding: 10px;
  background-color: #0288d1;
  color: white;
  text-align: center;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.contact-button:hover {
  background-color: #0277bd;
}

.back-button {
  display: block;
  margin-top: 10px;
  padding: 10px;
  background-color: transparent;
  color: #0288d1;
  text-align: center;
  border: 2px solid #0288d1;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.back-button:hover {
  background-color: #e1f5fe;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .main {
    padding-top: 0;
  }

  select,
  input[type="text"],
  input[type="number"],
  input[type="range"] {
    max-width: 100%;
  }
}

/* Payment Banner */
.payment-banner {
  background-color: #ffffff;
  color: #b01200;
  padding: 10px 0;
  border-bottom: 2px solid #b01200;
  font-size: 15px;
}

.payment-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.payment-logo {
  height: 25px;
  width: auto;
}

.payment-text {
  text-align: left;
  line-height: 1.4;
}

.payment-banner strong {
  font-weight: 800;
  text-transform: uppercase;
}

.payment-banner a {
  color: #b01200;
  font-weight: 800;
  text-decoration: underline;
  white-space: nowrap;
}

.payment-banner a:hover {
  text-decoration: none;
  background-color: #b01200;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .payment-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .payment-text {
    text-align: center;
  }
}