/* Add custom CSS styles below */ 
/* =========================================================
   MISO SKIN x SALLA UI
   Version: MISO_SALLA_UI_V34_CLEAN_SCOPE
   يعمل فقط على الصفحة الرئيسية + اختبار Miso Match
   لا يلمس كروت منتجات سلة ولا الهيدر ولا الفوتر ولا صفحات المنتجات
========================================================= */

:root {
  --miso-peach: #FFE9DC;
  --miso-peach-strong: #F8CAB2;
  --miso-coral: #E98575;
  --miso-coral-dark: #D96F62;
  --miso-teal: #1F5E60;
  --miso-teal-2: #2F8A8A;
  --miso-mint: #E6F8F6;
  --miso-soft: #F8FFFE;
  --miso-dark: #333333;
  --miso-muted: #737373;
  --miso-border: rgba(47, 138, 138, 0.14);
  --miso-shadow: 0 18px 45px rgba(31, 94, 96, 0.10);
  --miso-radius-xl: 28px;
  --miso-radius-lg: 22px;
  --miso-radius-md: 16px;
  --miso-container: min(1180px, calc(100% - 32px));
}

/* =========================================================
   MISO SAFE RESET - خاص بعناصر ميسو فقط
========================================================= */

.miso-hero,
.miso-section,
.miso-quiz-page,
.miso-quiz-popup,
.miso-clean-topbar {
  box-sizing: border-box;
  font-family: inherit;
}

.miso-hero *,
.miso-section *,
.miso-quiz-page *,
.miso-quiz-popup *,
.miso-clean-topbar * {
  box-sizing: border-box;
}

/* =========================================================
   TOP PROMO BAR - شريط ميسو فقط
========================================================= */

#misoCleanMovingPromoBar {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  overflow: hidden !important;
  background: linear-gradient(90deg, var(--miso-teal), var(--miso-teal-2), #8EDAD3) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  z-index: 50 !important;
  direction: rtl !important;
  box-shadow: 0 6px 18px rgba(31, 94, 96, 0.14) !important;
}

#misoCleanMovingPromoBar .miso-clean-track {
  display: flex !important;
  align-items: center !important;
  width: max-content !important;
  white-space: nowrap !important;
  animation: misoCleanPromoMove 24s linear infinite !important;
  will-change: transform !important;
}

#misoCleanMovingPromoBar .miso-clean-group {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

#misoCleanMovingPromoBar span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 44px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  line-height: 36px !important;
}

@keyframes misoCleanPromoMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

#misoCleanMovingPromoBar:hover .miso-clean-track {
  animation-play-state: paused !important;
}

/* =========================================================
   HOME HERO
========================================================= */

.miso-hero {
  width: var(--miso-container);
  margin: 22px auto 28px !important;
  border-radius: var(--miso-radius-xl);
  border: 1px solid rgba(31, 94, 96, 0.16);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(248, 202, 178, 0.45), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(47, 138, 138, 0.28), transparent 36%),
    linear-gradient(135deg, #F7FFFE 0%, #E6F8F6 46%, #FFE9DC 100%) !important;
  box-shadow: 0 18px 45px rgba(31, 94, 96, 0.12);
  position: relative;
  z-index: 1;
}

.miso-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.38), rgba(255,255,255,0.08)),
    radial-gradient(circle at 50% 55%, rgba(255,255,255,0.55), transparent 44%);
  z-index: 0;
  pointer-events: none;
}

.miso-hero-inner {
  padding: 34px 28px !important;
  position: relative;
  z-index: 2;
}

.miso-hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.miso-kicker,
.miso-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 94, 96, 0.14);
  color: var(--miso-teal);
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(31, 94, 96, 0.05);
}

.miso-hero h1 {
  margin: 0 0 12px !important;
  font-size: clamp(28px, 4vw, 50px) !important;
  line-height: 1.25 !important;
  color: #173F41 !important;
  font-weight: 950 !important;
  letter-spacing: -0.8px;
}

.miso-hero h1 span {
  color: #1F5E60 !important;
  background: linear-gradient(90deg, #1F5E60, #2F8A8A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.miso-hero p {
  max-width: 720px;
  margin: 0 auto 20px !important;
  color: rgba(32, 50, 50, 0.78) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  font-weight: 500;
}

.miso-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.miso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none !important;
  transition: 0.22s ease;
}

