/* Al Rawnaq design — product page (breadcrumb bar, rounded gallery, buy box, tabs) */

.pdp-page { background: #fff; }

/* ---- slim bar: Back pill + breadcrumb (no big title band) ---- */
.pdp-page .pdp-hero:not([style*="background"]) { background: #fff !important; padding: 20px 0 0 !important; border: 0; display: block !important; }
.pdp-page .pdp-hero__title { display: none !important; }
.pdp-page .pdp-hero__inner { display: flex !important; flex-direction: row; align-items: center; gap: 16px; max-width: none; margin: 0; text-align: start; }
.pdp-page .pdp-hero .cx-path { order: 2; margin: 0; }
.pdp-page .pdp-hero .pdp-back { order: 1; margin: 0; }
.pdp-back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; letter-spacing: 0.02em; text-transform: none; }
.pdp-back:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- two columns ---- */
.pdp-page .pdp-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 24px; margin-top: 0; }
@media (max-width: 991px) { .pdp-page .pdp-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ---- gallery ---- */
.pdp-media__main { border-radius: 28px !important; overflow: hidden; background: var(--graytint) !important; border: 0 !important; }
.pdp-media__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-offer-badge { top: 14px !important; inset-inline-start: 14px !important; background: var(--yellow) !important; color: var(--navy) !important; padding: 6px 14px !important; border-radius: 999px !important; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 0; }
.pdp-media__zoom-btn { top: 14px !important; inset-inline-end: 14px !important; width: 44px; height: 44px; border-radius: 999px !important; background: #fff !important; color: var(--navy) !important; border: 0; box-shadow: none; }
.pdp-thumbs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; overflow: visible; }
.pdp-thumbs > *, .pdp-thumb { border-radius: 18px !important; overflow: hidden; border: 1.5px solid transparent; background: var(--graytint); aspect-ratio: 1 / 0.78; padding: 0; }
.pdp-thumb.is-active, .pdp-thumb[aria-current="true"], .pdp-thumb.active { border-color: var(--navy) !important; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.pdp-thumbs-nav { display: none !important; }

/* ---- info column ---- */
.pdp-info { display: flex; flex-direction: column; gap: 0; padding-top: 4px; }
.pdp-title { margin: 0 0 12px; font-size: 32px !important; line-height: 40px !important; font-weight: 700 !important; letter-spacing: -0.01em; color: var(--navy); text-transform: none; }
.pdp-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 4px 0 14px; }
.pdp-price { font-size: 28px !important; line-height: 36px !important; font-weight: 700 !important; color: var(--navy); }
.pdp-price-was, .pdp-price-row s, .pdp-compare { font-size: 14px; color: var(--gray); text-decoration: line-through; }
.pdp-save-pill { display: inline-flex; margin: 0 !important; padding: 4px 12px; border-radius: 999px; background: var(--yellowtint) !important; color: var(--navy) !important; font-size: 13px; line-height: 20px; font-weight: 500; border: 0; }
.pdp-save-pill span { display: none; }
.pdp-stock, .pdp-availability { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; color: var(--navy); }
.pdp-info > .pdp-form { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }

/* option groups: label + pill chips */
.pdp-fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.pdp-fieldset legend, .pdp-dim__label, .pdp-fieldset .pdp-label { padding: 0; margin: 0 0 10px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--navy); text-transform: none; letter-spacing: 0; }
.pdp-dim { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-swatch__chip, .pdp-option { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; min-width: 0; border-radius: 999px !important; border: 1px solid var(--line) !important; background: #fff !important; color: var(--navy) !important; font-size: 14px; line-height: 20px; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color 0.15s ease; }
.pdp-swatch__input:checked + .pdp-swatch__chip, .pdp-swatch__input:checked ~ .pdp-swatch__chip, .pdp-option.is-active { border: 1.5px solid var(--navy) !important; }
.pdp-variant-status { font-size: 14px; color: var(--waterloo); }

/* ---- buy row: qty pill | Add to cart | heart ---- */
.pdp-qty-row { display: flex !important; align-items: center; gap: 12px; flex-wrap: nowrap; margin: 6px 0 12px; }
.pdp-qty-row > label { display: none; }
.pdp-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line) !important; border-radius: 999px !important; background: #fff !important; flex: 0 0 auto; }
.pdp-stepper__btn { width: 34px; height: 34px; border: 0 !important; border-radius: 999px !important; background: var(--offwhite) !important; color: var(--navy) !important; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; cursor: pointer; padding: 0; }
.pdp-stepper__input { width: 40px; border: 0 !important; background: transparent !important; text-align: center; font: 500 14px/20px var(--font-body); color: var(--navy); padding: 0; -moz-appearance: textfield; }
.pdp-stepper__input::-webkit-outer-spin-button, .pdp-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-add-row { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pdp-add { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: 0 !important; border-radius: 999px !important; background: var(--navy) !important; color: #fff !important; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.pdp-add:hover { background: #2d2e5c !important; }
.pdp-add svg { width: 18px; height: 18px; }
.pdp-wishlist-btn { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 999px !important; border: 1px solid var(--line) !important; background: #fff !important; color: var(--navy) !important; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.pdp-wishlist-btn svg { width: 20px; height: 20px; }
.pdp-wishlist-btn.is-active { color: var(--yellow) !important; }
.pdp-wa-btn { margin-top: 0; padding: 14px 24px; min-height: 52px; font-size: 14px; font-weight: 600; border-radius: 999px; }
.pdp-share { display: flex; }

/* ---- tabs band ---- */
.pdp-tabs { margin-top: 56px; }
.pdp-tabs__btn { font-size: 16px; line-height: 24px; font-weight: 600; }
.pdp-tabs__panel { font-size: 16px; line-height: 28px; }

/* ---- phones ---- */
@media (max-width: 767px) {
  .pdp-title { font-size: 26px !important; line-height: 34px !important; }
  .pdp-qty-row { flex-wrap: wrap; }
  .pdp-add-row { flex: 1 1 100%; }
  .pdp-page .pdp-hero__inner { flex-wrap: wrap; gap: 10px; }
}

.pdp-dim label, .pdp-swatch { border: 0 !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

/* variant groups (matrix products): label above, pill options below */
.pdp-dim { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pdp-dim__label { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--navy); }
.pdp-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 0; padding: 10px 20px; border-radius: 999px !important; border: 1px solid var(--line) !important; background: #fff !important; color: var(--navy) !important; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: border-color 0.15s ease; }
.pdp-pill-opt:checked + .pdp-pill, .pdp-pill.is-active { border: 1.5px solid var(--navy) !important; }
.pdp-pill-opt:disabled + .pdp-pill { opacity: 0.45; text-decoration: line-through; }
.pdp-pills label { display: inline-flex; border: 0 !important; padding: 0 !important; background: transparent !important; }
