.product-detail-main {
  width: 100%;
  background: var(--catalog-cream);
}

.detail-page-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.detail-breadcrumb {
  min-height: 80px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 32px 8px;
  color: var(--catalog-muted);
  font-size: 15px;
}

.detail-breadcrumb a {
  color: var(--catalog-dark);
  transition: color 180ms ease;
}

.detail-breadcrumb a:hover,
.detail-breadcrumb a:focus-visible {
  color: var(--catalog-orange);
}

.detail-breadcrumb svg {
  width: 16px;
  height: 16px;
}

.detail-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  padding: 24px 32px 60px;
}

.detail-gallery,
.detail-info {
  min-width: 0;
}

.detail-main-image {
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px;
  border-radius: 18px;
  background: var(--catalog-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.detail-main-image img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 220ms ease;
}

.detail-main-image img[data-view="close"] {
  transform: scale(1.16);
}

.detail-main-image img[data-view="fit"] {
  transform: scale(0.86);
}

.detail-main-image img[data-view^="color-"] {
  transform: scale(1);
}

.detail-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.detail-thumbnail {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--catalog-card);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.detail-thumbnail:hover,
.detail-thumbnail:focus-visible,
.detail-thumbnail.active {
  border-color: var(--catalog-orange);
  box-shadow: 0 0 0 3px rgba(242, 108, 34, 0.08);
}

.detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.detail-thumbnail[data-view="close"] img {
  transform: scale(1.16);
}

.detail-thumbnail[data-view="fit"] img {
  transform: scale(0.82);
}

.detail-category {
  margin: 0 0 10px;
  color: #c44d16;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-info h1 {
  margin: 0 0 20px;
  color: var(--catalog-dark);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
}

.detail-description {
  margin: 0 0 32px;
  color: var(--catalog-muted);
  font-size: 17px;
  line-height: 1.7;
}

.detail-parameters {
  margin: 0 0 36px;
}

.detail-parameters > div {
  min-height: 52px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #d8dde2;
}

.detail-parameters dt,
.detail-parameters dd {
  margin: 0;
}

.detail-parameters dt {
  color: var(--catalog-dark);
  font-weight: 700;
}

.detail-parameters dd {
  color: #3e4349;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-primary-button,
.detail-secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--catalog-orange);
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.detail-primary-button {
  background: var(--catalog-orange);
  color: #fff;
}

.detail-secondary-button {
  background: transparent;
  color: #b94915;
}

.detail-primary-button:hover,
.detail-primary-button:focus-visible,
.detail-secondary-button:hover,
.detail-secondary-button:focus-visible {
  background: #dc5918;
  color: #fff;
}

.detail-primary-button svg,
.detail-secondary-button svg {
  width: 18px;
  height: 18px;
}

.detail-tabs {
  padding: 0 32px 80px;
}

.detail-tab-list {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #d8dde2;
}

.detail-tab {
  position: relative;
  min-height: 52px;
  padding: 16px 30px;
  border: 0;
  background: transparent;
  color: var(--catalog-muted);
  font-size: 17px;
  white-space: nowrap;
}

.detail-tab.active {
  color: var(--catalog-dark);
  font-weight: 700;
}

.detail-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--catalog-orange);
}

.detail-tab-panel {
  min-height: 190px;
  padding: 36px;
  border-radius: 18px;
  background: var(--catalog-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.detail-tab-panel[hidden] {
  display: none;
}

.detail-tab-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.detail-tab-panel p,
.detail-tab-panel li {
  color: #3e4349;
  font-size: 17px;
  line-height: 1.7;
}

.detail-tab-panel ul {
  margin: 0;
  padding-left: 22px;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid #e3d8c3;
  border-radius: 14px;
  background: #fffdf8;
}

.spec-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #eadfca;
  color: #30343a;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  background: #15181d;
  color: #fff;
  font-weight: 800;
}

.spec-table tbody th {
  width: 34%;
  color: #15181d;
  font-weight: 800;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.detail-note {
  margin: 18px 0 0;
  color: #6b6257 !important;
  font-size: 15px !important;
}

.oem-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.oem-option-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid #eadfca;
  border-radius: 12px;
  background: #fffdf8;
  color: #15181d;
  font-weight: 800;
}

.oem-option-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--catalog-orange);
  stroke-width: 2.4;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.commercial-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #eadfca;
  border-radius: 14px;
  background: #fffdf8;
}

