@charset "UTF-8";
/* ==========================================================================
   صفحة العطر
   ========================================================================== */

.product-top { padding-block-end: var(--sp-6); }
.product-top__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}

/* ── المعرض ───────────────────────────────────────────────────────────── */

.gallery { position: sticky; inset-block-start: calc(var(--header-h) + 1rem); }
.gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(165deg, var(--sand) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.gallery__main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8%;
  transition: opacity .25s var(--ease);
}
.gallery__badges {
  position: absolute;
  inset-block-start: var(--sp-4);
  inset-inline-start: var(--sp-4);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.gallery__thumbs {
  display: flex;
  gap: var(--sp-2);
  margin-block-start: var(--sp-3);
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  width: 76px; height: 92px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--sand);
  padding: 0;
  transition: border-color .2s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery__thumb.is-active { border-color: var(--brand); }

/* ── صندوق الشراء ─────────────────────────────────────────────────────── */

.buybox__brand {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 500;
  margin-block-end: var(--sp-2);
}
.buybox__brand:hover { color: var(--brand); }
.buybox__name { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.2; }
.buybox__tagline { color: var(--text-2); margin-block-start: var(--sp-2); font-size: 1.02rem; }

.buybox__rating {
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap;
  margin-block: var(--sp-4);
  padding-block: var(--sp-4);
  border-block: 1px solid var(--line-2);
  font-size: .875rem;
}
.buybox__views { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; }
.buybox__views svg { width: 15px; height: 15px; }

/* الأحجام */
.variants { margin-block-end: var(--sp-5); }
.variants__label { font-size: .8rem; font-weight: 500; color: var(--text-2); margin-block-end: var(--sp-3); }
.variants__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--sp-2); }
.variant input { position: absolute; opacity: 0; width: 0; height: 0; }
.variant__box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s var(--ease);
  background: var(--surface);
  height: 100%;
}
.variant__box:hover { border-color: var(--sand-3); }
.variant input:checked + .variant__box {
  border-color: var(--brand);
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.variant input:focus-visible + .variant__box { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.variant__kind { font-size: .68rem; color: var(--text-3); letter-spacing: .06em; }
.variant__size { font-size: .95rem; font-weight: 700; }
.variant__price { font-size: .85rem; color: var(--brand); font-weight: 500; }
.variant__low  { font-size: .68rem; color: var(--clay); }
.variant__out  { font-size: .68rem; color: var(--text-3); }
.variant.is-out .variant__box { opacity: .5; cursor: not-allowed; }

/* السعر */
.buybox__price {
  display: flex; align-items: baseline; gap: var(--sp-3);
  flex-wrap: wrap;
  margin-block-end: var(--sp-5);
}
.buybox__price b { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); color: var(--text); }
.buybox__price s { font-size: 1rem; color: var(--text-3); }

/* الكمية */
.buybox__buy { display: flex; gap: var(--sp-3); align-items: stretch; margin-block-end: var(--sp-4); }
.qty {
  display: flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
  flex: none;
  background: var(--surface);
}
.qty__btn {
  width: 42px; height: 100%;
  min-height: 54px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background-color .2s var(--ease);
}
.qty__btn:hover { background: var(--sand); color: var(--brand); }
.qty__btn svg { width: 15px; height: 15px; }
.qty__input {
  width: 46px;
  border: 0;
  text-align: center;
  font-weight: 700;
  background: none;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

.buybox__row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-block-end: var(--sp-5); }
.buybox__row .btn { flex: 1; min-width: 140px; font-size: .82rem; padding-inline: 1rem; }
.buybox__row .btn.is-active { border-color: var(--brand); color: var(--brand); background: var(--sand); }
.buybox__row .btn.is-active svg { fill: currentColor; }

/* مجموعتي */
.collection-picker {
  padding: var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  margin-block-end: var(--sp-5);
}
.collection-picker__label {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500; color: var(--text-2);
  margin-block-end: var(--sp-3);
}
.collection-picker__label svg { width: 16px; height: 16px; color: var(--gold-ink); }
.collection-picker__opts { display: flex; gap: 6px; flex-wrap: wrap; }
.collection-opt {
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .8rem;
  color: var(--text-2);
  background: var(--surface);
  transition: all .2s var(--ease);
}
.collection-opt:hover { border-color: var(--sand-3); }
.collection-opt.is-on { background: var(--brand); border-color: var(--brand); color: var(--text-invert); }

.buybox__trust { display: grid; gap: var(--sp-2); font-size: .82rem; color: var(--text-2); }
.buybox__trust li { display: flex; align-items: flex-start; gap: var(--sp-2); }
.buybox__trust svg { width: 16px; height: 16px; color: var(--gold-ink); flex: none; margin-block-start: 3px; }

/* ── جسم الصفحة ───────────────────────────────────────────────────────── */

.product-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
}
.product-body__main { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.product-body__aside { position: sticky; inset-block-start: calc(var(--header-h) + 1rem); }

.panel h2 {
  font-size: 1.4rem;
  margin-block-end: var(--sp-5);
  padding-block-end: var(--sp-3);
  border-bottom: 1px solid var(--line-2);
}
.panel h3 { font-size: 1.1rem; margin-block: var(--sp-5) var(--sp-3); }
.panel h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink);
            margin-block: var(--sp-5) var(--sp-3); font-family: var(--font-body); font-weight: 700; }

