/* Product Pages Styles for Haitariovi.fi */

/* Product Hero Section */
.product-hero {
  background-color: var(--light-gray);
  padding: 60px 0;
}

.product-hero h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.product-hero .lead {
  font-size: 22px;
  margin-bottom: 20px;
}

/* Product Types Section */
.product-types {
  padding: 60px 0;
  background-color: var(--white);
}

.product-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
  height: 250px;
  overflow: hidden;
}

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

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

.product-info {
  padding: 20px;
  background-color: var(--white);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.product-features {
  margin-bottom: 20px;
  padding-left: 20px;
}

.product-features li {
  margin-bottom: 8px;
}

.product-info .btn {
  margin-top: auto;
}

/* Features Section */
.product-features-section {
  background-color: var(--light-gray);
  padding: 60px 0;
}

.feature-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  margin-bottom: 20px;
}

.feature-icon {
  margin-right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.feature-content {
  flex-grow: 1;
}

.feature-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature-image {
  margin-top: 15px;
  border-radius: 5px;
  max-height: 200px;
  object-fit: cover;
}

/* Installation Section */
.installation-section {
  padding: 60px 0;
  background-color: var(--white);
}

/* Call to Action Section */
.cta-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.cta-box {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-box h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cta-box p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-outline-primary {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-primary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Product Configurator Styles */
.configurator-section {
  padding: 60px 0;
  background-color: var(--white);
}

.configurator-container {
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.configurator-preview {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.configurator-preview img {
  max-width: 100%;
  max-height: 280px;
}

.configurator-options {
  margin-bottom: 30px;
}

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

.option-group label {
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.color-option.active {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.color-option[data-color="black"] {
  background-color: #1a1a1a; /* RAL 9005 */
}

.color-option[data-color="white"] {
  background-color: #f1f1f1; /* RAL 9016 */
  border: 1px solid #ddd;
}

.color-option[data-color="dark-grey"] {
  background-color: #474a51; /* RAL 7024 */
}

.color-option[data-color="brown"] {
  background-color: #44362e; /* RAL 8017 */
}

.color-option[data-color="light-grey"] {
  background-color: #d7d7d7; /* RAL 7035 */
}

.configurator-summary {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
}

.summary-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.summary-list {
  margin-bottom: 20px;
}

.summary-list li {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.summary-total {
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
}

.configurator-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .product-hero {
    padding: 40px 0;
    text-align: center;
  }
  
  .product-hero h1 {
    font-size: 32px;
  }
  
  .product-hero .lead {
    font-size: 18px;
  }
  
  .feature-card {
    flex-direction: column;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .cta-box {
    padding: 30px 20px;
  }
  
  .cta-box h2 {
    font-size: 28px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
