  /* ==========================================================================
   Product Details Page Styles
   Unique class names prefixed with product-detail- to avoid conflicts
   ========================================================================== */

/* Prevent horizontal scroll without breaking the site headerâ€™s position:sticky.
   overflow-x: hidden on html/body pairs with visible y and forces overflow-y to
   auto (CSS 2.1), which makes the root a scroll container and sticky failsâ€”so the
   whole header (including the black utility bar) scrolls off until .site-header--scrolled
   switches it to fixed. overflow-x: clip clips horizontally without that side effect. */
html,
body {
  max-width: 100vw;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* overflow-y: visible so viewport is the scroll container; sticky nav works (overflow-x: hidden alone can make overflow-y auto) */
body > main {
  max-width: 100%;
  /* padding: 0; */
  /* margin: 0; */
  overflow-x: hidden;
  overflow-y: visible;
}

/* Ensure no ancestor of the sticky nav creates a scroll container (breaks position:sticky) */
main:has(.product-detail-nav-container) .body-container {
  overflow: visible;
}

:root {
  --product-detail-sticky-top: 100px;
}

/* Ensure product detail elements use border-box */
.product-detail-nav-container,
.product-detail-nav,
.product-detail-nav-dropdown-select,
.product-detail-nav-dropdown-button,
.product-detail-nav-dropdown-menu-wrapper,
.product-detail-layout,
.product-detail-media-left,
.product-detail-highlights-container,
.product-detail-highlights-table,
.product-detail-tab-panel,
article.product-detail-card {
  box-sizing: border-box;
}

/* Pagination dots container */
.product-detail-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
}

/* Individual dot */
.product-detail-dot {
  width: 11px;
  height: 11px;
  border-radius: 8px;
  background-color: rgba(167, 169, 172, 1);
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
  padding: 0;
}

.product-detail-dot:hover {
  background-color: rgba(0, 168, 228, 0.7);
}

.product-detail-dot.active {
  background-color: rgba(0, 168, 228, 1);
}
/* 4. Utilities */
.product-detail-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-detail-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.product-detail-skip-link:focus {
  left: var(--spacing-md);
  top: var(--spacing-md);
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border-radius: 6px;
  z-index: 1000;
}

/* 5. Layout components */
article.product-detail-card {
  max-width: var(--max-width-container);
  width: 100%;
  margin: 0 auto 50px;
}

.product-detail-layout {
  display: grid;
}

.product-detail-media-left {
  max-height: 560px;
  height: 100%;
  max-width: 394px;
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(var(--color-border-gray), 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-detail-details-right {
  max-width: none;
}

/* Breadcrumb */
.product-detail-breadcrumb {
  max-width: var(--max-width-container);
  width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
  font-size: 13px;
  font-family: "Helvetica", var(--font-family-semi-bold);
  color: rgba(153, 153, 153, 1);
}

.product-detail-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.product-detail-breadcrumb li {
  display: flex;
  align-items: center;
}

.product-detail-breadcrumb-arrow {
  width: 16px;
  height: 16px;
  margin: 0 8px;
  color: rgba(153, 153, 153, 1);
}

.product-detail-breadcrumb a {
  color: rgba(51, 51, 51, 1);
  text-decoration: none;
}

.product-detail-breadcrumb a:hover,
.product-detail-breadcrumb a:focus {
  text-decoration: underline;
}

/* 6. UI components */
.product-detail-title {
  font-family: var(--font-family-bold);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.6px;
  color: rgba(51, 51, 51, 1);
  margin: 0 0 11px;
}

.product-detail-intro {
  margin: 0 0 26px;
  color: rgba(51, 51, 51, 1);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family-medium);
  letter-spacing: 1px;
  line-height: 26px;
}

.product-detail-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.product-detail-btn {
  /* display: inline-flex;
  align-items: center;
  gap: 8px; */
  text-decoration: none;
  color: var(--primary-color);
  /* background: #fff; */
  border: 1px solid var(--primary-color);
  padding: 13px 17px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  /* box-shadow: var(--shadow-sm); */
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-family-bold);
}

.product-detail-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.product-detail-btn:hover,
.product-detail-btn:focus {
  color: #fff;
  background: var(--primary-color);
}

.product-detail-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-highlights-heading {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-family-bold);
  letter-spacing: 0.5px;
  color: rgba(51, 51, 51, 1);
  margin: 0px;
  margin-bottom: 6px;
}

.product-detail-highlights-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0 10px;
}

.product-detail-highlights-table th {
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-family-semi-bold);
  color: rgba(51, 51, 51, 1);
  text-align: left;
  vertical-align: top;
  width: 45%;
  padding-right: 49px;
  letter-spacing: 1.3px;
  padding-bottom: 4px;
  padding-top: 4px;
  background-color: transparent !important;
}

.product-detail-highlights-table tbody tr:nth-child(3) th {
  white-space: nowrap;
}

.product-detail-highlights-table td {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
  color: rgba(51, 51, 51, 1);
  padding-left: 0;
  letter-spacing: 1.3px;
  padding-bottom: 4px;
  padding-top: 4px;
  line-height: 22px;
  vertical-align: top;
  background-color: transparent !important;
}

