/* لبن ۵ — سبد واقعی و حساب مشتری */

/* صفحه فروشگاه خلاصه فنی زیر عنوان ندارد؛ جزئیات کامل داخل صفحه لباس است. */
.lb-shop-page .p2-body > small { display: none; }
.lb-shop-page .p2-body h3 { margin-top: 0; }
.p2-flags {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.p2-flags .p2-flag { position: static; transform: none; }

.ms-cart-empty {
  padding: 42px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.ms-cart-line { position: relative; }

.ms-cart-x {
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  transition: color .2s var(--ease);
}
.ms-cart-x:hover { color: var(--ink); }

/* کاروسل تازه‌رسیده‌ها: بین ۳۹۰ تا ۶۲۰ پیکسل کارت بلندتر از استیج می‌شد و
   روی متن بالای خودش می‌افتاد. ارتفاع استیج را از خود کارت می‌گیریم. */
@media (max-width: 620px) {
  .fc-stage {
    --fc-card-w: clamp(210px, 64vw, 280px);
    height: calc(var(--fc-card-w) * 1.4 + 28px);
  }
}

/* اندازه‌های بدن روی پروفایل مشتری */
.lb-measures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.lb-ok { color: #2f6b46; font-size: 13px; margin-top: 10px; display: none; }
.lb-ok.is-on { display: block; }
.au-err.is-on { display: block; }
.lb-ms-hint { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* بلوک‌های سئوی صفحه‌های فرود */
.lb-seo { padding-block: clamp(36px, 4.4vw, 72px); }
.lb-seo-copy { max-width: 74ch; }
.lb-seo-copy h2,
.lb-faq h2 {
  font-family: var(--fad);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.lb-seo-copy p { color: var(--ink-3); font-size: 15px; line-height: 2.05; margin-bottom: 14px; }

.lb-faq { margin-top: clamp(32px, 3.6vw, 56px); max-width: 74ch; }
.lb-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.lb-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-faq-item summary::-webkit-details-marker { display: none; }
.lb-faq-item summary::before {
  content: "+";
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  flex: none;
}
.lb-faq-item[open] summary::before { content: "−"; }
.lb-faq-item p { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; line-height: 2; padding-inline-start: 22px; }

.lb-links {
  margin-top: clamp(30px, 3.4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
}
.lb-links span { color: var(--muted); }
.lb-links a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: all .3s var(--ease);
}
.lb-links a:hover { border-color: var(--gold); color: var(--gold-dp); }

/* کادر کد تأیید پنج‌رقمی همیشه LTR و از چپ به راست */
.au-otp {
  direction: ltr !important;
  unicode-bidi: isolate;
  justify-content: center;
}
.au-otp input {
  direction: ltr !important;
  text-align: center;
}

/* دکمه سایز سفارشی */
.ms-size.ms-size-custom {
  width: auto;
  min-width: 80px;
  padding-inline: 14px;
}

/* اسکلت بارگذاری صفحه لباس برای جلوگیری از نمایش داده سمپل */
.ms-stage-placeholder {
  width: 100%;
  min-height: 460px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(203,187,166,0.06) 25%, rgba(203,187,166,0.18) 50%, rgba(203,187,166,0.06) 75%);
  background-size: 200% 100%;
  animation: lb-shimmer 1.4s infinite;
}
html.ms-pd-loading .ms-gal {
  position: relative;
}
html.ms-pd-loading .ms-pd-info > * {
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.25s ease;
}
html.ms-pd-loading .ms-crumb span {
  opacity: 0;
}
html.ms-pd-loading .ms-pd {
  position: relative;
}
html.ms-pd-loading .ms-pd-info::before {
  content: "";
  display: block;
  width: 60%;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(203,187,166,0.12) 25%, rgba(203,187,166,0.28) 50%, rgba(203,187,166,0.12) 75%);
  background-size: 200% 100%;
  animation: lb-shimmer 1.4s infinite;
  margin-bottom: 24px;
}
html.ms-pd-loading .ms-pd-info::after {
  content: "";
  display: block;
  width: 85%;
  height: 140px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(203,187,166,0.06) 25%, rgba(203,187,166,0.16) 50%, rgba(203,187,166,0.06) 75%);
  background-size: 200% 100%;
  animation: lb-shimmer 1.4s infinite;
}
@keyframes lb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#productDesc,
.ms-pd-info > p {
  white-space: pre-line;
  line-height: 1.85;
}

.ms-size-notice {
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(203, 187, 166, 0.12);
  border-radius: 6px;
  border-right: 3px solid var(--gold, #cbbba6);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted, #666);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ms-size-notice b,
.ms-size-notice strong {
  color: var(--ink, #111);
  font-weight: 600;
}

.ms-custom-measures {
  margin-top: 16px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  background: var(--cream, #faf7f2);
}
.ms-custom-measures-head b { display: block; color: var(--ink); font-size: 16px; }
.ms-custom-measures-head small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.8; }
.ms-custom-measures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.ms-custom-measures-grid label { display: grid; gap: 6px; color: var(--ink-2); font-size: 12.5px; }
.ms-custom-measures-grid input,
.lb-checkout input,
.lb-checkout textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
.ms-custom-measures-grid input:focus-visible,
.lb-checkout input:focus-visible,
.lb-checkout textarea:focus-visible,
.lb-checkout button:focus-visible {
  border-color: var(--gold-dp);
  box-shadow: 0 0 0 3px rgba(184, 152, 104, .16);
}
.ms-form-error { margin-top: 10px; color: #a63d3d !important; font-size: 12.5px !important; }

.lb-checkout { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.lb-checkout.is-open { opacity: 1; visibility: visible; }
.lb-checkout-backdrop { position: absolute; inset: 0; border: 0; background: rgba(26, 20, 16, .62); backdrop-filter: blur(4px); }
.lb-checkout-box { position: relative; z-index: 1; width: min(720px, 100%); max-height: min(92vh, 860px); overflow: auto; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.lb-checkout-close { position: absolute; inset-inline-end: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); font-size: 26px; cursor: pointer; }
.lb-checkout h2 { padding-inline-end: 42px; font-family: var(--fad); color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 500; }
.lb-checkout-intro { margin-top: 7px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.lb-checkout-summary { display: grid; gap: 9px; margin: 22px 0; padding-block: 16px; border-block: 1px solid var(--line); }
.lb-checkout-line { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.lb-checkout-line b { color: var(--ink); }
.lb-checkout-line span:last-child { margin-inline-start: auto; font-family: var(--num); white-space: nowrap; }
.lb-checkout-total { font-size: 15px; padding-top: 9px; border-top: 1px dashed var(--line); }
.lb-checkout-section { margin-top: 20px; }
.lb-checkout-section > label,
.lb-checkout-section > b { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.lb-payment-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lb-payment-plan { position: relative; display: grid; gap: 4px; min-height: 72px; padding: 13px 15px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.lb-payment-plan:has(input:checked) { border-color: var(--gold-dp); background: rgba(203,187,166,.12); }
.lb-payment-plan input { position: absolute; opacity: 0; pointer-events: none; }
.lb-payment-plan b { font-size: 13.5px; color: var(--ink); }
.lb-payment-plan small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.lb-bank-card { margin-top: 14px; padding: 16px; background: var(--ink); color: #fff; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lb-bank-card span { display: grid; gap: 4px; }
.lb-bank-card small { color: rgba(255,255,255,.65); }
.lb-bank-card b { font-family: var(--num); direction: ltr; font-size: 17px; letter-spacing: 1px; }
.lb-bank-card button { min-height: 44px; margin-inline-start: auto; padding-inline: 16px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; }
.lb-file { display: grid; place-items: center; min-height: 104px; padding: 15px; border: 1px dashed var(--gold-dp); background: rgba(203,187,166,.08); text-align: center; cursor: pointer; }
.lb-file input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.lb-file b { color: var(--ink); font-size: 13.5px; }
.lb-file small { margin-top: 5px; color: var(--muted); }
.lb-checkout textarea { min-height: 78px; resize: vertical; }
.lb-checkout-submit { width: 100%; min-height: 48px; margin-top: 20px; }
.lb-checkout-msg { margin-top: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.8; }
.lb-checkout-msg.is-error { color: #8d2929; background: #f8eaea; }
.lb-checkout-msg.is-ok { color: #226343; background: #e8f4ed; }
body.lb-modal-open { overflow: hidden; }

@media (max-width: 700px) {
  .ms-custom-measures-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-checkout { padding: 0; align-items: end; }
  .lb-checkout-box { width: 100%; max-height: 94vh; padding: 24px 18px 32px; border-inline: 0; border-bottom: 0; }
  .lb-payment-plans { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .ms-custom-measures-grid { grid-template-columns: 1fr; }
}
.ac-order-delivery{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:rgba(185,145,82,.1);color:var(--ink,#29251f);font-size:13px}
.p2-sw{display:none!important}