.miso-btn-primary {
  background: linear-gradient(90deg, var(--miso-coral), var(--miso-coral-dark));
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(217, 111, 98, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.miso-btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--miso-teal) !important;
  border: 1px solid rgba(31, 94, 96, 0.18);
  box-shadow: 0 10px 22px rgba(31, 94, 96, 0.06);
}

.miso-btn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   HOME SECTIONS
========================================================= */

.miso-section {
  width: var(--miso-container);
  margin: 44px auto !important;
  position: relative;
  z-index: 1;
}

.miso-section-head {
  text-align: center;
  margin-bottom: 22px;
}

.miso-section-head h2 {
  margin: 0 0 8px !important;
  color: var(--miso-dark) !important;
  font-size: clamp(24px, 3.2vw, 36px) !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
}

.miso-section-head p {
  max-width: 640px;
  margin: 0 auto !important;
  color: var(--miso-muted) !important;
  line-height: 1.8 !important;
  font-size: 14px !important;
}

.miso-categories-grid,
.miso-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.miso-category-card,
.miso-pillar-card {
  position: relative;
  min-height: 170px;
  padding: 22px 18px;
  border-radius: var(--miso-radius-lg);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 233, 220, 0.75), transparent 26%),
    radial-gradient(circle at 92% 92%, rgba(230, 248, 246, 0.82), transparent 28%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid var(--miso-border);
  box-shadow: 0 12px 28px rgba(31, 94, 96, 0.06);
  text-decoration: none !important;
  color: inherit !important;
  transition: 0.22s ease;
  overflow: hidden;
}

.miso-category-card:hover,
.miso-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--miso-shadow);
  border-color: rgba(47, 138, 138, 0.24);
}

.miso-category-icon,
.miso-pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: rgba(230, 248, 246, 0.72);
  font-size: 20px;
}

.miso-category-card:nth-child(2) .miso-category-icon,
.miso-pillar-card:nth-child(2) .miso-pillar-icon {
  background: rgba(255, 233, 220, 0.76);
}

.miso-category-card h3,
.miso-pillar-card h3 {
  margin: 0 0 8px !important;
  color: var(--miso-dark) !important;
  text-align: center;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

.miso-category-card p,
.miso-pillar-card p {
  margin: 0 !important;
  color: var(--miso-muted) !important;
  text-align: center;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.miso-why-section {
  margin-top: 70px !important;
  margin-bottom: 50px !important;
}

/* =========================================================
   QUIZ PAGE
========================================================= */

.miso-quiz-page {
  min-height: 80vh;
  padding: 34px 18px 60px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 233, 220, 0.62), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(230, 248, 246, 0.88), transparent 34%),
    linear-gradient(180deg, #fbfffe 0%, #ffffff 100%) !important;
}

.miso-quiz-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.miso-quiz-header {
  text-align: center;
  margin-bottom: 18px;
}

.miso-quiz-header h1 {
  margin: 0 0 10px !important;
  color: #153F41 !important;
  font-size: clamp(34px, 6vw, 62px) !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
}

.miso-quiz-header h1 span {
  color: #1F5E60 !important;
}

.miso-quiz-header p {
  margin: 0 auto !important;
  color: rgba(51, 51, 51, 0.68) !important;
  line-height: 1.8 !important;
  font-size: 15px !important;
  font-weight: 500;
}

.miso-progress {
  height: 7px;
  width: 100%;
  background: rgba(255, 233, 220, 0.82);
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 22px;
}

.miso-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #F8CAB2, #E98575);
  border-radius: 999px;
  transition: width 0.28s ease;
}

.miso-quiz-flow,
.miso-result-box {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,255,254,0.96));
  border: 1px solid rgba(47, 138, 138, 0.12);
  border-radius: var(--miso-radius-xl);
  box-shadow: 0 16px 38px rgba(31, 94, 96, 0.08);
  padding: 28px;
}

.miso-question {
  display: none;
}

.miso-question.active {
  display: block;
}

.miso-question h2,
.miso-result-box h2 {
  color: #173F41 !important;
  margin: 0 0 8px !important;
  font-size: clamp(24px, 4vw, 34px) !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  text-align: center;
}

.miso-question small {
  display: block;
  color: rgba(51, 51, 51, 0.58);
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 18px;
  text-align: center;
}

.miso-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.miso-option {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 138, 138, 0.12);
  background: #ffffff;
  color: #333333;
  font-weight: 850;
  font-size: 13.5px;
  transition: 0.2s ease;
  box-shadow: 0 6px 14px rgba(31, 94, 96, 0.035);
}

