/* =========================================================
   Noor Shop - Product details
   ========================================================= */
.ns-product {
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 100% 0, rgba(136, 147, 70, 0.08), transparent 30%),
    #f8faf9;
}

.ns-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.ns-product__gallery,
.ns-product__summary,
.ns-product__details {
  min-width: 0;
}

.ns-product__gallery-card {
  position: sticky;
  top: 112px;
  padding: 18px;
  border: 1px solid var(--ns-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 28, 31, 0.08);
}

.ns-product__main-slider {
  overflow: hidden;
  border-radius: 18px;
  background: #f1f5f3;
}

.ns-product__main-image {
  display: block;
  width: 100%;
  height: clamp(420px, 48vw, 620px);
  object-fit: contain;
  padding: 18px;
}

.ns-product__zoom {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--ns-ink) !important;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(7, 28, 31, 0.13);
}

.ns-product__thumbs {
  margin-top: 14px;
}

.ns-product__thumbs:empty {
  display: none;
}

.ns-product__thumb {
  padding: 4px;
  cursor: pointer;
}

.ns-product__thumb img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #f1f5f3;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ns-product__thumb.slick-current img,
.ns-product__thumb:hover img {
  border-color: var(--ns-green-soft);
  transform: translateY(-1px);
}

.ns-product__summary {
  padding-top: 8px;
}

.ns-product__category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ns-green) !important;
  background: rgba(136, 147, 70, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.ns-product__title {
  margin: 0 0 16px;
  color: var(--ns-ink);
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 750;
  line-height: 1.12;
}

.ns-product__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ns-product__stars {
  display: inline-flex;
  gap: 4px;
  color: #c4a35a;
  font-size: 14px;
}

.ns-product__rating-copy {
  color: var(--ns-muted);
  font-size: 13px;
  font-weight: 600;
}

.ns-product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.ns-product__price-current {
  color: var(--ns-green);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
}

.ns-product__price-old {
  color: #9aa6a8;
  font-size: 1.05rem;
}

.ns-product__discount {
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: #a84435;
  font-size: 12px;
  font-weight: 700;
}

.ns-product__excerpt {
  margin-bottom: 26px;
  color: var(--ns-ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.ns-product__buy-box {
  padding: 22px;
  border: 1px solid var(--ns-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7, 28, 31, 0.06);
}

.ns-product__field {
  margin-bottom: 18px;
}

.ns-product__label {
  display: block;
  margin-bottom: 9px;
  color: var(--ns-ink);
  font-size: 13px;
  font-weight: 700;
}

.ns-product__select {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 46px 0 16px;
  border: 1px solid rgba(7, 28, 31, 0.13) !important;
  border-radius: 13px;
  color: var(--ns-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 54px;
  background-color: #fbfcfc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232a4a11' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ns-product__select::-ms-expand {
  display: none;
}

.ns-product__select:hover {
  border-color: rgba(42, 74, 17, 0.35) !important;
}

.ns-product__select:focus {
  border-color: var(--ns-green-soft) !important;
  box-shadow: 0 0 0 3px rgba(136, 147, 70, 0.13);
  background-color: #fff;
}

.ns-product__select option {
  color: var(--ns-ink);
  background: #fff;
  font-weight: 500;
}

.ns-product__select option:disabled {
  color: var(--ns-muted);
}

html[lang="ar"] .ns-product__select,
html[dir="rtl"] .ns-product__select {
  padding: 0 16px 0 46px;
  background-position: left 16px center;
}

.ns-product__buy-box form {
  display: block;
  width: 100%;
  position: static;
}

.ns-product__buy-row {
  display: flex;
  position: static;
  align-items: stretch;
  width: 100%;
  margin-top: 4px;
  gap: 12px;
}

.ns-product__quantity {
  flex: 0 0 112px;
  width: 112px;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 54px;
  border: 1px solid rgba(7, 28, 31, 0.13);
  border-radius: 13px;
  background: #fbfcfc;
}

.ns-product__quantity button {
  width: 34px;
  height: 100%;
  flex: 0 0 34px;
  border: 0;
  color: var(--ns-ink);
  background: transparent;
  font-size: 17px;
  cursor: pointer;
}

.ns-product__quantity input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: var(--ns-ink);
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

.ns-product__quantity input::-webkit-inner-spin-button,
.ns-product__quantity input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.ns-product__cart {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #2a4a11 0%, #456724 100%);
  box-shadow: 0 10px 24px rgba(42, 74, 17, 0.24);
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-product__cart .ns-product-card__cart-label {
  white-space: nowrap;
}

.ns-product__cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(42, 74, 17, 0.3);
}

.ns-product__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}

.nice-select {
  float: none !important;
}
.ns-product__wishlist,
.ns-product__share-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--ns-line);
  border-radius: 11px;
  color: var(--ns-ink) !important;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ns-product__wishlist:hover,
.ns-product__share-btn:hover {
  color: var(--ns-green) !important;
  border-color: rgba(42, 74, 17, 0.25);
  background: rgba(136, 147, 70, 0.07);
}

.ns-product__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.ns-product__benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 13px;
  color: var(--ns-ink-soft);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 650;
}

.ns-product__benefit i {
  color: var(--ns-green-soft);
  font-size: 15px;
}

.ns-product__details {
  margin-top: 70px;
  overflow: hidden;
  border: 1px solid var(--ns-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ns-shadow);
}

.ns-product__tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--ns-line);
  background: #f6f8f7;
}

