*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html[data-lang="ar"] .product-page .for-radius,
html[dir="rtl"] .product-page .for-radius {
  right: auto;
  left: 50px;
}

.gallery {
  width: 80vw;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.product-gallery {
  justify-content: center;
  
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.image-highlights-section {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 14px;

}

.image-highlights-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
}

.image-highlight-row-break,
.visual-block-row-break {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.image-highlight-card--custom-width,
.visual-block-card--custom-width {
  flex: 0 0 var(--image-highlight-card-width, var(--visual-block-card-width, auto));
  width: var(--image-highlight-card-width, var(--visual-block-card-width, auto));
  max-width: 100%;
}

.image-highlight-card--custom-width .image-highlight-image {
  width: var(--image-highlight-image-width, 100%);
}

.image-highlight-card {
  flex: 1 1 230px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8e1d8;
  border-radius: 12px;
  background: #fff;
 
}

.image-highlight-image {
  width: var(--image-highlight-image-width, 30%);
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #f9f5f0;
}

.image-highlight-title {
  margin: 0;
  color: #1d1b19;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.image-highlight-title .product-detail-title-link,
.visual-block-title .product-detail-title-link,
.product-view__image-caption-title .product-detail-title-link {
  color: #005bbb;
  font-weight: 700;
  text-decoration: none;
}

.image-highlight-title .product-detail-title-link:hover,
.image-highlight-title .product-detail-title-link:focus,
.visual-block-title .product-detail-title-link:hover,
.visual-block-title .product-detail-title-link:focus,
.product-view__image-caption-title .product-detail-title-link:hover,
.product-view__image-caption-title .product-detail-title-link:focus {
  text-decoration: underline;
}

.image-highlight-text {
  margin: 0;
  color: #4f4a45;
  font-size: 0.88rem;
  line-height: 1.45;
  width: var(--image-highlight-text-width, 35%);
}

.image-highlight-text-line {
  margin: 0 0 0.45em;
}

.image-highlight-text-line:last-child {
  margin-bottom: 0;
}

.image-highlight-text-line--blank {
  min-height: 1em;
}

.gallery-image.is-active {
  border-color: #2f8a78;
  box-shadow: 0 0 0 2px rgba(47,138,120,.15);
}

.gallery-image {
  width: auto;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  transform: scale(1);
  position: relative;
  z-index: 1;
}

.gallery-image:hover {
  transform: scale(1.9);
  z-index: 10;
}

.gallery-button {
  max-width: 450px;
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #5453a3;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: #2e7d32;
  color: #fff;
}

.btn-primary:hover {
  background-color: #256628;
}

.product-view__hero-image-wrap {
  margin: 14px 0 16px;
  width: 100%;
}

.product-view__hero-image {
  width: 20%;
  max-width: 520px;
  display: block;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.product-view__model-line {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: #333;
}

.variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.variant-options {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.variant-options[hidden] {
  display: none !important;
}

.variant-options__title {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  font-weight: 800;
}

.variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  border: 1.5px solid #222;
  background: #fff;
  color: #222;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  transition: 0.18s ease;
}

.variant-option:hover {
  transform: translateY(-1px);
}

.variant-option.is-active {
  background: #805555;
  color: #fff;
  border-color: #805555;
}

.variant-option__main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.variant-option__label {
  overflow-wrap: anywhere;
}

.variant-option__price {
  white-space: nowrap;
  font-weight: 800;
}

.product-view {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(320px, 1fr) 320px;
  gap: 28px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.product-view__media {
  display: flex;
  flex-direction: column;
}

.product-view__image-wrap {
  flex: 1 1 auto;
  min-height: 320px;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.product-view__image-caption {
  width: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #ebe4dd;
  border-radius: 14px;
  background: #fffaf5;
}

.product-view__image-caption[hidden] {
  display: none !important;
}

.product-view__image-caption:not([hidden]) {
  display: block !important;
}

.product-view__image-caption-title {
  display: block;
  margin: 0;
  color: #1d1b19;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-view__image-caption-text {
  display: block;
  margin: 8px 0 0;
  color: #4f4a45;
  line-height: 1.55;
}

.product-view__image {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  padding: 0;
}

.product-video-btn {
  align-self: center;
  min-width: 180px;
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid #805555;
  border-radius: 6px;
  background: #805555;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.product-video-btn:hover,
.product-video-btn:focus-visible {
  background: #6f4848;
  outline: none;
}

.product-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.product-video-modal[hidden] {
  display: none !important;
}

.product-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.product-video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 95vw);
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #fffaf5;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.product-video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 27, 25, 0.9);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.product-video-modal__close:hover,
.product-video-modal__close:focus-visible {
  background: #805555;
  outline: none;
}

.product-video-modal__title {
  margin: 0;
  padding: 16px 60px 0 18px;
  color: #1d1b19;
  font-size: 1rem;
  line-height: 1.35;
}

.product-video-modal__body {
  width: 100%;
  height: min(75vh, 720px);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.product-video-modal__body video,
.product-video-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

body.product-video-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .product-video-modal {
    padding: 10px;
  }

  .product-video-modal__panel {
    width: 95vw;
    max-width: 95vw;
  }

  .product-video-modal__body {
    height: min(72vh, 620px);
    min-height: 220px;
  }
}

.recommended-acc-image img {
  max-width: 100%;
  height: auto;
}

.product-view__media,
.product-view__info {
  min-width: 0;
  max-width: 100%;
  display: grid;
  align-items: center;
  justify-content: center;
}

.recommended-accessories {
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.product-view {
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.product-view__info {
  flex: 1 1 420px;
  min-width: 0;
  order: 1;
}

.product-view__media {
  flex: 0 0 320px;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  order: 2;
}

.product-view__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.product-view__image--full-bleed {
  width: 100% !important;
  max-width: 100% !important;
}

.full-bleed-section {
  width: 100%;
  margin-top: 24px;
}

.full-bleed-section[hidden] {
  display: none !important;
}

.full-bleed-list {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.full-bleed-item {
  width: var(--full-bleed-image-width, 100vw);
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 0;
  background: #fff;
  object-fit: cover;
}

.recommended-accessories {
  flex: 1 1 100%;
  order: 3;
}

@media (max-width: 1000px) {
  .product-view {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .product-view__info,
  .product-view__media,
  .recommended-accessories {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-view__media {
    justify-content: flex-start;
  }

  .product-view__image-wrap {
    max-width: 520px;
  }

  .product-view__image-caption {
    max-width: 520px;
  }

  .image-highlights-grid {
    gap: 16px;
  }

  .image-highlight-card,
  .image-highlight-card--custom-width {
    flex-basis: 100%;
    width: 100%;
  }
}

.product-view__media {
  display: flex !important;
}

.product-view__brandline {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}

.product-view__title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.product-view__price {
  font-size: 2rem;
  font-weight: 800;
  color: #a40000;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .variant-btn {
    min-width: 200px !important;
  }
}

.variant-btn {
  appearance: none;
  min-width: 500px;
  border: 1.5px solid #222;
  background: #fff;
  color: #222;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  min-height: 48px;
  transition: 0.18s ease;
}

.variant-btn:hover {
  transform: translateY(-1px);
}

.variant-btn.is-active {
  background: #805555;
  color: #fff;
  border-color: #805555;
}

.product-view__sku {
  margin-bottom: 16px;
  color: #444;
}

.product-view__specs {
  margin: 0 0 20px;
  padding-left: 20px;
}

.product-view__specs li {
  margin-bottom: 6px;
}

.product-view__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border: 1px solid #ccc;
  background: #f3f3f3;
  font-size: 1.4rem;
  cursor: pointer;
}

.qty-input {
  width: 70px;
  height: 48px;
  text-align: center;
  border: 1px solid #ccc;
  font: inherit;
  font-weight: 700;
}

.add-to-cart-btn {
  min-width: 180px;
  height: 48px;
  border: 0;
  background: #805555;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
  border-radius: 8px;
}

.request-quote-btn {
  min-width: 180px;
  height: 48px;
  border: 1px solid #805555;
  background: transparent;
  color: #805555;
  font: inherit;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.request-quote-btn:hover,
.request-quote-btn:focus-visible {
  background: rgba(128, 85, 85, 0.08);
}

.recommended-accessories {
  margin-top: 0;
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-sizing: border-box;
  position: sticky;
  top: 20px;
}

.recommended-accessories-title {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
}

.recommended-accessories-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.recommended-acc-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
}

.recommended-acc-check {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.recommended-acc-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.recommended-acc-main {
  min-width: 0;
  overflow: hidden;
}

.recommended-acc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.recommended-acc-title {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  word-break: break-word;
}

.recommended-acc-price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  color: #14833b;
}

.recommended-acc-image {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recommended-acc-image img {
  display: block;
  width: 100%;
  max-width: 64px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.product-page,
.product-main,
.product-info,
.product-details,
.product-content {
  max-width: 100%;
  overflow-x: hidden;
  padding-right: 30px;
}

.product-view__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-view__thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #ddd;
}

@media (max-width: 1100px) {
  .product-view {
    grid-template-columns: 1fr;
  }

  .variant-btn {
    text-align: left;
  }

  .recommended-accessories {
    margin-top: 28px;
    width: 100%;
    position: static;
  }
}

@media (max-width: 640px) {
  .recommended-acc-card {
    grid-template-columns: 20px minmax(0, 1fr) 54px;
    gap: 10px;
    padding: 12px;
  }

  .recommended-acc-image {
    width: 54px;
    min-width: 54px;
    max-width: 54px;
  }

  .recommended-acc-image img {
    max-width: 54px;
    max-height: 54px;
  }

  .recommended-acc-title,
  .recommended-acc-price {
    font-size: 0.95rem;
  }
}

.recommended-accessories {
  margin-top: 28px;
}

.recommended-accessories-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.recommended-accessories-list {
  display: grid;
  gap: 14px;
}

.recommended-acc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.recommended-acc-card:hover {
  border-color: #bfc7bf;
}

.recommended-acc-check {
  padding-top: 2px;
}

.recommended-acc-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.recommended-acc-main {
  min-width: 0;
}

.recommended-acc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 14px;
}

.recommended-acc-title {
  font-weight: 600;
  line-height: 1.4;
}

.recommended-acc-price {
  white-space: nowrap;
  font-weight: 700;
}

.recommended-acc-options {
  margin-top: 10px;
}

.recommended-acc-select {
  width: 100%;
  max-width: 360px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
}

.recommended-acc-select:focus {
  outline: none;
  border-color: #888;
}

.recommended-acc-image {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.recommended-acc-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 640px) {
  .recommended-acc-card {
    grid-template-columns: auto 1fr;
  }

  .recommended-acc-image {
    grid-column: 2;
    width: 72px;
    height: 72px;
  }

  .recommended-acc-select {
    max-width: 100%;
  }
}

.recommended-acc-card:has(.recommended-acc-checkbox:checked) {
  border-color: #222;
  box-shadow: 0 0 0 1px #222 inset;
}

.product-description-table-title {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.product-description-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0 18px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background: #fff;
}

.product-description-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 160px;
}

@media (max-width: 640px) {
  .product-description-table {
    font-size: 0.65rem;
  }
}

.product-description-table th,
.product-description-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e9e9e9;
  line-height: 1.45;
}

.product-description-table thead th {
  font-weight: 700;
  background: #f7f7f7;
  white-space: nowrap;
}

.product-description-table tbody tr:last-child td {
  border-bottom: none;
}

.product-details-container,
.product-description-block,
.product-full-desc {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.product-full-desc,
.product-description-block {
  padding-left: 12px;
  padding-right: 12px;
}

.visual-blocks-section {
  width: 100%;
  padding: 20px 12px 8px;
}

.visual-blocks-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.visual-block-card {
  flex: 1 1 240px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e6e1dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(34, 26, 21, 0.05);
}

.visual-block-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8f5f2 0%, #f2ece5 100%);
}

.visual-block-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visual-block-image--placeholder {
  padding: 18px;
  color: #6f6257;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.visual-block-title {
  margin: 0;
  color: #1d1b19;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.visual-block-text {
  margin: 0;
  color: #4f4a45;
  line-height: 1.6;
}

.product-description-line,
.visual-block-text-line {
  margin: 0 0 0.55em;
}

.product-description-line:last-child,
.visual-block-text-line:last-child {
  margin-bottom: 0;
}

.product-description-line--blank,
.visual-block-text-line--blank {
  min-height: 1em;
}

.product-full-desc > *,
.product-full-desc * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-full-desc img,
.product-full-desc video,
.product-full-desc iframe,
.product-full-desc figure,
.product-full-desc table,
.product-full-desc div {
  max-width: 100%;
}

@media (max-width: 640px) {
  .visual-blocks-section {
    padding-top: 16px;
  }

  .visual-blocks-grid {
    gap: 16px;
  }

  .visual-block-card,
  .visual-block-card--custom-width {
    flex-basis: 100%;
    width: 100%;
    padding: 14px;
  }
}