.miso-option input {
  margin-inline-end: 10px;
  accent-color: var(--miso-teal);
}

.miso-option:has(input:checked) {
  border-color: rgba(31, 94, 96, 0.70);
  background:
    linear-gradient(90deg, rgba(230, 248, 246, 0.92), rgba(255, 233, 220, 0.38));
  color: #173F41;
  box-shadow: 0 8px 20px rgba(31, 94, 96, 0.075);
}

.miso-lead-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.miso-lead-form input {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(47, 138, 138, 0.16);
  padding: 0 18px;
  font-size: 15px;
  background: #ffffff;
  color: #173F41;
  outline: none;
  box-shadow: 0 8px 18px rgba(31, 94, 96, 0.035);
}

.miso-lead-form input:focus {
  border-color: #1F5E60;
  box-shadow: 0 0 0 4px rgba(31, 94, 96, 0.10);
}

.miso-quiz-nav,
.miso-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.miso-quiz-btn,
.miso-result-btn {
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.miso-quiz-btn-primary,
.miso-add-full-btn {
  background: linear-gradient(90deg, #E98575, #D96F62);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(217, 111, 98, 0.17);
}

.miso-quiz-btn-secondary,
.miso-back-home {
  background: #ffffff;
  border: 1px solid rgba(47, 138, 138, 0.14);
  color: var(--miso-teal) !important;
}

.miso-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(232, 80, 85, 0.10);
  color: #B3373D;
  font-weight: 850;
}

/* =========================================================
   RESULT
========================================================= */

.miso-result-box {
  display: none;
  padding: 22px 18px;
  border-radius: 24px;
}

.miso-result-box.active {
  display: block;
}

.miso-result-box > .miso-pill {
  margin-bottom: 12px;
  background: rgba(230, 248, 246, 0.92);
  color: #1F5E60;
  border-color: rgba(47, 138, 138, 0.12);
}

.miso-result-box h2 {
  max-width: 94%;
  margin: 0 auto 14px !important;
  font-size: 24px !important;
  line-height: 1.45 !important;
}

.miso-result-summary {
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.miso-result-clean-card {
  padding: 16px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 233, 220, 0.52), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfffe);
  border: 1px solid rgba(47, 138, 138, 0.11);
  box-shadow: 0 10px 24px rgba(31, 94, 96, 0.045);
}

.miso-result-label,
.miso-shop-guide-badge,
.miso-discount-badge {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(230, 248, 246, 0.95);
  color: #1F5E60;
  font-size: 10.5px;
  font-weight: 950;
  margin-bottom: 9px;
}

.miso-result-clean-card p {
  margin: 0 0 8px !important;
  color: #555;
  font-size: 12.8px;
  line-height: 1.85;
}

.miso-result-clean-card strong {
  color: #173F41;
  font-weight: 950;
}

.miso-result-mini-note {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 15px;
  background: rgba(230, 248, 246, 0.64);
  color: #1F5E60;
  font-size: 12px;
  line-height: 1.75;
  font-weight: 750;
}

.miso-routine-lead {
  margin: 18px 0 10px;
  color: #173F41;
  font-size: 13.5px;
  font-weight: 950;
  text-align: right;
}

.miso-routine-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.miso-routine-step-card {
  min-height: auto;
  padding: 12px 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(47, 138, 138, 0.11);
  box-shadow: 0 8px 18px rgba(31, 94, 96, 0.04);
}

.miso-product-step {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(230, 248, 246, 0.95);
  color: #1F5E60;
  font-size: 10px;
  font-weight: 950;
  margin-bottom: 7px;
}

.miso-routine-step-card strong {
  display: block;
  margin-bottom: 5px;
  color: #222;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 950;
}

.miso-routine-step-card p {
  margin: 0 !important;
  color: #6a6a6a;
  font-size: 10.8px;
  line-height: 1.62;
}

.miso-shop-guide-card {
  padding: 15px 14px;
  border-radius: 19px;
  background: linear-gradient(180deg, #ffffff, #f9fffe);
  border: 1px solid rgba(47, 138, 138, 0.12);
  box-shadow: 0 10px 22px rgba(31, 94, 96, 0.045);
}

.miso-shop-guide-card strong {
  display: block;
  margin-bottom: 7px;
  color: #173F41;
  font-size: 14.5px;
  font-weight: 950;
  line-height: 1.55;
}

.miso-shop-guide-card p {
  margin: 0 !important;
  color: #626262;
  font-size: 12.5px;
  line-height: 1.8;
}

.miso-discount-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(255, 233, 220, 0.78), rgba(230, 248, 246, 0.88));
  border: 1px solid rgba(233, 133, 117, 0.18);
  box-shadow: 0 10px 24px rgba(31, 94, 96, 0.055);
}

