.product-filter,
.patch-type-filter {
  text-align: center;
  margin-bottom: 20px;
}

.product-filter select {
  appearance: none; /* Removes default browser styling */
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

/* Hover and focus */
.product-filter select:hover,
.product-filter select:focus {
  border-color: #888;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Remove default arrow in Safari */
select::-ms-expand {
  display: none;
}


.patch-type-filter label {
  margin: 0 10px;
  font-weight: 500;
}

/* Adjust Product filter more to left */
.product-filter {
  margin-left: 2rem;
}

/* Adjust Patch filter more to right */
.patch-type-filter {
  margin-right: 2rem;
}

.product-filter select {
  padding: 10px 16px;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.product-page {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-page.active {
  display: grid !important; /* or 'block', depending on layout */
  opacity: 1;
}

.pagination-controls {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pagination-controls button,
.page-number {
  background: transparent;
  color: #1e1e1e;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Active page */
.page-number.active {
  background-color: #1e1e1e;
  color: #ffffff;
}

/* Hover effect for numbers and arrows */
.pagination-controls button:hover,
.page-number:hover {
  background-color: #1e1e1e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5rem;
  background: transparent;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.section-description {
    color: #ffffff;
    position: relative;
}

h2.section-title {
    color: #ffffff;
    position: relative;
}

/* Overall Modal */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
  padding: 20px; /* Add padding so content doesn't touch the very edges */
  box-sizing: border-box;
}

.contact-modal.show {
  display: flex;
}

/* Modal Content */
.contact-modal .modal-content {
  background: rgba(255, 255, 255, 0.95);
  color: #1e1e1e;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  max-height: 90vh; /* IMPORTANT: Limit height to 90% of screen */
  overflow-y: auto; /* Scroll inside if content overflows */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  transform: translateY(0);
}

/* Title */
.modal-content h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

/* Form Fields */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.9em;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95em;
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

/* Radio Buttons */
.patch-option label {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.9em;
}

.patch-option input[type="radio"] {
  margin-right: 5px;
}



/* Submit Button */
.submit-btn {
  background: transparent;
  color: #1e1e1e;
  border: 2px solid #1e1e1e;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: green;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Close Button */
.close-btn {
      background: transparent;
      color: #1e1e1e;
      border: 2px solid #1e1e1e;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s ease;
}

.close-btn:hover {
  background-color: red;
  color: #fff;
}

.patch-option {
  display: none; /* Hide patch options initially */
}

.product-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.default-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.product-image-container:hover .hover-img {
  opacity: 1;
}
#successPopup.success-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.success-popup-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}
.success-popup-button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.white-box {
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1e1e1e;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.white-box-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.white-box-content p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #555;
}

.white-box button {
  background-color: #1e1e1e;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.white-box button:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
