/* Mashaer PDP — match mashaer.store/Product/* */

.mashaer-pdp-page {
  --pdp-primary: #3b2b22;
  --pdp-gold: #c19d60;
  --pdp-cream: #faf6ef;
  --pdp-border: #ece3d2;
  --pdp-muted: #9a836d;
  --pdp-secondary: #a89078;
  --pdp-ink-soft: #6f6a61;
  --pdp-forest: #1a2f26;
  color: var(--pdp-primary);
}

.mashaer-pdp-crumb {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.mashaer-pdp-crumb__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

@media (min-width: 640px) {
  .mashaer-pdp-crumb__inner { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .mashaer-pdp-crumb__inner { padding-left: 32px; padding-right: 32px; }
}

.mashaer-pdp-crumb a {
  color: inherit;
  text-decoration: none;
}

.mashaer-pdp-crumb a:hover { color: var(--pdp-primary); }

.mashaer-pdp-crumb__sep {
  font-size: 14px !important;
  line-height: 1;
}

.mashaer-pdp-crumb__current {
  color: var(--pdp-primary);
  font-weight: 600;
}

.mashaer-pdp {
  background: #fff;
}

.mashaer-pdp__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 640px) {
  .mashaer-pdp__shell { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .mashaer-pdp__shell {
    padding: 48px 16px;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* Gallery */
.mashaer-pdp__gallery {
  position: relative;
  background: var(--pdp-cream);
  border: 1px solid var(--pdp-border);
  overflow: hidden;
}

.mashaer-pdp__gallery-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mashaer-pdp__gallery-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mashaer-pdp__gallery > .add-to-wishlist {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 2;
}

.mashaer-pdp__wish {
  position: relative;
  top: auto;
  inset-inline-start: auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--pdp-border);
  color: var(--pdp-primary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
}

.mashaer-pdp__wish:hover {
  border-color: var(--pdp-gold);
  color: var(--pdp-gold);
}

.mashaer-pdp__wish .material-symbols-outlined { font-size: 20px; }

.mashaer-pdp__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mashaer-pdp__thumb {
  aspect-ratio: 1;
  border: 1px solid var(--pdp-border);
  background: var(--pdp-cream);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.mashaer-pdp__thumb.is-active,
.mashaer-pdp__thumb:hover {
  border-color: var(--pdp-gold);
}

.mashaer-pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mashaer-pdp__thumbs.is-hidden { display: none; }

/* Buy box */
.mashaer-pdp__info {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.mashaer-pdp__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pdp-gold);
}

.mashaer-pdp__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--pdp-primary);
}

@media (min-width: 768px) {
  .mashaer-pdp__title { font-size: 36px; }
}

@media (min-width: 1024px) {
  .mashaer-pdp__title { font-size: 48px; }
}

.mashaer-pdp__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pdp-secondary);
}

@media (min-width: 640px) {
  .mashaer-pdp__subtitle { font-size: 16px; }
}

.mashaer-pdp__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  margin-bottom: 24px;
}

.mashaer-pdp__price {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pdp-gold);
}

.mashaer-pdp__price-old {
  margin: 0;
  font-size: 14px;
  color: var(--pdp-muted);
  text-decoration: line-through;
}

.mashaer-pdp__stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe5d5;
  background: #f3f9f4;
  color: #2d6a3e;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mashaer-pdp__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4a8f5c;
  flex-shrink: 0;
}

.mashaer-pdp__stock.is-oos {
  border-color: #e8d0d0;
  background: #faf2f2;
  color: #8a3b3b;
}

.mashaer-pdp__stock.is-oos .mashaer-pdp__stock-dot {
  background: #c45a5a;
}

.mashaer-pdp__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.mashaer-pdp__meta-card {
  border: 1px solid var(--pdp-border);
  padding: 12px 16px;
}

.mashaer-pdp__meta-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--pdp-muted);
  margin-bottom: 4px;
}

.mashaer-pdp__meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--pdp-primary);
}

.mashaer-pdp__identity {
  border: 1px solid var(--pdp-border);
  background: var(--pdp-cream);
  padding: 16px;
  margin-bottom: 24px;
}

.mashaer-pdp__identity-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--pdp-muted);
  margin-bottom: 8px;
}

.mashaer-pdp__identity-body {
  font-size: 14px;
  line-height: 2;
  color: #4b5563;
}

.mashaer-pdp__identity-body p { margin: 0; }

.mashaer-pdp__qty-label {
  margin: 0 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--pdp-muted);
}

.mashaer-pdp__buy-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

.mashaer-pdp__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pdp-border);
  background: #fff;
  flex: 0 0 auto;
}

