.hsc-wrap{max-width:1200px;margin:0 auto}
.hsc-slider{position:relative;overflow:hidden;border-radius:20px;margin:10px 8px 14px;box-shadow:0 8px 22px rgba(15,40,80,.18);background:#0b7a6f}
.hsc-track{display:grid}
.hsc-slide{grid-area:1/1;position:relative;overflow:hidden;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 30px;min-height:158px;direction:rtl;font-family:inherit;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s}
.hsc-slide.on{opacity:1;visibility:visible;z-index:1}
.hsc-slide:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.13);left:-60px;top:-70px}
.hsc-slide:after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.1);right:-40px;bottom:-60px}
.hsc-click{cursor:pointer;-webkit-tap-highlight-color:transparent}
.hsc-txt{position:relative;z-index:1;flex:1}
.hsc-wrap .hsc-t{color:#fff!important;font-size:clamp(19px,5.4vw,28px);font-weight:800;line-height:1.35;margin:0 0 6px}
.hsc-wrap .hsc-s{color:#fff!important;opacity:.95;font-size:clamp(12px,3.4vw,15px);line-height:1.6;margin:0 0 12px}
.hsc-wrap .hsc-cta{display:inline-block;background:#fff;color:#0b3d6b!important;font-weight:800;font-size:13px;padding:7px 16px;border-radius:999px;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.hsc-ico{position:relative;z-index:1;width:clamp(60px,17vw,100px);flex:none}
.hsc-dots{position:absolute;bottom:9px;left:0;right:0;display:flex;justify-content:center;gap:6px;z-index:3}
.hsc-dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer;transition:all .3s}
.hsc-dots i.on{background:#fff;width:22px;border-radius:6px}
.hsc-h{text-align:center;font-size:22px;font-weight:800;margin:10px 0 12px}

/* قائمة الأدوية */
.hsc-sheet{display:none;position:fixed;inset:0;z-index:2147483000}
.hsc-sheet.hsc-open{display:block}
.hsc-bd{position:absolute;inset:0;background:rgba(10,20,40,.55)}
.hsc-panel{position:absolute;left:0;right:0;bottom:0;height:88vh;max-height:88vh;display:flex;flex-direction:column;background:#f6f8fb;border-radius:24px 24px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.25)}
.hsc-ph{flex:none;display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;font-size:19px;font-weight:800;color:#14323f}
.hsc-x{border:0;background:#e5eaf1;color:#14323f;width:36px;height:36px;border-radius:50%;font-size:24px;line-height:1;cursor:pointer;padding:0}
.hsc-body{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:4px 8px 24px}
.hsc-loading{text-align:center;padding:30px;color:#6b7280;font-size:14px}

/* بطاقات منتجات مضغوطة داخل القائمة */
.hsc-body .woocommerce{margin:0!important;padding:0!important}
.hsc-body ul.products{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;margin:0!important;padding:0!important;list-style:none}
.hsc-body ul.products:before,.hsc-body ul.products:after{display:none!important}
.hsc-sheet .woocommerce ul.products li.product{width:auto!important;max-width:none!important;margin:0!important;float:none!important;min-width:0}
.hsc-sheet .woocommerce ul.products li.product .mf-act{display:none!important}
.hsc-sheet .woocommerce ul.products li.product img{width:100%!important;height:130px!important;max-height:130px!important;object-fit:contain!important;aspect-ratio:auto!important;margin:0 auto!important}
.hsc-sheet .woocommerce ul.products li.product :is(div,span,a):has(> img){height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;padding:8px 8px 0!important}
.hsc-sheet .woocommerce ul.products li.product .woocommerce-loop-product__title{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;height:auto!important;min-height:0!important;max-height:none!important;font-size:12.5px!important;line-height:1.5!important;margin:4px 8px 4px!important;word-break:break-word;text-align:center!important}
.hsc-sheet .woocommerce ul.products li.product .price{display:block!important;text-align:center!important;font-size:15px!important;margin:2px 8px 6px!important}
.hsc-sheet .woocommerce ul.products li.product .mf-meta{display:none!important}
.hsc-sheet .woocommerce ul.products li.product .mf-qty-wrap,.hsc-sheet .woocommerce ul.products li.product .mf-opts{width:calc(100% - 16px)!important;max-width:none!important;margin:0 8px 10px!important;box-sizing:border-box}
.hsc-sheet .mf-qty-wrap .mf-qty-add{font-size:12px!important;padding:0 4px!important;gap:4px!important}


/* LRP home logo on slide */
.hlrp-home-ico img {
  width: 100%; height: auto; border-radius: 50%;
  background: rgba(255,255,255,.95); padding: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.hlrp-home-wrap .hsc-slider { background: #0056a4; }


/* إخفاء أي بقايا زر عائم / شريط سفلي قديم */
.hlrp-fab, #hlrp-fab, .hlrp-helpbar, #hlrp-helpbar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Hamada LRP Collection */
.hlrp-wrap, .hlrp-quiz, .hlrp-bundles { font-family: inherit; }

.hlrp-section-title { text-align: center; margin: 0 0 8px; font-size: 1.4rem; }
.hlrp-quiz-sub { text-align: center; color: #666; margin: 0 0 20px; }

/* Category chips */
.hlrp-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.hlrp-cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--c, #00a3e0);
  color: var(--c, #00a3e0); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: .2s;
}
.hlrp-cat-chip:hover { background: var(--c, #00a3e0); color: #fff; }

/* Product grid */
.hlrp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.hlrp-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
}
.hlrp-img { display: block; background: #fff; aspect-ratio: 1; overflow: hidden; }
.hlrp-img img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.hlrp-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hlrp-name { font-size: 13px; line-height: 1.35; color: #222; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.hlrp-price { color: #1565c0; font-weight: 700; font-size: 15px; }
.hlrp-btn {
  display: block; text-align: center; background: #1565c0; color: #fff !important;
  border-radius: 10px; padding: 9px 10px; font-size: 13px; font-weight: 600;
  text-decoration: none; margin-top: auto;
}
.hlrp-btn:hover { background: #0d47a1; color: #fff !important; }

/* Bundles */
.hlrp-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin-top: 12px;
}
.hlrp-bundle {
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); position: relative;
  border: 1px solid #e8eef5;
}
.hlrp-badge {
  position: absolute; top: 12px; left: 12px;
  background: #00a3e0; color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.hlrp-bundle h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hlrp-bundle-desc { color: #666; font-size: 13px; margin: 0 0 10px; }
.hlrp-bundle-list { margin: 0 0 12px; padding-right: 18px; font-size: 13px; color: #444; }
.hlrp-bundle-list li { margin-bottom: 4px; }
.hlrp-bundle-price { font-size: 1.25rem; font-weight: 700; color: #1565c0; margin-bottom: 10px; }
.hlrp-bundle-actions { display: flex; flex-direction: column; gap: 6px; }
.hlrp-btn-sm {
  display: block; text-align: center; background: #e3f2fd; color: #1565c0 !important;
  border-radius: 8px; padding: 7px 8px; font-size: 12px; font-weight: 600; text-decoration: none;
}
.hlrp-btn-sm:hover { background: #1565c0; color: #fff !important; }

/* Quiz */
.hlrp-quiz { max-width: 720px; margin: 0 auto 24px; }
.hlrp-qtitle { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; text-align: center; }
.hlrp-qopts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hlrp-qopts button {
  background: #fff; border: 2px solid #90caf9; color: #1565c0;
  border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.hlrp-qopts button:hover { background: #1565c0; color: #fff; border-color: #1565c0; }
.hlrp-qresult { margin-top: 8px; }

/* Hide wishlist hearts on LRP */
.hlrp-wrap .yith-wcwl-add-to-wishlist,
.hlrp-wrap .wishlist-icon,
.hlrp-wrap .add-to-wishlist,
.hlrp-wrap .tinvwl_add_to_wishlist_button,
.hlrp-wrap .woosw-btn,
.hlrp-wrap .mf-wishlist,
.hlrp-wrap .btn-wishlist,
.product_cat-la-roche-posay .yith-wcwl-add-to-wishlist,
.product_cat-la-roche-posay .wishlist-icon,
.product_cat-la-roche-posay .add-to-wishlist,
.product_cat-la-roche-posay .tinvwl_add_to-wishlist_button,
.product_cat-la-roche-posay .woosw-btn,
.product_cat-la-roche-posay .mf-wishlist,
.product_cat-la-roche-posay .btn-wishlist {
  display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important;
}

@media (max-width: 600px) {
  .hlrp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hlrp-name { font-size: 12px; }
}

/* ===== فحص البشرة الذكي ===== */
.hlrp-exam { max-width: 780px; margin: 0 auto 28px; }
.hlrp-exam-hero {
  text-align: center; background: linear-gradient(135deg,#e3f2fd,#f3e5f5);
  border-radius: 18px; padding: 22px 18px 16px; margin-bottom: 18px;
}
.hlrp-exam-badge {
  display: inline-block; background: #1565c0; color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.hlrp-exam-title { margin: 0 0 6px; font-size: 1.45rem; color: #0d47a1; }
.hlrp-exam-sub { margin: 0 0 14px; color: #555; font-size: 14px; line-height: 1.5; }
.hlrp-exam-progress {
  height: 8px; background: rgba(21,101,192,.15); border-radius: 99px; overflow: hidden; max-width: 320px; margin: 0 auto 8px;
}
.hlrp-exam-bar {
  height: 100%; background: linear-gradient(90deg,#1565c0,#7b1fa2); border-radius: 99px; transition: width .35s ease;
}
.hlrp-exam-stepnum { font-size: 12px; color: #666; font-weight: 600; }

.hlrp-qhint { text-align: center; color: #888; font-size: 13px; margin: -6px 0 14px; }
.hlrp-qopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hlrp-qopts button {
  display: flex; align-items: flex-start; gap: 10px; text-align: right;
  background: #fff; border: 2px solid #e3eaf3; color: #1a237e;
  border-radius: 14px; padding: 14px 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .2s; line-height: 1.35;
}
.hlrp-qopts button small { display: block; font-weight: 400; color: #777; font-size: 12px; margin-top: 2px; }
.hlrp-qopts button:hover, .hlrp-qopts button.is-on {
  border-color: #1565c0; background: #e3f2fd; color: #0d47a1;
}
.hlrp-qico { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }

.hlrp-result-head { text-align: center; margin-bottom: 14px; }
.hlrp-result-ok {
  display: inline-block; background: #e8f5e9; color: #2e7d32;
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 8px;
}
.hlrp-result-head h3 { margin: 0 0 6px; font-size: 1.3rem; color: #0d47a1; }
.hlrp-result-summary { color: #555; font-size: 14px; margin: 0 auto 10px; max-width: 520px; line-height: 1.5; }
.hlrp-result-labels { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.hlrp-tag {
  background: #f3e5f5; color: #6a1b9a; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.hlrp-result-block { margin-bottom: 18px; }
.hlrp-result-label {
  font-weight: 700; font-size: 14px; color: #333; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 2px solid #e3f2fd;
}
.hlrp-result-note {
  background: #fff8e1; border: 1px solid #ffe082; border-radius: 12px;
  padding: 12px 14px; font-size: 12.5px; color: #6d4c41; margin: 8px 0 16px; line-height: 1.5;
}
.hlrp-empty { color: #999; font-size: 13px; padding: 8px; }

@media (max-width: 560px) {
  .hlrp-qopts { grid-template-columns: 1fr; }
  .hlrp-exam-title { font-size: 1.25rem; }
}

/* ===== شريط أعلى صفحة La Roche-Posay فقط ===== */
.hlrp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 16px;
  box-shadow: 0 2px 8px rgba(13,71,161,.06);
}
.hlrp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hlrp-topbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e3f2fd;
  flex-shrink: 0;
}
.hlrp-topbar-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.hlrp-topbar-titles strong {
  font-size: 14px;
  color: #0d47a1;
}
.hlrp-topbar-titles span {
  font-size: 11.5px;
  color: #78909c;
}
.hlrp-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1565c0;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(21,101,192,.25);
}
.hlrp-topbar-btn:hover { background: #0d47a1; }
.hlrp-topbar-btn-ico { font-size: 1rem; line-height: 1; }

/* مودال الفحص */
.hlrp-exam-modal {
  position: fixed !important; inset: 0 !important;
  z-index: 2147483646 !important;
  display: none;
  align-items: flex-end; justify-content: center;
}
.hlrp-exam-modal.is-open { display: flex !important; }
.hlrp-exam-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.hlrp-exam-modal-panel {
  position: relative;
  width: 100%; max-width: 820px;
  max-height: 92vh;
  overflow: auto;
  background: #f7f9fc;
  border-radius: 20px 20px 0 0;
  padding: 16px 14px 28px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.2);
  animation: hlrpSlideUp .28s ease;
}
@keyframes hlrpSlideUp {
  from { transform: translateY(40px); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}
.hlrp-exam-close {
  position: sticky; top: 0; float: left;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: #eceff1; color: #333;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 2;
}
.hlrp-exam-close:hover { background: #cfd8dc; }
.hlrp-exam-modal-body { clear: both; }

@media (min-width: 768px) {
  .hlrp-exam-modal { align-items: center; }
  .hlrp-exam-modal-panel {
    border-radius: 20px;
    max-height: 88vh;
    margin: 20px;
  }
}
@media (max-width: 400px) {
  .hlrp-topbar-titles span { display: none; }
  .hlrp-topbar-btn { padding: 8px 12px; font-size: 12px; }
}

/* ===== ترشيح مرتب: أساسي / ثانوي / داعم ===== */
.hlrp-rec-ranked { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 16px; }
.hlrp-rank-card {
  background: #fff; border-radius: 14px; border: 1px solid #e3eaf3;
  padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hlrp-rank-card.role-primary { border-color: #1565c0; box-shadow: 0 2px 12px rgba(21,101,192,.12); }
.hlrp-rank-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hlrp-role-badge {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #e3f2fd; color: #0d47a1;
}
.role-primary .hlrp-role-badge { background: #1565c0; color: #fff; }
.role-secondary .hlrp-role-badge { background: #f3e5f5; color: #6a1b9a; }
.role-support .hlrp-role-badge { background: #e8f5e9; color: #2e7d32; }
.role-extra .hlrp-role-badge { background: #fff3e0; color: #e65100; }
.hlrp-why-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #f9a825;
  background: #fffde7; color: #f57f17; font-weight: 900; font-size: 16px;
  cursor: pointer; line-height: 1;
}
.hlrp-why-btn.is-on, .hlrp-why-btn:hover { background: #f9a825; color: #fff; }
.hlrp-rank-main { display: flex; gap: 12px; align-items: flex-start; }
.hlrp-rank-img {
  width: 88px; height: 88px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: #fff; display: block;
}
.hlrp-rank-img img { width: 100%; height: 100%; object-fit: contain; }
.hlrp-rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hlrp-role-hint { margin: 0; font-size: 12px; color: #607d8b; line-height: 1.4; }
.hlrp-why-panel {
  margin-top: 10px; padding: 10px 12px; background: #fff8e1; border-radius: 10px;
  border: 1px solid #ffe082; font-size: 13px; color: #5d4037; line-height: 1.55;
  display: grid; gap: 8px;
}
.hlrp-why-panel[hidden] { display: none !important; }
.hlrp-rank-info .hlrp-btn { margin-top: 6px; }

.hlrp-topbar-btn, .hlrp-open-exam { pointer-events: auto !important; cursor: pointer !important; position: relative; z-index: 5; }
.hlrp-exam-modal-panel { z-index: 2; position: relative; max-height: 92vh; overflow: auto; }

/* كارت ماركة La Roche-Posay بعد Eucerin */
.hlrp-brand-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none !important;
  color: #222 !important;
  min-width: 120px;
  max-width: 160px;
  margin: 0 6px;
  flex: 0 0 auto;
  cursor: pointer;
}
.hlrp-brand-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #f3f6fa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.hlrp-brand-img img {
  width: 72%;
  height: auto;
  object-fit: contain;
}
.hlrp-brand-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #222;
}


/* زر فحص واضح للعميل التايه */
.hlrp-topbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(90deg, #e8f4ff, #ffffff) !important;
  border: 1px solid #bbdefb !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
  margin: 8px 10px 14px !important;
  box-shadow: 0 4px 14px rgba(21,101,192,.10) !important;
}
.hlrp-topbar-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #0d47a1, #1565c0) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 20 !important;
  box-shadow: 0 4px 12px rgba(13,71,161,.35) !important;
  max-width: 58%;
  text-align: right;
  line-height: 1.25 !important;
}
.hlrp-topbar-btn-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hlrp-topbar-btn-txt strong {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.hlrp-topbar-btn-txt em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #bbdefb;
}
.hlrp-topbar-btn-ico {
  font-size: 1.35rem !important;
  background: rgba(255,255,255,.18);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hlrp-topbar-logo {
  width: 44px !important; height: 44px !important;
  border-radius: 50% !important;
  border: 2px solid #e3f2fd;
  background: #fff;
  object-fit: cover;
}
.hlrp-exam-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
}
.hlrp-exam-modal.is-open,
.hlrp-exam-modal[style*="flex"] {
  display: flex !important;
}
