/* ============================================================
   Ellen Bundles — بوب أب + صفحة العروض (هوية إيلين)
   ============================================================ */

.ellen-bundle,
.ellen-bundle-overlay,
.ellen-bundle-grid,
.ellen-bundle-reopen,
.ellen-bundle-minicart {
  --b-coral: #C87B5C;
  --b-teal: #0C292D;
  --b-cream: #FDEFD3;
  --b-ink: #0A2A2D;
  --b-muted: #7A7A7A;
  font-family: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  box-sizing: border-box;
}
.ellen-bundle *, .ellen-bundle-grid * { box-sizing: border-box; }

/* ===== كارت الطقم ===== */
.ellen-bundle {
  background: #fff;
  border: 1px solid #efe7d8;
  border-radius: 16px;
  padding: 22px;
  direction: rtl;
  text-align: right;
  box-shadow: 0 8px 26px rgba(32, 36, 42, .08);
  position: relative;
}
.ellen-bundle__eyebrow { color: var(--b-coral); font-weight: 700; font-size: 14px; }
.ellen-bundle__title { font-size: 22px; font-weight: 700; color: var(--b-ink); margin: 4px 0 6px; }
.ellen-bundle__subtitle { color: var(--b-muted); font-size: 14px; margin: 0 0 14px; line-height: 1.6; }

/* ===== قطع الطقم ===== */
.ellen-bundle__items {
  display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap;
  background: #faf6ee; border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.ellen-bundle__plus { align-self: center; font-size: 26px; font-weight: 700; color: var(--b-coral); }
.ellen-bundle__item { flex: 1 1 130px; min-width: 120px; text-align: center; }
.ellen-bundle__thumb { border-radius: 10px; overflow: hidden; background: #fff; aspect-ratio: 1/1; }
.ellen-bundle__thumb img,
.ellen-bundle__thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s ease; }
.ellen-bundle__item-name { display: block; font-size: 13px; font-weight: 600; color: var(--b-ink); margin: 8px 0 2px; }
.ellen-bundle__item-price { display: block; font-size: 12.5px; color: var(--b-muted); margin-bottom: 8px; }
.ellen-bundle__item-price .amount { direction: ltr; display: inline-block; }

/* ===== الدروب داون (لون/مقاس) — كل أتريبيوت لوحده، بتصميم الموقع + سهم واضح ===== */
.ellen-bundle__attrs { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.ellen-bundle__select { position: relative; }
.ellen-bundle__select::after {
  content: ""; position: absolute; inset-inline-start: 13px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-inline-end: 2px solid var(--b-coral); border-block-end: 2px solid var(--b-coral);
  transform: rotate(45deg);
}
.ellen-bundle__variation {
  width: 100%; padding: 11px 14px; padding-inline-start: 34px;
  border: 1.5px solid #e4dccf; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4;
  background: #fff; color: var(--b-ink);
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; direction: rtl; text-align: right;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ellen-bundle__variation:focus { outline: none; border-color: var(--b-coral); box-shadow: 0 0 0 3px rgba(200, 123, 92, .15); }
.ellen-bundle__variation:hover { border-color: var(--b-coral); }
.ellen-bundle__variation.is-error { border-color: #e23b3b; background: #fff5f5; }
.ellen-bundle__variation option { font-weight: 600; padding: 8px; }

/* ===== التسعير ===== */
.ellen-bundle__prices { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ellen-bundle__was { color: var(--b-muted); text-decoration: line-through; font-size: 15px; }
.ellen-bundle__now { color: var(--b-coral); font-weight: 800; font-size: 24px; }
.ellen-bundle__was .amount, .ellen-bundle__now .amount, .ellen-bundle__save .amount { direction: ltr; display: inline-block; }
.ellen-bundle__save { background: var(--b-teal); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }

/* ===== زرار الإضافة ===== */
.ellen-bundle__add {
  width: 100%; padding: 14px; border: 0; border-radius: 50px; cursor: pointer;
  background: var(--b-coral); color: #fff; font-family: inherit; font-weight: 700; font-size: 16px;
  transition: background .2s ease, transform .15s ease;
}
.ellen-bundle__add:hover:not([disabled]) { background: var(--b-teal); transform: translateY(-2px); }
.ellen-bundle__add[disabled] { background: #c9c9c9; cursor: not-allowed; }
.ellen-bundle__msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--b-teal); text-align: center; }
.ellen-bundle__msg.is-error { color: #e23b3b; }

/* ===== البوب أب ===== */
.ellen-bundle-overlay {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(10, 42, 45, .55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: ellenBundleFade .25s ease;
}
@keyframes ellenBundleFade { from { opacity: 0 } to { opacity: 1 } }
.ellen-bundle--popup { width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; animation: ellenBundlePop .3s ease; padding-top: 26px; }
@keyframes ellenBundlePop { from { transform: translateY(16px); opacity: 0 } to { transform: none; opacity: 1 } }
/* العنوان يسيب مساحة لزرار الإغلاق اللي على الشمال */
.ellen-bundle--popup .ellen-bundle__head { padding-inline-start: 44px; }
/* زرار الإغلاق: دايرة محفورة على الشمال (زي ويندوز) */
.ellen-bundle__close {
  position: absolute; top: 14px; left: 14px; right: auto;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f2eadd; color: var(--b-ink);
  font-size: 22px; line-height: 36px; text-align: center; padding: 0;
  box-shadow: inset 0 2px 4px rgba(10, 42, 45, .22), inset 0 -1px 0 rgba(255, 255, 255, .6);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.ellen-bundle__close:hover { background: var(--b-coral); color: #fff; transform: rotate(90deg); }
.ellen-bundle__close:active { box-shadow: inset 0 3px 6px rgba(10, 42, 45, .35); }

/* ===== زرار إعادة الفتح (عائم) ===== */
.ellen-bundle-reopen {
  position: fixed; inset-block-end: 78px; inset-inline-end: 14px; z-index: 70;
  background: var(--b-teal); color: #fff; border: 0; cursor: pointer;
  font-family: "Cairo", sans-serif; font-weight: 700; font-size: 14px;
  padding: 11px 16px; border-radius: 50px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease;
}
.ellen-bundle-reopen:hover { transform: scale(1.05); background: var(--b-coral); }

/* ===== شبكة صفحة العروض ===== */
.ellen-bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ellen-bundle--card { height: 100%; }
.ellen-bundle-empty { text-align: center; color: var(--b-muted); padding: 40px 0; font-family: "Cairo", sans-serif; }

/* ===== تفاصيل السعر في السايد بار (الميني كارت) ===== */
.ellen-bundle-minicart {
  margin: 12px 0; padding-top: 12px;
  border-top: 1px dashed #e4dccf;
  direction: rtl; text-align: right;
}
.ellen-bundle-minicart__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; margin: 7px 0;
}
.ellen-bundle-minicart__row .amount { direction: ltr; display: inline-block; }
.ellen-bundle-minicart__row--discount { color: var(--b-coral); font-weight: 700; }
.ellen-bundle-minicart__row--total { color: var(--b-ink); font-weight: 800; font-size: 15.5px; }

@media (max-width: 767px) {
  .ellen-bundle-grid { grid-template-columns: 1fr; }
  .ellen-bundle__title { font-size: 19px; }
  .ellen-bundle__now { font-size: 21px; }
  .ellen-bundle-reopen { inset-block-end: 70px; font-size: 13px; padding: 10px 14px; }
  .ellen-bundle__items { gap: 8px; padding: 12px; }
  .ellen-bundle__item { flex: 1 1 45%; min-width: 45%; }
}
