/* Mi BEBE – מבצע לקולקציה. צבעי המותג כמו בחלון "השלמת הלוק". */
:root { --mbp-brown: #a38167; --mbp-head: #4e3a2d; --mbp-cream: #f7f0e9; --mbp-line: #efe7df; --mbp-muted: #6d6159; }

/* התווית ליד המחיר */
.mbp-badge { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mbp-head); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }

/* בעמוד המוצר, מעל כפתור ההוספה לסל */
.mbp-note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--mbp-line); border-radius: 14px; background: var(--mbp-cream); color: var(--mbp-head); direction: rtl; text-align: right; }
.mbp-note__line { font-size: 13px; font-weight: 600; }
.mbp-note__gift { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--mbp-line); font-size: 13.5px; line-height: 1.4; }
.mbp-note__gift > span:first-of-type { flex: 1; }
.mbp-note__imgs { display: flex; gap: 4px; flex: none; }
.mbp-note__imgs img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--mbp-line); }
.mbp-ico { flex: none; color: var(--mbp-brown); }

/* בסל ובסל הצדדי */
.mbp-cart { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--mbp-cream); color: var(--mbp-head); font-size: 13px; line-height: 1.4; direction: rtl; text-align: right; }
.mbp-cart > span { flex: 1; min-width: 150px; }
.mbp-cart--ready { background: #fff4e3; border: 1px solid #f0d9b5; }
.mbp-cart--have { background: #eef7ef; color: #1f5f2c; }
.mbp-cart--have .mbp-ico { color: #1f7a35; }
.mbp-cart .mbp-cart__btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 14px; border-radius: 999px; background: var(--mbp-brown); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.mbp-cart .mbp-cart__btn:hover { background: var(--mbp-head); }
.mbp-cart .mbp-cart__link { color: var(--mbp-brown); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.widget_shopping_cart_content .mbp-cart { margin: 0 0 12px; }
.mbp-free { color: #1f7a35; font-weight: 700; }

/* החלון */
html.mbp-lock { overflow: hidden; }
.mbp-dim { position: fixed; inset: 0; z-index: 100010; background: rgba(40, 28, 20, .45); opacity: 0; transition: opacity .3s ease; }
.mbp-dim.is-open { opacity: 1; }
.mbp-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100011; box-sizing: border-box; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 18px 0; background: #fff; color: #333; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); direction: rtl; text-align: center; transform: translateY(100%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); outline: 0; font-family: inherit; }
.mbp-sheet.is-open { transform: none; }
.mbp-sheet *, .mbp-sheet *::before, .mbp-sheet *::after { box-sizing: border-box; }
.mbp-sheet button { all: unset; box-sizing: border-box; cursor: pointer; font-family: inherit; text-align: center; -webkit-tap-highlight-color: transparent; }
.mbp-sheet button:focus-visible, .mbp-card:focus-visible { outline: 2px solid var(--mbp-head); outline-offset: 2px; }
.mbp-sheet__grab { width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: #ddd; }
.mbp-sheet .mbp-sheet__x { position: absolute; top: 8px; left: 12px; width: 36px; height: 36px; border-radius: 50%; color: var(--mbp-head); font-size: 26px; line-height: 36px; }
.mbp-sheet__over { font-size: 11.5px; letter-spacing: .3em; color: var(--mbp-brown); text-transform: uppercase; }
.mbp-sheet__title { margin: 4px 0 2px; font-size: 25px; font-weight: 300; line-height: 1.2; color: var(--mbp-head); }
.mbp-sheet__sub { margin-bottom: 14px; font-size: 13px; color: var(--mbp-muted); }

.mbp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mbp-grid.is-one { grid-template-columns: minmax(0, 220px); justify-content: center; }
@media (min-width: 560px) { .mbp-grid, .mbp-grid.is-one { grid-template-columns: repeat(auto-fit, 160px); justify-content: center; } }
.mbp-card { position: relative; padding: 8px 8px 10px; border: 1.5px solid var(--mbp-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.mbp-card.is-on { border-color: var(--mbp-head); box-shadow: 0 0 0 2px var(--mbp-head) inset; }
.mbp-card.is-on::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--mbp-head); color: #fff; font-size: 14px; line-height: 24px; }
.mbp-card__img { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--mbp-cream); }
.mbp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mbp-card__name { margin-top: 7px; font-size: 12.5px; line-height: 1.3; color: #333; }
.mbp-card__free { margin-top: 3px; font-size: 12px; font-weight: 700; color: #1f7a35; }
.mbp-card__free del { margin-inline-end: 4px; color: #9a8f87; font-weight: 400; }
.mbp-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 7px; }
.mbp-sheet .mbp-opt { padding: 4px 9px; border: 1px solid var(--mbp-line); border-radius: 999px; font-size: 12px; color: var(--mbp-head); background: #fff; }
.mbp-sheet .mbp-opt.is-on { background: var(--mbp-head); border-color: var(--mbp-head); color: #fff; }

.mbp-sheet__foot { position: sticky; bottom: 0; margin: 14px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--mbp-line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mbp-sheet .mbp-sheet__btn { width: 100%; max-width: 420px; padding: 14px 18px; border-radius: 999px; background: var(--mbp-brown); color: #fff; font-size: 16px; font-weight: 600; }
.mbp-sheet .mbp-sheet__btn[disabled] { background: #d8cbc0; cursor: default; }
.mbp-sheet .mbp-sheet__btn.is-busy { opacity: .6; }
.mbp-sheet .mbp-sheet__later { font-size: 13px; color: var(--mbp-muted); text-decoration: underline; }

@media (min-width: 720px) {
	.mbp-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 84vh; border-radius: 22px; transform: translate(-50%, -46%); opacity: 0; transition: transform .35s ease, opacity .25s ease; }
	.mbp-sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
	.mbp-sheet__grab { display: none; }
	.mbp-sheet__foot { border-radius: 0 0 22px 22px; }
}

.mbp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100012; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: var(--mbp-head); color: #fff; font-size: 14px; opacity: 0; transition: opacity .25s ease, transform .25s ease; direction: rtl; pointer-events: none; }
.mbp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* הפס על תמונת המוצר – כמו הפס של "השלמת הלוק" */
.mbp-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin: 0; padding: 5px 6px; box-sizing: border-box; background: #a38167; color: #fff; font-size: 11.5px; line-height: 1.25; text-align: center; letter-spacing: 0; text-transform: none; pointer-events: none; direction: rtl; }
.mbp-strip b { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.mbp-strip span { font-size: 10.5px; font-weight: 400; opacity: .95; }
.mbp-strip--single { flex-direction: row; gap: 8px; padding: 9px 10px; }
.mbp-strip--single b { font-size: 15px; }
.mbp-strip--single span { font-size: 13px; }
.mbp-strip--single span::before { content: "·"; margin-inline-end: 8px; }
.mbp-strip-wrap { position: relative; display: block; width: fit-content; max-width: 100%; overflow: hidden; }
.mbp-strip-wrap > img, .mbp-strip-wrap > picture { display: block; }

/* מצב בדיקה – רק מנהלים רואים */
.mbp-test-pill { position: fixed; left: 10px; bottom: 84px; z-index: 99990; padding: 7px 12px; border-radius: 999px; background: #fcf0d6; color: #7a5200 !important; border: 1px solid #f0d9b5; font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none !important; box-shadow: 0 2px 8px rgba(0,0,0,.15); direction: rtl; }
@media (min-width: 769px) { .mbp-test-pill { bottom: 20px; } }

/* בזמן המבצע: בלי תוויות "15% OFF" של תוספים אחרים על מוצרי המבצע (BeRocket Advanced Labels, תוויות המבצע של ווקומרס/התבנית).
   מה שנשאר מספר את הסיפור: המחיר המחוק, המחיר החדש והפס "בלי מע״מ". */
.mbp-hide-percent .br_alabel_type_sale_p, .mbp-hide-percent .onsale, .mbp-hide-percent .product-labels .onsale,
body.mbp-hide-percent .woocommerce-product-gallery .br_alabel_type_sale_p, body.mbp-hide-percent .woocommerce-product-gallery .onsale,
body.mbp-hide-percent .product-images .br_alabel_type_sale_p { display: none !important; }
.mbp-note__combo { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--mbp-line); font-size: 13px; line-height: 1.5; }
.mbp-note__combo a { color: var(--mbp-head); font-weight: 600; text-decoration: underline; }
.mbp-note > div:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
