/* Static Arabic product page, measured against the Microless Saudi product layout. */
.product-body {
  background: #fff;
  color: #333;
}

.product-body .site-header {
  margin-bottom: 8px;
}

.product-page {
  padding: 20px 0 48px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 21px;
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  list-style: none;
}

.product-breadcrumb a {
  color: #444;
}

.product-breadcrumb .fa {
  color: #888;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(245px, 3fr);
  direction: rtl;
  align-items: start;
  margin: 0 -15px;
}

.product-gallery,
.product-summary,
.product-buybox {
  min-width: 0;
  padding: 0 15px;
}

.product-gallery__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  overflow: hidden;
  background: #fff;
}

.product-gallery__stage > img {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-gallery__zoom {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: rgba(255, 255, 255, .92);
  color: #555;
  opacity: 0;
  transition: opacity .18s ease;
}

.product-gallery__stage:hover .product-gallery__zoom,
.product-gallery__zoom:focus {
  opacity: 1;
}

.product-thumbnails {
  display: flex;
  direction: rtl;
  gap: 7px;
  justify-content: flex-start;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.product-thumb {
  flex: 0 0 65px;
  width: 65px;
  height: 65px;
  padding: 3px;
  border: 1px solid #ddd;
  background: #fff;
}

.product-thumb:hover,
.product-thumb:focus {
  border-color: #aaa;
}

.product-thumb.is-active {
  border: 2px solid #ffd91c;
  padding: 2px;
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-summary h1 {
  margin: 0;
  color: #333;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.product-codes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 9px 0 16px;
  color: #555;
  font-size: 12px;
}

.product-codes b {
  color: #333;
}

.share-product {
  margin-right: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #555;
}

.share-product .fa {
  margin-left: 5px;
  font-size: 16px;
}

.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 31px;
}

.product-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.badge-best {
  background: #4b8df8;
}

.badge-sale {
  background: #8bd976;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -20px 0 22px;
  font-size: 12px;
}

.rating-stars {
  direction: ltr;
  color: #f5c400;
  white-space: nowrap;
}

.product-rating a {
  color: #1686bd;
}

.variant-group {
  padding: 13px 0 15px;
  border-top: 1px solid #eee;
}

.variant-group + .variant-group {
  padding-top: 15px;
}

.variant-title {
  margin-bottom: 9px;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-align: right;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  direction: rtl;
  gap: 8px;
  justify-content: flex-start;
}

.variant-card {
  display: flex;
  flex-direction: column;
  min-width: 94px;
  min-height: 51px;
  padding: 7px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
}

.variant-card b {
  margin-bottom: 3px;
  font-size: 12px;
}

.variant-card small {
  color: #777;
  font-size: 10px;
}

.variant-card:hover,
.variant-card:focus {
  border-color: #aaa;
}

.variant-card.is-selected {
  position: relative;
  border: 2px solid #ffd91c;
  padding: 6px 9px;
}

.variant-card.is-selected::after {
  content: "\f00c";
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffd91c;
  color: #333;
  font-family: FontAwesome;
  font-size: 9px;
}

.quick-specs,
.product-attributes-featured.rps-quick-specs,
.product-feature-bullets.rps-quick-specs {
  margin: 0 0 24px;
  padding: 0 15px 0 0;
  direction: rtl;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
}

.product-feature-bullets.rps-quick-specs > li {
  display: list-item;
  margin: 5px 0 0;
  padding: 0;
  color: #000;
  font-size: 14px;
  line-height: 21px;
  list-style-position: outside;
  list-style-type: square;
  text-align: right;
}

.product-feature-bullets.rps-quick-specs > li span {
  color: #000;
}

.product-feature-bullets.rps-quick-specs > li strong {
  font-weight: 700;
}

body.dark-theme .product-feature-bullets.rps-quick-specs > li,
body.dark-theme .product-feature-bullets.rps-quick-specs > li span {
  color: #e1e1e1;
}

.product-highlights {
  margin: 0 0 24px;
  padding: 0 18px 0 0;
  list-style: square;
  font-size: 13px;
  line-height: 1.9;
}

.product-option {
  padding: 17px 0 15px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.product-option label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 400;
}

.product-option select {
  width: auto;
  min-width: 210px;
  height: 38px;
  border: 2px solid #ffd91c;
  box-shadow: none;
  font-size: 12px;
}

.summary-price-mobile {
  display: none;
}

.summary-warranty {
  display: flex;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.summary-warranty > .fa {
  color: #f7c600;
  font-size: 26px;
}

.summary-warranty b,
.summary-warranty p {
  margin: 0;
}

.summary-warranty p {
  margin-top: 4px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

.summary-warranty a {
  color: #1686bd;
  font-size: 12px;
}

.summary-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 17px;
}

.round-action {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 18px;
}

.round-action.is-active {
  border-color: #e74c3c;
  color: #e74c3c;
}

.compare-product {
  margin: 0;
  font-weight: 400;
}

.compare-product input {
  margin-left: 5px;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  color: #111;
  text-align: center;
}

.brand-mark strong {
  font-family: Arial, sans-serif;
  font-size: 25px;
  letter-spacing: 1px;
}

.brand-mark small {
  font-size: 6px;
  letter-spacing: 1px;
}

.brand-mark--samsung strong {
  color: #1428a0;
  font-size: 23px;
  letter-spacing: -1px;
}

.product-buybox {
  border-inline-start: 1px solid #eee;
}

.buybox-price,
.summary-price-mobile {
  direction: ltr;
  font-family: "YS Text Regular", Arial, sans-serif;
  line-height: 1;
  text-align: right;
}

.buybox-price strong,
.summary-price-mobile strong {
  font-size: 30px;
  font-weight: 400;
}

.buybox-price .currency,
.summary-price-mobile .currency {
  margin-right: 5px;
  font-size: 12px;
}

.buybox-old {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 7px 0 11px;
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.buybox-old .discount {
  padding: 2px 5px;
  background: #a7e292;
  color: #28751a;
  font-family: Tajawal, Arial, sans-serif;
}

.buybox-old del {
  direction: ltr;
}

.installment-link {
  display: block;
  margin-bottom: 10px;
  color: #555;
  font-size: 12px;
}

.installment-link .fa {
  margin-left: 5px;
}

.payment-card {
  position: relative;
  margin: 9px 0;
  padding: 13px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #555;
  font-size: 12px;
  line-height: 1.55;
}

.payment-card b {
  display: block;
  max-width: 75%;
}

.payment-card a,
.payment-card small {
  display: block;
  color: #777;
}

.payment-card a {
  text-decoration: underline;
}

.payment-logo,
.tabby-logo {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
}

.payment-logo {
  background: linear-gradient(90deg, #9bd0e6, #ffaf90);
  color: #222;
}

.tabby-logo {
  background: #43e68c;
  color: #000;
  font-family: Arial, sans-serif;
}

.seller-line {
  padding: 12px 0 15px;
  border-bottom: 1px solid #e5e5e5;
}

.seller-line span {
  display: block;
  margin-bottom: 8px;
}

/* Raizon has a single seller; keep the fulfilment badge without showing a seller label. */
.seller-line > span {
  display: none;
}

.seller-line {
  border-bottom: 0;
}

.seller-line em {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  background: #ffd91c;
  color: #333;
  font-size: 11px;
  font-style: normal;
}

.warranty-options {
  margin: 0;
  padding: 14px 0 9px;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
}

.warranty-options legend {
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 13px;
}

.warranty-options label {
  display: flex;
  align-items: flex-start;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 400;
}

.warranty-options input {
  margin: 2px 0 0 6px;
  accent-color: #2caf60;
}

.stock-status {
  padding: 16px 0 10px;
  color: #299c4a;
  font-size: 15px;
  font-weight: 700;
}

.cart-controls {
  display: flex;
  gap: 6px;
}

.cart-controls select {
  width: 58px;
  height: 42px;
  border-radius: 0;
}

.product-add-cart {
  flex: 1;
  min-height: 42px;
  border: 0;
  background: #4caf50;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.product-add-cart:hover,
.product-add-cart:focus {
  background: #409b44;
}

.product-add-cart.is-added {
  background: #25833a;
}

.delivery-box {
  margin: 13px 0 0;
  padding: 0;
  border-top: 1px solid #eee;
  list-style: none;
}

.delivery-box li {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  line-height: 1.5;
}

.delivery-box .fa {
  width: 17px;
  color: #777;
  font-size: 16px;
  text-align: center;
}

.delivery-box small {
  display: block;
  color: #777;
}

.change-location-product {
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #1686bd;
}

.product-information,
.product-specifications,
.product-reviews {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #ddd;
}

.product-information {
  width: 100%;
  margin-right: auto;
}

.product-information h2,
.product-specifications h2,
.product-reviews h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.product-information > p {
  max-width: 900px;
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}

.product-content-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px auto 28px;
}

.product-information__spec-title {
  margin: 0 0 15px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  direction: ltr;
  text-align: left;
}

.spec-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.product-spec-table {
  margin: 0;
  border: 1px solid #ddd;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.product-spec-table th,
.product-spec-table td {
  width: 25%;
  padding: 10px 12px !important;
  border: 1px solid #ddd !important;
  vertical-align: middle !important;
}

.product-spec-table th {
  background: #f7f7f7;
}

.product-spec-table--reference th {
  width: 31%;
}

.product-spec-table--reference td {
  width: 69%;
}

.specification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.specification-grid > div {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 54px;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.specification-grid span,
.specification-grid b {
  padding: 15px;
}

.specification-grid span {
  background: #f7f7f7;
  color: #555;
}

.specification-grid b {
  font-weight: 400;
}

.review-empty {
  padding: 20px 0 8px;
  text-align: center;
}

.review-empty > strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 38px;
}

.review-stars {
  margin: 6px 0;
  color: #f3c400;
  font-size: 18px;
}

.review-empty p {
  margin: 18px 0 10px;
}

.product-intro-list {
  margin: 0 0 30px;
  padding-left: 20px;
  color: #444;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.samsung-feature {
  width: calc(100% - 40px);
  margin-right: auto;
  margin-bottom: 42px;
  font-family: Arial, sans-serif;
  text-align: left;
}

.samsung-feature__text {
  margin-bottom: 20px;
}

.samsung-feature h3 {
  margin: 0 0 12px;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.samsung-feature p {
  margin: 0;
  color: #3d3d3d;
  font-size: 16px;
  line-height: 1.65;
}

.samsung-feature .feature-note {
  margin-top: 10px;
  color: #666;
  font-size: 13px;
}

.samsung-feature img {
  display: block;
  width: 100%;
  height: auto;
}

.samsung-feature--portrait img {
  width: 720px;
  max-width: 100%;
  margin-left: auto;
}

.reference-specs {
  width: calc(100% - 40px);
  margin-right: auto;
  margin-top: 36px;
  font-family: Arial, sans-serif;
  text-align: left;
}

.reference-specs > h3 {
  margin: 0 0 24px;
  color: #222;
  font-size: 22px;
  font-weight: 700;
}

.reference-spec-group {
  display: grid;
  grid-template-columns: 24% 76%;
  padding: 23px 0;
  border-top: 1px solid #d9d9d9;
}

.reference-spec-group:last-child {
  border-bottom: 1px solid #d9d9d9;
}

.reference-spec-group h4 {
  margin: 0;
  padding-right: 24px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.reference-spec-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-spec-group li {
  display: grid;
  grid-template-columns: 37% 63%;
  gap: 16px;
  margin-bottom: 13px;
  color: #444;
  font-size: 14px;
  line-height: 1.55;
}

.reference-spec-group li:last-child {
  margin-bottom: 0;
}

.reference-spec-group li strong {
  font-weight: 700;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 260px minmax(320px, 520px);
  gap: 50px;
  align-items: center;
  padding: 12px 0 26px;
}

.reviews-summary {
  text-align: center;
}

.reviews-score {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.reviews-summary > span {
  display: block;
  margin: 8px 0 14px;
  color: #666;
}

.rating-distribution > div {
  display: grid;
  grid-template-columns: 58px 1fr 38px;
  gap: 10px;
  align-items: center;
  margin: 7px 0;
  font-size: 12px;
}

.rating-distribution b {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7e7e7;
}

.rating-distribution i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f5c400;
}

.rating-distribution em {
  color: #777;
  font-style: normal;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-cards article {
  padding: 18px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  background: #fff;
}

.review-cards header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.review-cards p {
  min-height: 42px;
  margin: 13px 0;
  color: #555;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.review-cards small {
  color: #888;
}

/* Microless review aggregate: two columns on desktop, stacked on mobile. */
#rate-and-review {
  display: flex;
  flex-wrap: wrap;
  direction: rtl;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
}

#rate-and-review .review-rating-column {
  width: 23%;
  min-width: 262px;
}

#rate-and-review .review-count-wrap {
  width: 100%;
  padding: 20px 0;
  text-align: center;
}

#rate-and-review .review-average {
  width: 80px;
  margin: auto;
  font-size: 28px;
  font-weight: 700;
  line-height: 21px;
}

#rate-and-review .current-review-stars .stars-container {
  display: flex;
  float: none;
  justify-content: center;
  margin-top: 15px;
}

/* The nested rating container also carries Microless's product-reviews class;
 * reset the section spacing rules before applying the star spacing above. */
#rate-and-review .rating-container.product-reviews {
  margin: 0;
  padding: 0;
  border: 0;
}

#rate-and-review .stars-container .fa-star {
  color: transparent;
  font-size: 18px;
  -webkit-text-stroke: 1px #ea9514;
}

#rate-and-review .stars-container .star-full {
  background: linear-gradient(#ffeb3b, #ff9800) text;
  -webkit-text-fill-color: transparent;
}

#rate-and-review .stars-container .star-half {
  background: linear-gradient(90deg, #ffb300 0 50%, transparent 50% 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#rate-and-review .stars-container .star-empty {
  color: #f3f3f3;
  -webkit-text-stroke-color: #dcdcdc;
}

#rate-and-review .rating-average {
  margin-top: 8px;
  font-size: 16px;
}

#rate-and-review .reviews-count-container {
  float: none;
  margin: 0;
  text-align: center;
}