.product-detail-highlight-value {
  padding-top: 4px;
  padding-bottom: 4px;
}

.product-detail-highlight-value:not(:last-child) {
  border-bottom: 1px solid rgba(219, 219, 219, 1);
}

.product-detail-highlights-table tr {
  border-bottom: 1px solid rgba(var(--color-border-gray), 1);
  background-color: transparent !important;
}

/* Override global table.css even row styling for Product Highlights table */
.product-detail-highlights-table tbody tr:nth-child(even),
.product-detail-highlights-table tbody tr:nth-child(even) th,
.product-detail-highlights-table tbody tr:nth-child(even) td {
  background-color: transparent !important;
}

.product-detail-highlights-table tr:last-child {
  border-bottom: 0;
}

.product-detail-highlights-table tbody {
  line-height: 32px;
}

.product-detail-view-more {
  /* display: inline-block; */
  text-decoration: none;
  color: rgba(7, 86, 151, 1);
  font-size: 13px;
  font-family: var(--font-family-semi-bold);
}

.product-detail-view-more:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Product Navigation (wrapper height set by JS when .is-stuck to prevent layout jump) */
.product-detail-nav-container {
  position: sticky;
  top: var(--product-detail-sticky-top, 0);
  z-index: 100;
  max-width: 100%;
  background: #f6f6f6;
}

/* JS-driven sticky when CSS sticky is broken by ancestor overflow/transform */
.product-detail-nav-container.is-stuck {
  position: fixed;
  top: var(--product-detail-sticky-top, 0);
  left: 0;
  right: 0;
  width: 100%;
}

.product-detail-nav {
  max-width: var(--max-width-container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

/* Desktop Navigation: Horizontal Tabs */
.product-detail-nav-desktop {
  display: flex;
}

.product-detail-nav-item {
  flex: 1;
  padding: 24px 6px;
  background: transparent;
  border: none;
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family-bold);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.product-detail-nav-item:hover {
  background: #e9ecef;
  color: var(--text-primary);
}

.product-detail-nav-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.product-detail-nav-item.is-active {
  background: rgba(var(--color-black), 1);
  color: rgba(var(--color-white), 1);
}

.product-detail-nav-item.is-active:focus {
  outline-color: var(--white);
}

/* Mobile/Tablet Navigation: Dropdown */
.product-detail-nav-mobile {
  display: none;
  max-width: var(--max-width-container);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.product-detail-nav-dropdown-select {
  position: relative;
  width: 100%;
}

.product-detail-nav-dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-color-dark);
  border-radius: 4px;
  background: var(--white);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-family-bold);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.product-detail-nav-dropdown-button:not(.is-open):not([aria-expanded="true"]) {
  border-bottom: 1px solid var(--border-color-dark);
}

.product-detail-nav-dropdown-button:hover {
  background: rgba(246, 246, 246, 1);
  border-color: var(--primary-color);
}

.product-detail-nav-dropdown-button:focus {
  outline: none;
}

.product-detail-nav-dropdown-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-nav-dropdown-button.is-open:focus,
.product-detail-nav-dropdown-button[aria-expanded="true"]:focus,
.product-detail-nav-dropdown-button.is-open:focus-visible,
.product-detail-nav-dropdown-button[aria-expanded="true"]:focus-visible {
  outline: none;
}

.product-detail-nav-dropdown-button::after {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 5px 6px 5px;
  border-color: transparent transparent #4f4f4f transparent;
  transition: transform 0.2s ease;
}

.product-detail-nav-dropdown-button.is-open::after,
.product-detail-nav-dropdown-button[aria-expanded="true"]::after {
  border-width: 6px 5px 0 5px;
  border-color: #4f4f4f transparent transparent transparent;
  transform: translateY(2px);
}

.product-detail-nav-dropdown-text {
  flex: 1;
  text-align: left;
}

.product-detail-nav-dropdown-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-color-dark);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: -1px;
}

.product-detail-nav-dropdown-menu {
  width: 100%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--white);
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar styling */
.product-detail-nav-dropdown-menu::-webkit-scrollbar {
  width: 12px;
}

.product-detail-nav-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.product-detail-nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
  border: 2px solid var(--white);
}

.product-detail-nav-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Firefox scrollbar styling */
.product-detail-nav-dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 transparent;
}

.product-detail-nav-dropdown-option {
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-family-bold);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: block;
}

.product-detail-nav-dropdown-option:hover,
.product-detail-nav-dropdown-option:focus {
  background: rgba(246, 246, 246, 1);
  outline: none;
}

.product-detail-nav-dropdown-option:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.product-detail-nav-dropdown-option.is-active {
  background: rgba(235, 244, 252, 1);
  color: var(--primary-color);
  font-weight: 600;
}

/* Tab Panels */
.product-detail-tab-panel {
  display: block;
  padding: var(--spacing-xl) 0;
}

.product-detail-tab-panel h3 {
  font-family: var(--font-family-bold);
  font-size: 22px;
  font-weight: 600;
  color: rgba(51, 51, 51, 1);
  margin-bottom: 24px;
}

