/*
 * AuroraEx Products Page Styles
 * This file contains styles specific to the Products page
 */

/* Products Hero Section */
.products-hero {
  min-height: 750px;
}

/* Centered Hero Content */
.centered-hero {
  text-align: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.centered-hero .hero-title,
.centered-hero .hero-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.centered-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-4);
}

.centered-features .hero-feature {
  display: inline-flex;
  margin: 0 var(--spacing-2) var(--spacing-3);
}

.hero-badge {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--dark);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-4);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.products-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--spacing-4);
  width: 100%;
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.product-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  transform: scale(1);
  z-index: 1;
}

.product-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.product-item:hover {
  transform: translateY(-10px);
  z-index: 2;
}

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

.product-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  padding: var(--spacing-4) var(--spacing-3) var(--spacing-2);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  text-align: center;
}

.product-item.forex {
  animation-delay: 0.1s;
}

.product-item.commodities {
  animation-delay: 0.2s;
}

.product-item.metals {
  animation-delay: 0.3s;
}

.product-item.crypto {
  animation-delay: 0.4s;
}

@media (max-width: 991px) {
  .products-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }

  .product-item img {
    height: 150px;
  }
}

.product-hero-features {
  list-style: none;
  margin-bottom: var(--spacing-8);
  padding: 0;
}

.product-hero-features li {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-2);
  color: var(--white);
  font-size: var(--text-lg);
}

.product-hero-features li i {
  color: var(--secondary);
  margin-right: var(--spacing-2);
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-4);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-6);
  margin-bottom: var(--spacing-12);
}

/* Product Card */
.product-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal) var(--transition-ease),
    box-shadow var(--transition-normal) var(--transition-ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal) var(--transition-ease);
}

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

.product-card-content {
  padding: var(--spacing-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--dark);
  margin-bottom: var(--spacing-3);
  text-align: center;
}

.product-card-content p {
  color: var(--gray);
  margin-bottom: var(--spacing-4);
  line-height: var(--leading-relaxed);
  text-align: center;
}

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-4);
}

.product-features li {
  padding: var(--spacing-1) 0;
  display: flex;
  align-items: center;
  color: var(--gray-dark);
}

.product-features li::before {
  content: "•";
  color: var(--primary);
  font-weight: var(--font-bold);
  margin-right: var(--spacing-2);
}

/* Feature Card */
.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-6);
  text-align: center;
  transition: transform var(--transition-normal) var(--transition-ease),
    box-shadow var(--transition-normal) var(--transition-ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card i {
  font-size: var(--text-4xl);
  color: var(--primary);
  margin-bottom: var(--spacing-4);
}

.feature-card h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--dark);
  margin-bottom: var(--spacing-2);
}

.feature-card p {
  color: var(--gray);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--spacing-12) 0;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--spacing-4);
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: var(--spacing-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

/* Section Backgrounds */
.section-bg-white {
  background-color: var(--white);
}

.section-bg-light {
  background-color: var(--light);
}

/* Using the consolidated section-bg-primary class from components.css */

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-hero-title {
    font-size: var(--text-4xl);
  }

  .product-hero-subtitle {
    font-size: var(--text-lg);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

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

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .product-hero-title {
    font-size: var(--text-3xl);
  }

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

/* Image placeholder styles */
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 18px;
  text-align: center;
  background-color: #f5f5f5;
}

.image-placeholder-size {
  margin-top: 10px;
  font-size: 14px;
}

/* Product Detail Sections */
.features-list {
  margin: var(--spacing-4) 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-3);
}

.feature-item i {
  color: var(--primary);
  margin-right: var(--spacing-3);
  font-size: var(--text-lg);
}

.feature-item span {
  font-size: var(--text-md);
  color: var(--gray-dark);
}

.trading-conditions {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-sm);
}

.trading-conditions h3 {
  color: var(--dark);
  margin-bottom: var(--spacing-4);
}

.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--spacing-3);
  text-align: left;
  border: 1px solid var(--gray-light);
}

.table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: var(--font-semibold);
}

.table tr:nth-child(even) {
  background-color: var(--white);
}

.table tr:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
}

.thead-light th {
  background-color: var(--primary-light);
  color: var(--dark);
}

.ml-3 {
  margin-left: var(--spacing-3);
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow-md);
}

/* Fix for product card images to ensure consistent sizing */
.card-img-top {
  width: 100%;
  height: 266px !important; /* Fixed height to match the 354 × 266 dimensions */
  object-fit: cover !important;
  object-position: center !important;
  max-height: 266px !important;
}

/* Specific fix for precious metals image */
img[src*="precious-metals.jpg"] {
  height: 266px !important;
  max-height: 266px !important;
  object-fit: cover !important;
}

/* Center card content */
.card-body {
  text-align: center;
}

.card-title {
  text-align: center;
}

.card-text {
  text-align: center;
}

.card-body .btn {
  margin: 0 auto;
  display: block;
  max-width: 150px;
}