.miso-discount-card p {
  margin: 0 !important;
  color: #4f4f4f;
  font-size: 12px;
  line-height: 1.65;
}

.miso-discount-code {
  min-width: 118px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  background: #ffffff;
  color: #173F41;
  box-shadow: 0 8px 18px rgba(31, 94, 96, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.miso-discount-code span {
  font-size: 13px;
  font-weight: 950;
  color: #173F41;
  line-height: 1.2;
}

.miso-discount-code small {
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 800;
  color: #1F5E60;
}

.miso-discount-code.copied {
  background: #1F5E60;
}

.miso-discount-code.copied span,
.miso-discount-code.copied small {
  color: #ffffff;
}

.miso-result-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.miso-result-actions .miso-result-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

/* =========================================================
   POPUP
========================================================= */

.miso-quiz-popup {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 30, 30, 0.32);
  backdrop-filter: blur(4px);
}

.miso-quiz-popup.show {
  display: flex;
}

.miso-popup-card {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 28px;
  padding: 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 70px rgba(31, 94, 96, 0.18);
  border: 1px solid var(--miso-border);
}

.miso-popup-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--miso-soft);
  color: var(--miso-dark);
  font-size: 20px;
  cursor: pointer;
}

.miso-popup-text h3 {
  margin: 8px 0 8px !important;
  color: var(--miso-dark);
  font-size: 24px;
  font-weight: 950;
}

.miso-popup-text p {
  color: var(--miso-muted);
  line-height: 1.8;
}

.miso-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--miso-peach-strong), var(--miso-coral));
  color: #ffffff !important;
  font-weight: 950;
  text-decoration: none !important;
  margin-top: 8px;
}

.miso-popup-note {
  margin-top: 12px;
  color: var(--miso-muted);
  font-size: 12px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .miso-categories-grid,
  .miso-pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .miso-options,
  .miso-routine-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #misoCleanMovingPromoBar {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  #misoCleanMovingPromoBar .miso-clean-track {
    animation-duration: 18s !important;
  }

  #misoCleanMovingPromoBar span {
    font-size: 11px !important;
    padding: 0 18px !important;
    line-height: 30px !important;
  }

  .miso-hero {
    width: calc(100% - 18px);
    border-radius: 24px;
    margin: 14px auto 24px !important;
  }

  .miso-hero-inner {
    padding: 26px 16px 24px !important;
  }

  .miso-hero .miso-kicker {
    font-size: 11px;
    padding: 7px 14px;
    margin-bottom: 14px;
  }

  .miso-hero h1 {
    font-size: 27px !important;
    line-height: 1.35 !important;
  }

  .miso-hero p {
    font-size: 13.5px !important;
    line-height: 1.9 !important;
  }

  .miso-hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .miso-btn {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 12.5px;
  }

  .miso-section {
    width: calc(100% - 18px);
    margin: 36px auto !important;
  }

  .miso-category-card,
  .miso-pillar-card {
    min-height: 145px;
    padding: 18px 12px;
    border-radius: 21px;
  }

  .miso-category-card h3,
  .miso-pillar-card h3 {
    font-size: 14px !important;
  }

  .miso-category-card p,
  .miso-pillar-card p {
    font-size: 12px !important;
  }

  .miso-why-section {
    width: calc(100% - 22px);
    margin: 34px auto 38px !important;
    padding: 22px 12px 18px;
    border-radius: 28px;
    background:
      radial-gradient(circle at 10% 0%, rgba(255, 233, 220, 0.72), transparent 34%),
      radial-gradient(circle at 95% 8%, rgba(230, 248, 246, 0.95), transparent 38%),
      linear-gradient(180deg, #ffffff 0%, #f9fffe 100%);
    border: 1px solid rgba(47, 138, 138, 0.10);
    box-shadow: 0 16px 36px rgba(31, 94, 96, 0.075);
  }

  .miso-why-section .miso-pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .miso-why-section .miso-pillar-card {
    min-height: 132px;
    padding: 15px 10px 13px;
  }

  .miso-why-section .miso-pillar-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    font-size: 17px;
  }

  .miso-quiz-page {
    padding: 20px 9px 42px !important;
  }

  .miso-quiz-shell {
    width: 100%;
  }

  .miso-quiz-header h1 {
    font-size: 27px !important;
    line-height: 1.32 !important;
  }

  .miso-quiz-header p {
    font-size: 12.7px !important;
    line-height: 1.8 !important;
  }

  .miso-quiz-flow,
  .miso-result-box {
    width: 100%;
    padding: 18px 14px;
    border-radius: 22px;
  }

  .miso-options {
    grid-template-columns: 1fr;
  }

  .miso-question h2,
  .miso-result-box h2 {
    font-size: 21px !important;
  }

  .miso-routine-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .miso-routine-step-card {
    padding: 11px 9px;
    border-radius: 15px;
  }

  .miso-routine-step-card strong {
    font-size: 12px;
  }

  .miso-routine-step-card p {
    font-size: 10.3px;
    line-height: 1.55;
  }

  .miso-discount-card {
    padding: 12px;
    align-items: stretch;
  }

  .miso-result-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .miso-why-section {
    width: calc(100% - 18px);
    padding: 20px 10px 16px;
  }

  .miso-why-section .miso-section-head h2 {
    font-size: 21px !important;
  }

  .miso-why-section .miso-pillar-grid {
    gap: 9px;
  }

  .miso-why-section .miso-pillar-card {
    min-height: 126px;
    padding: 14px 8px 12px;
  }

  .miso-result-box h2 {
    font-size: 20px !important;
  }

  .miso-routine-step-card p {
    font-size: 9.8px;
  }

  .miso-discount-code {
    min-width: 104px;
  }

  .miso-discount-code span {
    font-size: 12px;
  }
}/* =========================================================
   MISO UPDATE - Hide Skin Needs Section
   حذف خانة: اختاري حسب احتياج بشرتك
========================================================= */