.prose p { color: var(--text-2); line-height: 1.95; }
.prose p + h3 { margin-block-start: var(--sp-5); }

/* ── هرم المكوّنات ────────────────────────────────────────────────────── */

.pyramid { display: flex; flex-direction: column; gap: var(--sp-4); }
.pyramid__tier {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  position: relative;
}
.pyramid__tier--top   { margin-inline-end: 0; }
.pyramid__tier--heart { background: linear-gradient(90deg, var(--sand) 0%, var(--surface-2) 100%); }
.pyramid__tier--base  { background: linear-gradient(90deg, var(--sand-2) 0%, var(--surface-2) 100%); }

.pyramid__label { display: flex; align-items: flex-start; gap: var(--sp-3); }
.pyramid__icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--sand-3);
  color: var(--brand);
}
.pyramid__icon svg { width: 17px; height: 17px; }
.pyramid__label strong { display: block; font-size: .95rem; }
.pyramid__label small { color: var(--text-3); font-size: .75rem; }

.pyramid__notes { display: flex; flex-wrap: wrap; gap: 6px; }
.pyramid__notes a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .35rem .8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .82rem;
  transition: all .2s var(--ease);
}
.pyramid__notes a:hover { border-color: var(--chip, var(--brand)); color: var(--brand); transform: translateY(-1px); }
.pyramid__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chip, var(--gold)); flex: none; }

@media (max-width: 640px) {
  .pyramid__tier { grid-template-columns: 1fr; }
}

/* ── تصويت المكوّنات ──────────────────────────────────────────────────── */

.community-notes {
  margin-block-start: var(--sp-6);
  padding-block-start: var(--sp-5);
  border-top: 1px solid var(--line-2);
}
.community-notes__head { margin-block-end: var(--sp-4); }
.community-notes__head h3 { margin-block: 0 4px; font-size: 1.05rem; }
.community-notes__head p { font-size: .85rem; }
.community-notes form .chip-list { margin-block-end: var(--sp-4); }

.note-results { margin-block-start: var(--sp-5); display: grid; gap: var(--sp-2); }
.note-result { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: var(--sp-3); align-items: center; font-size: .82rem; }
.note-result__name { color: var(--text-2); }
.note-result__bar { height: 8px; background: var(--sand); border-radius: var(--r-full); overflow: hidden; }
.note-result__bar span { display: block; height: 100%; border-radius: var(--r-full); transition: width .5s var(--ease-out); }
.note-result__n { color: var(--text-3); text-align: end; }

/* ── الأداء ───────────────────────────────────────────────────────────── */

.perf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--sp-5); }
.perf__col { padding: var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.perf__col--community { background: var(--sand); border-color: var(--sand-2); }
.perf__col--empty { opacity: .75; }
.perf__head { display: flex; align-items: flex-start; gap: var(--sp-3); margin-block-end: var(--sp-4); }
.perf__head svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-block-start: 2px; }
.perf__head strong { display: block; font-size: .9rem; }
.perf__head small { color: var(--text-3); font-size: .74rem; }