.commercial-card h3 {
  margin: 0 0 10px;
  color: #c44d16;
  font-size: 18px;
  line-height: 1.25;
}

.commercial-card p {
  margin: 0;
  color: #3e4349;
  font-size: 15px;
  line-height: 1.6;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.detail-related {
  padding: 0 32px 80px;
}

.detail-section-heading {
  margin-bottom: 36px;
}

.detail-section-heading p {
  margin: 0 0 10px;
  color: #c44d16;
  font-size: 13px;
  font-weight: 800;
}

.detail-section-heading h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.related-product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 78px auto 48px;
  gap: 20px;
  padding: 26px;
  border-radius: 18px;
  background: var(--catalog-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 180ms ease;
}

.related-product-card:hover {
  transform: translateY(-4px);
}

.related-product-card header {
  overflow: hidden;
}

.related-product-card header span {
  display: block;
  margin-bottom: 8px;
  color: #c44d16;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.related-product-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.related-product-card figure {
  position: relative;
  width: 100%;
  height: var(--catalog-product-media-height);
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--catalog-card);
}

.related-product-card img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.related-product-card > a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--catalog-orange);
  color: #fff;
  font-weight: 700;
}

.related-product-card > a:hover,
.related-product-card > a:focus-visible {
  background: #dc5918;
}

.related-product-card > a svg {
  width: 17px;
  height: 17px;
}

html[lang="ar"] .detail-breadcrumb,
html[data-language="ar"] .detail-breadcrumb,
html[lang="ar"] .detail-info,
html[data-language="ar"] .detail-info,
html[lang="ar"] .detail-tab-panel,
html[data-language="ar"] .detail-tab-panel,
html[lang="ar"] .detail-section-heading,
html[data-language="ar"] .detail-section-heading,
html[lang="ar"] .related-product-card,
html[data-language="ar"] .related-product-card {
  text-align: right;
}

html[lang="ar"] .detail-breadcrumb,
html[data-language="ar"] .detail-breadcrumb,
html[lang="ar"] .detail-actions,
html[data-language="ar"] .detail-actions,
html[lang="ar"] .document-actions,
html[data-language="ar"] .document-actions,
html[lang="ar"] .related-product-card > a,
html[data-language="ar"] .related-product-card > a,
html[lang="ar"] .oem-option-item,
html[data-language="ar"] .oem-option-item {
  flex-direction: row-reverse;
}

html[lang="ar"] .detail-primary-button svg,
html[data-language="ar"] .detail-primary-button svg,
html[lang="ar"] .related-product-card > a svg,
html[data-language="ar"] .related-product-card > a svg {
  transform: rotate(180deg);
}

html[lang="ar"] .detail-tab-panel ul,
html[data-language="ar"] .detail-tab-panel ul {
  padding-right: 22px;
  padding-left: 0;
}

html[lang="ar"] .spec-table th,
html[lang="ar"] .spec-table td,
html[data-language="ar"] .spec-table th,
html[data-language="ar"] .spec-table td {
  text-align: right;
}

