a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  margin: 0 auto;
  padding: 26px 106px 60px;
}


.top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.seller-info-row {

  height: 60px !important;
  justify-content: flex-start !important;
}


.breadcrumb {
  font-size: 13px;
  color: #73737A;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  direction: rtl;
}

.breadcrumb .sep {
  color: #73737A;
}

.breadcrumb .current {
  color: #69696e;
}

.pdp-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #231F20;
}

.pdp-subtitle {
  font-size: 13.5px;
  color: #73737A;
  font-weight: 400;
  margin: 0;
}

.icon-block {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #F0F0F0;
  background: #fff;
  box-shadow: 0px 4px 4px 0px #00000040;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-700);
  transition: .15s;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.icon-btn.liked {
  background: #fff;
  box-shadow: 0px 4px 4px 0px #00000040;
  border: 1px solid #F0F0F0;

}



.main-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  direction: rtl;
}

.product-content-column {
  display: contents;
}

/* =========================================
   CART MODAL
========================================= */

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.cart-modal.active {
  visibility: visible;
  opacity: 1;
}



.cart-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.58);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}


.cart-modal-box {
  position: relative;
  z-index: 2;

  width: 430px;
  max-width: calc(100% - 32px);

  background: #fff;

  border-radius: 18px;

  padding: 18px;

  direction: rtl;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.25);

  transform: translateY(20px) scale(0.97);

  transition:
    transform 0.3s cubic-bezier(.22, .61, .36, 1);
}

.cart-modal.active .cart-modal-box {
  transform: translateY(0) scale(1);
}



.cart-modal-handle {
  display: none;

  width: 32px;
  height: 4px;

  margin: -7px auto 14px;

  border-radius: 20px;

  background: #ddd;
}



.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 14px;

  border-bottom: 1px solid #eeeeee;
}


.cart-success {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #16b65b;

  font-size: 13px;
  font-weight: 600;
}


.cart-success-icon {
  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e8f9ef;

  color: #16b65b;
}


.cart-modal-close {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: #f7f7f7;

  color: #555;

  cursor: pointer;

  transition: 0.2s ease;
}

.cart-modal-close:hover {
  background: #eeeeee;
}



.cart-product {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 16px 0;
}


.cart-product-image {
  flex: 0 0 72px;

  width: 72px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #e9e9e9;
  border-radius: 10px;

  overflow: hidden;
}


.cart-product-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


.cart-product-info {
  flex: 1;

  min-width: 0;
}


.cart-product-info h3 {
  margin: 0 0 7px;

  color: #222;

  font-size: 12px;
  font-weight: 600;

  line-height: 1.8;
}


.cart-product-variant {
  margin-bottom: 3px;
  color: #8C8C8C;
  font-size: 13px;
  font-weight: 400;
}


.cart-product-variant span {
  color: #333;
}


.cart-product-price {
  margin-top: 7px;
  color: #222;
  font-size: 11px;
  font-weight: 700;
}

.cart-modal-divider {
  width: 100%;
  height: 1px;

  background: #eeeeee;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 14px;
  padding: 13px 14px;

  border-radius: 9px;

  background: #f8f8f8;
}


.cart-total span {
  color: #777;

  font-size: 10px;
}


.cart-total strong {
  color: #333;
  font-size: 11px;
}

.cart-modal-actions {
  display: flex;

  gap: 8px;

  margin-top: 14px;
}


.cart-modal-actions button {
  height: 42px;

  border-radius: 7px;

  font-family: inherit;
  font-size: 11px;

  cursor: pointer;

  transition: 0.2s ease;
}


.cart-view-btn {
  flex: 1;

  border: 0;

  background: #ff0054;
  color: #fff;
}


.cart-view-btn:hover {
  background: #e9004c;
}


.cart-continue-btn {
  flex: 1;

  border: 1px solid #e3e3e3;

  background: #fff;

  color: #444;
}


.cart-continue-btn:hover {
  background: #f8f8f8;
}


.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  background: rgba(20, 20, 20, 0.48);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  direction: rtl;
}

.review-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.review-modal {
  width: min(1165px, 100%);
  max-height: calc(100vh - 48px);

  overflow-y: auto;
  background:#F8F8F8;
  border: 1px solid #E0E0E0;
  border-radius: 10px;

  padding: 32px;

  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.review-modal-overlay.is-open .review-modal {
  transform: translateY(0) scale(1);
}

.review-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.review-modal-header h2 {
  margin: 0 0 8px;
  color: #171717;
  font-size: 20px;
  font-weight: 700;
}

.review-modal-header p {
  margin: 0;
  color: #646464;
  font-size: 13px;
}

.review-modal-close {
  display: none;
  width: 32px;
  height: 32px;

  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.review-modal-close svg {
  width: 21px;
  height: 21px;
}


.review-rating-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;

  margin-top: -31px;
}

.review-rating-label {
  color: #0F0A95;
  font-size: 13px;
}

.review-rating-text {
  color: var(--review-primary);
  font-size: 14px;
}

.review-stars {
  display: flex;
  direction: rtl;
  gap: 3px;
}

.review-star {
  width: 28px;
  height: 28px;
  padding: 0;

  border: 0;
  background: transparent;
  color: var(--review-primary);
  cursor: pointer;
}

.review-star svg {
  width: 26px;
  height: 26px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;

  transition:
    fill 0.2s ease,
    transform 0.2s ease;
}

.review-star:hover svg,
.review-star.is-active svg {
  fill: currentColor;
}

.review-star:hover {
  transform: translateY(-2px);
}

.review-modal-divider {
  height: 1px;
  margin: 29px 0 30px;
  background: #E0E0E0;
}

.review-form-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  direction: ltr;
}