.perf__row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 80px; gap: var(--sp-3); align-items: center; margin-block-end: var(--sp-3); }
.perf__name { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); }
.perf__name svg { width: 14px; height: 14px; color: var(--text-3); }
.perf__bar { height: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); overflow: hidden; }
.perf__fill { display: block; height: 100%; background: var(--brand); border-radius: var(--r-full); transition: width .6s var(--ease-out); }
.perf__fill--community { background: var(--gold-2); }
.perf__val { font-size: .76rem; color: var(--text-3); text-align: end; }
.perf__empty { font-size: .85rem; color: var(--text-3); }

.perf-vote { margin-block-start: var(--sp-6); padding-block-start: var(--sp-5); border-top: 1px solid var(--line-2); }
.perf-vote__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: var(--sp-3); align-items: center; margin-block-end: var(--sp-3); }
.perf-vote__row label { font-size: .85rem; color: var(--text-2); }
.perf-vote__row output { font-weight: 700; text-align: center; color: var(--brand); }
.perf-vote input[type="range"] { width: 100%; accent-color: var(--brand); }

/* ── ملخّص التقييم ────────────────────────────────────────────────────── */

.rating-summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-5);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  margin-block-end: var(--sp-5);
}
.rating-summary__score { text-align: center; }
.rating-summary__avg { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--brand); }
.rating-summary__score small { display: block; margin-block-start: var(--sp-2); color: var(--text-3); font-size: .78rem; }
.rating-summary__bars { display: grid; gap: 6px; }
.rating-bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 38px; gap: var(--sp-3); align-items: center; font-size: .78rem; }
.rating-bar > span:first-child { display: flex; align-items: center; gap: 3px; color: var(--text-2); }
.star-mini { width: 12px; height: 12px; fill: #D9922F; stroke: none; }
.rating-bar__track { height: 8px; background: var(--sand-2); border-radius: var(--r-full); overflow: hidden; }
.rating-bar__track span { display: block; height: 100%; background: #D9922F; border-radius: var(--r-full); transition: width .6s var(--ease-out); }
.rating-bar__n { color: var(--text-3); text-align: end; }

@media (max-width: 640px) {
  .rating-summary { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ── نموذج التقييم ────────────────────────────────────────────────────── */

.review-form-wrap { margin-block-end: var(--sp-6); }
.review-form { padding: var(--sp-5); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.review-form h3 { margin-block: 0 var(--sp-4); }
.review-login {
  padding: var(--sp-5);
  text-align: center;
  border: 1px dashed var(--sand-3);
  border-radius: var(--r-md);
}
.review-login p { margin-block-end: var(--sp-4); color: var(--text-2); }

/* ── التقييمات ────────────────────────────────────────────────────────── */

.reviews-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.review { padding-block-end: var(--sp-5); border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; padding-block-end: 0; }

.review__head { display: flex; gap: var(--sp-3); align-items: center; margin-block-end: var(--sp-3); }
.review__avatar {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.review__avatar--sm { width: 30px; height: 30px; font-size: .85rem; }
.review__who strong { display: block; font-size: .92rem; }
.review__meta { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; font-size: .75rem; color: var(--text-3); }

.review__title { font-size: 1.02rem; margin-block-end: var(--sp-2); }
.review__body { color: var(--text-2); line-height: 1.9; font-size: .92rem; }

.review__actions { display: flex; align-items: center; gap: var(--sp-2); margin-block-start: var(--sp-3); flex-wrap: wrap; }
.review__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .78rem;
  color: var(--text-2);
  transition: all .2s var(--ease);
}
.review__btn:hover { border-color: var(--sand-3); color: var(--brand); }
.review__btn.is-on { background: var(--sand); border-color: var(--brand); color: var(--brand); }
.review__btn svg { width: 14px; height: 14px; }
.review__btn--muted { border: 0; color: var(--text-3); padding-inline: .4rem; }
.review__count { color: var(--text-3); font-size: .72rem; }

.review__thread { margin-block-start: var(--sp-4); padding-inline-start: var(--sp-6); display: grid; gap: var(--sp-3); }
.comment { display: flex; gap: var(--sp-3); }
.comment strong { font-size: .84rem; }
.comment small { margin-inline-start: 6px; font-size: .72rem; }
.comment p { font-size: .86rem; color: var(--text-2); margin-block-start: 2px; }
.comment-form { display: flex; gap: var(--sp-2); }
.comment-form .input { min-height: 40px; font-size: .85rem; }

/* ── الحقائق ──────────────────────────────────────────────────────────── */

.facts h3 { font-size: 1.05rem; margin-block: 0 var(--sp-4); padding-block-end: var(--sp-3); border-bottom: 1px solid var(--line-2); }
.facts dl { display: grid; gap: .65rem; }
.facts dl > div { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: var(--sp-2); font-size: .84rem; }
.facts dt { color: var(--text-3); }
.facts dd { color: var(--text); font-weight: 500; }
.facts dd a { color: var(--brand); border-bottom: 1px solid transparent; }
.facts dd a:hover { border-color: currentColor; }

.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .3rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .78rem;
  transition: all .2s var(--ease);
}
.tag-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--chip, var(--gold)); }
.tag-chip:hover { border-color: var(--chip, var(--brand)); }

.accords { display: grid; gap: 6px; }
.accord { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--sp-2); align-items: center; font-size: .78rem; }
.accord__name { color: var(--text-2); }
.accord__bar { height: 7px; background: var(--sand); border-radius: var(--r-full); overflow: hidden; }
.accord__bar span { display: block; height: 100%; border-radius: var(--r-full); }

/* ── التجاوب ──────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .product-top__grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .product-body { grid-template-columns: 1fr; }
  .product-body__aside { position: static; }
}

/* ==========================================================================
   صفحة المنتج v2 — مكبّر، تبويبات، مخزون، أحجام بصور، هرم بصور
   ========================================================================== */

.pd-flow { display: flex; flex-direction: column; gap: var(--sp-5); }

/* ── المعرض: ضغط للتكبير ─────────────────────────────────────────────── */
.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gallery__hint {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--brand);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.08));
}
.gallery__hint svg { width: 17px; height: 17px; }
.gallery__badges .badge--sale { direction: ltr; unicode-bidi: isolate; }