.ns-product__tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 11px;
  color: var(--ns-muted) !important;
  font-size: 14px;
  font-weight: 700;
}

.ns-product__tab.active {
  color: #fff !important;
  background: var(--ns-ink);
}

.ns-product__tab-content {
  padding: clamp(24px, 4vw, 42px);
}

.ns-product__description {
  max-width: 78ch;
  color: var(--ns-ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.ns-product__reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 42px;
}

.ns-product__section-title {
  margin: 0 0 20px;
  color: var(--ns-ink);
  font-size: 1.35rem;
}

.ns-product__review-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ns-line);
}

.ns-product__rating-number {
  color: var(--ns-ink);
  font-size: 2.25rem;
  font-weight: 800;
}

.ns-product__reviews .ltn__comment-item {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--ns-line);
  border-radius: 15px;
  background: #fbfcfc;
}

.ns-product__review-form {
  align-self: start;
  padding: 24px;
  border-radius: 17px;
  background: #f6f8f7;
}

.ns-product__review-form input,
.ns-product__review-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 28, 31, 0.12);
  border-radius: 12px;
  background: #fff;
}

.ns-product__review-form textarea {
  min-height: 130px;
}

.ns-product__review-submit {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--ns-green);
  font-weight: 700;
}

.ns-related {
  padding: 0 0 86px;
  background: #f8faf9;
}

.ns-related__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.ns-related__eyebrow {
  margin: 0 0 7px;
  color: var(--ns-green-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ns-related__title {
  margin: 0;
  color: var(--ns-ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.ns-related__link {
  color: var(--ns-green) !important;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 991px) {
  .ns-product {
    padding: 54px 0 70px;
  }

  .ns-product__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ns-product__gallery-card {
    position: static;
  }

  .ns-product__main-image {
    height: min(70vw, 560px);
  }
}

@media (max-width: 767px) {
  .ns-product {
    padding: 34px 0 56px;
  }

  .ns-product__gallery-card {
    padding: 10px;
    border-radius: 18px;
  }

  .ns-product__main-slider {
    border-radius: 13px;
  }

  .ns-product__main-image {
    height: 82vw;
    max-height: 430px;
    padding: 8px;
  }

  .ns-product__buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ns-product__quantity {
    flex: 0 0 auto;
    width: 132px;
  }

  .ns-product__benefits {
    grid-template-columns: 1fr;
  }

  .ns-product__details {
    margin-top: 48px;
    border-radius: 17px;
  }

  .ns-product__tabs {
    overflow-x: auto;
  }

  .ns-product__tab {
    flex: 0 0 auto;
  }

  .ns-product__reviews-grid {
    grid-template-columns: 1fr;
  }

  .ns-related__header {
    align-items: start;
    flex-direction: column;
  }
}