@media (max-width: 1200px) {
  .detail-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oem-option-grid,
  .commercial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .detail-breadcrumb {
    min-height: 64px;
    padding: 20px 24px 4px;
    font-size: 14px;
  }

  .detail-overview {
    gap: 32px;
    padding: 20px 24px 48px;
  }

  .detail-main-image {
    min-height: 320px;
    padding: 24px;
  }

  .detail-main-image img {
    height: 300px;
  }

  .detail-thumbnail {
    width: 84px;
    height: 84px;
  }

  .detail-info h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .detail-description,
  .detail-tab-panel p,
  .detail-tab-panel li {
    font-size: 16px;
  }

  .detail-parameters > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .detail-actions {
    flex-direction: column;
  }

  html[lang="ar"] .detail-actions,
  html[data-language="ar"] .detail-actions,
  html[lang="ar"] .document-actions,
  html[data-language="ar"] .document-actions {
    flex-direction: column;
  }

  .detail-primary-button,
  .detail-secondary-button {
    width: 100%;
  }

  .detail-tabs,
  .detail-related {
    padding-right: 24px;
    padding-bottom: 48px;
    padding-left: 24px;
  }

  .detail-tab {
    min-height: 72px;
    padding: 12px 8px;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
  }

  .detail-tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .detail-tab-panel {
    min-height: 0;
    padding: 24px;
  }

  .spec-table {
    min-width: 0;
  }

  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    padding: 12px 14px;
    text-align: start;
  }

  .spec-table thead {
    display: none;
  }

  .spec-table tbody th {
    width: 100%;
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .spec-table tbody td {
    padding-top: 4px;
  }

  .oem-option-grid,
  .commercial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-actions {
    flex-direction: column;
  }

  .detail-section-heading {
    margin-bottom: 24px;
  }

  .detail-section-heading h2 {
    font-size: 28px;
  }

  .detail-related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (hover: none), (pointer: coarse) {
  .related-product-card:hover {
    transform: none;
  }
}

/* Matches the full four-column footer used on the home page. */
.site-footer {
  width: 100%;
  margin: 0;
  padding: 70px 0 24px;
  overflow: hidden;
  background: #15181d;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.footer-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  min-width: 0;
  align-self: start;
}

.footer-logo {
  margin: 0 0 16px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.footer-brand p {
  max-width: 430px;
  margin: 0 0 32px;
  color: #b4b9c0;
  font-size: 16px;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-badge {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ff7823;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 300ms ease, background-color 300ms ease;
}

.footer-badge:hover {
  border-color: #ff7823;
  background: rgba(255, 120, 35, 0.06);
}

.footer-title {
  position: relative;
  margin: 0 0 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-title::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 24px;
  height: 2px;
  background: #ff7823;
  content: "";
}

.footer-quick-links,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-quick-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.footer-quick-links li {
  min-height: 39px;
  display: flex;
  align-items: center;
}

.footer-contact {
  display: grid;
  gap: 17px;
}

.footer-quick-links a,
.footer-contact a,
.footer-contact li > span:not(.footer-contact-icon) {
  color: #b4b9c0;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 300ms ease;
}

.footer-quick-links a {
  overflow-wrap: normal;
  word-break: normal;
}

.footer-contact a,
.footer-contact li > span:not(.footer-contact-icon) {
  overflow-wrap: anywhere;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  color: #ff7823;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #b4b9c0;
  text-decoration: none;
  transition: border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

a.footer-social-icon:hover {
  border-color: #ff7823;
  color: #ff7823;
  transform: translateY(-2px);
}

.footer-social-icon.is-disabled {
  opacity: 0.55;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 34px;
}

.footer-bottom p {
  margin: 0;
  color: #7d8590;
  font-size: 15px;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom-links a,
.footer-bottom-links span {
  color: #7d8590;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  word-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
  transition: color 300ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ff7823;
}

@media (max-width: 1024px) {
  .footer-container {
    padding: 0 40px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 56px;
  }

  .footer-container {
    padding: 0 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social-icon,
  .footer-badge,
  .footer-quick-links a,
  .footer-bottom-links a {
    transition: none;
  }

  a.footer-social-icon:hover {
    transform: none;
  }
}
