.casitek-product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.casitek-product-detail__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 20px;
  color: #5f5e5e;
}

.casitek-product-detail__breadcrumbs a {
  color: #5f5e5e;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.casitek-product-detail__breadcrumbs a:hover {
  color: #9e4300;
}

.casitek-product-detail__breadcrumbs span[aria-hidden] {
  display: inline-block;
  width: 5px;
  height: 8px;
  background-color: #5f5e5e;
  clip-path: polygon(0 0, 60% 50%, 0 100%, 40% 100%, 100% 50%, 40% 0);
  font-size: 0;
}

.casitek-product-detail__breadcrumbs strong {
  color: #9e4300;
  font-weight: 700;
}

.casitek-product-detail__hero {
  align-items: flex-start !important;
}

.casitek-product-detail__hero .col.medium-5 > .col-inner,
.casitek-product-detail__hero .col.large-5 > .col-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.casitek-product-detail__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.casitek-product-detail__image {
  width: 100%;
  background: #eeeeee;
  border-radius: 8px;
  overflow: hidden;
}

.casitek-product-detail__image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: opacity 0.25s ease;
  height: auto;
  object-fit: contain;
}

.casitek-product-detail__gallery {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

.casitek-product-detail__gallery button {
  flex: 1 1 0 !important; /* equal share */
  min-width: 0 !important;
  width: auto !important; /* reset any Flatsome button width */
  aspect-ratio: 168 / 135;
  height: auto;
  border: 1px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  background: #d9d9d9;
  cursor: pointer;
  padding: 4px;
  transition: outline-color 0.2s;
  outline: 1px solid transparent;
  outline-offset: -1px;
  display: block;
}

.casitek-product-detail__gallery button.is-active,
.casitek-product-detail__gallery button:hover {
  outline-color: #f36f21;
}

.casitek-product-detail__gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Summary wraps only __intro — gap handled by col-inner flex above */
.casitek-product-detail__summary {
  display: block;
}

.casitek-product-detail__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.casitek-product-detail__intro > :first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.casitek-product-detail__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9e4300;
  border: 1px solid #9e4300;
  border-radius: 12px;
  padding: 2px 8px;
  align-self: flex-start;
}

.casitek-product-detail__summary h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #1a1c1c;
  margin: 0;
}

.casitek-product-detail__excerpt {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #5f5e5e;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1c0b0;
}

.casitek-product-detail__excerpt p {
  margin: 0;
}

.casitek-product-detail__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.casitek-product-detail__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.casitek-product-detail__feature svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ff7002;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.casitek-product-detail__feature h3,
.casitek-product-detail__feature strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1a1c1c;
  margin: 0 0 0;
}

.casitek-product-detail__feature p {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #5f5e5e;
  margin: 0;
}

.casitek-product-detail__purchase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #eeeeee;
  border-radius: 4px;
  outline: 1px solid #e1c0b0;
  outline-offset: -1px;
  padding: 24px;
}

.casitek-product-detail__code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.casitek-product-detail__code-row span {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: #5f5e5e;
  text-transform: uppercase;
}

.casitek-product-detail__code-row strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1a1c1c;
}

.casitek-product-detail__quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: #ff7002;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  padding: 16px;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.25s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.casitek-product-detail__quote:hover {
  background-color: #d95c00;
  color: #ffffff;
}

.casitek-product-detail__quote svg {
  width: 16px;
  height: 20px;
  flex-shrink: 0;
  fill: white;
}

.casitek-product-detail__quick-contact {
  display: flex;
  gap: 12px;
}

.casitek-product-detail__quick-contact a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #e1c0b0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1c1c;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.casitek-product-detail__quick-contact a:hover {
  border-color: #ff7002;
  color: #ff7002;
}

.casitek-product-detail__assurances {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.casitek-product-detail__assurances span {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(199, 198, 198, 0.3);
  border-radius: 2px;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: #5f5e5e;
  text-transform: uppercase;
}

.casitek-product-detail__assurances svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: #1a1c1c;
  color: #1a1c1c;
}

.casitek-product-detail__technical {
  margin-top: 40px;
  padding-top: 40px;
}

.casitek-product-detail__technical h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #1a1c1c;
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #9e4300;
  display: inline-block;
}

.casitek-product-detail__table-wrap {
  overflow-x: auto;
  border-radius: 5px;
  border: none;
}

.casitek-product-detail__table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.casitek-product-detail__table-wrap thead {
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}

.casitek-product-detail__table-wrap thead th {
  background-color: #1b1c1c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 16px;
  text-align: left;
  white-space: nowrap;
}

.casitek-product-detail__table-wrap thead th:first-child {
  border-radius: 5px 0 0 0;
  padding-left: 1px;
}