#rate-and-review .reviews-count-container a { color: inherit; }
#rate-and-review .reviews-count-container .review-count { margin: 0; }

#rate-and-review .ratings-bar-wrap {
  margin-top: 10px;
  padding: 0 10px;
}

#rate-and-review .rating-info-wrap {
  display: flex;
  width: 100%;
  align-items: center;
  margin-bottom: 5px;
  font-size: 13px;
}

#rate-and-review .rating-text { width: 19%; text-align: right; }
#rate-and-review .rating-progress { flex-grow: 1; }
#rate-and-review .rating-progress .progress { height: 10px; margin: 0; overflow: hidden; border-radius: 0; background: #f5f5f5; }
#rate-and-review .rating-progress .progress-bar { float: right; height: 100%; background: linear-gradient(#ffeb3b, #ff9800); transition: width .6s; }
#rate-and-review .rating-percentage { width: 15%; padding-right: 10px; font-size: 12px; text-align: left; }

#rate-and-review .review-calculation-info { padding: 7px 5px; font-size: 13px; }
#rate-and-review .review-calculation-info a { display: block; margin-bottom: 10px; color: inherit; font-weight: 600; }
#rate-and-review .review-calculation-info a span { margin-top: 5px; }
#rate-and-review .review-calculation-info .collapse { padding: 0 6px; }

