/* Products Page Specific Styles */

/* Full width layout */
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Active Navigation Link */
.nav-menu a.active,
.mobile-nav-menu a.active {
  color: #2b6ebc;
}

/* Products Hero Section */
.products-hero {
  background: linear-gradient(
    135deg,
    rgba(43, 110, 188, 0.1) 0%,
    rgba(43, 110, 188, 0.05) 100%
  );
  padding: 100px 0 80px 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.products-hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.products-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.products-hero-badge {
  display: inline-flex;
  align-items: center;
  background: #e6eef7;
  color: #2b6ebc;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 30px;
}

.products-hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin: 0 0 25px 0;
  color: #333;
  font-weight: bold;
}

.products-hero-description {
  font-size: 20px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Search and Filter Section */
.search-filter-section {
  padding: 60px 0;
  background: white;
  border-bottom: 1px solid #e8e8e8;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.search-filter-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.search-bar-container {
  width: 100%;
  max-width: 600px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid #e8e8e8;
  border-radius: 50px;
  padding: 15px 25px;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: #2b6ebc;
  box-shadow: 0 0 0 3px rgba(43, 110, 188, 0.1);
}

.search-icon {
  font-size: 20px;
  color: #666;
  margin-right: 15px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #333;
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.search-clear {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-clear:hover {
  background: #e8e8e8;
  color: #666;
}

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

.filter-tab {
  background: #f8f9fa;
  border: 2px solid #e8e8e8;
  color: #666;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  border-color: #2b6ebc;
  color: #2b6ebc;
}

.filter-tab.active {
  background: #2b6ebc;
  border-color: #2b6ebc;
  color: white;
}

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

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.products-count {
  font-size: 24px;
  color: #333;
  font-weight: 600;
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
  gap: 30px;
  justify-content: center;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
  position: relative;
  display: flex !important;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
}

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

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.product-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #2b6ebc;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.product-content {
  padding: 20px 30px 50px 30px;
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  min-height: 250px;
  background: white;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.product-title {
  font-size: 20px;
  color: #333 !important;
  font-weight: bold;
  margin: 0 0 12px 0;
  line-height: 1.3;
  display: block;
  visibility: visible;
}

.product-description {
  font-size: 14px;
  color: #666 !important;
  line-height: 1.5;
  margin: 0 0 8px 0;
  flex: 1;
  display: block;
  visibility: visible;
}

.view-details-btn {
  background: #2b6ebc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.view-details-btn:hover {
  background: #245a9e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 110, 188, 0.3);
  color: white;
  text-decoration: none;
}

/* Pagination Section */
.pagination-section {
  padding: 60px 0;
  background: white;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.pagination-info {
  font-size: 16px;
  color: #666;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pagination-btn {
  background: white;
  border: 2px solid #e8e8e8;
  color: #666;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #2b6ebc;
  color: #2b6ebc;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
}

.pagination-btn:disabled:hover,
.pagination-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number {
  background: white;
  border: 2px solid #e8e8e8;
  color: #666;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  border-color: #2b6ebc;
  color: #2b6ebc;
}

.pagination-number.active {
  background: #2b6ebc;
  border-color: #2b6ebc;
  color: white;
}

/* Call to Action Section */
.products-cta {
  padding: 60px 0 80px 0;
  background: linear-gradient(
    135deg,
    #3880d6 0%,
    #2f74c9 100%
  );
  color: white;
  margin-bottom: 40px;
}

.cta-content {
  text-align: center;
  max-width: 1600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 20px 0;
  font-weight: bold;
  color: white;
}

.cta-description {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 30px 0;
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-cta-primary {
  background: white;
  color: #2b6ebc;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
  background: white;
  color: #2b6ebc;
  transform: translateY(-2px);
}

/* Responsive Design for Products Page */
@media (max-width: 1024px) {
  .products-hero-container,
  .container {
    padding: 0 50px;
  }

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

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

  .products-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .pagination-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* Specification Images Section */
#specification-images-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

#specification-images-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.specification-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.spec-image-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #e9ecef;
}

.specification-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.specification-image:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .products-hero {
    padding: 80px 0 60px 0;
  }

  .products-hero-container,
  .container {
    padding: 0 40px;
  }

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

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

  .search-filter-section,
  .products-grid-section,
  .pagination-section {
    padding: 40px 0;
  }

  .search-filter-content {
    gap: 30px;
  }

  .filter-tabs {
    gap: 10px;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .products-hero-container,
  .container {
    padding: 0 25px;
  }

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

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

  .search-bar {
    padding: 12px 20px;
  }

  .search-input {
    font-size: 14px;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .filter-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 12px;
  }

  .product-content {
    padding: 20px;
  }

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

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

  .pagination-nav {
    gap: 10px;
  }

  .pagination-btn {
    padding: 10px 15px;
    font-size: 13px;
  }

  .pagination-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-description {
    font-size: 18px;
  }
}

/* Modal styles removed - now using dedicated product detail pages */

/* No Products Found Message */
.no-products-message {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 60px 20px;
}

.no-products-content {
  text-align: center;
  max-width: 500px;
}

.no-products-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.no-products-title {
  font-size: 28px;
  color: #333;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.no-products-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.clear-filters-btn {
  background: #2b6ebc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters-btn:hover {
  background: #245a9e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 110, 188, 0.3);
}

/* Responsive No Products Message */
@media (max-width: 768px) {
  .no-products-message {
    min-height: 300px;
    padding: 40px 20px;
  }

  .no-products-icon {
    font-size: 48px;
    margin-bottom: 15px;
  }

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

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