/* ── العلامة والاسم ──────────────────────────────────────────────────── */
.buybox__brandline {
  display: inline-flex; align-items: center; gap: 10px;
  margin-block-end: var(--sp-2);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-ink);
}
.buybox__brandline img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: var(--surface); border: 1px solid var(--line-2); padding: 3px; }
.buybox__brandline:hover { color: var(--brand); }
.buybox__rating { margin-block: var(--sp-3); padding-block: var(--sp-3); }

/* ── حالة المخزون ────────────────────────────────────────────────────── */
.stock-status { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; margin-block-end: var(--sp-4); }
.stock-status i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.stock-status.is-in { color: #2e9e5b; }
.stock-status.is-in i { background: #2e9e5b; box-shadow: 0 0 0 3px rgba(46, 158, 91, .2); }
.stock-status.is-out { color: #cf4a3f; }
.stock-status.is-out i { background: #cf4a3f; box-shadow: 0 0 0 3px rgba(207, 74, 63, .2); }

/* ── الأحجام ─────────────────────────────────────────────────────────── */
.variants { margin-block-end: var(--sp-4); }
.variants__list { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.variant__box { align-items: center; text-align: center; gap: 3px; padding: .7rem .6rem; }
.variant__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--sand); margin-block-end: 2px; }
.variant__was { font-size: .72rem; color: var(--text-3); }
.variant.is-out .variant__box { opacity: .55; background: var(--surface-2); }

/* ── السعر وأزرار الشراء ─────────────────────────────────────────────── */
.buybox__price { margin-block-end: var(--sp-4); align-items: center; }
.buybox__price .badge--sale { direction: ltr; unicode-bidi: isolate; }
.buybox__buy { flex-wrap: wrap; }
.buybox__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-width: 240px; }
.buybox__btns .btn { white-space: nowrap; }
.buybox__row { margin-block-end: var(--sp-4); }
.buybox__row .btn { min-width: 0; flex: 1 1 110px; }

/* ── هرم المكوّنات بصور ──────────────────────────────────────────────── */
.pyramid__notes { gap: var(--sp-2) var(--sp-3); }
.pyramid__notes a.note-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 88px; padding: 6px 4px; border: 0; background: none; border-radius: var(--r-md);
  font-size: .78rem; text-align: center; line-height: 1.25;
}
.pyramid__notes a.note-tile:hover { background: var(--surface); transform: translateY(-2px); }
.note-tile__img {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--chip, var(--sand-3)); background: var(--surface);
}
.note-tile__img--ph {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--chip, var(--brand));
}
.note-tile__name { color: var(--text-2); }