.review-form-fields,
.review-options-layout {
  direction: rtl;
}

.review-form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-field label {
  display: block;
  margin-bottom: 11px;

  color: #252525;
  font-size: 15px;
  font-weight: 700;
}

.review-field input,
.review-field textarea,
.review-option-input input {
  width: 100%;
  border: 1px solid #E0E0E0;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-field input {
  height: 47px;
  padding: 0 15px;
}

.review-field textarea {
  min-height: 140px;
  resize: vertical;
  padding: 15px;
}

.review-field input:focus,
.review-field textarea:focus,
.review-option-input input:focus {
  border-color: var(--review-primary);
  box-shadow: 0 0 0 3px rgba(18, 21, 143, 0.08);
}

.review-field input::placeholder,
.review-field textarea::placeholder,
.review-option-input input::placeholder {
  color: #b5b5b5;
}

.review-options-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  direction: rtl;
}

.review-option-group {
  min-width: 0;
}

.review-option-title {
  display: flex;
  align-items: center;
     flex-direction: row-reverse;
    justify-content: flex-end;
  margin-bottom: 13px;
 justify-content: flex-end;
  font-size: 15px;
  font-weight: 700;
}

.review-strengths .review-option-title {
  color: #0F0A95;
}

.review-weaknesses .review-option-title {
  color: #FF025A;
}


.review-option-add {
  width: 25px;
  height: 25px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 23px;
  font-weight: 700;
  cursor: pointer;
}

.review-option-input {
  position: relative;
}

.review-option-input input {
  height: 40px;
  padding: 0 15px 0 45px;
}

.review-input-add {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);

  width: 24px;
  height: 24px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: #0F0A95;
  color: #fff;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
}

.review-weaknesses .review-input-add {
  background: #FF025A;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 32px;
  padding: 5px 11px;

  border: 1px solid #0F0A9522;
  border-radius: 18px;
  background: #0F0A950A;
  color: #0F0A95;

  font-family: inherit;
  font-size: 12px;
  cursor: default;
}

.review-weaknesses .review-tag {
  border: 1px solid #FF025A22;
  background:#FF025A0A;
  color: #FF025A;
}

.review-tag-remove {
  font-size: 18px;
  line-height: 12px;
  cursor: pointer;
}

.review-options-layout .review-modal-footer {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.review-submit-btn {
  width: 100%;
  height: 53px;

  border: 0;
  border-radius: 10px;
  background: #FF025A;
  color: #fff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.review-submit-btn:hover {
  background: #e90050;
  box-shadow: 0 8px 20px rgba(255, 0, 88, 0.2);
  transform: translateY(-2px);
}

.review-submit-btn:active {
  transform: translateY(0);
}


body.review-modal-open {
  overflow: hidden;
}

.icon-btn.liked {
  color: #ff025a;
  transition: all 0.25s ease;
}

.icon-btn.liked svg {
  transition: all 0.25s ease;
}

/* حالت انتخاب شده */
.icon-btn.liked.active {
  color: #ff025a;
}

.icon-btn.liked.active svg {
  fill: #ff025a;
  transform: scale(1.08);
}

/* انیمیشن کوچک قلب */
.icon-btn.liked.active svg {
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1.08);
  }
}

.favorite-toast {
    position: fixed;
    top: 106px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #fff;
    color: #0F0A95;
    padding: 12px 48px;
    border-radius: 8px;
    border: 1px solid #0F0A95;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.favorite-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#tab-comments {
  scroll-margin-top: 100px;
}

#tab-comments.highlight-section {
  animation: sectionHighlight 1.2s ease;
}

@keyframes sectionHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 39, 39, 0);
  }

  40% {
    box-shadow: 0 0 0 4px rgba(125, 39, 39, 0.15);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(125, 39, 39, 0);
  }
}

.mobile-product-header {
  display: none;
}

@media (min-width: 1081px) {
  .main-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: start;
  }


  .top-row {

    grid-row: 1;
  }

  .product-info-frame {
    grid-column: 1;
    grid-row: 2;
  }

  .buy-box {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: 20px;
  }

  .mobile-add-cart-bar{
    display: none;
  }
}
@media (min-width: 768px) {
  .review-modal {
    position: relative;
  }

  .review-rating-row {
    position: absolute;
    top: 34px;

    
    right: calc(32px + ((100% - 215px) * 0.37));

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    margin: 0;
  }
}


@media (max-width: 1080px) {
  .buy-box {
    width: 100%;
    max-width: none;
  }
}



.product-info-frame {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 473px);
  gap: 28px;
  align-items: start;

  width: 100%;
  min-width: 0;
  padding: 20px;

  background: #fff;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
}

.product-info-frame>.specs-panel,
.product-info-frame>.gallery {
  min-width: 0;
}

.specs-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.view-showcase {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  background: #F0F0F0;
  padding: 7px 14px;
  font-size: 12.5px;
  border: none;
  border-radius: 10px;
  color: #000000;
}

