/* --- Layout Wrappers --- */
.product-details-page {
  width: 100%;
  padding-bottom: 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .product-details-page {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

.product-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-content-wrapper {
    gap: 2rem;
  }
}

/* --- Main Card --- */
.product-main-card {
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-main-card {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .product-main-card {
    padding: 2.5rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 3rem;
  }
}

/* --- Breadcrumbs --- */
.product-breadcrumbs {
  font-family: var(--font-montserrat);
  font-size: 0.625rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .product-breadcrumbs {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .product-breadcrumbs {
    grid-column: 1 / 2;
    order: 1;
  }
}

.breadcrumb-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--primary-color, #029496);
}

.breadcrumb-current {
  font-weight: 500;
  color: #6b7280;
}

/* --- Gallery --- */
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .product-gallery {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    order: 2;
  }
}

.gallery-main-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .gallery-main-image-wrapper {
    margin-bottom: 2rem;
  }
}

.gallery-nav-btn {
  position: absolute;
  z-index: 10;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.125rem;
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition:
    background-color 0.2s,
    color 0.2s;
  cursor: pointer;
  background-color: var(--primary-color, #029496);
  color: #ffffff;
}

.gallery-nav-btn:hover {
  background-color: #027a7c;
}

.gallery-nav-btn.disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .gallery-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.gallery-prev-btn {
  left: 0.5rem;
}

.gallery-next-btn {
  right: 0.5rem;
}

.gallery-image-container {
  position: relative;
  width: 15.625rem;
  height: 15.625rem;
  overflow: hidden;
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .gallery-image-container {
    width: 25rem;
    height: 25rem;
  }
}

@media (min-width: 1024px) {
  .gallery-image-container {
    width: 31.25rem;
    height: 31.25rem;
  }
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gallery-zoom-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  background-repeat: no-repeat;
  background-size: 200%;
  transition:
    background-position 0.15s ease-out,
    opacity 0.3s ease-in-out;
}

.gallery-zoom-layer.active {
  opacity: 1;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  width: 100%;
  justify-content: center;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}
.gallery-thumbnails {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

@media (min-width: 768px) {
  .gallery-thumbnails {
    gap: 1rem;
  }
}

.thumbnail-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  position: relative;
  border: 1px solid #e5e7eb;
  padding: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.thumbnail-wrapper:hover {
  border-color: #d1d5db;
}

.thumbnail-wrapper.active {
  border-color: var(--primary-color, #029496);
  box-shadow: 0 0 0 1px var(--primary-color, #029496);
}

@media (min-width: 768px) {
  .thumbnail-wrapper {
    width: 5rem;
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .thumbnail-wrapper {
    width: 6rem;
    height: 6rem;
  }
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* --- Text Content --- */
.product-info-panel {
  height: 100%;
}

@media (min-width: 1024px) {
  .product-info-panel {
    grid-column: 1 / 2;
    order: 3;
  }
}

.product-info-sticky {
  display: flex;
  flex-direction: column;
  font-family: var(--font-montserrat);
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .product-info-sticky {
    position: sticky;
    top: 6rem;
  }
}

.product-title {
  font-family: var(--font-inter);
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .product-title {
    font-size: 2.5rem;
  }
}

.product-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.625;
  margin: 0 0 1.5rem 0;
}

@media (min-width: 768px) {
  .product-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .product-description {
    font-size: 1.125rem;
  }
}

.product-description strong {
  color: #000000;
}

.product-section-title {
  font-weight: 700;
  font-size: 1rem;
  color: #000000;
  margin: 0 0 0.75rem 0;
}

@media (min-width: 768px) {
  .product-section-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .product-section-title {
    font-size: 1.25rem;
  }
}

.product-list {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .product-list {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    gap: 0.5rem;
  }
}

.product-cta {
  margin: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.request-quote-btn {
  display: inline-block;
  background-color: white;
  color: var(--primary-color, #029496);
  border: 1px solid var(--primary-color, #029496);
  font-family: var(--font-montserrat);
  font-size: 1rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}

.request-quote-btn:hover {
  background-color: var(--primary-color, #029496);
  color: white;
}

@media (min-width: 1024px) {
  .request-quote-btn {
    font-size: 1.125rem;
  }
}

.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.quote-modal-overlay[hidden] {
  display: none;
}

.quote-modal {
  position: relative;
  background: white;
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  border-radius: 4px;
}

.quote-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.quote-modal-title {
  font-family: var(--font-montserrat);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.quote-modal-product {
  color: #666;
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.quote-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#quote-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.75rem 0 0.25rem;
}

#quote-form input,
#quote-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

#quote-form input:focus,
#quote-form textarea:focus {
  outline: none;
  border-color: var(--primary-color, #029496);
}

.quote-form-status {
  min-height: 1.25rem;
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}

.quote-form-status.success {
  color: #1a7a3c;
}

.quote-form-status.error {
  color: #c0392b;
}

.quote-form-submit {
  margin-top: 1rem;
  width: 100%;
  background-color: var(--primary-color, #029496);
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-montserrat);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quote-form-submit:hover {
  background-color: #027a7c;
}

.quote-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.become-dealer-btn {
  display: inline-block;
  background-color: var(--primary-color, #029496);
  color: white;
  text-decoration: none;
  font-family: var(--font-montserrat);
  font-size: 1rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
}

.become-dealer-btn:hover {
  background-color: #027a7c;
}

@media (min-width: 1024px) {
  .become-dealer-btn {
    font-size: 1.125rem;
  }
}

.product-meta {
  color: #6b7280;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .product-meta {
    font-size: 1.125rem;
    gap: 0.5rem;
  }
}

.capitalize {
  text-transform: capitalize;
}

/* --- Specs Section --- */
.product-specs-section {
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  font-family: var(--font-montserrat);
}

@media (min-width: 768px) {
  .product-specs-section {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .product-specs-section {
    padding: 2.5rem;
  }
}

.specs-tabs-header {
  display: flex;
  width: 100%;
  justify-content: center;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .specs-tabs-header {
    justify-content: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
  }
}

.specs-tab {
  flex: 1;
  background: none;
  border: none;
  padding-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
}

@media (min-width: 768px) {
  .specs-tab {
    flex: none;
    text-align: left;
    padding-bottom: 1rem;
    font-size: 1.125rem;
  }
}

.specs-tab:hover {
  color: #374151;
}

.specs-tab.active {
  color: var(--primary-color, #029496);
}

.tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color, #029496);
}

.tab-content {
  display: none;
  padding-top: 0.5rem;
}

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

@media (min-width: 768px) {
  .tab-content {
    padding-top: 1.5rem;
  }
}

.specs-grid {
  font-size: 1rem;
  column-count: 1;
  column-gap: 2rem;
  column-rule: 1px dotted #e5e7eb;
}

@media (min-width: 640px) {
  .specs-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .specs-grid {
    column-count: 4;
  }
}

.spec-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.75rem;
  break-inside: avoid;
}

@media (min-width: 768px) {
  .spec-item {
    padding-bottom: 1rem;
  }
}

.spec-label {
  color: #6b7280;
  width: 8.75rem;
  flex-shrink: 0;
}

.spec-value {
  color: #000000;
  font-weight: 500;
}

.downloads-empty {
  padding: 1rem 0;
  color: #6b7280;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .downloads-empty {
    padding: 2rem 0;
    font-size: 1.125rem;
  }
}

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

@media (min-width: 768px) {
  .related-products-section {
    padding-top: 3rem;
  }
}

.related-title {
  font-family: var(--font-inter);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.025em;
}

.text-primary {
  color: var(--primary-color, #029496);
}

@media (min-width: 768px) {
  .related-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .related-title {
    font-size: 3rem;
  }
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.related-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .related-card {
    padding: 1.5rem;
  }
}

.related-image-container {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  border: 2px solid #f3f4f6;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .related-image-container {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
  }
}

.related-image-wrapper {
  position: relative;
  width: 11.25rem;
  height: 11.25rem;
}

@media (min-width: 768px) {
  .related-image-wrapper {
    width: 100%;
    height: 14.6875rem;
  }
}

.related-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.related-card-title {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  text-transform: uppercase;
  color: #000000;
}

@media (min-width: 768px) {
  .related-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .related-card-title {
    font-size: 1.25rem;
  }
}

.related-card-desc {
  font-family: var(--font-montserrat);
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.625;
  margin: 0;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .related-card-desc {
    font-size: 1.125rem;
  }
}
