/* Reihanly — Product Detail Page */

.rh-pdp {
  --rh-pdp-radius: 22px;
  --rh-pdp-radius-sm: 14px;
  --rh-pdp-text: var(--luxury-text, #2a3528);
  --rh-pdp-muted: var(--luxury-text-muted, #6b7568);
  --rh-pdp-primary: var(--primary-color, #80AD01);
  --rh-pdp-primary-dark: var(--primary-color-dark, #6d9500);
  font-family: var(--rh-font, Vazir, Tahoma, sans-serif);
  color: var(--rh-pdp-text);
  background:
    radial-gradient(900px 480px at 100% -8%, rgba(var(--primary-color-rgb, 128, 173, 1), 0.14), transparent 55%),
    radial-gradient(700px 420px at 0% 18%, rgba(var(--primary-color-rgb, 128, 173, 1), 0.08), transparent 50%),
    linear-gradient(180deg, #f7faf4 0%, #f3f6ef 42%, #f7faf4 100%);
  min-height: 60vh;
  padding-bottom: calc(var(--luxury-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px) + 88px);
}

@media (min-width: 992px) {
  .rh-pdp {
    padding-bottom: 3.5rem;
  }
}

.rh-pdp__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

@media (min-width: 640px) {
  .rh-pdp__wrap {
    padding: 1.35rem 1.25rem 2.75rem;
  }
}

/* Breadcrumb */
.rh-pdp__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  color: var(--rh-pdp-muted);
}

.rh-pdp__crumb a {
  color: var(--rh-pdp-primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.rh-pdp__crumb a:hover {
  color: var(--rh-pdp-primary);
}

.rh-pdp__crumb-sep {
  opacity: 0.45;
  font-weight: 300;
}

.rh-pdp__crumb-current {
  color: var(--rh-pdp-muted);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .rh-pdp__crumb-current {
    max-width: 420px;
  }
}

/* Hero grid */
.rh-pdp__hero {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .rh-pdp__hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2rem;
    align-items: start;
  }
}

/* Gallery */
.rh-pdp__gallery {
  position: relative;
}

.rh-pdp__stage {
  position: relative;
  border-radius: var(--rh-pdp-radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 18px 48px rgba(45, 55, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .rh-pdp__stage {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 992px) {
  .rh-pdp__stage {
    aspect-ratio: 1 / 1;
    min-height: 460px;
  }
}

.rh-pdp__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.rh-pdp__stage.is-switching img {
  opacity: 0.35;
  transform: scale(0.985);
}

.rh-pdp__badges {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.rh-pdp__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--rh-pdp-primary), var(--rh-pdp-primary-dark));
  box-shadow: 0 6px 16px rgba(var(--primary-color-rgb, 128, 173, 1), 0.28);
}

.rh-pdp__badge--cash {
  background: linear-gradient(135deg, #3d9b6e, #2d7a55);
}

.rh-pdp__wish {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(45, 55, 40, 0.08) !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #c0392b !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(45, 55, 40, 0.12) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1 !important;
  font-size: 16px !important;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.rh-pdp__wish:before,
.rh-pdp__wish:after {
  content: none !important;
  display: none !important;
}

.rh-pdp__wish i,
.rh-pdp__wish .fa,
.rh-pdp__wish .fas,
.rh-pdp__wish .far,
.rh-pdp__wish .fa-solid,
.rh-pdp__wish .fa-regular {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  color: inherit !important;
}

.rh-pdp__wish:hover,
.rh-pdp__wish:focus {
  transform: scale(1.06);
  background: #fff !important;
  color: #e74c3c !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: 0 8px 22px rgba(192, 57, 43, 0.18) !important;
}

.rh-pdp__wish.is-active {
  background: #fff1f0 !important;
  color: #e74c3c !important;
  border-color: rgba(231, 76, 60, 0.25) !important;
}

.rh-pdp__wish-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0.85rem 0 0.35rem;
}

.rh-pdp__wish-row .cart-controls {
  flex: 1 1 auto;
  margin: 0 !important;
}

.rh-pdp__wish-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-width: 48px;
  height: 48px !important;
  padding: 0 1rem !important;
  border: 1px solid rgba(45, 55, 40, 0.12) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #c0392b !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.rh-pdp__wish-btn:before,
.rh-pdp__wish-btn:after {
  content: none !important;
  display: none !important;
}

.rh-pdp__wish-btn i {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  color: inherit !important;
}

.rh-pdp__wish-btn:hover,
.rh-pdp__wish-btn:focus {
  background: #fff5f4 !important;
  border-color: rgba(231, 76, 60, 0.35) !important;
  color: #e74c3c !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.rh-pdp__wish-btn.is-active {
  background: #fff1f0 !important;
  border-color: rgba(231, 76, 60, 0.35) !important;
  color: #e74c3c !important;
}

.rh-pdp__wish-btn span {
  display: none;
}

@media (min-width: 480px) {
  .rh-pdp__wish-btn {
    padding: 0 1.05rem !important;
  }
  .rh-pdp__wish-btn span {
    display: inline;
  }
}

.rh-pdp__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.rh-pdp__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(45, 55, 40, 0.06);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.rh-pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rh-pdp__thumb:hover {
  transform: translateY(-2px);
}

.rh-pdp__thumb.is-active,
.rh-pdp__thumb.active {
  border-color: var(--rh-pdp-primary);
  box-shadow: 0 8px 18px rgba(var(--primary-color-rgb, 128, 173, 1), 0.2);
}

/* Buy panel */
.rh-pdp__buy {
  position: relative;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--rh-pdp-radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 36px rgba(45, 55, 40, 0.08);
  backdrop-filter: blur(14px);
}

@media (min-width: 992px) {
  .rh-pdp__buy {
    position: sticky;
    top: calc(var(--rh-header-h, 68px) + 16px);
    padding: 1.5rem 1.35rem 1.55rem;
  }
}

.rh-pdp__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.rh-pdp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--rh-pdp-muted);
}

.rh-pdp__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--rh-pdp-text);
}

.rh-pdp__rating i {
  color: #e6a817;
  font-size: 0.9rem;
}

.rh-pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 1rem;
}

.rh-pdp__price-old {
  font-size: 0.95rem;
  color: var(--rh-pdp-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.rh-pdp__price-now {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--rh-pdp-primary-dark);
  font-variant-numeric: tabular-nums;
}

.rh-pdp__cashback {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--rh-pdp-radius-sm);
  background: linear-gradient(135deg, rgba(61, 155, 110, 0.1), rgba(61, 155, 110, 0.04));
  border-right: 3px solid #3d9b6e;
}

.rh-pdp__cashback i {
  color: #3d9b6e;
  margin-top: 0.15rem;
}

.rh-pdp__cashback strong {
  display: block;
  font-size: 0.9rem;
  color: #2d7a55;
  margin-bottom: 0.2rem;
}

.rh-pdp__cashback span {
  font-size: 0.8rem;
  color: var(--rh-pdp-muted);
  line-height: 1.55;
}

.rh-pdp__desc {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--rh-pdp-muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.rh-pdp__desc br {
  display: block;
  content: "";
  margin-top: 0.15rem;
}

.rh-pdp__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.1);
  color: var(--rh-pdp-primary-dark);
}

.rh-pdp__stock.is-out {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.rh-pdp__stock.is-low {
  background: rgba(230, 168, 23, 0.14);
  color: #9a6b00;
}

/* Cart controls */
.rh-pdp .cart-controls {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: stretch !important;
  gap: 0.55rem;
  width: 100% !important;
  margin: 0.15rem 0 0.35rem !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  direction: rtl !important;
}

.rh-pdp .btn-product.btn-cart,
.rh-pdp .rh-pdp__add {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 auto !important;
  flex-grow: 1 !important;
  flex-basis: auto !important;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 1.25rem !important;
  border: none !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--rh-pdp-primary), var(--rh-pdp-primary-dark)) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 8px 22px rgba(var(--primary-color-rgb, 128, 173, 1), 0.3);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.rh-pdp .btn-product.btn-cart:before,
.rh-pdp .btn-product.btn-cart:after,
.rh-pdp .rh-pdp__add:before,
.rh-pdp .rh-pdp__add:after {
  content: none !important;
  display: none !important;
  margin: 0 !important;
}

.rh-pdp .btn-product.btn-cart span,
.rh-pdp .rh-pdp__add span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.rh-pdp .btn-product.btn-cart:hover,
.rh-pdp .btn-product.btn-cart:focus,
.rh-pdp .rh-pdp__add:hover,
.rh-pdp .rh-pdp__add:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--primary-color-rgb, 128, 173, 1), 0.38);
  color: #fff !important;
  outline: none !important;
  filter: brightness(1.03);
  background: linear-gradient(135deg, var(--rh-pdp-primary), var(--rh-pdp-primary-dark)) !important;
  border: none !important;
}

