/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
  background-color: #f8f9fa;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: #2d5016;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: #4a7c2a;
}

.breadcrumb-nav span {
  color: #6c757d;
}

/* Product Section */
.product-section {
  padding: 3rem 2rem;
  background-color: #ffffff;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Product Image Column */
.product-image-column {
  position: sticky;
  top: 6rem;
}

.product-image-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.main-image.placeholder {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.placeholder-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(45, 80, 22, 0.1);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  color: #2d5016;
}

/* Image Thumbnails */
.image-thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
  border-top: 1px solid #e9ecef;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail:hover {
  border-color: #4a7c2a;
}

.thumbnail.active {
  border-color: #2d5016;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Column */
.product-info-column {
  max-width: 100%;
}

.product-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1.5rem;
}

.product-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2d5016;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-brand {
  margin-bottom: 0.5rem;
}

.product-brand a {
  color: #4a7c2a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.product-brand a:hover {
  color: #2d5016;
}

.product-sku {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Product Tabs */
.product-tabs {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-buttons {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tab-button {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
}

.tab-button:hover {
  background: rgba(45, 80, 22, 0.05);
  color: #2d5016;
}

.tab-button.active {
  background: white;
  color: #2d5016;
  border-bottom-color: #2d5016;
}

/* Tab Content */
.tab-content {
  min-height: 500px;
}

.tab-panel {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Description Content */
.short-description {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  font-weight: 500;
}

.long-description {
  line-height: 1.8;
  color: #495057;
}

.long-description p {
  margin-bottom: 1rem;
}

/* Specifications */
.specifications-list {
  display: grid;
  gap: 0.75rem;
}

.spec-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2d5016;
}

.spec-label {
  font-weight: 600;
  color: #2d5016;
}

.spec-value {
  color: #495057;
}

/* Document Specifications */
.spec-document {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f0f5ea 0%, #f8f9fa 100%);
  border-radius: 8px;
  border-left: 4px solid #4a7c2a;
  align-items: center;
  margin-top: 0.5rem;
}

.spec-document .spec-label {
  color: #2d5016;
  font-weight: 600;
}

.spec-document .spec-value {
  color: white;
  background: linear-gradient(135deg, #4a7c2a 0%, #2d5016 100%);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.spec-document .spec-value:hover {
  background: linear-gradient(135deg, #2d5016 0%, #1e3610 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Additional Information */
.additional-info {
  display: grid;
  gap: 1rem;
}

.info-item {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-item strong {
  color: #2d5016;
  margin-right: 1rem;
}

.in-stock {
  color: #28a745;
  font-weight: 600;
}

.out-of-stock {
  color: #dc3545;
  font-weight: 600;
}

/* Contact Info */
.contact-info h3 {
  color: #2d5016;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
  color: #6c757d;
  line-height: 1.6;
}

.contact-details {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item strong {
  color: #2d5016;
  min-width: 120px;
}

.contact-item a {
  color: #4a7c2a;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: #2d5016;
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e3610 0%, #2d5016 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #2d5016;
  padding: 0.75rem 1.5rem;
  border: 2px solid #2d5016;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #2d5016;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Related Products Section */
.related-products-section {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.related-products-section h2 {
  text-align: center;
  color: #2d5016;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: bold;
}

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

.related-product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.related-product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.related-product-image .placeholder-image {
  width: 60px;
  height: 60px;
  background: rgba(45, 80, 22, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d5016;
}

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

.related-product-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.related-product-brand {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
  color: white;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Contact Form Styles */
.contact-form-wrapper {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: #2d5016;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.form-field-wrapper {
  position: relative;
}

.form-field-wrapper input[type="text"],
.form-field-wrapper input[type="email"],
.form-field-wrapper input[type="tel"],
.form-field-wrapper input[type="number"],
.form-field-wrapper textarea,
.form-field-wrapper select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  background: white;
  color: #333;
  caret-color: #2d5016;
}

.form-field-wrapper textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-field-wrapper input[type="text"]:focus,
.form-field-wrapper input[type="email"]:focus,
.form-field-wrapper input[type="tel"]:focus,
.form-field-wrapper input[type="number"]:focus,
.form-field-wrapper textarea:focus,
.form-field-wrapper select:focus {
  outline: none;
  border-color: #2d5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
  background: #f8f9fa;
}

.form-field-wrapper input[type="text"]:hover,
.form-field-wrapper input[type="email"]:hover,
.form-field-wrapper input[type="tel"]:hover,
.form-field-wrapper input[type="number"]:hover,
.form-field-wrapper textarea:hover,
.form-field-wrapper select:hover {
  border-color: #4a7c2a;
  box-shadow: 0 0 0 3px rgba(74, 124, 42, 0.3);
}

.form-field-wrapper input[type="text"]:focus,
.form-field-wrapper input[type="email"]:focus,
.form-field-wrapper input[type="tel"]:focus,
.form-field-wrapper input[type="number"]:focus,
.form-field-wrapper textarea:focus,
.form-field-wrapper select:focus {
  border-color: #2d5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-error {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  padding-left: 0.5rem;
  border-left: 3px solid #dc3545;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.btn-submit {
  margin-top: 1rem;
  padding: 0.9rem 2.5rem !important;
  font-size: 1.05rem !important;
  width: 100%;
  text-align: center;
}

.btn-submit:hover {
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4) !important;
}

.contact-form {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-image-column {
    position: relative;
    top: auto;
  }

  .product-header h1 {
    font-size: 2rem;
  }

  .tab-buttons {
    flex-wrap: wrap;
  }

  .tab-button {
    min-width: 50%;
  }
}

@media (max-width: 768px) {
  .product-section {
    padding: 2rem 1rem;
  }

  .breadcrumb {
    padding: 1rem;
  }

  .breadcrumb-nav {
    font-size: 0.8rem;
  }

  .main-image {
    height: 300px;
  }

  .product-header h1 {
    font-size: 1.8rem;
  }

  .tab-button {
    padding: 0.75rem;
    font-size: 0.9rem;
    min-width: 100%;
  }

  .tab-panel {
    padding: 1.5rem;
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .spec-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-section h2 {
    font-size: 2rem;
  }

  .related-products-section h2 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    gap: 1rem;
  }

  .btn-submit {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .image-thumbnails {
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .thumbnail {
    width: 40px;
    height: 40px;
  }

  .contact-section,
  .related-products-section {
    padding: 2rem 1rem;
  }
}