.casitek-product-detail__table-wrap thead th:last-child {
  border-radius: 0 5px 0 0;
}

.casitek-product-detail__table-wrap tbody tr {
  border: none;
}

.casitek-product-detail__table-wrap tbody tr:nth-child(even) {
  background: #f4f3f3;
  border-radius: 5px;
}

.casitek-product-detail__table-wrap tbody tr:nth-child(odd) {
  background: #ffffff;
}

.casitek-product-detail__table-wrap tbody tr.is-group th {
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 16px 1px;
  text-align: left;
}

.casitek-product-detail__table-wrap td {
  padding: 24px 16px 25px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #333333;
  vertical-align: middle;
}

.casitek-product-detail__table-wrap td:first-child {
  padding-left: 1px;
}

.casitek-table-copy-header {
  width: 52px;
  padding: 0;
}

.casitek-table-copy-cell {
  width: 52px;
  padding: 16px 1px 16px 16px;
  text-align: right;
  vertical-align: middle;
}

.casitek-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #ff6b00;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  color: #ffffff;
  position: relative;
  transition: background-color 0.2s;
}

.casitek-copy-btn:hover {
  background: #d95c00;
}

.casitek-copy-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
}

.casitek-copy-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1c1c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.casitek-copy-btn.is-copied .casitek-copy-tooltip,
.casitek-copy-btn:focus .casitek-copy-tooltip {
  opacity: 1;
}

.casitek-product-detail__legacy-specs {
  font-size: 14px;
  color: #5f5e5e;
  line-height: 1.7;
  white-space: pre-wrap;
}

.casitek-product-detail__downloads-layout {
  padding-top: 40px;
}

.casitek-product-detail__downloads h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #1a1c1c;
  margin: 0 0 16px;
}

.casitek-heading-download-icon {
  color: #9e4300;
  fill: #9e4300;
  stroke: none;
  flex-shrink: 0;
}

.casitek-product-detail__downloads > div > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 2px;
  outline: 1px solid #e1c0b0;
  outline-offset: -1px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #1a1c1c;
  transition:
    outline-color 0.2s,
    background 0.2s;
}

.casitek-product-detail__downloads > div > a:hover {
  outline-color: #ff7002;
  background: rgba(255, 112, 2, 0.03);
}

.casitek-product-detail__downloads > div > a > :first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.casitek-pdf-icon {
  flex-shrink: 0;
}

.casitek-product-detail__downloads > div > a span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.casitek-product-detail__downloads > div > a strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1a1c1c;
}

.casitek-product-detail__downloads > div > a small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #5f5e5e;
}

.casitek-product-detail__downloads > div > a > svg:last-child {
  width: 16px;
  height: 16px;
  stroke: #5f5e5e;
  fill: none;
  flex-shrink: 0;
  transition: stroke 0.2s;
}

.casitek-product-detail__downloads > div > a:hover > svg:last-child {
  stroke: #ff7002;
}

.casitek-product-detail__body {
  margin-top: 40px;
  font-size: 15px;
  color: #5f5e5e;
  line-height: 1.7;
}

.casitek-product-detail__body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1c1c;
  margin-bottom: 20px;
}

.casitek-product-detail__body p {
  margin-bottom: 16px;
}

.casitek-product-detail__related {
  padding-top: 40px;
  margin-top: 40px;
}

.casitek-product-detail__related h2 {
  font-size: 38px;
  font-weight: 500;
  line-height: 45.6px;
  color: #1e1e1e;
  margin: 0 0 45px;
}

.casitek-product-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 849px) {
  .casitek-product-detail__related-grid {
    grid-template-columns: 1fr;
  }
}

.casitek-product-related-card {
  background: #ffffff;
  border-radius: 4px;
  outline: 1px solid #e1c0b0;
  outline-offset: -1px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.2s;
}

.casitek-product-related-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.casitek-product-related-card__image {
  display: block;
  width: 100%;
  height: 197px;
  background: #eeeeee;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.casitek-product-related-card:hover .casitek-product-related-card__image img {
  transform: scale(1.03);
}

.casitek-product-related-card__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.casitek-product-related-card__content > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: #5f5e5e;
  text-transform: uppercase;
}

.casitek-product-related-card__content h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1a1c1c;
  margin: 0;
}

.casitek-product-related-card__content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.casitek-product-related-card__content h3 a:hover {
  color: #ff7002;
}

.casitek-product-related-card__content p {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #5f5e5e;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.casitek-product-related-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 20px;
  background: #f36f21;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: #ffffff;
  text-decoration: none;
  text-transform: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.casitek-product-related-btn:hover {
  background: #d95c00;
  color: #ffffff;
}

.casitek-product-related-btn .arrow {
  display: none;
}
