/* متجر رُشدا — صفحاتُ الموقع. يعتمد ألوانَ هويّة الموقع (`--purple` …) مع بدائلَ حين يغيب. منطقيّةُ الاتّجاه (RTL) · الهاتف: منتجٌ في الصفّ. */
.rds-page {
  --rp: var(--purple, #6c5ce7);
  --rpd: var(--purple-dark, #5848c9);
  --rpl: var(--purple-light, #f1efff);
  --rn: var(--navy, #1e2a4a);
  --rm: var(--muted, #6b7390);
  --rb: var(--border, #e7e6f4);
  --rg: var(--teal, #1f9d76);
  --ro: var(--orange, #e8890c);
  color: var(--rn);
}
.rds-wrap { padding-block: 28px 72px; }
.rds-i { width: 1.15em; height: 1.15em; }
.rds-bare { font-family: system-ui, "Cairo", sans-serif; margin: 0; }
.rds-bare__hd { padding: 14px 20px; border-bottom: 1px solid #e7e6f4; }
.rds-empty { text-align: center; color: var(--rm); padding: 48px 0; }

/* ── أزرارٌ وشارات ── */
.rds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.rds-btn:focus-visible, .rds-pill:focus-visible, .rds-schip:focus-visible, .rds-fold summary:focus-visible, .rds-sticky__cart:focus-visible { outline: 3px solid rgba(var(--purple-rgb, 108, 92, 231), .45); outline-offset: 2px; }
.rds-btn--primary { color: #fff; background: linear-gradient(135deg, var(--rp), var(--rpd)); box-shadow: 0 10px 24px rgba(var(--purple-rgb, 108, 92, 231), .28); }
.rds-btn--ghost { color: var(--rp); background: #fff; border-color: var(--rp); }
.rds-btn--sm { min-height: 40px; padding: 6px 16px; font-size: .92rem; }
.rds-btn--outline { color: var(--rp); background: #fff; border-color: var(--rp); }
.rds-btn--block { width: 100%; }
.rds-btn--lg { min-height: 58px; font-size: 1.15rem; }
.rds-btn:hover { transform: translateY(-1px); }
.rds-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.rds-chip { display: inline-block; padding: 3px 14px; border-radius: 999px; background: #fff; color: var(--rpd); font-size: .82rem; font-weight: 800; box-shadow: 0 4px 12px rgba(44, 35, 110, .1); }
.rds-chip--soon { background: #fff3dc; color: #9a5a00; }

/* ── رأس المتجر ── */
.rds-hero { background: linear-gradient(180deg, rgba(var(--purple-rgb, 108, 92, 231), .13), rgba(var(--purple-rgb, 108, 92, 231), .02) 85%, #fff); }
.rds-hero__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 270px; padding-block: 28px; }
.rds-hero__text h1 { margin: 0 0 8px; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.3; color: var(--rpd); }
.rds-hero__text p { margin: 0; max-width: 520px; color: var(--rm); font-size: 1.05rem; }
.rds-hero__art { position: relative; flex: none; width: 340px; height: 230px; }
.rds-hero__cover { position: absolute; width: 150px; border-radius: 6px; box-shadow: 0 18px 40px rgba(44, 35, 110, .28); background: #fff; overflow: hidden; }
.rds-hero__cover--1 { inset-block-start: 14px; inset-inline-start: 0; transform: rotate(-6deg); }
.rds-hero__cover--2 { inset-block-start: 0; inset-inline-start: 108px; transform: rotate(4deg); }
.rds-hero__img { width: 100%; height: auto; display: block; }

/* ── الفلاتر ── */
.rds-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 8px 24px; }
.rds-pill { padding: 8px 22px; border-radius: 999px; border: 1px solid var(--rb); background: #fff; font-weight: 700; color: var(--rn); text-decoration: none; }
.rds-pill.is-active { color: #fff; background: var(--rp); border-color: var(--rp); }

/* ── البطاقات ── */
.rds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.rds-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rb); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(44, 35, 110, .06); transition: transform .2s, box-shadow .2s; }
.rds-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(44, 35, 110, .12); }
.rds-card__media { display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 22px; background: #fff; border-block-end: 1px solid var(--rb); }
.rds-card__img { width: auto; height: 220px; max-width: 100%; object-fit: contain; display: block; }
.rds-card__chips { position: absolute; inset-block-start: 12px; inset-inline: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.rds-card__body { display: flex; flex: 1; flex-direction: column; padding: 14px 18px 18px; }
.rds-card__title { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.5; }
.rds-card__title a { color: inherit; text-decoration: none; }
.rds-card__title a::after { content: ""; position: absolute; inset: 0; }
.rds-card__short { margin: 0 0 12px; color: var(--rm); font-size: .93rem; }
.rds-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: auto; position: relative; z-index: 2; }
.rds-price { font-weight: 800; font-size: 1.15rem; direction: ltr; unicode-bidi: isolate; } /* 1.3.5: «12 €» بأرقامٍ إنجليزيّة من اليسار */
.rds-price--lg { font-size: 2rem; }
.rds-ph { display: inline-flex; width: 120px; height: 120px; align-items: center; justify-content: center; color: #b9b3ee; }
.rds-ph .rds-i { width: 64px; height: 64px; }

/* ── الطمأنات ── */
.rds-assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block-start: 44px; }
.rds-assure__item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--rb); border-radius: 20px; background: #fff; }
.rds-assure__item strong { display: block; }
.rds-assure__item span:not(.rds-assure__ic) { color: var(--rm); font-size: .9rem; }
.rds-assure__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--rpl); color: var(--rp); }

/* ── صفحة المنتج ── */
.rds-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 18px; color: var(--rm); font-size: .9rem; }
.rds-crumbs a { color: var(--rm); text-decoration: none; }
.rds-crumbs [aria-current] { color: var(--rp); font-weight: 700; }
/* 1.3.4: الصورُ في عمود، والرأسُ وصندوقُ الشراء في الآخر؛ على الهاتف الرأسُ فوق الصور (طريقةُ Amazon). */
.rds-pgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "gallery head" "gallery info"; grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; }
.rds-phead { grid-area: head; }
.rds-gallery { grid-area: gallery; }
.rds-info { grid-area: info; }
.rds-phead h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.35; }
.rds-gallery__main { display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--rb); }
.rds-gallery__img { width: auto; height: auto; max-height: 520px; max-width: 100%; } /* 1.3.6: خلفيّةٌ بيضاء بلا ظلّ (كالمتاجر العالمية) */
.rds-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-block-start: 14px; }
.rds-thumb { display: flex; align-items: center; justify-content: center; height: 110px; padding: 6px; border: 2px solid transparent; border-radius: 16px; background: #fff; border-color: var(--rb); }
.rds-thumb.is-active { border-color: var(--rp); }
.rds-thumb img { max-height: 100%; width: auto; }
.rds-series { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 10px; }
.rds-schip { padding: 4px 16px; border-radius: 999px; background: var(--rpl); color: var(--rm); font-weight: 800; font-size: .9rem; text-decoration: none; }
.rds-schip.is-active { background: var(--rp); color: #fff; }
.rds-lead { margin: 0 0 10px; color: var(--rm); font-size: 1.05rem; }
.rds-contents { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #f7f6ff; }
.rds-contents h2 { font-size: 1rem; margin: 0 0 8px; }
.rds-contents ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 4px; }
.rds-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-end: 14px; }
/* صندوقُ الشراء (Waterstones): الشكلُ والسعر · التجهيز · التوصيل · الكمّيّة · «اشترِ الآن» الكبير · «أضف إلى السلّة» الصغير · الدفعُ الآمن */
.rds-buybox { margin: 4px 0 16px; padding: 18px; border: 1px solid var(--rb); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(44, 35, 110, .06); }
.rds-buybox__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 10px; }
.rds-buybox__fmt { color: var(--rm); font-size: .92rem; }
.rds-buybox__line { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .95rem; }
.rds-buybox__line .rds-i { color: var(--rg); flex: none; }
.rds-buybox .rds-buy { display: grid; gap: 10px; margin: 14px 0 0; }
.rds-buy__qty { display: flex; align-items: center; gap: 12px; color: var(--rm); font-size: .92rem; }
.rds-buybox__safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: var(--rm); font-size: .85rem; }
/* «تُكمِلها» (Lovevery «Pairs perfectly with») */
.rds-pair { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 12px; border: 1px dashed var(--rb); border-radius: 16px; }
.rds-pair__media { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex: none; overflow: hidden; border-radius: 10px; background: #f7f6ff; }
.rds-pair__img { max-height: 100%; width: auto; }
.rds-pair__txt { display: flex; flex: 1; flex-direction: column; font-size: .92rem; }
.rds-pair__txt a { color: inherit; text-decoration: none; }
.rds-pair__txt span { color: var(--rm); font-size: .85rem; }
/* أقسامٌ تُطوى */
.rds-folds { margin-block-start: 32px; overflow: hidden; border: 1px solid var(--rb); border-radius: 22px; background: #fff; }
.rds-fold + .rds-fold { border-block-start: 1px solid var(--rb); }
.rds-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.rds-fold summary::-webkit-details-marker { display: none; }
.rds-fold summary h2 { margin: 0; font-size: 1.1rem; }
.rds-fold summary .rds-i { color: var(--rm); transition: transform .2s; }
.rds-fold[open] summary .rds-i { transform: rotate(180deg); }
.rds-fold__body { padding: 0 20px 18px; color: var(--rm); }
.rds-fold__body p { margin: 0 0 10px; }
.rds-fold .rds-contents { margin: 0; padding: 0; background: transparent; }
.rds-fold .rds-contents h2 { display: none; }
.rds-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; }
.rds-details div { display: flex; gap: 6px; }
.rds-details dt { color: var(--rn); font-weight: 700; }
.rds-details dt::after { content: ":"; }
.rds-details dd { margin: 0; }
.rds-shipinfo { display: grid; gap: 4px; margin: 0; padding-inline-start: 1.2em; }
.rds-qty { display: inline-flex; align-items: center; border: 1px solid var(--rb); border-radius: 999px; overflow: hidden; background: #fff; }
.rds-qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--rn); }
.rds-qty input { width: 52px; height: 48px; border: 0; text-align: center; font: inherit; font-weight: 800; background: transparent; -moz-appearance: textfield; }
.rds-qty input::-webkit-outer-spin-button, .rds-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rds-member { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-radius: 16px; background: #e8f7ef; color: #14724e; font-weight: 700; }
.rds-member .rds-i { color: var(--rp); flex: none; }
.rds-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rds-benefit { padding: 20px; border-radius: 22px; background: #f7f6ff; }
.rds-benefit h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.rds-benefit p { margin: 0; color: var(--rm); font-size: .93rem; }
.rds-benefit__ic { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: #fff; }
.rds-benefit__ic--0 { color: #e8890c; } .rds-benefit__ic--1 { color: #e0524c; } .rds-benefit__ic--2 { color: #8a5cf6; } .rds-benefit__ic--3 { color: #e0a800; }
.rds-sticky { display: none; }

/* ── «أعلِمني» ── */
.rds-notify-form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-block-start: 10px; position: relative; z-index: 3; }
.rds-notify-form input[type="email"] { flex: 1 1 160px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--rb); border-radius: 999px; font: inherit; direction: ltr; text-align: start; }
.rds-notify-msg { width: 100%; margin: 4px 0 0; font-size: .9rem; color: var(--rg); }
.rds-notify-msg.is-err { color: #b32d2e; }
.rds-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── الهاتف ── */
@media (max-width: 900px) {
  .rds-pgrid { grid-template-columns: 1fr; grid-template-areas: "head" "gallery" "info"; row-gap: 14px; }
  .rds-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .rds-gallery__main { min-height: 0; padding: 18px; }
}
@media (max-width: 720px) {
  .rds-hero__in { flex-direction: column; align-items: flex-start; min-height: 0; }
  .rds-hero__art { width: 260px; height: 170px; align-self: center; }
  .rds-hero__cover { width: 112px; }
  .rds-hero__cover--2 { inset-inline-start: 80px; }
  .rds-assure { grid-template-columns: 1fr; }
  .rds-product { padding-bottom: 96px; }
  .rds-buy .rds-btn { flex: 1 1 auto; }
  .rds-buy__qty .rds-qty { flex: 1; justify-content: space-between; }
  .rds-details { grid-template-columns: 1fr; }
  .rds-sticky { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 900; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-block-start: 1px solid var(--rb); box-shadow: 0 -10px 30px rgba(44, 35, 110, .12); }
  .rds-sticky .rds-btn { flex: 1; }
  .rds-sticky__cart { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; flex: none; border: 2px solid var(--rp); border-radius: 14px; background: #fff; color: var(--rp); cursor: pointer; }
}
@media (max-width: 640px) {
  .rds-grid { grid-template-columns: 1fr; } /* الهاتف: منتجٌ واحدٌ في الصفّ */
}
@media (max-width: 330px) {
  .rds-benefits__grid { grid-template-columns: 1fr; } /* اللوحة ٤: عمودان على الهاتف؛ العمودُ الواحدُ لأضيقِ الشاشات (≈٣٢٠) وحدَها */
}
@media (prefers-reduced-motion: reduce) {
  .rds-card, .rds-btn { transition: none; }
  .rds-card:hover, .rds-btn:hover { transform: none; }
}

/* ── أيقونة السلّة (هيدر الموقع) ── */
.rds-hicon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--purple-light, #f1efff); color: var(--purple, #6c5ce7); text-decoration: none; }
.rds-hicon:focus-visible { outline: 3px solid rgba(var(--purple-rgb, 108, 92, 231), .45); outline-offset: 2px; }
.rds-badge { position: absolute; inset-block-start: -4px; inset-inline-start: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f06a2c; color: #fff; font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; }
.rds-badge[hidden] { display: none; }

/* ── رسالةٌ عابرة ── */
.rds-toast { position: fixed; inset-inline: 16px; inset-block-end: 24px; z-index: 2000; display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 420px; margin-inline: auto; padding: 12px 18px; border-radius: 16px; background: #1e2a4a; color: #fff; box-shadow: 0 16px 40px rgba(30, 42, 74, .35); }
.rds-toast__link { color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
/* نافذةُ «أُضيفت إلى سلّتك» (الهاتف) */
.rds-sheet-bg { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: flex-end; justify-content: center; background: rgba(30, 42, 74, .45); }
.rds-sheet { width: 100%; max-width: 520px; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -16px 40px rgba(30, 42, 74, .25); animation: rds-up .2s ease-out; }
.rds-sheet__grip { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #e7e6f4; }
.rds-sheet__ok { margin: 0 0 10px; font-weight: 800; color: #14724e; }
.rds-sheet__item { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: #6b7390; }
.rds-sheet .rds-btn { width: 100%; margin-block-start: 8px; }
@keyframes rds-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rds-sheet { animation: none; } }

/* ── صفحة السلّة ── */
.rds-cart__title { margin: 0 0 22px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rds-cart__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rds-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.rds-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--rb); border-radius: 20px; background: #fff; }
.rds-line__media { display: flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 12px; background: #f7f6ff; overflow: hidden; }
.rds-line__media img { width: 72px; height: 72px; object-fit: contain; }
.rds-line__info { display: flex; flex-direction: column; min-width: 0; }
.rds-line__title { font-weight: 800; color: var(--rn); text-decoration: none; }
.rds-line__unit { color: var(--rm); font-size: .9rem; }
.rds-line__total { min-width: 90px; text-align: end; }
.rds-line__rm { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f4f2ff; color: #b32d2e; font-size: 1.2rem; cursor: pointer; }
.rds-line .rds-qty button { height: 40px; width: 36px; }
.rds-line .rds-qty input { height: 40px; width: 44px; }
.rds-summary { padding: 20px; border: 1px solid var(--rb); border-radius: 22px; background: #fff; display: flex; flex-direction: column; gap: 12px; position: sticky; inset-block-start: 96px; }
.rds-summary h2 { margin: 0; font-size: 1.2rem; }
.rds-summary__row { display: flex; align-items: baseline; justify-content: space-between; margin: 0; font-size: 1.1rem; }
.rds-summary__note { margin: 0; color: var(--rm); font-size: .9rem; }
.rds-cart__warn { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #fff3dc; color: #7a4a00; font-weight: 700; }
@media (max-width: 900px) {
  .rds-cart__grid { grid-template-columns: 1fr; }
  .rds-summary { position: static; }
  .rds-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "m i x" "q q t"; row-gap: 10px; }
  .rds-line__rm { justify-self: end; }
  .rds-line__media { grid-area: m; width: 64px; height: 64px; }
  .rds-line__info { grid-area: i; }
  .rds-line__rm { grid-area: x; }
  .rds-line .rds-qty { grid-area: q; width: auto; justify-self: start; }
  .rds-line__total { grid-area: t; min-width: 0; align-self: center; }
}

/* ── الدخول والحساب ── */
.rds-account__title { margin: 0 0 22px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rds-card-box { padding: 22px; border: 1px solid var(--rb); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(44, 35, 110, .05); }
.rds-account__grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rds-account__side { display: flex; flex-direction: column; gap: 12px; }
.rds-account__side h2 { margin: 0; font-size: 1.15rem; }
.rds-addr { margin: 0; font-style: normal; color: var(--rm); line-height: 1.9; }
.rds-profile { display: flex; align-items: center; gap: 14px; margin-block-end: 16px; }
.rds-profile__ic { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--rpl); color: var(--rp); font-size: 1.5rem; font-weight: 800; }
.rds-profile small { display: block; color: var(--rm); }
.rds-tabs { display: flex; gap: 8px; margin-block-end: 16px; }
.rds-tab { padding: 8px 22px; border: 0; border-radius: 14px; background: var(--rpl); color: var(--rm); font: inherit; font-weight: 800; cursor: pointer; }
.rds-tab.is-active { background: var(--rp); color: #fff; }
.rds-orders, .rds-addrs { margin: 0; padding: 0; list-style: none; }
.rds-order { padding: 14px 0; border-block-end: 1px solid var(--rb); }
.rds-order:last-child { border-block-end: 0; }
.rds-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rds-order__date { color: var(--rm); font-size: .9rem; }
.rds-order__total { margin-inline-start: auto; font-weight: 800; }
.rds-order__items { margin: 6px 0 0; color: var(--rm); font-size: .93rem; }
.rds-order__track { margin: 6px 0 0; color: #14724e; font-weight: 700; }
.rds-status { padding: 2px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800; background: #eee; color: #50575e; }
.rds-status--paid { background: #e8f1ff; color: #1d4ea0; }
.rds-status--processing { background: #fff3dc; color: #9a5a00; }
.rds-status--shipped { background: #e6f6ec; color: #1a7f4b; }
.rds-status--delivered { background: var(--rpl); color: var(--rpd); }
.rds-empty-note { color: var(--rm); margin: 6px 0 0; }
.rds-addr-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-block-end: 1px solid var(--rb); }
.rds-addr-item p { margin: 4px 0 0; color: var(--rm); font-size: .93rem; }
.rds-addr-item__acts { display: flex; gap: 12px; flex: none; }
.rds-link-btn { border: 0; background: none; padding: 0; color: var(--rp); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.rds-link-btn--danger { color: #b32d2e; }
.rds-addr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 16px; }
.rds-addr-form .rds-field, .rds-addr-form .rds-check, .rds-addr-form__actions, .rds-addr-form .rds-login__msg { grid-column: 1 / -1; }
.rds-addr-form .rds-field:nth-of-type(n+2):nth-of-type(-n+8) { grid-column: auto; }
.rds-addr-form__actions { display: flex; gap: 10px; }
.rds-field label { display: block; font-weight: 700; margin-block-end: 4px; }
.rds-input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 8px 14px; border: 1px solid var(--rb); border-radius: 14px; font: inherit; background: #fff; }
.rds-input--code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; }
.rds-err { display: block; min-height: 1.1em; color: #b32d2e; font-size: .85rem; }
.rds-check { display: inline-flex; align-items: center; gap: 8px; }
.rds-login { max-width: 460px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.rds-login__lead { margin: 0; color: var(--rm); }
.rds-login__step { display: flex; flex-direction: column; gap: 10px; }
.rds-login__step[hidden] { display: none; }
.rds-login__msg { min-height: 1.3em; margin: 0; color: var(--rg); font-weight: 700; }
.rds-login__msg.is-err { color: #b32d2e; }
@media (max-width: 900px) {
  .rds-account__grid { grid-template-columns: 1fr; }
  .rds-addr-form { grid-template-columns: 1fr; }
  .rds-order__total { margin-inline-start: 0; }
}

/* ── الدفع و«شكراً» ── */
.rds-checkout__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rds-checkout__form { margin-block-start: 0; }
.rds-checkout__form .rds-field { grid-column: auto; }
.rds-checkout__form .rds-checkout__saved,
.rds-checkout__form .rds-field:first-of-type,
.rds-checkout__form .rds-field:nth-of-type(2) { grid-column: 1 / -1; }
.rds-checkout__side h2 { margin: 0 0 10px; font-size: 1.15rem; }
.rds-checkout__test { margin: 0 0 16px; padding: 10px 16px; border-radius: 14px; background: #fff3dc; color: #7a4a00; font-weight: 800; }
.rds-pay { display: flex; flex-direction: column; gap: 14px; }
.rds-pay__el { min-height: 120px; }
.rds-pay__btn[disabled] { opacity: .6; cursor: progress; }
.rds-sum { margin: 0 0 8px; padding: 0; list-style: none; }
.rds-sum li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-block-end: 1px solid var(--rb); }
.rds-sum__row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; color: var(--rm); }
.rds-sum__row span:last-child, .rds-sum__row strong:last-child { white-space: nowrap; }
.rds-sum__total { margin-block-start: 10px; padding-block-start: 10px; border-block-start: 2px solid var(--rb); color: inherit; font-size: 1.15rem; }
/* 1.3.7: مؤشّرُ الخطوات الثلاث وخياراتُ الشحن. */
.rds-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.rds-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; border-radius: 14px; background: #fff; border: 1px solid var(--rb); color: var(--rm); font-weight: 700; font-size: .95rem; }
.rds-steps span { display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--rb); color: var(--rn); font-size: .9rem; }
.rds-steps .is-on { border-color: var(--rp); color: var(--rn); }
.rds-steps .is-on span { background: var(--rp); color: #fff; }
.rds-steps .is-done span { background: var(--rg); color: #fff; }
.rds-ship { display: flex; flex-direction: column; gap: 14px; }
.rds-ship__title { margin: 0; font-size: 1.2rem; }
.rds-ship__to { margin: 0; color: var(--rm); }
.rds-ship__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; }
.rds-ship__opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--rb); border-radius: 16px; background: #fff; cursor: pointer; }
.rds-ship__opt:has(input:checked) { border-color: var(--rp); background: var(--rpl); }
.rds-ship__opt input { inline-size: 20px; block-size: 20px; accent-color: var(--rp); flex: none; }
.rds-ship__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rds-ship__txt small { color: var(--rm); font-size: .9rem; }
.rds-ship__price { font-weight: 800; white-space: nowrap; }
.rds-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rds-thanks__box { max-width: 560px; margin-inline: auto; text-align: center; }
@media (max-width: 900px) {
  .rds-checkout__grid { grid-template-columns: 1fr; }
}

/* الوسمُ hidden يغلب display الأصناف (نماذجُ grid كانت تظهر رغم hidden). */
.rds-store [hidden] { display: none !important; }

/* رأسُ الموقع على الهاتف: أيقونتا السلّة وحسابي تُضافان إلى صفٍّ يضيق أصلاً (الشعارُ + البرجرُ + «حمّل التطبيق») ⇒ كان يفيض أفقيّاً (٣٦٠/٣٩٠).
   الحلُّ: صفُّ الإجراءات ينزل إلى سطرٍ ثانٍ بعرضٍ كاملٍ — لا قصَّ ولا تمريرَ أفقيّ. (النطاقُ بوجود الأيقونتين فلا يمسّ غيرَ صفحات المتجر.) */
@media (max-width: 480px) {
	.site-header .nav-wrap:has(.rds-hicon) { flex-wrap: wrap; row-gap: 8px; padding-block: 8px; }
	.site-header .nav-actions:has(.rds-hicon) { flex: 1 0 100%; justify-content: space-between; }
}
.rds-sticky__price { display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-weight: 800; unicode-bidi: isolate; }