.rh-pdp .btn-product.btn-cart:hover span,
.rh-pdp .btn-product.btn-cart:focus span {
  color: #fff !important;
}

.rh-pdp .btn-product.btn-cart.disabled,
.rh-pdp .btn-product.btn-cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
  filter: none;
}

.rh-pdp .btn-cart-update {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(45, 55, 40, 0.12) !important;
  background: #fff !important;
  color: var(--rh-pdp-text) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.rh-pdp .btn-cart-update:hover:not(:disabled) {
  border-color: var(--rh-pdp-primary) !important;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.08) !important;
  transform: translateY(-1px);
}

.rh-pdp .btn-cart-update:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rh-pdp .cart-quantity {
  min-width: 40px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 992px) {
  .rh-pdp .cart-controls:has(.btn-cart-update) {
    justify-content: flex-start !important;
    gap: 0.65rem;
  }

  .rh-pdp .cart-controls:has(.btn-cart-update) .btn-cart-update {
    width: 48px !important;
    height: 48px !important;
  }
}

.rh-pdp .inventory-warning {
  display: none;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(230, 168, 23, 0.12);
  color: #9a6b00;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.rh-pdp .inventory-warning.show {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.rh-pdp__cat {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45, 55, 40, 0.08);
  font-size: 0.85rem;
  color: var(--rh-pdp-muted);
}

