/* products-info.css */

/* General Page Layout */
.product-info-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  font-family: 'Inter', sans-serif;
}

.product-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Product Header */
.product-header {
  text-align: left;
  padding-bottom: 1rem;
  border-bottom: 2px solid #E63946; /* Brand color */
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1E1E1E;
}

/* Main Content Area */
.product-main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Image Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-product-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.thumbnail-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.thumbnail-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.thumbnail-image:hover, .thumbnail-image.active {
  border-color: #E63946; /* Brand color */
}

/* Product Details */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
}

.product-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
}

.product-meta {
  font-size: 0.9rem;
  color: #718096;
}

.product-meta strong {
    color: #2d3748;
}


/* Action Buttons */
.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.order-button,
.contact-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.order-button {
  background-color: #E63946;
  color: white;
}

.order-button:hover {
  background-color: #d62839;
}

.contact-button {
  background-color: #f1f1f1;
  color: #1E1E1E;
  border-color: #e2e8f0;
}

.contact-button:hover {
  background-color: #e2e8f0;
}

/* Related Products Section */
.related-products {
    margin-top: 3rem;
    padding-top: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Error Message Styling */
.error-container {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #E63946;
}

.error-message {
  font-size: 1.25rem;
  color: #4a5568;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #1E1E1E;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.back-link:hover {
  background-color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-main-content {
    grid-template-columns: 1fr;
  }
  .product-info-page {
    padding: 0 1rem;
  }
  .product-title {
    font-size: 2rem;
  }
  .details-title {
    font-size: 1.5rem;
  }
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}