/* Model Details Page Custom Stylesheet */

/* Breadcrumb */
.breadcrumb-nav {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #9ca3af;
  transition: color 0.2s;
}

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

.breadcrumb-nav span.active-crumb {
  color: #374151;
  font-weight: 600;
}


.model-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.model-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gallery-main-img-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gallery-main-img-box img {
  border-radius: 0.75rem;
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #fff;
  display: block;
}

.gallery-thumbs-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumb-btn {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: opacity 0.2s;
}

.gallery-thumb-btn.active {
  outline: 2px solid #4f46e5;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-info-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.info-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.info-badge.unit-badge {
  background-color: #e0e7ff;
  color: #4338ca;
}

.info-badge.type-badge {
  background-color: #f3f4f6;
  color: #4b5563;
}

.model-description {
  font-size: 0.9375rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Download file list card items */
.download-section-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-section-box h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.download-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.download-card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-type-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.file-details-text p.file-name {
  font-weight: 500;
  color: #111827;
  font-size: 0.875rem;
}

.file-details-text p.file-size {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.125rem;
}

.download-card-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-tag-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #16a34a;
}

.btn-download-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  background-color: #4f46e5;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.btn-download-action:hover {
  background-color: #4338ca;
}

.btn-buy-action {
  padding: 0.625rem 1.25rem;
  background-color: #16a34a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.btn-buy-action:hover {
  background-color: #15803d;
}

/* Related section */
.related-models-wrapper {
  width: 100%;
  margin-top: 3rem;
}

.related-models-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

/* Cart button in-cart state */
.btn-download-action.btn-in-cart {
  background-color: #fff;
  color: #4f46e5;
  border: 1.5px solid #4f46e5;
  box-shadow: none;
}

.btn-download-action.btn-in-cart:hover {
  background-color: #eef2ff;
}

/* Tags section on model page */
.model-tags-section {
  padding: 0;
  margin-bottom: 2.5rem;
}

/* No related models text */
.no-related-text {
  color: #9ca3af;
  font-size: 0.9375rem;
}

/* Download spinner */
.spin-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}