/* ── التبويبان ───────────────────────────────────────────────────────── */
.ptabs { padding-block-start: 0; }
.ptabs__nav { display: flex; border-bottom: 1px solid var(--line-2); margin-block-end: var(--sp-5); }
.ptabs__tab {
  flex: 1; padding: 1.05rem .9rem; text-align: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 2px solid transparent; margin-block-end: -1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ptabs__tab:hover { color: var(--brand); }
.ptabs__tab.is-active { color: var(--brand); border-color: var(--gold-ink); }
.ptabs__n { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: var(--r-full); background: var(--sand); color: var(--brand); font-size: .72rem; letter-spacing: 0; }
.ptabs__panel[hidden] { display: none; }

.pd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 2.5rem; }
.pd-facts > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: .75rem 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.pd-facts dt { color: var(--text-3); flex: none; }
.pd-facts dd { font-weight: 500; text-align: end; }
.pd-facts dd a { color: var(--brand); }
.pd-sub { font-size: 1.05rem; margin-block: var(--sp-6) var(--sp-3); }

.perf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: var(--sp-3); }
.perf-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: var(--sp-4) var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.perf-stat__ic svg { width: 22px; height: 22px; color: var(--gold-ink); }
.perf-stat__label { font-size: .75rem; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.perf-stat__val { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); }

.pd-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-5); margin-block-start: var(--sp-5); }
.pd-info { margin-block-start: var(--sp-5); }
.pd-brand { display: flex; gap: var(--sp-4); align-items: center; margin-block-start: var(--sp-6); padding: var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.pd-brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: var(--surface); padding: 4px; border: 1px solid var(--line-2); flex: none; }
.pd-brand h4 { margin: 0 0 4px; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); }
.pd-brand p { font-size: .85rem; color: var(--text-2); margin-block-end: 6px; }

/* ── صور التقييمات ───────────────────────────────────────────────────── */
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: var(--sp-3); }
.review__photo { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.review__photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.photo-preview img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-2); }

/* ── المكبّر ─────────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(12, 9, 6, .92); display: flex; align-items: center; justify-content: center; direction: ltr; }
.lightbox[hidden] { display: none; }
.lightbox__stage { width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: zoom-in; }
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage img { max-width: 92vw; max-height: 88vh; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .2s var(--ease); will-change: transform; }
.lightbox__stage.is-dragging img { transition: none; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem; line-height: 1;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.lightbox__close { inset-block-start: 16px; inset-inline-end: 16px; }
.lightbox__nav { inset-block-start: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-start: 14px; }
.lightbox__nav--next { inset-inline-end: 14px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { position: absolute; inset-block-end: 16px; inset-inline: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .85rem; }

/* ── جوال ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .product-top__grid { gap: var(--sp-4); }
  .gallery__main { aspect-ratio: 6 / 5; max-height: 56vh; }
  .gallery__main img { padding: 4%; }
  .gallery__thumbs { margin-block-start: var(--sp-2); }
  .gallery__thumb { width: 54px; height: 54px; }
  .buybox__name { font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2rem); }
  .buybox__tagline { font-size: .95rem; margin-block-start: 4px; }
  .buybox__rating { margin-block: var(--sp-2); padding-block: var(--sp-2); }
}
@media (max-width: 560px) {
  .variants__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .variant__box { padding: .55rem .3rem; gap: 2px; }
  .variant__img { width: 30px; height: 30px; }
  .variant__size { font-size: .85rem; }
  .variant__price { font-size: .8rem; }
  .variant__kind { font-size: .6rem; }
  .buybox__buy { flex-direction: column; align-items: stretch; }
  .qty { align-self: flex-start; }
  .qty__btn { min-height: 46px; }
  .buybox__btns { min-width: 0; }
  .buybox__row { display: grid; grid-template-columns: 1fr 1fr; }
  .buybox__row .btn { font-size: .78rem; padding-inline: .5rem; }
  .buybox__row .btn:nth-child(3) { grid-column: 1 / -1; }
  .buybox__btns .btn { padding-inline: .6rem; font-size: .8rem; }
  .ptabs__tab { font-size: .72rem; letter-spacing: .08em; padding-inline: .4rem; }
  .pyramid__notes a.note-tile { width: 76px; }
  .note-tile__img { width: 54px; height: 54px; }
  .lightbox__nav { width: 40px; height: 40px; }
}