#rate-and-review .review-summary-content {
  width: 67%;
  min-width: 0;
  padding: 0 20px;
}

#rate-and-review #only-rating-no-review {
  padding: 0 20px;
  border-right: 1px solid #f3f3f3;
}

#rate-and-review #only-rating-no-review .no-review-title { font-weight: 600; }
#rate-and-review #only-rating-no-review .no-review-msg { margin-top: 10px; padding: 10px 20px; border-radius: 7px; background: #f0f2f2; }
#rate-and-review .rating-write-review-wrapper { margin-right: 30px; padding-top: 20px; text-align: right; }
#rate-and-review .rate-this-product { padding-top: 15px; }
#rate-and-review .be-the-first { margin-bottom: 10px; }
#rate-and-review a.moweb-add-review { display: inline-block; padding: 5px 18px; border: 1px solid #949494; border-radius: 5px; font-size: 14px; color: inherit; }
#rate-and-review a.moweb-add-review:hover { background: #f5f5f5; }
#rate-and-review .call-write-review { display: none; }
.moweb-review-form { display: none; margin-top: 28px; }
.moweb-review-form .woocommerce-Reviews-title,
.moweb-review-form .woocommerce-noreviews { display: none; }
body.dark-theme #rate-and-review #only-rating-no-review { border-color: #404040; }
body.dark-theme #rate-and-review #only-rating-no-review .no-review-msg { background: #303030; }
body.dark-theme #rate-and-review a.moweb-add-review { border-color: #555; background: #303030; color: #e1e1e1; }