.view-showcase svg {
  width: 13px;
  height: 13px;
  color: #8C8C8C;
}

.color-card {
  border: none;
  padding: 16px;
    width: 100%;
}

.color-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.color-row .lbl {
  font-size: 18px;
  font-weight: 800;
}

.color-row .lbl b {
  color: #464646;
  font-weight: 700;
  font-size: 16px;
  margin-right: 4px;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 14px;
}

.color-swatch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: 1px solid #F0F0F0;
  padding: 4px 6px;
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.color-swatch.active {
  border-color: #0F0A95;
}

.color-swatch input {
  display: none;
}

.color-swatch .dot {
  width: 16px;
  height: 16px;
}

.color-swatch input:checked+.dot {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary);
}

.color-swatch span {
  font-size: 11px;
  color: var(--text-500);
}

.spec-table {
  border: 1px solid #F0F0F0;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 23px;
}

.spec-table .row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid #F0F0F0;
  gap: 0px;
  padding: 18px 6px;
  direction: rtl;
  text-align: right;
}

.spec-table .row .lbl {
  white-space: nowrap;
  color: #464646;
  font-weight: 400;
  font-size: 14px;
}

.spec-table .row .val {
  color: #000000;
  font-size: 15px;
  font-weight: 700;
}


.spec-table .row:last-child {
  border-bottom: none;
}

.spec-table .lbl {
  color: var(--text-500);
}

.spec-table .val {
  font-weight: 700;
  color: var(--text-900);
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.gallery-main {
  width: 100%;
  max-width: 370px;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.thumb {
  width: 62px;
  height: 62px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb:hover {
  transform: translateY(-2px);
  border-color: #b8bcc5;
}

.thumb.active {
  border-color: var(--primary);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#mainProductImage {
  transition: opacity 0.13s ease;
}

.buy-box {
  width: 100%;
  max-width: 360px;
  direction: rtl;
  font-family: inherit;
}

.seller-card {
  background: #ffffff;
  border: 1px solid #EAEAEA;
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
}

.seller-top-box {
  background-color: #F8F9FA;
  border-radius: 12px;
  padding: 14px 14px 6px;
}

.seller-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #EFEFEF;
  gap: 8px;
}

.seller-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.shop-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.seller-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-name-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seller-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
}

.stock-subtitle {
  display: block;
  font-size: 11.5px;
  color: #464646;
  margin-top: 8px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}


#all-sellers-section {
  scroll-margin-top: 100px;
}


.all-sellers-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #3B28CC;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  margin-top: 2px;
}

.all-sellers-link svg {
  stroke: #3B28CC;
}

.seller-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #EFEFEF;
  justify-content: space-between;
  border-radius: 10px;
  font-size: 13.5px;
  color: #333333;
  gap: 9px;
  height: 88px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.seller-row.last-row {
  border-bottom: none;
  padding-bottom: 8px;
}

.seller-row .row-label {
  font-weight: 600;
  color: #2D2D2D;
  margin-left: 6px;
}

.seller-row .grade-val {
  color: #3B28CC;
  font-weight: 700;
}

.warranty-text {
  font-weight: 600;
  color: #333333;
}

.price-section {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 12px;
  margin: 47px 0 32px;
  direction: rtl;
}

.current-price-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.price-main-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.old-price-line {
  display: flex;
  justify-content: flex-start;
  padding-right: 2px;
}

.old-price-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2px;
}

.old-price {
  font-size: 13px;
  font-weight: 500;
  color: #AFAFAF;
  text-decoration: line-through;
  white-space: nowrap;
}

.final-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.final-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}


.final-price .amount {
  font-size: 19px;
  font-weight: 500;
  color: #000000;
}

.final-price .currency {
  font-size: 13px;
  font-weight: 500;
  color: #000000;
}

.discount-badge {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 10px;
  background: #FF025A;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.add-cart-btn {
  width: 100%;
  height: 46px;
  background-color: #FF0055;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.add-cart-btn:hover {
  background-color: #E6004C;
}

.add-cart-btn:active {
  transform: scale(0.99);
}


.add-cart-btn:hover {
  background: #fff;
  color: #000000;
  border: 1px solid #C8C8C8;
}

.add-cart-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Sellers section ---------- */
.section-card {
  padding: 37px;
  margin: 22px 0;
  padding-bottom: 37px;
  border-bottom: 1px solid #E0E0E0;
  /* border-radius: 8px; */
}

/*.section-card:last-child {
  border-bottom: none;
}*/

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

    .section-head::before {
        content: "";
        width: 6px;
        height: 6px;
        background: #000;
        border-radius: 50%;
        flex-shrink: 0;
    }

.section-head svg {
  width: 24px;
  height: 24px;
}


.seller-row:last-child {
  margin-bottom: 0;
}

.sr-seller {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.sr-seller .name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
}

.sr-seller .name svg {
  width: 14px;
  height: 14px;
  color: var(--text-500);
}

.sr-seller .grade {
  font-size: 14px;
  color: #2D2D2D;
  font-weight: 400;
}

.sr-seller .grade b {
  color: #0F0A95;
  font-weight: 400;
  font-size: 12px;
}

.sr-ship {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-500);
  min-width: 150px;
}

.sr-ship b {
  color: #000000;
  font-weight: 700;
  font-size: 16px;
}