.mashaer-pdp__stepper button {
  width: 44px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--pdp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mashaer-pdp__stepper button:hover { background: var(--pdp-cream); }

.mashaer-pdp__stepper button .material-symbols-outlined { font-size: 18px; }

.mashaer-pdp__stepper input {
  width: 56px;
  height: 48px;
  border: 0;
  text-align: center;
  font-size: 16px;
  color: var(--pdp-primary);
  font-family: inherit;
  background: transparent;
  -moz-appearance: textfield;
}

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

.mashaer-pdp .btn-add-to-cart {
  position: relative;
  flex: 1 1 auto;
  contain: layout;
  min-height: 48px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--pdp-primary);
  background: var(--pdp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  padding: 0 16px;
  border-radius: 0;
  box-sizing: border-box;
}

.mashaer-pdp .btn-add-to-cart .add-to-cart-icon,
.mashaer-pdp .btn-add-to-cart .add-to-cart-progress {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.mashaer-pdp .btn-add-to-cart .add-to-cart-progress {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.mashaer-pdp .btn-add-to-cart:hover { opacity: 0.92; }
.mashaer-pdp .btn-add-to-cart:disabled,
.mashaer-pdp .btn-add-to-cart.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mashaer-pdp .btn-buy-now {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 14px 0;
  border: 0;
  background: var(--pdp-forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  text-decoration: none;
  margin-top: 12px;
}

.mashaer-pdp .btn-buy-now:hover { background: #293b32; color: #fff; }

.mashaer-pdp .btn-buy-now .material-symbols-outlined { font-size: 18px; }

.mashaer-pdp__variants {
  margin-bottom: 20px;
}

.mashaer-pdp__widgets {
  margin-top: 20px;
}

.mashaer-pdp__notify {
  margin-top: 16px;
  border: 1px solid var(--pdp-border);
  padding: 16px;
  background: #fff;
}

.mashaer-pdp__notify h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.mashaer-pdp__notify .form-control {
  margin-bottom: 8px;
  border-radius: 0;
  border-color: var(--pdp-border);
}

/* FBT */
.mashaer-pdp-fbt {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.mashaer-pdp-fbt__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 640px) {
  .mashaer-pdp-fbt__shell { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .mashaer-pdp-fbt__shell {
    padding-left: 32px;
    padding-right: 32px;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
  }
}

.mashaer-pdp-fbt__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--pdp-gold);
}

.mashaer-pdp-fbt__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--pdp-primary);
}

@media (min-width: 768px) {
  .mashaer-pdp-fbt__title { font-size: 30px; }
}

.mashaer-pdp-fbt__lead {
  margin: 0 0 28px;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pdp-secondary);
}

.mashaer-pdp-fbt__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .mashaer-pdp-fbt__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mashaer-pdp-fbt__card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--pdp-border);
  background: #fff;
  padding: 12px 16px;
}

.mashaer-pdp-fbt__card.is-current { background: var(--pdp-cream); }

@media (min-width: 768px) {
  .mashaer-pdp-fbt__card {
    display: block;
    padding: 16px;
  }
}

.mashaer-pdp-fbt__media {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pdp-border);
  background: var(--pdp-cream);
  overflow: hidden;
  text-decoration: none;
}

.mashaer-pdp-fbt__card.is-current .mashaer-pdp-fbt__media { background: #fff; }

@media (min-width: 768px) {
  .mashaer-pdp-fbt__media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
  }
}

.mashaer-pdp-fbt__media img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.mashaer-pdp-fbt__media:hover img { transform: scale(1.05); }

.mashaer-pdp-fbt__body { min-width: 0; flex: 1 1 auto; }

.mashaer-pdp-fbt__tag {
  margin: 0 0 4px;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--pdp-secondary);
}

.mashaer-pdp-fbt__card.is-current .mashaer-pdp-fbt__tag { color: var(--pdp-gold); }

.mashaer-pdp-fbt__name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pdp-primary);
}

.mashaer-pdp-fbt__name a {
  color: inherit;
  text-decoration: none;
}

.mashaer-pdp-fbt__price {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pdp-gold);
}

.mashaer-pdp-fbt__oos {
  margin: 4px 0 0;
  font-size: 11px;
  color: #8a3b3b;
}

.mashaer-pdp-fbt__aside {
  border: 1px solid var(--pdp-border);
  background: var(--pdp-cream);
  padding: 20px;
}

@media (min-width: 1024px) {
  .mashaer-pdp-fbt__aside {
    position: sticky;
    top: calc(var(--portal-header-height-desktop, 88px) + 24px);
  }
}

.mashaer-pdp-fbt__aside-label {
  margin: 0 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--pdp-muted);
}

.mashaer-pdp-fbt__total-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e0d5c4;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.mashaer-pdp-fbt__total-row span {
  font-size: 14px;
  color: var(--pdp-secondary);
}