#related-products-panel h3 {
  margin-bottom: 38px;
}

/* Features Panel */

.product-detail-features-layout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border-color-dark);
  min-height: 425px;
}

.product-detail-features-image-container {
  position: relative;
  flex: 0 1 39%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 24px;
}

.product-detail-feature-highlight-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary-color);
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
}

.product-detail-feature-highlight-dot.visible {
  display: block;
}

.product-detail-feature-highlight-dot.optional {
  background: #dc3545;
  box-shadow: 0 0 0 2px #dc3545;
}

.product-detail-features-main-image {
  width: 100%;
  max-width: 330px;
  height: auto;
}

.product-detail-features-controls {
  background: #f8f9fa;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  min-width: 280px;
}

.product-detail-feature-legend {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: 17px;
  flex-wrap: wrap;
  padding: 10px;
}

.product-detail-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail-legend-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.product-detail-legend-indicator.standard {
  background: var(--primary-color);
}

.product-detail-legend-indicator.optional {
  background: #dc3545;
}

.product-detail-legend-label {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
  color: var(--text-primary);
}

.product-detail-feature-selector {
  position: relative;
  width: 270px;
  margin-bottom: 29px;
  padding-left: 7px;
}

.product-detail-feature-select {
  position: relative;
}

.product-detail-feature-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border-color-dark);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: var(--white);
  font-size: 0.875rem;
  font-family: var(--font-family-semi-bold);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.product-detail-feature-select-button:not(.is-open):not(
    [aria-expanded="true"]
  ) {
  border-bottom: 1px solid var(--border-color-dark);
  border-radius: 4px;
}

.product-detail-feature-select-button:hover {
  background: rgba(246, 246, 246, 1);
}

.product-detail-feature-select-button:focus {
  outline: none;
}

.product-detail-feature-select-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-feature-select-button.is-open:focus,
.product-detail-feature-select-button[aria-expanded="true"]:focus,
.product-detail-feature-select-button.is-open:focus-visible,
.product-detail-feature-select-button[aria-expanded="true"]:focus-visible {
  outline: none;
}

.product-detail-feature-select-icon {
  flex-shrink: 0;
  font-size: 18px;
  width: 9px;
  height: 5.09px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(51, 51, 51, 1);
  transition: transform 0.2s ease;
}

.product-detail-feature-select-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 15;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-color-dark);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  padding-right: 14px;
  overflow: hidden;
}

.product-detail-feature-select-menu {
  width: 100%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--white);
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar styling to position it correctly */
.product-detail-feature-select-menu::-webkit-scrollbar {
  width: 12px;
}

.product-detail-feature-select-menu::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.product-detail-feature-select-menu::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
  border: 2px solid var(--white);
}

.product-detail-feature-select-menu::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Firefox scrollbar styling */
.product-detail-feature-select-menu {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 transparent;
}

.product-detail-feature-select-menu:not([hidden]) > li:first-child {
  display: none;
}

.product-detail-feature-option {
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-family: var(--font-family-semi-bold);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.product-detail-feature-option:hover,
.product-detail-feature-option:focus {
  background: rgba(246, 246, 246, 1);
}

.product-detail-feature-option[aria-selected="true"] {
  background: rgba(235, 244, 252, 1);
}

.product-detail-feature-dropdown--native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.product-detail-feature-content {
  margin-top: 0;
  padding-left: 10px;
}

.product-detail-feature-heading {
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-family-bold);
  color: rgba(51, 51, 51, 1);
  margin: 0 0 var(--spacing-md);
}

.product-detail-feature-description {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family-medium);
  color: rgba(51, 51, 51, 1);
  line-height: 1.6;
  margin: 0;
}

.product-detail-feature-instructions {
  text-align: center;
  color: rgba(150, 150, 150, 1);
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-family-bold);
  margin: 0;
  letter-spacing: 0.5px;
}

/* Product Details Panel */
.product-detail-table-wrapper {
  /*max-height: 738px;*/
  overflow-y: auto;
  border: 1px solid rgba(150, 150, 150, 1);
  background: var(--white);
}

.product-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/*.product-detail-table tbody {
  line-height: 4px;
}
*/
.product-detail-table tbody tr {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 5px;
}

.product-detail-table tbody tr:last-child {
  border-bottom: none;
}

.product-detail-table th {
  flex: 0 0 21%;
  max-width: 21%;
  min-width: 0;
  box-sizing: border-box;
  font-weight: 700;
  text-align: left;
  padding: 21px 16px 19px 19px;
  background: rgba(255, 255, 255, 1);
  font-size: 16px;
  font-family: var(--font-family-bold);
  color: var(--text-primary);
}

.product-detail-table td {
  flex: 1 1 79%;
  max-width: 79%;
  min-width: 0;
  box-sizing: border-box;
  padding: 24px 16px 24px 19px;
  background: rgba(255, 255, 255, 1);
  font-size: 13px;
  font-family: var(--font-family-semi-bold);
  color: var(--text-primary);
  /*line-height: 6px;*/
}