.rh-pdp__cat a {
  color: var(--rh-pdp-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.rh-pdp__cat a:hover {
  text-decoration: underline;
}

.rh-pdp__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.rh-pdp__trust-item {
  text-align: center;
  padding: 0.65rem 0.35rem;
  border-radius: 12px;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.06);
}

.rh-pdp__trust-item i {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--rh-pdp-primary);
  font-size: 1rem;
}

.rh-pdp__trust-item span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rh-pdp-muted);
  line-height: 1.35;
}

/* Sections */
.rh-pdp__section {
  margin-bottom: 2rem;
}

.rh-pdp__section-head {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.rh-pdp__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rh-pdp__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(45, 55, 40, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--rh-pdp-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rh-pdp__tab:hover {
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.35);
  color: var(--rh-pdp-text);
}

.rh-pdp__tab.is-active,
.rh-pdp__tab.active {
  background: linear-gradient(135deg, var(--rh-pdp-primary), var(--rh-pdp-primary-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--primary-color-rgb, 128, 173, 1), 0.25);
}

.rh-pdp__panel {
  display: none;
  padding: 1.25rem 1.15rem;
  border-radius: var(--rh-pdp-radius);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(45, 55, 40, 0.06);
}

.rh-pdp__panel.is-active,
.rh-pdp__panel.active {
  display: block;
  animation: rhPdpFadeIn 0.35s ease;
}

.rh-pdp__panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.rh-pdp__panel p,
.rh-pdp__specs {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--rh-pdp-muted);
}

.rh-pdp__reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rh-pdp__reviews-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rh-pdp-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.08);
}

.rh-pdp__review {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(45, 55, 40, 0.07);
}

.rh-pdp__review:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rh-pdp__review-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.rh-pdp__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rh-pdp-primary), var(--rh-pdp-primary-dark));
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.rh-pdp__reviewer-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.rh-pdp__review-date {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--rh-pdp-muted);
}

.rh-pdp__buyer {
  margin-right: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
  color: var(--rh-pdp-primary-dark);
}

.rh-pdp__review-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.rh-pdp__review-text {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--rh-pdp-muted);
}

.rh-pdp__review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rh-pdp .review-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(45, 55, 40, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--rh-pdp-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rh-pdp .review-action-btn:hover:not(.disabled) {
  border-color: var(--rh-pdp-primary);
  color: var(--rh-pdp-primary-dark);
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.06);
}