.sr-guarantee {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0%;
  color: #464646;

}

.sr-price {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  min-width: 150px;
}

.sr-price .row1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sr-price .old {
  font-size: 14px;
  color: #AFAFAF;
  text-decoration: line-through;
}

.sr-price .final {
  font-size: 16.5px;
  font-weight: 700;
  color: #000000;
}

.sr-btn {
  background: #FF025A;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 34px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sr-btn:hover {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}

.sr-btn svg {
  width: 15px;
  height: 15px;
}

.tabs-bar {
  display: flex;
  gap: 60px;
  border-bottom: 1px solid var(--border);
  background: #F8F8F8;
  border-radius: 10px;
  margin: 22px 0;
  padding: 0 37px;
}

.product-tabs {
  width: 80%;
}

.tab-btn {
  background: none;
  border: none;
  padding: 14px 2px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-500);
  position: relative;
}

.tab-btn.active {
  border-bottom: 1px solid #0F0A95
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}


.section-card h4 {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0%;

}

.tech-list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #fafbfc;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.tech-list .lbl {
  color: #464646;
  font-size: 14px;
  font-weight: 400;
}

.tech-list .val {
  font-weight: 700;
  color: #000000;
  font-size: 16px;
}

.show-more {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  color: #0F0A95;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px;
}

.show-more svg {
  width: 14px;
  height: 14px;
  transition: .2s;
}

.show-more.open svg {
  transform: rotate(180deg);
}

.tech-extra {
  display: none;
}

.tech-extra.show {
  display: block;
}

.review-text p {
  font-size: 13.8px;
  line-height: 2.1;
  color: var(--text-700);
  margin: 0 0 14px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.pc-box {
  border-radius: var(--radius-sm);
  padding: 18px;
}

.pc-box.pros {
  background: #F8F8F8;
  display: flex;
  align-items: flex-start;
  gap: 33px;
  border-radius: 10px;
}

.pc-box.cons {
  background: #F8F8F8;
  display: flex;
  align-items: flex-start;
  gap: 33px;
  border-radius: 10px;
}

.pc-box .pc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.pc-box.pros .pc-head {
  color: var(--green);
}

.pc-box.cons .pc-head {
  color: var(--red);
}

.pc-box ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pc-box li {
  font-size: 13px;
  color: var(--text-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-box li::before {
  content: "•";
  font-size: 16px;
  line-height: 0;
}

.pc-box.pros li::before {
  color: var(--green);
}

.pc-box.cons li::before {
  color: var(--red);
}

/* ---------- Ratings summary ---------- */
.review-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.rate-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 14px;
  padding: 21px 49px;
  background: #F8F8F8;
  border-radius: 10px;
}

.add-review-btn {
  background: transparent;
  border: 1px solid #0F0A95;
  color: #000000;
  border-radius: 10px;
  padding: 8px 53px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.add-review-btn svg {
  width: 15px;
  height: 15px;
}

.rate-score {
  display: flex;
  align-items: center;
  gap: 55px;
}

.rate-score .big {
  font-size: 40px;
  color: #0F0A95;
  font-weight: 800;
}

.rate-score .meta {
  font-size: 16px;
  color: #464646;
  text-align: left;
}

.rate-score .stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.rate-score .stars svg {
  width: 13px;
  height: 13px;
  color: #0F0A95;
}

.review-item {
  padding: 16px;
  border: 1px solid #F0F0F0;
  margin-bottom: 15px;
  border-radius: 10px;
}


.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-direction: row-reverse;
}

.review-stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}

.review-star {
  width: 38px;
  height: 38px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #0F0A95;

  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

/* آیکن ستاره */
.review-star svg {
  width: 20px;
  height: 20px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* حالت انتخاب‌شده */
.review-star.is-selected {
  color: #ffffff;
  background-color: #0F0A95;
  border-color: #0F0A95;
}

.review-star.is-selected svg {
  fill: #ffffff;
  stroke: #ffffff;
}


.review-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #646464;
}

.review-body {
  font-size: 14px;
  color: #000;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.9;
}

.top-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 7px;
    flex-wrap: wrap;
}

.review-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-tag {
  font-size: 11.5px;
  font-weight: 400;
  padding: 5px 10px;
}

.review-tag.pos {
  background: #0F0A95;
  color: #FFFFFF;
  padding: 5px 17px;
}

.review-tag.neg {
  background: #FF025A;
  color: #FFFFFF;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-actions button {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid #F0F0F0;
  color: #AFAFAF;
}

.review-actions svg {
  width: 15px;
  height: 15px;
}

.review-meta>span {
  border-right: 1px solid #AFAFAF;
  padding-right: 10px;
  margin-right: 10px;
}

/* ---------- Related products ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.p-card {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #F0F0F0;
  border-radius: 10px;
}

.p-card:first-child {
  border-left: 0;
}

.p-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 313px;
  margin-bottom: 12px;
  overflow: hidden;
}

.p-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.p-card:hover .p-card-media img {
  transform: scale(1.045);
}

.p-card-title {
  display: block;
  min-height: 42px;
  margin-bottom: 10px;
  color: var(--text-900);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
}

.p-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 8px;
}

.p-card-price {
  color: var(--text-900);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.p-card-rating {
  color: #f5a300;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.last-section {
  border: 1px solid #F0F0F0;
  padding: 37px 28px 37px 141px;
  border-radius: 8px;
}

.related-swiper {
  width: 100%;
  padding: 10px 5px 30px;
}

.related-swiper .swiper-slide {
  height: 430px;
}

.related-prev,
.related-next {
  width: 35px;
  height: 35px;
}

.related-prev::after,
.related-next::after {
  font-size: 16px;
}

.thumbs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.thumb {
  position: relative;
  width: 82px;
  height: 82px;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumb.active {
  border: 2px solid #251496;
}


/* =========================================
   More Images Overlay
========================================= */

.thumb.more-images {
  border: none;
}

.thumb.more-images img {
  filter: brightness(0.65);
}

.thumb-more-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #0F0A9580;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  color: #fff;
  font-size: 24px;
  font-weight: 700;

  transition: background 0.2s ease;
}