.product-detail-table td,
.product-detail-action-link {
  font-size: 13px !important;
  font-family: var(--font-family-semi-bold) !important;
}
.product-detail-table tbody tr:nth-child(even) th {
  background: rgba(246, 246, 246, 1);
}

.product-detail-table tbody tr:nth-child(even) td {
  background: rgba(246, 246, 246, 1);
}

.product-detail-table tbody tr:nth-child(odd) th {
  background: rgba(255, 255, 255, 1);
}

.product-detail-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 1);
}

.product-detail-table ul {
  margin: 0;
  list-style: none;
}

.product-detail-table li {
  margin-bottom: 14px;
}

.product-detail-table li:last-child {
  margin-bottom: 0;
}

/* Documents Panel */
.product-detail-document-section {
  margin-bottom: 11px;
  border: 1px solid rgba(151, 151, 151, 1);
  border-radius: 0;
  overflow: hidden;
  background: var(--white);
}

.product-detail-document-section:last-child {
  margin-bottom: 0;
}

.product-detail-document-toggle {
  width: 100%;
  padding: 12px 20px;
  background: #f8f9fa;
  border: none;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  letter-spacing: 0.5px;
}

.product-detail-toggle-label {
  flex: 1;
  font-family: "SharpSans-Medium";
}

.product-detail-document-toggle:hover {
  background: #e9ecef;
}

.product-detail-document-toggle[aria-expanded="true"] {
  background: #075697;
  color: #ffffff;
}

.product-detail-document-toggle[aria-expanded="true"]
  .product-detail-toggle-icon {
  color: #ffffff;
}

.product-detail-document-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-toggle-icon {
  font-weight: bold;
  font-size: 1rem;
  min-width: 16px;
  text-align: center;
}

.product-detail-document-list {
  margin-top: 24px;
  margin-bottom: 24px;
}

.product-detail-document-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-detail-document-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 18px;
  border-radius: 4px;
}

.product-detail-document-list li.document-subheading {
  display: block;
  padding: 0px 12px 0px 18px;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-primary);
  background: transparent;
  margin-bottom: 0px;
  font-family: var(--font-family-bold);
}

.product-detail-document-list li.document-subheading + li {
  margin-top: 0;
}

.product-detail-document-list li.document-subheading:nth-child(odd),
.product-detail-document-list li.document-subheading:nth-child(even) {
  background: transparent;
}

.product-detail-document-section.catalogs .product-detail-document-list {
  max-height: 276px;
  overflow-y: auto;
}

.product-detail-document-section.instruction-manuals
  .product-detail-document-list {
  max-height: 362px;
  overflow-y: auto;
}

.product-detail-document-section.catalogs
  .product-detail-document-list
  li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("/Content/imgs/icons/cata_img.svg") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* Alternating row colors for Catalogs section only */
.product-detail-document-section.catalogs
  .product-detail-document-list
  li:nth-child(odd of :not(.document-subheading)) {
  background: rgba(255, 255, 255, 1);
}

.product-detail-document-section.catalogs
  .product-detail-document-list
  li:nth-child(even of :not(.document-subheading)) {
  background: rgba(246, 246, 246, 1);
}

.instruction-manual-items {
  max-height: 376px;
  overflow-y: auto;
  margin-bottom: 25px;
  line-height: 12px;
}

/* Instruction Manuals - no alternating colors, all white background */
.product-detail-document-section.instruction-manuals
  .product-detail-document-list
  li:not(.document-subheading) {
  background: rgba(255, 255, 255, 1);
}

.instruction-manual-item {
  padding: 9px 18px !important;
  margin-bottom: 0 !important;
}

.product-detail-document-list li:last-child {
  margin-bottom: 0;
}

.product-detail-document-list a,
.product-detail-document-list a:visited {
  color: #0b5394;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
  line-height: 1.4;
}

.product-detail-document-list a:hover {
  color: #063b6a;
}

/* Catalogs section - black links */
.product-detail-document-section.catalogs .product-detail-document-list a,
.product-detail-document-section.catalogs
  .product-detail-document-list
  a:visited {
  color: var(--text-primary);
}

.product-detail-document-section.catalogs
  .product-detail-document-list
  a:hover {
  color: #333333;
}

/* Instruction Manuals section - blue links */
.product-detail-document-section.instruction-manuals
  .product-detail-document-list
  a,
.product-detail-document-section.instruction-manuals
  .product-detail-document-list
  a:visited {
  color: #0b5394;
}

.product-detail-document-section.instruction-manuals
  .product-detail-document-list
  a:hover {
  color: #063b6a;
}

.product-detail-document-list a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-static-model-download {
  margin-bottom: var(--spacing-xl);
  margin-top: 15px;
}

.product-detail-drawings-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.product-detail-drawings-table th {
  padding: 12px 0px;
  text-align: left;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-family-bold);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  background-color: white;
  max-width: 100px !important;
}

.product-detail-drawings-table td {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
  color: var(--text-primary);
  padding-top: 16px;
  vertical-align: top;
}

.product-detail-drawings-table tbody tr:last-child td {
  border-bottom: none;
}

.product-detail-drawings-table td:first-child {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-top: 16px;
}