.product-recommendations .related.products { position: relative; margin-top: 40px; padding-top: 25px; border-top: 1px solid #ddd; }
.product-recommendations .related.products h2 { position: relative; margin: 0 0 18px; padding-right: 13px; font-size: 20px; font-weight: 700; }
.product-recommendations .related.products h2::before { position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: #ffd91c; content: ""; }
.product-recommendations .related.products ul.products.product-carousel { display: block; flex-wrap: nowrap; margin-top: 15px; padding: 0; list-style: none; }
.product-recommendations .related.products .owl-stage { display: flex; }
.product-recommendations .related.products .owl-item { display: flex; min-width: 0; }
.product-recommendations .related.products .owl-item > .product-card { flex: 1 1 auto; }
body.dark-theme .product-recommendations .related.products { border-color: #404040; }
body.dark-theme .product-recommendations .related.products h2 { color: #e1e1e1; }

@media (max-width: 995px) {
  #rate-and-review .review-rating-column,
  #rate-and-review .review-summary-content { width: 100%; }
  #rate-and-review .review-rating-column { min-width: 0; }
  #rate-and-review .review-summary-content { padding-top: 20px; border-top: 1px solid #f3efef; }
  #rate-and-review .rating-write-review-wrapper { margin: 10px auto 0; text-align: center; }
}

@media (max-width: 540px) {
  #rate-and-review .review-count-wrap { min-width: 0; padding: 0; }
  #rate-and-review .review-summary-content { padding-right: 0; padding-left: 0; }
  #rate-and-review .rating-write-review-wrapper { width: 95%; }
}

.product-lightbox {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background: rgba(0, 0, 0, .84);
}

.product-lightbox.is-open {
  display: flex;
}

.product-lightbox img {
  max-width: 96vw;
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
}

.product-lightbox__close {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 20px;
}

body.dark-theme.product-body {
  background: #262626;
  color: #e1e1e1;
}

body.dark-theme .product-breadcrumb,
body.dark-theme .product-breadcrumb a,
body.dark-theme .product-summary h1,
body.dark-theme .product-codes,
body.dark-theme .product-codes b,
body.dark-theme .share-product,
body.dark-theme .brand-mark,
body.dark-theme .installment-link,
body.dark-theme .product-information > p,
body.dark-theme .product-intro-list,
body.dark-theme .samsung-feature h3,
body.dark-theme .samsung-feature p,
body.dark-theme .reference-specs > h3,
body.dark-theme .reference-spec-group h4,
body.dark-theme .reference-spec-group li {
  color: #e1e1e1;
}

body.dark-theme .product-gallery__stage,
body.dark-theme .product-gallery__stage > img,
body.dark-theme .product-thumb {
  background: #303030;
}

body.dark-theme .product-gallery__stage > img,
body.dark-theme .product-thumb img {
  mix-blend-mode: normal;
}

body.dark-theme .product-buybox {
  border-color: #404040;
}

body.dark-theme .product-option,
body.dark-theme .summary-warranty,
body.dark-theme .seller-line,
body.dark-theme .warranty-options,
body.dark-theme .delivery-box,
body.dark-theme .delivery-box li,
body.dark-theme .product-information,
body.dark-theme .product-specifications,
body.dark-theme .product-reviews {
  border-color: #404040;
}

body.dark-theme .payment-card,
body.dark-theme .round-action,
body.dark-theme .product-option select,
body.dark-theme .cart-controls select,
body.dark-theme .variant-card,
body.dark-theme .review-cards article {
  border-color: #505050;
  background: #303030;
  color: #e1e1e1;
}

body.dark-theme .summary-warranty p,
body.dark-theme .delivery-box small,
body.dark-theme .delivery-box .fa,
body.dark-theme .buybox-old,
body.dark-theme .variant-card small,
body.dark-theme .samsung-feature .feature-note,
body.dark-theme .reviews-summary > span,
body.dark-theme .review-cards p,
body.dark-theme .review-cards small {
  color: #aaa;
}

body.dark-theme .variant-group,
body.dark-theme .reference-spec-group,
body.dark-theme .review-cards article {
  border-color: #444;
}

body.dark-theme .rating-distribution b {
  background: #454545;
}

body.dark-theme .product-spec-table,
body.dark-theme .product-spec-table th,
body.dark-theme .product-spec-table td,
body.dark-theme .specification-grid,
body.dark-theme .specification-grid > div {
  border-color: #444 !important;
  color: #e1e1e1;
}

body.dark-theme .product-spec-table th,
body.dark-theme .specification-grid span {
  background: #303030;
  color: #e1e1e1;
}

@media (max-width: 1199px) {
  .product-hero {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(235px, 3fr);
  }

  .product-gallery__stage {
    height: 420px;
  }

  .product-summary h1 {
    font-size: 17px;
  }

  .payment-card b {
    max-width: 100%;
    padding-left: 48px;
  }
}

@media (max-width: 991px) {
  .product-hero {
    grid-template-columns: 1fr 1fr;
  }

  .product-gallery {
    grid-column: 1;
  }

  .product-summary {
    grid-column: 2;
  }

  .product-buybox {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    border-inline-start: 0;
  }

  .product-buybox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }

  .buybox-price,
  .buybox-old,
  .installment-link,
  .seller-line,
  .warranty-options,
  .stock-status,
  .cart-controls {
    grid-column: 2;
  }

  .payment-card,
  .delivery-box {
    grid-column: 1;
  }

  .payment-card--tamara {
    grid-row: 1 / span 2;
  }

  .payment-card--tabby {
    grid-row: 3 / span 2;
  }

  .delivery-box {
    grid-row: 5 / span 4;
  }

  .product-information {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .product-body .site-header {
    margin-bottom: 17px;
  }

  .product-page {
    padding-top: 12px;
  }

  .product-hero {
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  .product-gallery,
  .product-summary,
  .product-buybox {
    width: 100%;
    padding: 0;
  }

  .product-gallery {
    order: 1;
  }

  .product-summary {
    order: 2;
  }

  .product-buybox {
    order: 3;
  }

  .product-gallery__stage {
    height: 350px;
  }

  .product-gallery__zoom {
    opacity: 1;
  }

  .product-thumbnails {
    margin: 12px 0 20px;
  }

  .product-thumb {
    flex-basis: 55px;
    width: 55px;
    height: 55px;
  }

  .product-summary h1 {
    font-size: 17px;
    line-height: 1.55;
  }

  .product-codes {
    gap: 7px 14px;
  }

  .product-badges {
    margin-bottom: 22px;
  }

  .summary-price-mobile {
    display: block;
    margin: 18px 0 4px;
  }

  .product-buybox {
    display: block;
    margin-top: 22px;
    padding-top: 18px;
  }

  .buybox-price {
    display: none;
  }

  .payment-card b {
    padding-left: 75px;
  }

  .product-information,
  .product-specifications,
  .product-reviews {
    margin-top: 30px;
    padding-top: 20px;
  }

  .product-information h2,
  .product-specifications h2,
  .product-reviews h2 {
    font-size: 18px;
  }

  .specification-grid {
    grid-template-columns: 1fr;
  }

  .samsung-feature {
    width: 100%;
    margin-bottom: 32px;
  }

  .reference-specs {
    width: 100%;
  }

  .samsung-feature h3 {
    font-size: 18px;
  }

  .samsung-feature p {
    font-size: 14px;
  }

  .reference-spec-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reference-spec-group li {
    grid-template-columns: 40% 60%;
    gap: 10px;
    font-size: 13px;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rating-distribution {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

  .product-spec-table {
    min-width: 680px;
  }

  .product-lightbox {
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .product-gallery__stage {
    height: 315px;
  }

  .product-summary h1 {
    font-size: 16px;
  }

  .product-codes {
    font-size: 11px;
  }

  .quick-specs > div,
  .warranty-options label,
  .delivery-box li {
    font-size: 11.5px;
  }

  .payment-card b {
    max-width: 74%;
    padding-left: 0;
  }

  .variant-card {
    min-width: 88px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .reference-spec-group li {
    display: block;
  }

  .reference-spec-group li strong,
  .reference-spec-group li span {
    display: block;
  }

  .reference-spec-group li span {
    margin-top: 3px;
    color: #666;
  }
}

@media (max-width: 360px) {
  .product-gallery__stage {
    height: 290px;
  }

  .product-thumb {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }
}

/* Product gallery controls and reference-style variant cards. */
.product-gallery__strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  min-width: 0;
}

.product-gallery__strip .product-thumbnails {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}

.product-gallery__nav {
  flex: 0 0 28px;
  width: 28px;
  height: 34px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  color: #777;
  font-size: 18px;
  line-height: 32px;
  transition: border-color .18s ease, color .18s ease;
}

.product-gallery__nav:hover,
.product-gallery__nav:focus {
  border-color: #aaa;
  color: #222;
}

.variant-card--image {
  min-width: 112px;
  min-height: 92px;
  justify-content: flex-end;
}

.variant-card__image {
  display: block;
  width: 58px;
  height: 35px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.variant-card--image.is-selected {
  padding-top: 5px;
}

@media (max-width: 767px) {
  .product-page,
  .product-page .container-fluid,
  .product-hero,
  .product-summary,
  .product-buybox {
    min-width: 0;
  }

  .product-summary,
  .product-buybox {
    overflow: hidden;
  }

  .product-summary h1 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .product-codes span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .product-gallery__strip {
    gap: 5px;
  }

  .product-gallery__nav {
    flex-basis: 24px;
    width: 24px;
    height: 32px;
    line-height: 30px;
  }

  .variant-card--image {
    min-width: 96px;
  }
}

body.dark-theme .product-gallery__nav {
  border-color: #555;
  background: #2b2b2b;
  color: #ddd;
}

body.dark-theme .variant-card__image {
  background: #fff;
}
