* {
  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%;
  }
}

/* Sticky Contact Button */
.sticky-contact-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-main-btn {
  width: 60px;
  height: 60px;
  background-color: #0288d1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
  color: white;
  font-size: 30px;
}

.sticky-contact-wrapper:hover .contact-main-btn {
  transform: scale(1.1) rotate(15deg);
  background-color: #0277bd;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-contact-wrapper:hover .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-option {
  display: flex;
  align-items: center;
  background: white;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background-color 0.2s;
  white-space: nowrap;
  border: 1px solid #efefef;
}

.contact-option:hover {
  transform: translateX(-10px);
  background-color: #f8f9fa;
}

.option-icon {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.option-text {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.contact-option.call .option-icon { color: #0288d1; }
.contact-option.whatsapp .option-icon { color: #25D366; }
.contact-option.viber .option-icon { color: #7360f2; }

@media (max-width: 768px) {
  .sticky-contact-wrapper {
    bottom: 20px;
    right: 20px;
  }
  
  .contact-main-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .contact-option {
    padding: 10px 15px;
  }
  
  .option-text {
    font-size: 13px;
  }
}

/* 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;
  }
}

/* Dual Range Slider */
/* Custom Price Dual Slider */
.price-slider-container {
  padding: 10px 0 4px;
  user-select: none;
  -webkit-user-select: none;
}

.price-slider-track {
  position: relative;
  height: 5px;
  background: #ddd;
  border-radius: 3px;
  margin: 10px 0;
}

.price-slider-range {
  position: absolute;
  height: 100%;
  background: #0288d1;
  border-radius: 3px;
  top: 0;
}

.price-slider-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #0288d1;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
  z-index: 2;
  touch-action: none;
  transition: box-shadow 0.15s;
}

.price-slider-handle:hover,
.price-slider-handle:focus {
  box-shadow: 0 0 0 5px rgba(2, 136, 209, 0.25);
  outline: none;
}