/*.product-detail-drawings-table th:nth-child(2),
    .product-detail-drawings-table th:nth-child(3),
    .product-detail-drawings-table td:nth-child(2) {
        width: 31%;
    }*/

.product-detail-drawing-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.product-detail-action-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
  vertical-align: top;
  align-content: flex-start;
}

.product-detail-action-link:hover {
  text-decoration: underline;
}

.product-detail-action-icon {
  display: inline-block;
  flex-shrink: 0;
  margin-top: 5px;
}

.product-detail-action-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-drawing-supplements {
  margin-top: var(--spacing-xl);
}

.product-detail-supplement-links {
  list-style: none;
  margin: 0;
  padding-top: 26px;
  line-height: 28px;
}

.product-detail-supplement-links li {
  margin-bottom: 8px;
}

.product-detail-supplement-links li:last-child {
  margin-bottom: 0;
}

.product-detail-supplement-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
  line-height: 1.4 !important;
}

.product-detail-supplement-links a:hover {
  text-decoration: underline;
}

.product-detail-supplement-links a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Media Panel */
.product-detail-media-grid {
  display: flex;
  gap: 43px;
  flex-wrap: wrap;
}

.product-detail-media-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: 0px;
  width: 387px;
  min-height: 303px;
}

.product-detail-media-thumbnail {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.product-detail-media-thumbnail img {
  width: 100%;
  height: 259px;
  object-fit: cover;
  display: block;
}

.product-detail-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.product-detail-play-button img {
  display: block;
  width: auto;
  height: auto;
}

.product-detail-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.product-detail-play-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 50%;
}

.product-detail-podcast-placeholder {
  width: 100%;
  height: 217.69px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
}

.product-detail-podcast-placeholder img {
  display: block;
  width: auto;
  height: auto;
}

.product-detail-media-info h4 {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family-bold);
  margin: 0;
  color: var(--text-primary);
  line-height: 1.4;
  text-align: center;
  padding-top: 3px;
}

.product-detail-video-item .product-detail-media-info h4 {
  color: var(--text-primary);
}

/* Related 91¹ú²úÍµÅÄ Panel */
.product-detail-related-content {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0;
}

.product-detail-products-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.product-detail-products-carousel .product-detail-carousel-container {
  overflow: hidden;
  margin: 0;
  
}

.product-detail-carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.3s ease;
  padding-right: 1px;
}

.product-detail-tab-panel {
  max-width: var(--max-width-container);
  width: 100%;
  margin: 0 auto;
}

.product-detail-card {
  flex: 0 0 auto;
  width: 288px;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  box-sizing: content-box;
}

.product-detail-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-card-image {
  width: 288px;
  height: 259px;
  overflow: hidden;
  background: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(151, 151, 151, 1);
}

.product-detail-card-image img {
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.product-detail-card-label {
  padding: 23px 0 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
  color: var(--text-primary);
  background: transparent;
  width: 288px;
  line-height: 1.4;
  box-sizing: border-box;
}

.product-detail-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
  color: rgba(151, 151, 151, 1);
  opacity: 0.61;
}

.product-detail-carousel-nav:hover {
  background: transparent;
  color: rgba(151, 151, 151, 1);
  opacity: 1;
}

.product-detail-carousel-nav:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-carousel-nav.prev {
  left: -26px;
}

.product-detail-carousel-nav.next {
  right: -26px;
}

.product-detail-carousel-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-detail-carousel-nav:disabled:hover {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Product Thumbnails Carousel */
.product-detail-thumbs-carousel {
  position: relative;
  margin-top: var(--spacing-md);
}

/* Hide dots container on desktop and mobile (only visible in tablet) */
.product-detail-dots-container {
  display: none;
}

.product-detail-thumbs-carousel .product-detail-carousel-container {
  overflow: hidden;
  margin: 0;
}

.product-detail-thumbs-carousel .product-detail-carousel-track {
  display: flex;
  gap: 7px;
  transition: transform 0.3s ease;
}

.product-detail-thumb-btn {
  flex: 0 0 112px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-detail-thumb-btn:hover {
  border-color: var(--primary-color);
}

.product-detail-thumb-btn.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(7, 86, 151, 0.15) inset;
}

.product-detail-thumb-btn img {
  width: auto;
  max-width: 100%;
  max-height: 90px;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Blog Highlights Panel */

.product-detail-blog-carousel {
  position: relative;
  overflow: hidden;
}

.product-detail-blog-carousel .product-detail-carousel-container {
  overflow: hidden;
}

.product-detail-blog-track {
  display: flex;
  gap: var(--spacing-xl);
}

.product-detail-blog-track .product-detail-blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 0 0 300px;
}

.product-detail-blog-card {
  overflow: hidden;
  max-width: 288px;
  width: 100%;
}

.product-detail-blog-image {
  height: 260px;
  overflow: hidden;
  border: 1px solid rgba(151, 151, 151, 1);
  background-color: rgba(255, 255, 255, 1);
}

.product-detail-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-blog-content-text {
  flex: 1;
}

.product-detail-blog-content-text h4 {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family-bold);
  margin: 0 0 var(--spacing-md);
  color: var(--text-primary);
  line-height: 1.4;
}

