/* Add custom CSS styles below */ 
#app > div.app-inner.flex.flex-col.min-h-full.bg-storeBG > salla-advertisement > div{

  background-color: #cfae78 !important;
}

.product-card.product-card--has-second-image .main-image {
  object-fit: cover !important;
}
.s-button-wrap .s-button-element.s-button-primary {
background-color: #d3af73 !important;
  
}

.store-footer__inner div div p {
  text-align: center;
}
.store-footer__inner div div:nth-child(2) p:nth-child(5) {
  margin-bottom: 20px;
}

.store-footer__inner div div:nth-child(1) h3 {
  color:#fff;
}
/* =========================
   الزر الجانبي
========================= */

.discount-side-button {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;

  width: 50px;
  min-height: 100px;
  padding: 10px 10px;

  border: 0;
  border-radius: 0 7px 7px 0;
  background: #d3af73;
  color: #fff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.25s ease,
    width 0.25s ease;
}

.discount-side-button span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.discount-side-button:hover {
  width: 55px;
  background: #bc965c;
}

/* =========================
   خلفية النافذة
========================= */

.discount-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  background: rgba(0, 0, 0, 0.58);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.discount-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.discount-popup-open {
  overflow: hidden;
}

/* =========================
   النافذة
========================= */

.discount-popup {
  position: relative;
  direction: rtl;

  width: min(525px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;

  background: #fff;
  border-radius: 5px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.discount-popup-overlay.is-visible .discount-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.discount-popup-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 27px;
  padding: 0;

  border: 2px solid rgba(70, 70, 70, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #555;

  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

/* =========================
   صورة النافذة
========================= */

.discount-popup-banner {
  width: 100%;
  aspect-ratio: 2.65 / 1;
  overflow: hidden;
  background: #f4eadb;
}

.discount-popup-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit:cover;
}

/* =========================
   محتوى النافذة
========================= */

.discount-popup-content {
  padding: 34px 42px 38px;
  text-align: center;
}

.discount-popup-content h2 {
  margin: 0 0 14px;
  color: #161616;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
}

.discount-popup-subtitle {
  margin: 0 0 25px;
  color: #333;
  font-size: 17px;
}

.discount-popup-action {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 74px;
  padding: 14px 20px;

  border-radius: 6px;
  background: #d3af73;
  color: #fff !important;

  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;

  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.discount-popup-action:hover {
  background: #bc965c;
  transform: translateY(-1px);
}

.discount-popup-note {
  max-width: 430px;
  margin: 25px auto 0;
  color: #888;
  font-size: 13px;
  line-height: 2;
}

/* =========================
   الجوال
========================= */

@media (max-width: 600px) {
  .discount-side-button {
    top: auto;
    bottom: 120px;
    width: 42px;
    min-height: 100px;
    padding: 14px 8px;
    font-size: 13px;
  }

  .discount-popup-overlay {
    padding: 12px;
  }

  .discount-popup {
    max-height: calc(100vh - 24px);
  }

  .discount-popup-content {
    padding: 25px 20px 28px;
  }

  .discount-popup-content h2 {
    font-size: 22px;
  }

  .discount-popup-action {
    min-height: 58px;
  }
}

/* =========================================================
   تنسيق قسم "تفاصيل المنتج / تقييمات المنتج"
   بأسلوب البطاقات الذهبية (بيج/ذهبي) المشابه للصورة المرفقة
   ========================================================= */

:root{
  --gold-bg: #faf3e8;
  --gold-bg-hover: #f3e7d3;
  --gold-border: #ecdcc0;
  --gold-text: #8a6a2e;
  --gold-text-dark: #5c451f;
  --text-main: #3a3a3a;
  --text-muted: #6b6b6b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

.more-info-tabs__content{
  direction: rtl;
  font-family: "Tajawal", "Cairo", sans-serif;
  color: var(--text-main);
}

/* ---------- شريط التبويبات (تفاصيل المنتج / تقييمات) ---------- */
.more-tab-container{
  margin-bottom: 8px;
}

.more-info-tabs__nav-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  margin-inline-end: 10px;
  margin-bottom: 16px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  color: var(--gold-text-dark);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s ease;
}

.more-info-tabs__nav-link:hover{
  background: var(--gold-bg-hover);
}

.more-info-tabs__nav-link.active{
  background: #eef7ef;
  border-color: #cfe8d2;
  color: #2f7d43;
}

/* ---------- محتوى التبويب ---------- */
.tab-pane{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  border: 1px solid #f1e9da;
}

#details_table p{
  line-height: 2;
  font-size: 15.5px;
  color: var(--text-main);
  margin: 0 0 14px;
}

#details_table p strong{
  color: var(--gold-text-dark);
}

/* أول فقرة (العنوان الرئيسي) تكبير خفيف */
#details_table p:first-child strong{
  font-size: 19px;
  display: inline-block;
  margin-bottom: 4px;
}

