/* Sahtain PDP — Step 2: product info column (match sahtainwater.com) */

.sahtain-pdp-info {
  --spi-brand: #013e87;
  --spi-muted: rgba(1, 62, 135, 0.55);
  --spi-line: #e5e7eb;
  --spi-radius: 11px;
  color: var(--spi-brand);
}

@media (min-width: 992px) {
  .sahtain-pdp-info.col-product-info {
    position: sticky;
    top: calc(var(--sahtain-header-top, 18px) + var(--sahtain-header-h, 72px) + 12px);
    align-self: flex-start;
    padding-inline-end: 1.25rem;
  }
}

/* Hidden vs reference (or temporary exclusions) */
.sahtain-pdp-info .product-count,
.sahtain-pdp-info .div-product-sku,
.sahtain-pdp-info .sahtain-pdp-info__share-bottom,
.sahtain-pdp-info .sahtain-pdp-info__loyalty,
.sahtain-pdp-info .border-product {
  display: none !important;
}

/* Apple Pay: desktop hidden; mobile matches reference */
@media (min-width: 992px) {
  .sahtain-pdp-info .sahtain-pdp-info__apple-pay,
  .sahtain-pdp-info apple-pay-button,
  .sahtain-pdp-info .apple-pay-button,
  .sahtain-pdp-info .apple-pay-quick-checkout,
  .sahtain-pdp-info .zid-apple-pay {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .sahtain-pdp-info .sahtain-pdp-info__apple-pay {
    display: block !important;
    width: 100%;
    margin-top: 0;
  }

  .sahtain-pdp-info .btn-add-to-cart,
  .sahtain-pdp-info .btn-buy-now {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 0.9375rem !important;
  }

  .sahtain-pdp-info__cta-row {
    gap: 10px;
  }

  /* Sticky purchase bar — match reference mobile addtocart-bar */
  .sahtain-pdp-info__buybox {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
  }

  .sahtain-pdp-info__buybox .sahtain-pdp-info__purchase {
    margin-top: 0;
  }

  .sahtain-pdp-info__buybox .sahtain-pdp-info__actions {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  /* Always side-by-side on mobile: أضف للسلة | اشتر الآن */
  .sahtain-pdp-info__cta-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: 100%;
  }

  .sahtain-pdp-info .btn-add-to-cart,
  .sahtain-pdp-info .btn-buy-now {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .sahtain-pdp-info .sahtain-pdp-info__apple-pay {
    width: 100% !important;
  }

  .sahtain-pdp {
    padding-bottom: 180px;
  }

  .sahtain-pdp-info__top {
    margin-top: 0.35rem;
    margin-bottom: 14px;
  }

  .sahtain-pdp-info__icon-btn,
  .sahtain-pdp-info__top > .add-to-wishlist.sahtain-pdp-info__icon-btn,
  .sahtain-pdp-info .add-to-wishlist.sahtain-pdp-info__icon-btn {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px;
    border-radius: 12px;
  }
}

/* Phone: keep Add to cart + Buy now side-by-side; Apple Pay full width below */
@media (max-width: 575.98px) {
  .sahtain-pdp-info__buybox .sahtain-pdp-info__actions {
    flex-direction: column;
    gap: 10px;
  }

  .sahtain-pdp-info__buybox .sahtain-pdp-info__cta-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 8px;
  }

  .sahtain-pdp-info__buybox .sahtain-pdp-info__apple-pay {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }

  .sahtain-pdp-info__buybox .btn-add-to-cart,
  .sahtain-pdp-info__buybox .btn-buy-now,
  .sahtain-pdp-info .btn-add-to-cart,
  .sahtain-pdp-info .btn-buy-now {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 0.875rem !important;
    padding: 0 0.5rem !important;
  }

  .sahtain-pdp {
    padding-bottom: 200px;
  }
}

/* Top icons — side by side (override global .add-to-wishlist absolute) */
.sahtain-pdp-info__top {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 5;
}

.sahtain-pdp-info__top > .add-to-wishlist.sahtain-pdp-info__icon-btn,
.sahtain-pdp-info .add-to-wishlist.sahtain-pdp-info__icon-btn {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  inset-inline-end: auto !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  z-index: auto;
  display: inline-flex !important;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border: 0.8px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.sahtain-pdp-info__icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 0.8px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0;
  flex: 0 0 48px;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.sahtain-pdp-info__icon-btn:hover {
  border-color: #d1d5db;
  color: #4b5563;
}

.sahtain-pdp-info__icon-btn .icon-heart-mask,
.sahtain-pdp-info__icon-btn a.icon-heart-mask {
  width: 18px;
  height: 18px;
  margin: 0;
  display: block;
  background-color: #1d1f1f;
}

.sahtain-pdp-share {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.sahtain-pdp-share__glyph {
  width: 18px;
  height: 18px;
  display: block;
  background-color: #000000;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='18' cy='5' r='3'/><circle cx='6' cy='12' r='3'/><circle cx='18' cy='19' r='3'/><path d='M8.59 13.51l6.83 3.98M15.41 6.51l-6.82 3.98'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='18' cy='5' r='3'/><circle cx='6' cy='12' r='3'/><circle cx='18' cy='19' r='3'/><path d='M8.59 13.51l6.83 3.98M15.41 6.51l-6.82 3.98'/></svg>") center / contain no-repeat;
}

.sahtain-pdp-share.is-open .sahtain-pdp-share__toggle {
  border-color: #e5e7eb;
}

.sahtain-pdp-share.is-open .sahtain-pdp-share__glyph {
  background-color: #000000;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>") center / contain no-repeat;
}

.sahtain-pdp-share__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 12px 32px rgba(3, 32, 70, 0.12);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top center;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.sahtain-pdp-share.is-open .sahtain-pdp-share__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sahtain-pdp-share__menu a,
.sahtain-pdp-share__menu button {
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 0 !important;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #000000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.sahtain-pdp-share__menu a:hover,
.sahtain-pdp-share__menu button:hover,
.sahtain-pdp-share__menu a:focus,
.sahtain-pdp-share__menu button:focus {
  border: 0 !important;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #000000 !important;
  opacity: 0.7;
}

.sahtain-pdp-share__menu a i,
.sahtain-pdp-share__menu a [class^="icon-"],
.sahtain-pdp-share__menu a [class*=" icon-"] {
  color: #000000 !important;
  font-size: 15px;
  line-height: 1;
}

.sahtain-pdp-share__mail,
.sahtain-pdp-share__link-icon {
  width: 15px;
  height: 15px;
  display: block;
  background-color: #000000;
}

.sahtain-pdp-share__mail {
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 7 9-7'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 7 9-7'/></svg>") center / contain no-repeat;
}

.sahtain-pdp-share__link-icon {
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M10 13a5 5 0 007.07 0l2.12-2.12a5 5 0 00-7.07-7.07L11 5'/><path d='M14 11a5 5 0 00-7.07 0L4.81 13.12a5 5 0 007.07 7.07L13 19'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M10 13a5 5 0 007.07 0l2.12-2.12a5 5 0 00-7.07-7.07L11 5'/><path d='M14 11a5 5 0 00-7.07 0L4.81 13.12a5 5 0 007.07 7.07L13 19'/></svg>") center / contain no-repeat;
}

/* Copy stack */
.sahtain-pdp-info__title,
.sahtain-pdp-info h1.sahtain-pdp-info__title {
  color: var(--spi-brand) !important;
  font-size: 1.875rem;
  font-weight: 800 !important;
  line-height: 2.5rem;
  margin: 0;
}

.sahtain-pdp-info__subtitle {
  color: var(--spi-brand) !important;
  opacity: 0.6;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  margin: 10px 0 0;
}

.sahtain-pdp-info__features {
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.sahtain-pdp-info__features:empty {
  display: none;
}

.sahtain-pdp-info__price-wrap {
  margin: 10px 0 0;
}

.sahtain-pdp-info__price,
.sahtain-pdp-info h2.product-formatted-price {
  color: var(--spi-brand) !important;
  font-size: 1.875rem !important; /* ~30px */
  font-weight: 700 !important;
  margin: 0;
  line-height: 1.25;
}

.sahtain-pdp-info__price-meta {
  margin: 0.15rem 0 0;
}

.sahtain-pdp-info__min-qty {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0.5rem 0 0;
  padding: 6px 12px;
  border-radius: var(--spi-radius);
  background: rgba(1, 62, 135, 0.06);
  color: var(--spi-brand);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.sahtain-pdp-info__min-qty strong {
  font-weight: 700;
}

.sahtain-pdp-info__min-qty-sep {
  opacity: 0.45;
}

.sahtain-pdp-info .product-formatted-price-old:empty,
.sahtain-pdp-info .product-formatted-price-discount:empty {
  display: none;
}

/* Purchase-count badge — above price */
.sahtain-pdp-sold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--spi-brand);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.sahtain-pdp-sold__fire {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}

.sahtain-pdp-sold__text {
  color: inherit;
}

.sahtain-pdp-info__desc {
  margin: 0.9rem 0 0;
  color: var(--spi-brand);
  opacity: 0.6;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  word-break: break-word;
}

.sahtain-pdp-info__readmore {
  color: var(--spi-brand) !important;
  opacity: 1;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-inline-start: 0.25rem;
  white-space: nowrap;
}

.sahtain-pdp-info__readmore:hover {
  text-decoration: underline;
}

.sahtain-pdp-info__weight {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.sahtain-pdp-info__weight .product-title {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  opacity: 0.7;
}

.sahtain-pdp-info__extras:empty,
.sahtain-pdp-info__variants:empty {
  display: none;
}

/* Buy box (qty + CTAs + Apple Pay) */
.sahtain-pdp-info__buybox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 3.75rem; /* ~60px — match reference gap under description */
}

/* Purchase */
.sahtain-pdp-info__purchase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  width: 100%;
}

.sahtain-pdp-info__qty {
  margin: 0 !important;
  width: 100%;
}

.sahtain-pdp-info__qty-label {
  display: none !important;
}

.sahtain-pdp-info .select-quantity-div > div.form-group {
  width: 100% !important;
  margin: 0 !important;
}

.sahtain-pdp-info .select-quantity-div > div.form-group > div:after,
.sahtain-pdp-info .select-quantity-div div.form-group > div:after {
  display: none !important;
  content: none !important;
}

.sahtain-pdp-info__qty-host {
  position: relative;
  width: 100%;
}

.sahtain-pdp-info__qty-host .select-quantity {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  border: 0 !important;
  padding: 0 !important;
}

.sahtain-pdp-info .sahtain-pdp-qty {
  /* Match reference: + … 1 … − in RTL (DOM: +, value, −) */
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100% !important;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 0.8px solid #e5e7eb;
  border-radius: 11px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.sahtain-pdp-info .sahtain-pdp-qty__btn {
  width: 28px;
  height: 46px;
  min-height: 46px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  color: var(--spi-brand);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 28px;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.sahtain-pdp-info .sahtain-pdp-qty__minus,
.sahtain-pdp-info .sahtain-pdp-qty__plus {
  order: unset;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.sahtain-pdp-info .sahtain-pdp-qty__btn:hover:not(:disabled),
.sahtain-pdp-info .sahtain-pdp-qty__btn:focus,
.sahtain-pdp-info .sahtain-pdp-qty__btn:focus-visible,
.sahtain-pdp-info .sahtain-pdp-qty__btn:active {
  color: var(--spi-brand);
  background: transparent;
  opacity: 0.75;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.sahtain-pdp-info .sahtain-pdp-qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sahtain-pdp-info .sahtain-pdp-qty__value {
  order: unset;
  min-width: 2rem;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--spi-brand);
  line-height: 24px;
  padding: 8px 2px;
}

.sahtain-pdp-info__actions {
  margin: 0 !important;
  width: 100%;
}

.sahtain-pdp-info__cta-row {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.sahtain-pdp-info .btn-add-to-cart,
.sahtain-pdp-info .btn-buy-now {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  border-radius: var(--spi-radius) !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important; /* ~18px */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1rem !important;
  line-height: 1.2;
}

.sahtain-pdp-info .btn-add-to-cart {
  background: var(--spi-brand) !important;
  border: 0.8px solid var(--spi-brand) !important;
  color: #fff !important;
}

.sahtain-pdp-info .btn-add-to-cart .add-to-cart-icon {
  display: none !important;
}

.sahtain-pdp-info .btn-buy-now {
  background: #fff !important;
  border: 0.8px solid var(--spi-brand) !important;
  color: var(--spi-brand) !important;
}

.sahtain-pdp-info .btn-buy-now .buy-now-icon {
  background-color: var(--spi-brand);
  width: 18px;
  height: 18px;
}

@media (max-width: 991.98px) {
  .sahtain-pdp-info {
    position: static;
    padding-top: 1.35rem;
    padding-inline-end: 0;
  }

  .sahtain-pdp-info__title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .sahtain-pdp-info__cta-row {
    flex-wrap: nowrap !important;
  }

  .sahtain-pdp-info .btn-add-to-cart,
  .sahtain-pdp-info .btn-buy-now {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .sahtain-pdp-info .btn-add-to-cart,
  .sahtain-pdp-info .btn-buy-now {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* Related products — match reference (centered title, no icon) */
.sahtain-pdp-related {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.sahtain-pdp-related__title {
  margin: 70px 0 1.5rem;
  padding: 0;
  text-align: center;
  color: var(--spi-brand, #013e87);
  font-size: 25px;
  font-weight: 700;
  line-height: 150%;
}

.sahtain-pdp-related .description-icon,
.sahtain-pdp-related .icon-uniE011 {
  display: none !important;
}

@media (max-width: 575.98px) {
  .sahtain-pdp-related__title {
    font-size: 1.25rem;
    margin-bottom: 1.15rem;
  }
}