.product-detail-blog-content-text p {
  font-size: 0.875rem;
  font-family: var(--font-family-semi-bold);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 var(--spacing-md);
}

.product-detail-blog-meta {
  margin-bottom: var(--spacing-md);
}

.product-detail-blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--spacing-sm);
}

.product-detail-category-tag {
  background: #f0f2f5;
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-family-semi-bold);
}

.product-detail-blog-author {
  font-size: 0.75rem;
  font-family: var(--font-family-semi-bold);
  color: var(--text-secondary);
  font-style: italic;
}

.product-detail-blog-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.product-detail-blog-action-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-family-bold);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-detail-blog-action-btn:hover {
  background: var(--primary-hover);
}

.product-detail-blog-action-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-share-btn svg {
  width: 16px;
  height: 16px;
}

/* Scroll to Top Button */
.product-detail-scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.product-detail-scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-detail-scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.product-detail-scroll-to-top:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-scroll-to-top svg {
  width: 24px;
  height: 24px;
}
.site-header.site-header--scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* Media gallery */
.product-detail-media-figure {
  margin: auto;
}

.product-detail-media-figure img {
  max-width: 252px;
  display: block;
  max-height: 252px;
  height: auto;
  width: 100%;
}

.product-detail-main-image-clickable {
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.product-detail-main-image-clickable:hover {
  opacity: 0.9;
}

.product-detail-main-image-clickable:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Quick View Modal */
.product-detail-quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.product-detail-quick-view-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.product-detail-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.product-detail-modal-container {
  position: relative;
  z-index: 10000;
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.product-detail-quick-view-modal:not([hidden]) .product-detail-modal-container {
  transform: scale(1);
}

.product-detail-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all var(--transition-fast);
}

.product-detail-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.product-detail-modal-close:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.product-detail-modal-close svg {
  width: 24px;
  height: 24px;
}

.product-detail-modal-image-container {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  min-height: 400px;
  padding: 60px 80px 100px;
}

.product-detail-modal-main-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-fast);
}