.rh-pdp .review-action-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rh-pdp__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--rh-pdp-muted);
}

.rh-pdp__empty i {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 2rem;
  color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.45);
}

.rh-pdp__empty h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--rh-pdp-text);
}

.rh-pdp__empty p {
  margin: 0;
  font-size: 0.88rem;
}

/* Related */
.rh-pdp__related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .rh-pdp__related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.rh-pdp__related-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(45, 55, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rh-pdp__related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(45, 55, 40, 0.12);
  color: inherit;
}

.rh-pdp__related-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f3f6ef;
  overflow: hidden;
}

.rh-pdp__related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rh-pdp__related-card:hover .rh-pdp__related-media img {
  transform: scale(1.04);
}

.rh-pdp__related-body {
  padding: 0.75rem 0.8rem 0.95rem;
}

.rh-pdp__related-title {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rh-pdp__related-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--rh-pdp-primary-dark);
  font-variant-numeric: tabular-nums;
}

.rh-pdp__related-old {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rh-pdp-muted);
  text-decoration: line-through;
}

.rh-pdp__related-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: var(--rh-pdp-primary);
}

/* Mobile sticky buy bar (sibling of .rh-pdp, fixed to viewport) */
.rh-pdp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--luxury-bottom-nav-height, 72px) + env(safe-area-inset-bottom, 0px));
  z-index: 980;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0;
  padding: 0.6rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(45, 55, 40, 0.1);
  box-shadow: 0 -6px 24px rgba(45, 55, 40, 0.1);
  direction: rtl;
}

.rh-pdp-bar__price {
  min-width: 0;
  max-width: 100%;
  text-align: right;
  overflow: hidden;
}

.rh-pdp-bar__label {
  display: block;
  margin: 0 0 0.12rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7568;
  line-height: 1.2;
}

.rh-pdp-bar__amount {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-color-dark, #6d9500);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rh-pdp-bar__amount small {
  margin-right: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7568;
}

.rh-pdp-bar__action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-pdp-bar .cart-controls {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
  width: auto !important;
}

.rh-pdp-bar .btn-product.btn-cart {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-basis: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary-color, #80AD01), var(--primary-color-dark, #6d9500)) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(128, 173, 1, 0.28);
  cursor: pointer;
}

.rh-pdp-bar .btn-product.btn-cart:before,
.rh-pdp-bar .btn-product.btn-cart:after {
  content: none !important;
  display: none !important;
}

.rh-pdp-bar .btn-product.btn-cart span {
  display: inline !important;
  color: #fff !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.rh-pdp-bar .btn-product.btn-cart.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.rh-pdp-bar .btn-cart-update {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(45, 55, 40, 0.12) !important;
  background: #fff !important;
  color: #2a3528 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
}

.rh-pdp-bar .cart-quantity {
  min-width: 28px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.rh-pdp-bar .inventory-warning {
  display: none !important;
}

@media (min-width: 992px) {
  .rh-pdp-bar {
    display: none !important;
  }
}

/* Legacy bar class — hide if leftover */
.rh-pdp__bar {
  display: none !important;
}

/* Hide desktop cart controls duplicate on mobile? Keep both synced via JS.
   On mobile, hide the buy-panel cart CTA and rely on bar — cleaner. */
@media (max-width: 991px) {
  .rh-pdp__buy .cart-controls {
    display: none;
  }

  .rh-pdp__wish-btn {
    display: none !important;
  }

  .rh-pdp__wish-row {
    margin: 0;
    gap: 0;
  }
}

@keyframes rhPdpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes rhPdpBarIn {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: none; }
}

/* Soften legacy main bg if present */
.main:has(.rh-pdp) {
  background: transparent;
  min-height: 0;
}

/* Allow sticky buy panel (overflow-x:clip on wrappers breaks sticky) */
body:has(.rh-pdp) .page-wrapper,
body:has(.rh-pdp) .main,
body:has(.rh-pdp) .page-content {
  overflow: visible !important;
  overflow-x: visible !important;
}

/* Single thumb: still readable */
.rh-pdp__thumbs:has(.rh-pdp__thumb:only-child) {
  justify-content: flex-start;
}