.thumb.more-images:hover .thumb-more-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.thumb-more-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: column;
  direction: ltr;
}

.thumb-more-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.gallery-modal-body {
  width: 100%;
  flex: 1;
  min-height: 0;

  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr) !important;
  grid-template-rows: 1fr !important;

  gap: 28px;
  padding: 24px 32px;

  direction: ltr;
  overflow: hidden;
}

/* =========================================
   Gallery Modal
========================================= */
.product-gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  padding: 20px;
  direction: rtl;
  font-family: inherit;
}

.product-gallery-modal.show {
  display: flex;
}

.product-gallery-modal__content {
  position: relative;
  width: min(1180px, 96vw);
  height: min(650px, 90vh);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* =========================================
   Modal Header
========================================= */
.gallery-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 28px 0;
  border-bottom: 1px solid #EDEDED;
  min-height: 56px;
}

.gallery-modal-close {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  transition: color 0.2s ease;
}

.gallery-modal-close:hover {
  color: #111;
}

.gallery-modal-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-modal-tabs .tab-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.gallery-modal-tabs .tab-item {
  font-size: 13px;
  font-weight: 600;
  color: #0F0A95;
  padding: 2px 8px 6px;
  border-bottom: 2px solid #0F0A95;
}


.gallery-modal-preview-col {
  position: relative;
  min-width: 0;
  min-height: 0;

  display: flex !important;
  align-items: center;
  justify-content: center;

  grid-column: 1;
  grid-row: 1;
}

.gallery-modal-main-img-wrap {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px 60px;
}

.gallery-modal-main-img-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.gallery-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a202c;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.gallery-modal-arrow:hover {
  background: #f8f9fa;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.gallery-modal-prev {
  left: 4px;
}

.gallery-modal-next {
  right: 4px;
}

/* =========================================
   Right: Title & Thumbnail Grid
========================================= */
.gallery-modal-list-col {
  min-width: 0;
  min-height: 0;

  display: flex !important;
  flex-direction: column;

  grid-column: 2;
  grid-row: 1;

  direction: rtl;
  overflow-y: auto;
  overflow-x: hidden;
}

.gallery-modal-product-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
  line-height: 1.6;
  text-align: right;
}

.gallery-modal-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 82px);
  justify-content: start;
  gap: 12px;

  direction: rtl;
}


.gallery-modal-thumb {
  width: 82px;
  height: 82px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-modal-thumb:hover {
  border-color: #93c5fd;
}

.gallery-modal-thumb.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}


/* =========================================
   Close Button
========================================= */

.gallery-modal-close {
  position: absolute;

  top: 32px;
  left: 24px;

  width: 34px;
  height: 34px;

  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: #777;

  z-index: 5;
}

.gallery-modal-close:hover {
  color: #111;
}


/* =========================================
   Modal Main Image
========================================= */

.gallery-modal-main {
  position: relative;

  flex: 1;

  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px 90px;
}

.gallery-modal-main img {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  transition: opacity 0.2s ease;
}


/* =========================================
   Modal Arrows
========================================= */

.gallery-modal-arrow {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: #fff;

  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #173d82;

  cursor: pointer;

  z-index: 2;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-modal-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.gallery-modal-prev {
  left: 30px;
}

.gallery-modal-next {
  right: 30px;
}


/* =========================================
   Modal Thumbnails
========================================= */

.gallery-modal-thumbs {
  display: flex;

  gap: 14px;

  padding: 16px 30px 24px;

  overflow-x: auto;

  flex-shrink: 0;

  direction: ltr;
}

.gallery-modal-thumb {
  width: 82px;
  height: 82px;

  padding: 0;

  border: 1px solid #d7dce5;
  border-radius: 7px;

  background: #fff;

  overflow: hidden;

  cursor: pointer;

  flex-shrink: 0;
}

.gallery-modal-thumb img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

.gallery-modal-thumb.active {
  border: 2px solid #0099ff;
}

.mobile-product-title,
.mobile-gallery-counter {
  display: none;
}


.color-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  margin-bottom: 14px;
}

.mobile-color-title {
  color: #222;
  font-size: 16px;
  font-weight: 700;
}

.mobile-color-title span {
  margin-right: 4px;
  color: #555;
  font-weight: 500;
}

.gallery-nav-arrows {
  display: none;
}

.color-swatches-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
}

.color-swatches-wrap .color-swatch {
  min-width: 0;
  height: 33px;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #F0F0F0;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.color-swatches-wrap .color-swatch:hover {
  border-color: #bdbdbd;
}