.product-detail-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-modal-nav:hover {
  background: var(--white);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.product-detail-modal-nav:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-modal-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-detail-modal-nav:disabled:hover {
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.product-detail-modal-nav.prev {
  left: 16px;
}

.product-detail-modal-nav.next {
  right: 16px;
}

.product-detail-modal-nav svg {
  width: 24px;
  height: 24px;
}

.product-detail-modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: var(--font-family-semi-bold);
  font-weight: 500;
}

.product-detail-modal-thumbs {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  overflow-x: auto;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.product-detail-modal-thumbs::-webkit-scrollbar {
  height: 6px;
}

.product-detail-modal-thumbs::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.product-detail-modal-thumbs::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.product-detail-modal-thumbs::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.product-detail-modal-thumb-btn {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.product-detail-modal-thumb-btn:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.product-detail-modal-thumb-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-detail-modal-thumb-btn.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(7, 86, 151, 0.2);
}

.product-detail-modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

iframe.request-drawing-modal {
  border: none;
  height: calc(100vh - 190px) !important;
  max-width: 772px;
  width: 850px !important;
}

/* 8. Media queries */
/* Tablet: >= 878px and <= 1024px */
@media (min-width: 878px) and (max-width: 1024px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: clip;
  }

  @supports not (overflow-x: clip) {
    html,
    body {
      overflow-x: hidden;
    }
  }

  body > main {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .product-detail-breadcrumb {
    padding: 58px 20px;
    max-width: 100%;
    box-sizing: border-box;
  }

  article.product-detail-card {
    padding: 0;
    margin: 0 auto 24px;
    max-width: 100%;
    box-sizing: border-box;
    width: 100% !important;
  }

  .product-detail-title {
    font-size: 2rem;
  }

  /* Show dropdown, hide desktop nav on tablet */
  .product-detail-nav-desktop {
    display: none;
  }

  .product-detail-nav-mobile {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-nav-container {
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px 20px;
  }

  .product-detail-nav-dropdown-select {
    width: 100%;
    max-width: 734px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .product-detail-nav-dropdown-button {
    width: 100%;
    max-width: 734px;
    height: 42px;
    box-sizing: border-box;
  }

  .product-detail-nav-dropdown-menu-wrapper {
    width: 100%;
    max-width: 734px;
    box-sizing: border-box;
  }

  /* Reserve space for sticky nav + dropdown so section is not clipped when scrolling from dropdown */
  .product-detail-tab-panel {
    scroll-margin-top: 186px;
  }

  .product-detail-layout {
    grid-template-columns: minmax(0, 288px) minmax(0, 1fr);
    column-gap: var(--spacing-lg);
    row-gap: 0;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Reorder elements: title, description, buttons first, then two-column layout */
  .product-detail-details-right {
    display: contents;
  }

  .product-detail-title {
    order: 1;
    grid-column: 1 / -1;
  }

  .product-detail-intro {
    order: 2;
    grid-column: 1 / -1;
    display: block;
  }

  .product-detail-actions {
    order: 3;
    grid-column: 1 / -1;
  }

  .product-detail-media-left {
    order: 4;
    max-height: none;
    width: 100%;
    max-width: 288px;
    height: 334px;
    grid-row: 4;
    box-sizing: border-box;
  }

  .product-detail-highlights-container {
    order: 5;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Table row borders with responsive width in tablet view */
  .product-detail-highlights-table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-highlights-table tr {
    position: relative;
    border-bottom: none;
  }

  .product-detail-highlights-table tr:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    max-width: 415.75px;
    height: 1px;
    background-color: rgba(229, 229, 229, 1);
  }

  /* Force Construction value to wrap to 2 lines */
  .product-detail-highlights-table tr:last-child td {
    max-width: 180px;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  .product-detail-media-figure img {
    width: 100%;
    max-width: 163px;
    height: auto;
    max-height: 163px;
    box-sizing: border-box;
  }

  .product-detail-features-layout {
    flex-wrap: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 22px;
  }

  .product-detail-features-controls {
    flex: 1 1 65%;
    min-width: 0;
    box-sizing: border-box;
  }

  .product-detail-features-image-container {
    flex: 0 1 39%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-tab-panel {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-top: 50px;
  }

  /* Hide thumbnail boxes in tablet view */
  .product-detail-thumb-btn {
    display: none;
  }

  /* Hide navigation arrows in tablet view */
  .product-detail-thumbs-carousel .product-detail-carousel-nav {
    display: none;
  }

  /* Fix media items to prevent overflow */
  .product-detail-media-grid {
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    gap: 40px;
  }

  .product-detail-media-item {
    min-height: auto;
    width: 100%;
    max-width: 348px;
    box-sizing: border-box;
  }

  /* Fix carousel containers */
  .product-detail-products-carousel {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .product-detail-products-carousel .product-detail-carousel-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-carousel-track {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fix table wrapper */
  .product-detail-table-wrapper {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
  }

  /* Fix drawings table */
  .product-detail-drawings-table {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Ensure all containers respect viewport */
  .product-detail-feature-selector {
    width: 100%;
    max-width: 270px;
    box-sizing: border-box;
  }
  .product-detail-card {
    width: 224px !important;
  }
  .product-detail-card-image, .product-detail-card-label {
    width: 222px !important;
  }
  .product-detail-card-image {
    width: 222px !important;
    height: 222px !important;
  }
  .product-detail-card-image img{
    width: 152px !important;
  }
  .product-detail-products-carousel .product-detail-carousel-nav,
    .product-detail-products-carousel .product-detail-carousel-nav .material-symbols-outlined{
      font-size: 42px;
      width: 42px;
      height: 42px;
      line-height: 42px;
      text-align: center;
    }
    .product-detail-products-carousel .product-detail-carousel-nav.prev{
      left:8px;
      top: calc(111px - 21px);
        transform: unset;
    }
    .product-detail-products-carousel .product-detail-carousel-nav.next{
      right:0;
      top: calc(111px - 21px);
      transform: unset;
    }
    iframe.request-drawing-modal {
      border: none;
      height: calc(100vh - 190px) !important;
      max-width: 772px;
      width: 699px !important;
  }
}

/* Desktop: >= 1024px */
@media (min-width: 1024px) {
  :root {
    --product-detail-sticky-top: 149px;
  }

  .site-header + main {
    --product-detail-sticky-top: 149px;
  }

  .site-header.site-header--scrolled + main {
    --product-detail-sticky-top: 149px;
  }

  .product-detail-title {
    font-size: 2rem;
  }

  .product-detail-layout {
    grid-template-columns: 428px 1fr;
    align-items: start;
  }

  .product-detail-details-right {
    position: sticky;
    top: var(--product-detail-sticky-top, 0);
  }

  .product-detail-tab-panel {
    scroll-margin-top: calc(var(--product-detail-sticky-top, 0px) + 84px);
  }

  .product-detail-features-layout {
    flex-wrap: nowrap;
  }

  .product-detail-features-controls {
    flex: 1 1 65%;
  }

  /* Show desktop nav, hide dropdown on desktop */
  .product-detail-nav-desktop {
    display: flex;
  }

  .product-detail-nav-mobile {
    display: none;
  }

  .product-detail-nav-container {
    z-index: 1000;
  }
  
}

/* Mobile Responsive Adjustments */
/* Mobile: max-width 877px */
@media (max-width: 877px) {
  .product-detail-media-item {
    min-height: auto;
  }
  html,
  body {
    max-width: 100vw;
    overflow-x: clip;
  }

  @supports not (overflow-x: clip) {
    html,
    body {
      overflow-x: hidden;
    }
  }

  body > main {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
  }
  
  .product-detail-drawings-table th,
  .product-detail-drawings-table td {
    font-size: 13px !important;
    font-family: var(--font-family-semi-bold) !important;
  }
  .product-detail-table tbody tr {
    flex-direction: column;
  }
  .product-detail-table tbody tr th,
  .product-detail-table tbody tr td {
    width: 100% !important;
    /* flex: 1 !important; */
    max-width: 100%;
  }
  .product-detail-table tbody tr th {
    padding: 12px 16px 6px 19px !important;
  }
  .product-detail-table tbody tr td {
    padding: 2px 16px 12px 19px !important;
  }
  .product-detail-breadcrumb {
    padding: var(--spacing-md) 20px;
    max-width: 100%;
    box-sizing: border-box;
  }

  article.product-detail-card {
    padding: 0;
    margin: 0 auto 24px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .product-detail-card {
    width: 332px !important;
  }

  .product-detail-card-image, .product-detail-card-label {
    width: 330px !important;
  }

  .product-detail-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .product-detail-intro {
    font-size: 14px;
  }

  .product-detail-actions {
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  /* Show dropdown, hide desktop nav on mobile */
  .product-detail-nav-desktop {
    display: none;
  }

  .product-detail-nav-mobile {
    display: block;
    padding: 0;
  }

  .product-detail-nav-container {
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }

  /* Reserve space for main menu + dropdown (176px) so section is not clipped when scrolling from dropdown */
  .product-detail-tab-panel {
    scroll-margin-top: 186px;
  }

  .product-detail-nav-dropdown-select {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .product-detail-nav-dropdown-button {
    width: 100%;
    height: 42px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-nav-dropdown-menu-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Single-column layout with order */
  .product-detail-layout {
    grid-template-columns: 1fr;
    row-gap: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-details-right {
    display: contents;
  }

  .product-detail-title {
    order: 1;
    grid-column: 1;
  }

  .product-detail-intro {
    order: 2;
    grid-column: 1;
  }

  .product-detail-actions {
    order: 3;
    grid-column: 1;
  }

  .product-detail-media-left {
    order: 4;
    max-height: none;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 200px;
    box-sizing: border-box;
  }

  .product-detail-highlights-container {
    order: 5;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .product-detail-highlights-table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-highlights-table tr:not(:last-child)::after {
    max-width: 100%;
  }

  .product-detail-highlights-table tr:last-child td {
    max-width: 100%;
  }

  .product-detail-media-figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
  }

  .product-detail-features-layout {
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: var(--spacing-lg);
  }

  .product-detail-features-controls {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .product-detail-features-image-container {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .product-detail-tab-panel {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-top: var(--spacing-xl);
  }

  .product-detail-thumb-btn {
    display: none;
  }

  .product-detail-thumbs-carousel .product-detail-carousel-nav {
    display: none;
  }

  .product-detail-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-lg);
  }

  .product-detail-media-grid {
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-media-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-products-carousel {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .product-detail-products-carousel .product-detail-carousel-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-carousel-track {
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-table-wrapper {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
  }

  .product-detail-drawings-table {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .product-detail-feature-selector {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-modal-container {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
  }

  .product-detail-modal-image-container {
    padding: 40px 20px 80px;
    min-height: 300px;
  }

  .product-detail-modal-main-image {
    max-height: 60vh;
  }

  .product-detail-modal-nav {
    width: 40px;
    height: 40px;
  }

  .product-detail-modal-nav.prev {
    left: 8px;
  }

  .product-detail-modal-nav.next {
    right: 8px;
  }

  .product-detail-modal-nav svg {
    width: 20px;
    height: 20px;
  }

  .product-detail-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .product-detail-modal-thumbs {
    padding: 12px;
    gap: 8px;
  }

  .product-detail-modal-thumb-btn {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }

  .product-detail-modal-counter {
    bottom: 12px;
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .product-detail-drawings-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse !important; /* Optional: clean borders */
  }

  .product-detail-drawings-table th,
  .product-detail-drawings-table td {
    text-align: left; /* Or center/right per column */
    overflow: hidden;
    text-overflow: ellipsis; /* For long text */
  }

  .product-detail-drawings-table th:first-child,
  .product-detail-drawings-table td:first-child {
    width: 95px !important;
    vertical-align: bottom !important;
  }

  .product-detail-drawings-table th:nth-child(2),
  .product-detail-drawings-table td:nth-child(2) {
    width: 80px !important;
    vertical-align: bottom !important;
  }

  .product-detail-drawings-table th:nth-child(3),
  .product-detail-drawings-table td:nth-child(3) {
    width: calc(100% - 175px) !important;
    vertical-align: bottom !important;
  }

  .product-detail-drawings-table td:first-child,
  .product-detail-drawings-table td:nth-child(2),
  .product-detail-drawings-table td:nth-child(3) {
    vertical-align: top !important;
  }

  .product-detail-table td,
  .product-detail-action-link {
    font-family: var(--font-family-semi-bold) !important;
    font-size: 13px !important;
  }
  .product-detail-card-image img{
    width: 180px !important;
  }
}

@media (max-width: 480px) {
  iframe.request-drawing-modal {
    height: calc(100vh - 276px) !important;
    width: 100% !important;
  }
  .product-detail-modal-image-container {
    padding: 30px 10px 70px;
  }

  .product-detail-modal-main-image {
    max-height: 50vh;
  }

  .product-detail-modal-thumb-btn {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
  }
  .iframe-grid-d-8-4 > :nth-child(1),
  .iframe-grid-d-8-4 > :nth-child(2) {
    grid-column: span 12;
  }
}