/* عنوان فرعي مثل "مميزات المنتج" / "مناسب لـ" */
#details_table p:has(> strong:only-child){
  margin-top: 22px;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--gold-border);
}

#details_table p:has(> strong:only-child) strong{
  font-size: 16.5px;
  background: var(--gold-bg);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* الفقرات القصيرة التي تبدأ برمز/إيموجي (تتحول لبطاقات صغيرة) */
#details_table p:not(:first-child):not(:has(> strong:only-child)){
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 10px;
}

/* الفقرة الأخيرة (دعوة للشراء) */
#details_table p:last-child{
  background: #eef7ef;
  border: 1px solid #cfe8d2;
  color: #2f7d43;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
}

/* ---------- قسم التقييمات ---------- */
.s-comments{
  direction: rtl;
}

.s-comment-form-wrapper{
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.s-comment-form-input{
  width: 100%;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  resize: vertical;
  transition: border-color .2s ease;
}

.s-comment-form-input:focus{
  outline: none;
  border-color: var(--gold-text);
}

.s-comment-form-action{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.s-button-wrap .s-button-element.s-button-primary{
  background: var(--gold-text-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-weight: 600;
  transition: background .2s ease;
}

.s-button-wrap .s-button-element.s-button-primary:hover{
  background: var(--gold-text);
}

/* ---------- تجاوب على الجوال ---------- */
@media (max-width: 640px){
  .tab-pane{
    padding: 18px 16px;
  }
  .more-info-tabs__nav-link{
    padding: 8px 16px;
    font-size: 13.5px;
  }
}

:root{
    --ivory: #faf6ee;
    --ivory-deep: #f2ead9;
    --ink: #2b2620;
    --ink-soft: #5c5344;
    --copper: #a8632f;
    --copper-deep: #7c481f;
    --emerald: #2f4b3c;
    --emerald-soft: #e7efe9;
    --line: #e3d8c2;
    --radius: 20px;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }

  body{
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.9;
  }

  h1, h2, h3, .display{
    font-family: 'Amiri', serif;
    color: var(--ink);
  }

  a{ color: inherit; }

  /* ---------- شريط علوي بسيط ---------- */
  .topbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6%;
    border-bottom: 1px solid var(--line);
  }
  .topbar .brand{
    font-family: 'Amiri', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
  }
  .topbar .brand span{ color: var(--copper); }
  .topbar a.back{
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 8px 18px;
    border-radius: 999px;
  }

  /* ---------- الهيرو: مسطرة القياس ---------- */
  .hero{
    position: relative;
    padding: 70px 6% 50px;
    overflow: hidden;
    background:
      radial-gradient(circle at 85% 20%, #f3e2c6 0%, transparent 55%),
      var(--ivory);
  }

  .hero-inner{
    max-width: 760px;
  }

  .eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--copper-deep);
    background: var(--ivory-deep);
    border: 1px solid var(--line);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
  }

  .hero h1{
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.25;
    margin: 0 0 18px;
  }

  .hero p.lead{
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 0 34px;
  }

  /* شريط مسطرة القياس - العنصر المميز للتصميم */
  .ruler{
    display: flex;
    align-items: flex-end;
    gap: 0;
    height: 74px;
    margin-top: 10px;
  }
  .ruler .tick{
    flex: 1;
    border-inline-start: 1.5px solid var(--copper);
    opacity: .35;
    position: relative;
  }
  .ruler .tick.major{ opacity: .8; height: 100%; }
  .ruler .tick:not(.major){ height: 55%; align-self: flex-end; }
  .ruler .tick.major span{
    position: absolute;
    bottom: -26px;
    inset-inline-start: 2px;
    font-size: 12px;
    color: var(--ink-soft);
  }

  /* ---------- فهرس المحتويات ---------- */
  .toc-wrap{
    padding: 0 6% 60px;
  }
  .toc{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
  }
  .toc a{
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    transition: background .2s ease;
    font-weight: 700;
    color: var(--ink);
  }
  .toc a:hover{ background: var(--ivory-deep); }
  .toc a .num{
    width: 30px; height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--copper);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
  }
  .toc a span.label{ font-size: 14.5px; }

  /* ---------- الأقسام ---------- */
  section.guide-step{
    padding: 10px 6% 60px;
    max-width: 980px;
    margin: 0 auto;
    scroll-margin-top: 20px;
  }

  .step-head{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
  }
  .step-head .badge{
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--emerald);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-family: 'Amiri', serif;
    flex-shrink: 0;
  }
  .step-head h2{ font-size: 26px; margin: 0; }

  .step-grid{
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: start;
  }

  ol.steps{
    list-style: none;
    margin: 0; padding: 0;
    counter-reset: step;
  }
  ol.steps li{
    counter-increment: step;
    position: relative;
    padding-inline-start: 40px;
    margin-bottom: 18px;
    font-size: 15.5px;
    color: var(--ink-soft);
  }
  ol.steps li::before{
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 1px;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--copper);
    color: var(--copper-deep);
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
  }
  ol.steps li strong{ color: var(--ink); }

  .visual-card{
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
  }
  .visual-card img{
    width: 100%;
    border-radius: 12px;
    display: block;
  }
  .visual-card figcaption{
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 12px;
  }

  .tip{
    margin-top: 22px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--emerald-soft);
    border: 1px solid #cfe0d4;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 14.5px;
    color: #24392d;
  }
  .tip .dot{
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    margin-top: 7px;
    flex-shrink: 0;
  }
  .tip.warn{
    background: #fdf2e9;
    border-color: #f0dbc0;
    color: var(--copper-deep);
  }
  .tip.warn .dot{ background: var(--copper); }

  hr.divider{
    border: none;
    border-top: 1px dashed var(--line);
    max-width: 980px;
    margin: 0 auto;
  }

  /* ---------- جدول التحويل ---------- */
  table.convert{
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
  }
  table.convert th{
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    padding: 12px 14px;
    text-align: center;
  }
  table.convert td{
    padding: 11px 14px;
    text-align: center;
    border-top: 1px solid var(--line);
  }
  table.convert tr:nth-child(even) td{ background: var(--ivory-deep); }

  /* ---------- قسم إعادة القياس ---------- */
  .resize-band{
    margin: 20px 6% 60px;
    max-width: 980px;
    margin-inline: auto;
    background: var(--ink);
    color: #f4ece0;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
  }
  .resize-band h3{ color: #fff; margin: 0 0 8px; font-size: 22px; }
  .resize-band p{ margin: 0; color: #cfc3ae; max-width: 480px; font-size: 14.5px; }
  .resize-band a.cta{
    text-decoration: none;
    background: var(--copper);
    color: #fff;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
  }

  footer.contact{
    text-align: center;
    padding: 40px 6% 60px;
    color: var(--ink-soft);
    font-size: 13.5px;
  }
  footer.contact a.wa{
    display: inline-block;
    margin-top: 14px;
    background: var(--emerald);
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
  }

  @media (max-width: 780px){
    .toc{ grid-template-columns: repeat(2, 1fr); }
    .step-grid{ grid-template-columns: 1fr; }
    .resize-band{ flex-direction: column; text-align: center; }
  }