.mashaer-pdp-fbt__total-row strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--pdp-gold);
}

.mashaer-pdp-fbt__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mashaer-pdp-fbt__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--pdp-primary);
}

.mashaer-pdp-fbt__list .material-symbols-outlined {
  font-size: 18px;
  color: var(--pdp-gold);
}

.mashaer-pdp-fbt__add {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--pdp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.mashaer-pdp-fbt__add:hover { opacity: 0.92; }
.mashaer-pdp-fbt__add:disabled { opacity: 0.5; cursor: not-allowed; }

.mashaer-pdp-fbt__add .material-symbols-outlined { font-size: 18px; }

/* Reviews */
.mashaer-pdp-reviews {
  background: var(--pdp-cream);
  border-top: 1px solid var(--pdp-border);
  border-bottom: 1px solid var(--pdp-border);
  overflow-x: clip;
}

.mashaer-pdp-reviews__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 16px;
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 640px) {
  .mashaer-pdp-reviews__shell { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .mashaer-pdp-reviews__shell {
    padding-left: 32px;
    padding-right: 32px;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
  }
}

.mashaer-pdp-reviews__main { text-align: center; }

.mashaer-pdp-reviews__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--pdp-gold);
}

.mashaer-pdp-reviews__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--pdp-primary);
}

@media (min-width: 768px) {
  .mashaer-pdp-reviews__title { font-size: 30px; }
}

.mashaer-pdp-reviews__lead {
  margin: 0 auto 28px;
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pdp-secondary);
}

.mashaer-pdp-reviews__empty {
  padding: 32px 16px;
  color: var(--pdp-ink-soft);
  font-size: 14px;
}

.mashaer-pdp-reviews__form {
  border: 1px solid #e0d5c4;
  background: #fff;
  padding: 20px;
  text-align: start;
}

@media (min-width: 1024px) {
  .mashaer-pdp-reviews__form {
    position: sticky;
    top: calc(var(--portal-header-height-desktop, 88px) + 24px);
  }
}

.mashaer-pdp-reviews__form h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--pdp-primary);
}

.mashaer-pdp-reviews__form > p {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pdp-secondary);
}

.mashaer-pdp-reviews__field { margin-bottom: 16px; }

.mashaer-pdp-reviews__stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mashaer-pdp-reviews__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d4c4b0;
  cursor: pointer;
}

.mashaer-pdp-reviews__star .material-symbols-outlined {
  font-size: 28px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.mashaer-pdp-reviews__star.is-active,
.mashaer-pdp-reviews__star:hover,
.mashaer-pdp-reviews__star:focus-visible {
  color: var(--pdp-gold);
}

.mashaer-pdp-reviews__star.is-active .material-symbols-outlined,
.mashaer-pdp-reviews__star:hover .material-symbols-outlined,
.mashaer-pdp-reviews__star:focus-visible .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.mashaer-pdp-reviews__submit-spinner {
  margin-inline-end: 6px;
}

.mashaer-pdp-reviews__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--pdp-muted);
}

.mashaer-pdp-reviews__field input,
.mashaer-pdp-reviews__field textarea {
  width: 100%;
  border: 1px solid #e0d5c4;
  background: #fff;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--pdp-primary);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.mashaer-pdp-reviews__field textarea {
  min-height: 144px;
  line-height: 1.75;
  resize: vertical;
}

.mashaer-pdp-reviews__field input:focus,
.mashaer-pdp-reviews__field textarea:focus {
  border-color: var(--pdp-gold);
}

.mashaer-pdp-reviews__submit {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--pdp-forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.mashaer-pdp-reviews__submit:hover { background: #293b32; color: #fff; }

.mashaer-pdp-reviews__submit .material-symbols-outlined { font-size: 18px; }

/* Mobile: keep the active review card fully visible (many dots used to widen the carousel). */
@media (max-width: 640px) {
  .mashaer-pdp-reviews__shell {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 24px;
  }

  .mashaer-pdp-reviews__lead {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .mashaer-pdp-reviews .mashaer-carousel--coverflow {
    --coverflow-card-width: 100%;
    --coverflow-depth: 0;
    --coverflow-x-step: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 36px;
    overflow: hidden;
  }

  .mashaer-pdp-reviews .mashaer-carousel--coverflow .mashaer-carousel__viewport {
    min-height: 0;
  }

  .mashaer-pdp-reviews .mashaer-carousel--coverflow .mashaer-carousel__track {
    height: auto;
    min-height: 268px;
  }

  .mashaer-pdp-reviews__form {
    padding: 16px;
  }
}

/* Hide legacy chrome leftovers if any */
.mashaer-pdp-page .products-filter,
.mashaer-pdp-page .breadcrumb-section { display: none !important; }
