/* Product View Styles */

/* Breadcrumb */
.breadcrumb {
  background-color: #f5f5f5;
  padding: 1rem 0;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Product Container */
.product-container {
  display: flex;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  gap: 3rem;
}

.product-gallery {
  flex: 1;
  max-width: 600px;
}

.product-main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-details {
  flex: 1;
  max-width: 600px;
}

.product-header {
  margin-bottom: 1.5rem;
}

.product-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-tagline {
  font-size: 1.25rem;
  color: #666;
  font-weight: 600;
}

.product-description {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.product-price {
  margin-bottom: 2rem;
}

.product-price h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.price-note {
  font-style: italic;
  color: #666;
}

.product-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  background-color: #f5f5f5;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
}

.quantity-btn:hover {
  background-color: #e5e5e5;
}

.quantity {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.add-to-cart-btn {
  flex: 1;
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
}

.product-features {
  margin-top: 2rem;
}

.product-features h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.features-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 1.5rem;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* vCard Layout Section */
.vcard-layout-section {
  background-color: #f9f9f9;
  padding: 4rem 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.vcard-layout-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.vcard-layout-section p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.vcard-layout-section a {
  color: var(--primary-color);
  font-weight: 600;
}

.layout-gallery {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.layout-image {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

/* Related Products */
.related-products {
  padding: 4rem 0;
}

.related-products h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.product-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.product-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.card-thumbnail {
  width: 100%;
  height: auto;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-price {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .product-container {
    flex-direction: column;
    align-items: center;
  }
  
  .product-gallery,
  .product-details {
    max-width: 100%;
  }
  
  .layout-gallery {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
  }
  
  .quantity-selector {
    width: 100%;
    justify-content: center;
  }
  
  .layout-image {
    max-width: 100%;
  }
  
  .product-cards {
    justify-content: center;
  }
}

/* Fallback image styles */
.img-fallback {
  border-radius: 8px;
  width: 100%;
  height: 300px;
}

.layout-image.img-fallback {
  height: 400px;
}

.card-thumbnail.img-fallback {
  height: 100%;
}
