/* Products Page Styles */

.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  padding: 8rem 0 4rem;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=400&width=1200") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.header-content h1 {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-content p {
  font-size: 1.3rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #94a3b8;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-red);
}

.breadcrumb span {
  color: #64748b;
}

/* Products Section */
.products-section {
  padding: 6rem 0;
  background: var(--light-bg);
}

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

.product-item {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
}

.product-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.product-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.product-item:nth-child(even) .product-image {
  order: 2;
}

.product-item:nth-child(even) .product-info {
  order: 1;
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-item:hover .product-image img {
  transform: scale(1.1);
}

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

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

.product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.product-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.product-features i {
  color: #10b981;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-content .btn {
  background: var(--white);
  color: var(--primary-blue);
  font-weight: 700;
}

.cta-content .btn:hover {
  background: var(--light-bg);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }

  .header-content h1 {
    font-size: 2.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .product-item:nth-child(even) .product-image,
  .product-item:nth-child(even) .product-info {
    order: initial;
  }

  .product-image {
    height: 250px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header-content h1 {
    font-size: 2rem;
  }

  .product-info {
    padding: 1.5rem;
  }
}

/* Product Detail Responsive Styles */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  transition: var(--transition);
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.thumbnail-images img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.product-info h2 {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.product-features,
.product-specs {
  margin-bottom: 2rem;
}

.product-features h3,
.product-specs h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.product-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.product-specs table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-specs table td {
  padding: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.product-specs table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(30, 64, 175, 0.05);
  width: 40%;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.related-products {
  padding: 4rem 0;
  background: var(--light-bg);
}

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

.related-products .product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

/* Enhanced Responsive Design for Products */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
  }

  .product-detail {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }

  .header-content h1 {
    font-size: 2.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .product-item:nth-child(even) .product-image,
  .product-item:nth-child(even) .product-info {
    order: initial;
  }

  .product-image {
    height: 250px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-info h2 {
    font-size: 2rem;
  }

  .product-features ul {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .thumbnail-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-products .products-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header-content h1 {
    font-size: 2rem;
  }

  .product-info {
    padding: 1.5rem;
  }

  .product-info h2 {
    font-size: 1.5rem;
  }

  .main-image img {
    height: 250px;
  }

  .thumbnail-images img {
    height: 60px;
  }

  .product-specs table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

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