/* Products Page Specific Styles */

/* Products Hero Section */
.products-hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.products-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.products-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 61, 58, 0.85) 0%, rgba(74, 155, 142, 0.7) 100%);
  z-index: -1;
}

.products-hero-content {
  color: #ffffff;
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #4a9b8e;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb i {
  font-size: 12px;
}

.products-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.products-hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  max-width: 600px;
}

/* Products Overview Section */
.products-overview-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.products-overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.overview-left {
  max-width: 500px;
}

.overview-right {
  padding-left: 20px;
}

.overview-description {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 40px;
  font-weight: 400;
}

.overview-stats {
  display: flex;
  gap: 40px;
}

.overview-stats .stat-item {
  text-align: center;
}

.overview-stats .stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #1a3d3a;
  line-height: 1;
  margin-bottom: 8px;
}

.overview-stats .stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Product Filter Section */
.product-filter-section {
  padding: 60px 0 40px 0;
  background-color: #f8f9fa;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.filter-btn:hover {
  border-color: #4a9b8e;
  color: #4a9b8e;
}

.filter-btn.active {
  background: linear-gradient(135deg, #1a3d3a 0%, #4a9b8e 100%);
  color: #ffffff;
  border-color: transparent;
}

/* Products Grid Section */
.products-grid-section {
  padding: 60px 0 100px 0;
  background-color: #f8f9fa;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 61, 58, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-enquiry-btn {
  background: linear-gradient(135deg, #4a9b8e 0%, #1a3d3a 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
}

.product-enquiry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 155, 142, 0.4);
}

.product-content {
  padding: 30px;
}

.product-category {
  font-size: 12px;
  font-weight: 600;
  color: #4a9b8e;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3d3a;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-description {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  font-weight: 400;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-item {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.spec-item:last-child {
  border-bottom: none;
}

/* Product Enquiry Popup */
.product-enquiry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.product-enquiry-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-enquiry-popup {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-enquiry-overlay.active .product-enquiry-popup {
  transform: scale(1);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #1a3d3a 0%, #4a9b8e 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
}

.popup-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.popup-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #d4af37;
}

.popup-content {
  padding: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a3d3a;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  background-color: #ffffff;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a9b8e;
  box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.btn-primary {
  background: linear-gradient(135deg, #1a3d3a 0%, #4a9b8e 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  position: relative;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 61, 58, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .products-hero-title {
    font-size: 42px;
  }

  .products-overview-content {
    gap: 60px;
  }

  .overview-stats {
    gap: 30px;
  }

  .overview-stats .stat-number {
    font-size: 28px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  .filter-tabs {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .products-hero-section {
    height: 50vh;
    min-height: 350px;
  }

  .products-hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .products-hero-description {
    font-size: 16px;
  }

  .products-overview-section {
    padding: 60px 0;
  }

  .products-overview-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .overview-right {
    padding-left: 0;
  }

  .overview-stats {
    justify-content: center;
    gap: 25px;
  }

  .product-filter-section {
    padding: 40px 0 30px 0;
  }

  .filter-tabs {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .products-grid-section {
    padding: 40px 0 60px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .product-image {
    height: 200px;
  }

  .product-content {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .popup-header {
    padding: 20px 25px;
  }

  .popup-content {
    padding: 25px;
  }

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

  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .product-enquiry-overlay {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .products-hero-section {
    height: 40vh;
    min-height: 300px;
  }

  .products-hero-title {
    font-size: 24px;
  }

  .products-hero-description {
    font-size: 14px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .products-overview-section {
    padding: 40px 0;
  }

  .overview-stats {
    flex-direction: column;
    gap: 20px;
  }

  .product-filter-section {
    padding: 30px 0 20px 0;
  }

  .filter-tabs {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 120px;
  }

  .products-grid-section {
    padding: 30px 0 40px 0;
  }

  .product-content {
    padding: 20px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-description {
    font-size: 14px;
  }

  .popup-header {
    padding: 15px 20px;
  }

  .popup-header h3 {
    font-size: 18px;
  }

  .popup-content {
    padding: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Filter Animation */
.product-card {
  transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease;
}

.product-card.filtering {
  opacity: 0;
  transform: translateY(20px);
}