.miso-skin-needs {
  display: none !important;
}/* =========================================================
   MISO UPDATE - Hide Why / Pillars Section
   حذف خانة: اختاري بثقة، مو بالتجربة العشوائية
========================================================= */

.miso-why-section {
  display: none !important;
}/* =========================================================
   MISO UPDATE - Premium Salla Product Cards
   تنسيق احترافي لكروت المنتجات بدون لمس الأساسيات
========================================================= */

/* الكرت الأساسي */
.s-product-card-entry,
.s-product-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfffe 100%) !important;
  border: 1px solid rgba(31, 94, 96, 0.13) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 22px rgba(31, 94, 96, 0.055) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}

/* عند تمرير السهم على الكرت */
.s-product-card-entry:hover,
.s-product-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(31, 94, 96, 0.28) !important;
  box-shadow: 0 16px 38px rgba(31, 94, 96, 0.13) !important;
}

/* خلفية منطقة الصورة */
.s-product-card-image,
.s-product-card-image a,
.s-product-card-image > a {
  background: linear-gradient(120deg, #f8fffe 0%, #f3faf9 100%) !important;
  min-height: 170px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* صورة المنتج */
.s-product-card-image img,
.s-product-card-entry img {
  width: 120% !important;
  height: 200px !important;
  object-fit: contain !important;
  padding: 15px !important;
  transition: transform 0.25s ease !important;
}

/* تكبير بسيط للصورة عند تمرير السهم */
.s-product-card-entry:hover .s-product-card-image img {
  transform: scale(1.04) !important;
}

/* محتوى الكرت */
.s-product-card-content {
  padding: 12px 12px 14px !important;
  text-align: center !important;
}

/* اسم المنتج */
.s-product-card-content-title,
.s-product-card-content-title a,
.s-product-card-entry h3,
.s-product-card-entry h3 a {
  color: #173F41 !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1.65 !important;
  text-align: center !important;
  margin: 0 auto 8px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

/* السعر */
.s-product-card-price,
.s-product-card-sale-price,
.s-product-card-content .s-product-card-price,
.s-product-card-entry [class*="price"] {
  color: #1F5E60 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  text-align: center !important;
  margin: 8px 0 12px !important;
}

/* زر إضافة للسلة */
.s-product-card-entry .s-button-element,
.s-product-card-entry .s-button-btn,
.s-product-card-entry button {
  border-radius: 999px !important;
  min-height: 40px !important;
  border: 1px solid rgba(31, 94, 96, 0.72) !important;
  background: #ffffff !important;
  color: #1F5E60 !important;
  font-size: 12.5px !important;
  font-weight: 950 !important;
  box-shadow: 0 8px 18px rgba(31, 94, 96, 0.055) !important;
  transition: all 0.22s ease !important;
}

/* لون الزر عند تمرير السهم */
.s-product-card-entry .s-button-element:hover,
.s-product-card-entry .s-button-btn:hover,
.s-product-card-entry button:hover {
  background: linear-gradient(90deg, #1F5E60, #2F8A8A) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(31, 94, 96, 0.20) !important;
}

/* لون الزر عند الضغط */
.s-product-card-entry .s-button-element:active,
.s-product-card-entry .s-button-btn:active,
.s-product-card-entry button:active {
  transform: scale(0.97) !important;
  background: #E98575 !important;
  color: #ffffff !important;
  border-color: #E98575 !important;
}

/* أيقونة السلة داخل الزر */
.s-product-card-entry .s-button-element svg,
.s-product-card-entry .s-button-btn svg,
.s-product-card-entry button svg {
  color: inherit !important;
  fill: none !important;
}

/* زر المفضلة */
.s-product-card-wishlist-btn,
.s-product-card-entry button[aria-label*="wishlist"],
.s-product-card-entry button[aria-label*="المفضلة"] {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(31, 94, 96, 0.10) !important;
  color: #1F5E60 !important;
  box-shadow: 0 8px 18px rgba(31, 94, 96, 0.07) !important;
}

/* المفضلة عند المرور */
.s-product-card-wishlist-btn:hover,
.s-product-card-entry button[aria-label*="wishlist"]:hover,
.s-product-card-entry button[aria-label*="المفضلة"]:hover {
  background: rgba(255, 233, 220, 0.95) !important;
  color: #E98575 !important;
  border-color: rgba(233, 133, 117, 0.22) !important;
}

/* تنسيق الشبكة بالجوال */
@media (max-width: 768px) {
  .s-product-card-entry,
  .s-product-card {
    border-radius: 16px !important;
  }

  .s-product-card-image,
  .s-product-card-image a,
  .s-product-card-image > a {
    min-height: 155px !important;
  }

  .s-product-card-image img,
  .s-product-card-entry img {
    height: 150px !important;
    padding: 10px !important;
  }

  .s-product-card-content {
    padding: 10px 10px 12px !important;
  }

  .s-product-card-content-title,
  .s-product-card-content-title a,
  .s-product-card-entry h3,
  .s-product-card-entry h3 a {
    font-size: 12px !important;
    line-height: 1.6 !important;
    min-height: 58px !important;
    max-height: 58px !important;
  }

  .s-product-card-price,
  .s-product-card-sale-price,
  .s-product-card-entry [class*="price"] {
    font-size: 14px !important;
    margin: 7px 0 11px !important;
  }

  .s-product-card-entry .s-button-element,
  .s-product-card-entry .s-button-btn,
  .s-product-card-entry button {
    min-height: 38px !important;
    font-size: 12px !important;
  }
}/* =========================================================
   MISO UPDATE - Logo Only Size Fix
   تكبير اللوقو فقط بدون التأثير على أيقونات الهيدر
========================================================= */

@media (max-width: 768px) {
  /* استهداف رابط/حاوية اللوقو فقط */
  a.navbar-brand,
  .navbar-brand,
  .store-logo,
  a.store-logo,
  .s-header-logo,
  a.s-header-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 90px !important;
    max-width: 135px !important;
    flex: 0 0 auto !important;
  }

  /* تكبير صورة اللوقو فقط */
  a.navbar-brand img,
  .navbar-brand > img,
  .store-logo > img,
  a.store-logo > img,
  .s-header-logo > img,
  a.s-header-logo > img {
    height: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
  }

  /* تثبيت أيقونات الهيدر حتى لا تكبر مع اللوقو */
  .header-btn,
  .s-cart-summary-wrapper,
  .s-user-menu-wrapper,
  .s-header-icon,
  .s-button-icon,
  .s-cart-summary-count,
  button[aria-label*="الحساب"],
  button[aria-label*="السلة"] {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
  }

  .header-btn img,
  .s-cart-summary-wrapper img,
  .s-user-menu-wrapper img,
  .s-header-icon img,
  .s-button-icon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
  }
}