.color-swatches-wrap .color-swatch.active {
  border-color: #251496;
  box-shadow: 0 0 0 1px #251496 inset;
}

.color-swatches-wrap .color-swatch input {
  display: none;
}

.color-swatches-wrap .color-name {
  color: #222;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.color-swatches-wrap .color-box {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 17px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, .12);
}

.review-section-toggle {
  display: none;
}

.cart-btn {
  position: relative;
}

.cart-count {
    position: absolute;
  top: 7px;
    left: 69px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3B28CC;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
}

@media (max-width:1080px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {

  .site-header {
    display: none !important;
  }

  .page {
    padding: 0 12px 32px;
  }

  .top-row,
  .product-info-frame,
  .specs-panel,
  .title-block {
    display: contents;
  }

  .section-card {
    width: 100%;
    padding: 16px 12px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .section-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
  }

  .section-head svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
  }


  /* =========================
       SELLER ROW
    ========================= */

  .seller-row {
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 10px;

    padding: 14px;
    margin-bottom: 10px;
    border-top: 1.04px solid #FFFFFF !important;
  }

  .seller-top-box {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 27px;
}

  .seller-row:last-child {
    margin-bottom: 0;
  }


  /* =========================
       SELLER
    ========================= */

  .sr-seller {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    min-width: 0;
    padding-bottom: 10px;

    border-bottom: 1px solid #f0f0f0;
  }

  .sr-seller .name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
  }

  .sr-seller .grade {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
  }

  .sr-seller .grade b {
    color: #159447;
    font-weight: 700;
  }


  /* =========================
       SHIPPING
    ========================= */

  .sr-ship {
    grid-column: 1;
    grid-row: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;

    min-width: 0;
  }

  .sr-ship span {
    font-size: 11px;
    line-height: 1.5;
    color: #777;
    white-space: nowrap;
  }

  .sr-ship span:first-child {
    color: #333;
  }


  /* =========================
       GUARANTEE
    ========================= */

  .sr-guarantee {
    grid-column: 2;
    grid-row: 2;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-width: 0;
    text-align: right;
  }

  .sr-guarantee span {
    font-size: 10px;
    line-height: 1.7;
    color: #666;
    white-space: nowrap;
  }


  /* =========================
       PRICE
    ========================= */

  .sr-price {
    grid-column: 1 / -1;
    grid-row: 3;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-width: 0;
    padding-top: 10px;

    border-top: 1px solid #f0f0f0;
  }

  .sr-price .row1 {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
    white-space: nowrap;
  }

  .discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 27px;
    height: 21px;
    padding: 0 4px;

    border-radius: 5px;
    background: #eaf7ef;
    color: #168548;

    font-size: 10px;
    font-weight: 700;
    box-sizing: border-box;
  }

  .sr-price .old {
    font-size: 14px;
    color: #AFAFAF;
    text-decoration: line-through;
    white-space: nowrap;
  }

  .sr-price .final {
    font-size: 15px;
    font-weight: 800;
    color: #222;
    white-space: nowrap;
  }


  .sr-btn {
    grid-column: 1 / -1;
    grid-row: 4;

    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border: 0;
    border-radius: 9px;

    background: #0F0A95;
    color: #fff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
  }

  .sr-btn span {
    white-space: nowrap;
  }

  .icon-block {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: flex-end;
    background: #fff;
    margin: 0 -12px;
    padding: 10px 12px;
    
  }

  .gallery {
    order: 3;
  }

  .gallery-main {
    height: 280px;
  }

  .pdp-title {
    order: 4;
    font-size: 20px;
  }

  .pdp-subtitle {
    order: 4;
  }


  .color-card {
    order: 5;
  }

  .buy-box {
    order: 6;
    position: static;
  }

  .spec-table {
    order: 7;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seller-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sr-price {
    align-items: flex-start;
  }

  body {
    overflow-x: hidden;
    padding-bottom: 86px;
    background: #fff;
  }

  .page,
  .main-area,
  .product-content-column {
    width: 100%;
    max-width: 100%;
  }

  .main-area {
    display: block;
    padding: 0;
    margin: 0;
  }

  .product-content-column {
    display: flex;
    flex-direction: column;
  }

.pdp-title,
.pdp-subtitle{
display: none;
}


  .top-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 12px 16px 0;
  }

  .icon-block {
    width: 100%;
    display: flex;
    gap: 31px;
    justify-content: center;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e2e2e2;
 
    background: #fff;
  }

  .icon-btn svg {
    width: 19px;
    height: 19px;
  }

  .product-info-frame {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
  }

  .gallery {
    order: 1;
    width: 100%;
    margin: 14px 0 0;
  }

  .mobile-product-title {
    order: 2;
    display: block;
    width: 100%;
    margin-top: 14px;
    text-align: right;
  }

  .specs-panel {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .gallery-main {
    width: 100%;
    height: 417px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .2s ease;
  }

  .mobile-pdp-title {
    margin: 0;
    color: #171717;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.9;
  }

  .mobile-pdp-subtitle {
    margin: 3px 0 13px;
    color: #73737A;
    font-size: 14px;
    direction: ltr;
    font-weight: 400;
    text-align: right;
  }

  .mobile-review-button {
    width: 100%;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
    background: #fff;
    color: #251496;
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-review-button svg {
    width: 17px;
    height: 17px;
  }

  .mobile-gallery-counter {
    width: 69px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 9px auto 9px 0;
    padding: 0 7px;
    border-radius: 22px;
    background: #b7b7b7;
  }

  .mobile-gallery-progress {
    width: 49px;
    height: 5px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
  }

  .mobile-gallery-progress span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: #1800a8;
    transition: width .25s ease;
  }

  .mobile-gallery-counter>span:last-child {
    color: #fff;
    font-size: 10px;
  }

  .thumbs {
    display: none;
  }

  .color-card {
    width: 100%;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-color-title {
    margin-bottom: 12px;
    color: #222;
    font-size: 14px;
    text-align: right;
  }

  .mobile-color-title b {
    font-weight: 700;
  }

  .mobile-color-selector {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    direction: rtl;
  }

  .mobile-color-selector .color-swatches {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 7px;
    overflow: hidden;
  }

  .mobile-color-selector .color-swatch {
    flex: 1 1 0;
    min-width: 0;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 0 7px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }

  .mobile-color-selector .color-swatch input {
    display: none;
  }

  .mobile-color-selector .color-name {
    overflow: hidden;
    color: #333;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-color-selector .dot {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    outline: 1px solid #d0d0d0;
  }

  .mobile-color-selector .color-swatch.active {
    border-color: #251496;
    box-shadow: 0 0 0 1px #251496 inset;
  }

  .color-arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #222;
    border-radius: 50%;
    background: #fff;
    color: #222;
  }

  .color-arrow svg {
    width: 17px;
    height: 17px;
  }

  .color-arrow-right svg {
    transform: rotate(180deg);
  }

  .spec-table {
    margin-top: 18px;
  }


.price-section,
.add-cart-btn{
  display: none;
}

.buy-box {
    width: 100%;
    padding: 24px 0;
    max-width: 100%;
    direction: rtl;
    font-family: inherit;
}

.seller-card {
  background: #ffffff;
  border:none;
  border-radius: 16px;
  padding: 0;
  box-sizing: border-box;
}

  .section-card {
    width: 100%;
    margin-top: 14px;
    padding: 16px;
  }

  .mobile-add-cart-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    min-height: 85px;
    padding: 9px 32px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid #dedede;
    background: #fff;
    box-shadow: 0 -5px 18px rgba(0, 0, 0, .1);
  }

  .mobile-price-row {
    display: flex;
    align-items: center;

    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .mobile-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 25px;
    border-radius: 11px;
    background: #ff025a;
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .mobile-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-direction: row-reverse;
  }

  .mobile-current-price {
    color: #000000;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-old-price {
    color: #999;
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
    white-space: nowrap;
  }

  .mobile-add-cart-btn {
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    padding: 12.54px 88.86px;
    border-radius: 8px;
    background: #FF025A;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .color-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    direction: rtl;
  }

  .mobile-color-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
  }

  .mobile-color-title span {
    font-weight: 500;
    color: #555;
    margin-right: 4px;
  }

  .gallery-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gallery-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #222;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
  }

  .gallery-arrow-btn:active {
    background: #f0f0f0;
    transform: scale(0.95);
  }

  .gallery-arrow-btn svg {
    width: 16px;
    height: 16px;
    stroke: #222;
  }

  .color-swatches-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    direction: rtl;
  }

  .color-swatch {
    flex: 1 1 0;
    min-width: 105px;
    height: 42px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    direction: rtl;
  }

  .color-swatch {
    flex: 1 1 0;
    min-width: 105px;
    height: 42px;

    border {
      display: none;
    }
  }

  .color-swatch.active {
    border-color: #222;
  }

  .color-swatch .color-name {
    font-size: 12px;
    color: #222;
    font-weight: 500;
  }

  .color-swatch .color-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
  }


  .mobile-review-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f4f4;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    margin: 12px 0 16px auto;
  }

  .add-review-btn {
    background: transparent;
    border: 1px solid #0F0A95;
    color: #000000;
    border-radius: 10px;
    padding: 8px 40px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .product-tabs {
    width: 100%;
  }


  .rate-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 11px;
    padding: 21px 16px;
    background: #F8F8F8;
    border-radius: 10px;
  }

  .add-review-btn {
    background: transparent;
    border: 1px solid #0F0A95;
    color: #000000;
    border-radius: 10px;
    padding: 8px 24px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .related-swiper .swiper-slide {
    height: 285px;
  }

  .p-card-media {
    height: 165px;
  }

  #tab-review {
    position: relative;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }


  #tab-review::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0),
        #fff 80%);
    pointer-events: none;
    z-index: 1;
  }

  .review-section-toggle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    right: 0;
    bottom: 20px;
    transform: translateX(-8%);
    z-index: 2;
    border: none;
    background: transparent;
    color: #17458F;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }


  .review-section-toggle__icon {
    font-size: 18px;
    line-height: 1;

    transition: transform 0.3s ease;
  }

  #tab-review.is-expanded {
    max-height: 5000px;
  }


  #tab-review.is-expanded::after {
    display: none;
  }


  #tab-review.is-expanded .review-section-toggle {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 30px 0;
  }


  #tab-review.is-expanded .review-section-toggle__icon {
    transform: rotate(180deg);
  }

  .rate-score .meta {
    font-size: 14px;
    color: #464646;
    text-align: left;
  }

  .rate-score .big {
    font-size: 36px;
    color: #0F0A95;
    font-weight: 800;
  }

  .rate-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 11px;
    padding: 9px 16px;
    background: #F8F8F8;
    border-radius: 10px;
  }

  .tab-btn {
    font-size: 11.5px;
  }

  .spec-table .row .val {
    color: #000000;
    font-size: 12px;
    font-weight: 700;
  }

  .spec-table .row {
    display: grid;
    grid-template-columns: 162px minmax(0, 1fr);
  }

  .cart-modal {
    align-items: flex-end;
  }

  .cart-modal-box {
    width: 100%;
    max-width: none;

    padding: 10px 12px 18px;

    border-radius: 20px 20px 0 0;

    transform: translateY(100%);

    box-shadow:
      0 -10px 40px rgba(0, 0, 0, 0.15);

    transition:
      transform 0.35s cubic-bezier(.22, .61, .36, 1);
  }

  .cart-modal.active .cart-modal-box {
    transform: translateY(0);
  }


  .cart-modal-handle {
    display: block;
  }


  .cart-modal-header {
    padding-bottom: 12px;
  }


  .cart-success {
    font-size: 13px;
  }

  .cart-product {
    padding: 13px 0;
  }


  .cart-product-image {
    flex-basis: 68px;

    width: 68px;
    height: 68px;
  }


  .cart-product-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: #171717;
  }


  .cart-total {
    margin-top: 10px;
  }


  .cart-modal-actions {
    flex-direction: column;

    gap: 7px;

    margin-top: 10px;
  }


  .cart-modal-actions button {
    width: 100%;
    height: 40px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 700;
  }



  .cart-total strong {
    color: #171717;
    font-size: 15px;
    font-weight: 700;
  }


  .cart-total span {
    color: #646464;
    font-size: 13px;
    font-weight: 500;
  }

  .cart-view-btn {
    order: 1;
  }

  .cart-continue-btn {
    order: 2;
  }

  .cart-product-variant {
    font-size: 12px;
    font-weight: 400;
    color: #8C8C8C;
  }


  .cart-product-variant span {
    color: #171717;
    font-size: 12px;
    font-weight: 700;
  }

  .cart-product-price {
    margin-top: 7px;
    color: #171717;
    font-size: 15px;
    font-weight: 700;
  }


   .review-modal-overlay {
    align-items: flex-start;
    padding: 0;
  }

  .review-modal {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;

    overflow-y: auto;
    border-radius: 9px;
    padding: 20px 16px 16px;
  }

  .review-modal-header {
    align-items: flex-start;
  }

  .review-modal-header h2 {
    font-size: 18px;
  }

  .review-modal-header p {
    margin-top: 8px;
    font-size: 12px;
  }

  .review-modal-close {
    display: flex;
  }

  .review-rating-row {
    justify-content: flex-start;
    margin-top: 23px;
    gap: 5px;
  }

  .review-rating-label {
    font-size: 12px;
  }

  .review-rating-text {
    font-size: 13px;
  }

  .review-star {
    width: 26px;
    height: 26px;
  }

  .review-star svg {
    width: 25px;
    height: 25px;
  }

  .review-modal-divider {
    margin: 23px 0 24px;
  }

  .review-form-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .review-form-fields {
    gap: 23px;
  }

  .review-field label {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .review-field input {
    height: 46px;
  }

  .review-field textarea {
    min-height: 99px;
  }

  .review-options-layout {
    gap: 25px;
  }

 .review-option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 13px;

  font-size: 15px;
  font-weight: 700;
}

  .review-option-input input {
    height: 39px;
  }

  .review-tags {
    justify-content: flex-start;
    margin-top: 0;
  }

  .review-tag {
    min-height: 31px;
    font-size: 11px;
  }

  .review-modal-footer {
    margin-top: 28px;
    padding-bottom: 0;
  }

  .review-submit-btn {
    height: 53px;
    font-size: 14px;
  }

  .review-actions button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 10px;
    border: 1px solid #F0F0F0;
    color: #AFAFAF;
}

   .mobile-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    direction: ltr;
    border-bottom: 1px solid #F0F0F0
  }

  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mobile-header-btn,
  .mobile-header-close {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    background: transparent;
    color: #222;

    text-decoration: none;
    cursor: pointer;
  }

  .mobile-header-close {
    color: #222;
  }

  .mobile-header-btn svg,
  .mobile-header-close svg {
    display: block;
  }

  .favorite-toast {
    position: fixed;
    top: 106px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 350px;
    padding: 12px 12px;
   text-align: center;
}
  
}

/* Mobile product search: additive styles; original frontend selectors remain unchanged. */
.mobile-search-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: flex-start;
  padding: 18px 14px;
  background: rgba(20, 16, 45, .38);
  backdrop-filter: blur(3px);
}

.mobile-search-panel.is-open { display: flex; }

.mobile-search-form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(24, 16, 85, .18);
  direction: rtl;
}

.mobile-search-form input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e7e5f3;
  border-radius: 11px;
  outline: none;
}

.mobile-search-form input:focus { border-color: #251496; }
.mobile-search-submit {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #251496;
}
.mobile-search-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #646464;
  font-size: 27px;
  line-height: 1;
}

.color-swatch.is-unavailable {
  opacity: .42;
  cursor: not-allowed;
  filter: grayscale(.8);
}
