/* ============ سبد خرید و تسویه حساب (المان اختصاصی) ============ */
.ffbe-shop {
	--ffbe-red: #e31127;
	--ffbe-red-dark: #b80d1f;
	--ffbe-soft: #fdeeed;
	--ffbe-soft-2: #fdf6f4;
	--ffbe-green: #0ea734;
	--ffbe-dark: #151515;
	--ffbe-text: #2c2c2c;
	--ffbe-muted: #7b7b7b;
	--ffbe-line: #f0ebe8;
	--ffbe-card: #fff;
	--ffbe-in-bd: #e7e9ec;
	--ffbe-in-h: 46px;
	--ffbe-radius: 18px;
	--ffbe-btn-radius: 10px;
	--ffbe-max: 1440px;
	--ffbe-side: 420px;
	--ffbe-thumb: 124px;
	--ffbe-step-off: #8a8f95;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	direction: rtl;
	padding: 34px 24px 60px;
	background-color: #fbf6f2;
	color: var(--ffbe-text);
	line-height: 1.8;
}
.ffbe-co { --ffbe-side: 40%; background-color: #fdf7f1; }
.ffbe-shop *, .ffbe-shop *::before, .ffbe-shop *::after { box-sizing: border-box; }
.ffbe-shop [hidden] { display: none !important; }
.ffbe-shop .ffbe-ico { width: 1em; height: 1em; flex: none; }
.ffbe-shop h1, .ffbe-shop h2, .ffbe-shop h3, .ffbe-shop h4 { margin: 0; color: var(--ffbe-dark); }
.ffbe-shop a { text-decoration: none; }
.ffbe-shop button { font-family: inherit; }
.ffbe-shop__inner { position: relative; z-index: 1; max-width: var(--ffbe-max); margin: 0 auto; }
.ffbe-card { background: var(--ffbe-card); border-radius: var(--ffbe-radius); box-shadow: 0 10px 34px -22px rgba(90, 40, 20, .28); }
.ffbe-muted { color: var(--ffbe-muted); }

/* تزئینات */
.ffbe-decor { position: absolute; z-index: 0; height: auto; pointer-events: none; user-select: none; }
.ffbe-decor--tl { top: 0; left: 0; width: 30%; max-width: 480px; }
.ffbe-decor--tr { top: 0; right: 0; width: 22%; max-width: 380px; }
.ffbe-decor--bl { bottom: 0; left: 0; width: 22%; max-width: 360px; }
.ffbe-decor--br { bottom: 0; right: 0; width: 7%; max-width: 110px; }
.ffbe-co .ffbe-decor--tl { width: 25%; max-width: 400px; }
.ffbe-co .ffbe-decor--tr { width: 7%; max-width: 110px; }

/* سربرگ */
.ffbe-shop__head { position: relative; margin-bottom: 30px; text-align: center; }
.ffbe-shop__trow { display: inline-flex; align-items: center; justify-content: center; gap: 16px; }
.ffbe-shop__ticon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background-color: var(--ffbe-red); color: #fff; font-size: 28px; box-shadow: 0 10px 22px -10px var(--ffbe-red); }
.ffbe-shop__ticon .ffbe-ico { stroke-width: 2; }
.ffbe-shop__title { font-size: clamp(28px, 3.2vw, 44px); font-weight: 900; line-height: 1.4; }
.ffbe-shop__sub { margin: 8px 0 0; color: var(--ffbe-muted); font-size: 16.5px; font-weight: 500; }

.ffbe-bc { margin-bottom: 10px; color: var(--ffbe-red); font-size: 14px; font-weight: 600; }
.ffbe-bc ol { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ffbe-bc li { display: inline-flex; align-items: center; gap: 6px; }
.ffbe-bc a { color: inherit; }
.ffbe-bc a:hover { text-decoration: underline; }
.ffbe-bc__sep { width: 12px; height: 12px; opacity: .55; color: var(--ffbe-dark); }
.ffbe-co__head .ffbe-bc { position: absolute; top: 0; right: 90px; margin: 0; }

/* مراحل */
.ffbe-steps { position: relative; display: flex; justify-content: center; gap: 0; max-width: 860px; margin: 20px auto 0; padding: 0; list-style: none; }
.ffbe-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ffbe-dark); }
.ffbe-step + .ffbe-step::before {
	content: "";
	position: absolute;
	top: 15px;
	right: calc(-50% + 22px);
	left: calc(50% + 22px);
	border-top: 2px dashed #cfd2d6;
}
.ffbe-step.is-done + .ffbe-step::before,
.ffbe-step.is-done + .ffbe-step.is-active::before { border-top: 2px solid var(--ffbe-red); }
.ffbe-step__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--ffbe-step-off); color: #fff; font-size: 17px; box-shadow: 0 0 0 5px #fdf7f1; }
.ffbe-step__dot .ffbe-ico { stroke-width: 2.2; }
.ffbe-step.is-active .ffbe-step__dot, .ffbe-step.is-done .ffbe-step__dot { background-color: var(--ffbe-red); }
.ffbe-step__label { font-size: 15px; font-weight: 600; color: #555; }
.ffbe-step.is-active .ffbe-step__label { color: var(--ffbe-red); font-weight: 800; }

/* پیام‌ها */
.ffbe-notices { margin: 0 0 18px; }
.ffbe-notices[hidden] { display: none; }
.ffbe-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #a8201a; font-size: 14px; font-weight: 600; line-height: 1.8; }
.ffbe-notice.is-success { background: #e9f8ef; color: #12733b; }
.ffbe-notice.is-notice { background: #fff6e0; color: #7a5300; }
.ffbe-notice ul { margin: 0; padding-right: 18px; }

/* دکمه‌ها */
.ffbe-btn-red { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 26px; border: 0; border-radius: var(--ffbe-btn-radius); background-color: var(--ffbe-red); color: #fff !important; font-size: 15px; font-weight: 800; cursor: pointer; transition: background-color .2s; }
.ffbe-btn-red:hover { background-color: var(--ffbe-red-dark); }
.ffbe-btn-red .ffbe-ico { font-size: 20px; }

/* حالت خالی */
.ffbe-empty { padding: 56px 20px; text-align: center; }
.ffbe-empty__ico { display: inline-grid; place-items: center; width: 86px; height: 86px; margin-bottom: 14px; border-radius: 50%; background: var(--ffbe-soft); color: var(--ffbe-red); font-size: 40px; }
.ffbe-empty h3 { font-size: 21px; font-weight: 900; }
.ffbe-empty p { margin: 6px 0 22px; color: var(--ffbe-muted); }

/* ==================== سبد خرید ==================== */
.ffbe-cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--ffbe-side); align-items: start; gap: 16px; }
.ffbe-cart.is-empty .ffbe-cart__grid { grid-template-columns: minmax(0, 1fr); }
.ffbe-cart.is-empty .ffbe-cart__side { display: none; }
.ffbe-cart__main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ffbe-cart__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }

.ffbe-ct { padding: 20px 20px 22px; }
.ffbe-ct.is-busy, .ffbe-sum__body.is-busy, [data-part].is-busy { opacity: .55; pointer-events: none; transition: opacity .2s; }
.ffbe-ct-head,
.ffbe-ct-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px 150px 76px; align-items: center; gap: 10px; }
.ffbe-ct-head { padding: 12px 18px; border-radius: 12px; background-color: var(--ffbe-soft-2); color: var(--ffbe-dark); font-size: 15px; font-weight: 700; }
.ffbe-ct-head .c-price, .ffbe-ct-head .c-qty, .ffbe-ct-head .c-total, .ffbe-ct-head .c-del,
.ffbe-ct-row .c-price, .ffbe-ct-row .c-qty, .ffbe-ct-row .c-total, .ffbe-ct-row .c-del { text-align: center; justify-self: center; }
.ffbe-ct-row { padding: 14px 0; border-bottom: 1px solid var(--ffbe-line); }
.ffbe-ct-row:last-child { border-bottom: 0; }
.ffbe-ct-row .c-prod { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ffbe-it-img { flex: none; display: block; width: var(--ffbe-thumb); aspect-ratio: 1.24; overflow: hidden; border-radius: 12px; background: #f6f3f1; }
.ffbe-it-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ffbe-it-info { display: flex; flex-direction: column; min-width: 0; }
.ffbe-it-name { color: var(--ffbe-dark) !important; font-size: 17px; font-weight: 800; line-height: 1.7; }
a.ffbe-it-name:hover { color: var(--ffbe-red) !important; }
.ffbe-it-meta { color: var(--ffbe-muted); font-size: 14px; font-weight: 500; line-height: 1.9; }
.ffbe-it-meta bdi { unicode-bidi: isolate; }
.ffbe-ct-row .c-price { color: var(--ffbe-text); font-size: 15.5px; font-weight: 600; }
.ffbe-ct-row .c-total { color: var(--ffbe-red); font-size: 16px; font-weight: 800; }
.ffbe-ct-row .c-price del, .ffbe-co-item del { opacity: .5; font-weight: 400; font-size: .85em; }
.ffbe-ct-row ins { text-decoration: none; }

.ffbe-qty { display: inline-flex; align-items: stretch; height: 46px; border: 1px solid #e6e3e1; border-radius: 10px; background: #fff; overflow: hidden; }
.ffbe-qty__btn { display: grid; place-items: center; width: 42px; padding: 0; border: 0; background: transparent; color: var(--ffbe-red); font-size: 19px; cursor: pointer; transition: background-color .2s; }
.ffbe-qty__btn:hover { background: var(--ffbe-soft); }
.ffbe-qty__btn .ffbe-ico { stroke-width: 2.4; }
.ffbe-qty__input { width: 60px; min-width: 0; margin: 0; padding: 0; border: 0 !important; border-inline: 1px solid #e6e3e1 !important; border-radius: 0 !important; background: transparent; color: var(--ffbe-dark); font: inherit; font-size: 17px; font-weight: 800; text-align: center; box-shadow: none !important; outline: none; }
.ffbe-qty-fixed { font-size: 17px; font-weight: 800; }

.ffbe-ct-del { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fbedeb; color: var(--ffbe-red); font-size: 20px; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.ffbe-ct-del:hover { background: var(--ffbe-red); color: #fff; transform: scale(1.06); }

.ffbe-ct-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ffbe-ct-clear, .ffbe-ct-update { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--ffbe-btn-radius); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.ffbe-ct-clear { background: #fef1f0; color: var(--ffbe-red); }
.ffbe-ct-clear:hover { background: var(--ffbe-red); color: #fff; }
.ffbe-ct-update { background: #eff1f0; color: var(--ffbe-dark); }
.ffbe-ct-update:hover { background: #e2e5e4; }
.ffbe-ct-update.is-dirty { background: var(--ffbe-dark); color: #fff; }
.ffbe-ct-clear .ffbe-ico, .ffbe-ct-update .ffbe-ico { font-size: 20px; }
.ffbe-ct-update.is-spin .ffbe-ico { animation: ffbe-spin .8s linear infinite; }
@keyframes ffbe-spin { to { transform: rotate(360deg); } }

/* پیشنهادی */
.ffbe-sugg__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ffbe-sugg__title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; }
.ffbe-sugg__title .ffbe-ico { color: var(--ffbe-red); font-size: 28px; }
.ffbe-sugg__link { display: inline-flex; align-items: center; gap: 6px; color: var(--ffbe-red) !important; font-size: 15px; font-weight: 700; }
.ffbe-sugg__link .ffbe-ico { font-size: 18px; }
.ffbe-sugg__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ffbe-mini { position: relative; display: flex; flex-direction: column; padding: 8px 8px 12px; border-radius: 14px; background: var(--ffbe-card, #fff); box-shadow: 0 10px 30px -22px rgba(90, 40, 20, .35); text-align: center; transition: transform .25s, box-shadow .25s; }
.ffbe-mini:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(90, 40, 20, .4); }
.ffbe-mini__img { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 10px; background: #f7f4f2; }
.ffbe-mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ffbe-mini:hover .ffbe-mini__img img { transform: scale(1.05); }
.ffbe-mini__name { margin: 12px 0 2px !important; font-size: 16px; font-weight: 800; line-height: 1.6; }
.ffbe-mini__name a { color: var(--ffbe-dark, #151515); }
.ffbe-mini__name a:hover { color: var(--ffbe-red); }
.ffbe-mini__price { margin-bottom: 10px; color: var(--ffbe-red); font-size: 15px; font-weight: 800; }
.ffbe-mini__price del { opacity: .5; font-weight: 400; font-size: .85em; }
.ffbe-mini__price ins { text-decoration: none; }
.ffbe-mini__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: auto; padding: 6px 10px; border: 0; border-radius: 9px; background-color: var(--ffbe-red); color: #fff !important; font-size: 14.5px; font-weight: 800; cursor: pointer; transition: background-color .2s; }
.ffbe-mini__btn:hover { background-color: var(--ffbe-red-dark); }
.ffbe-mini__btn .ffbe-ico { font-size: 19px; }
.ffbe-mini__btn.is-loading { opacity: .7; pointer-events: none; }
.ffbe-mini__btn.is-added { background-color: var(--ffbe-green); }
.ffbe-fav.ffbe-mini__fav { position: absolute; top: 12px; left: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ffbe-red); font-size: 20px; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.ffbe-mini__fav.is-active .ffbe-ico { fill: currentColor; }

/* ==================== خلاصه سفارش (مشترک) ==================== */
.ffbe-sum { overflow: hidden; }
.ffbe-sum__head { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; margin: 8px 8px 0; padding: 10px 16px; border-radius: 13px; background-color: var(--ffbe-red); color: #fff; font-size: 20px; font-weight: 900; }
.ffbe-sum__head .ffbe-ico { font-size: 28px; stroke-width: 1.6; }
.ffbe-sum__body { padding: 6px 20px 18px; }
.ffbe-sum-rows { display: flex; flex-direction: column; }
.ffbe-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--ffbe-line); font-size: 15.5px; }
.ffbe-sum-row:last-child { border-bottom: 0; }
.ffbe-sum-row span { color: var(--ffbe-text); font-weight: 600; }
.ffbe-sum-row b { color: var(--ffbe-dark); font-weight: 700; white-space: nowrap; }
.ffbe-sum-row.is-green b, .ffbe-sum-row.is-green .amount { color: var(--ffbe-green); }
.ffbe-sum-row.is-muted b { color: var(--ffbe-muted); font-weight: 500; font-size: 13.5px; white-space: normal; text-align: left; }
.ffbe-sum-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 18px 20px; border-radius: 14px; background-color: #fdeeed; color: var(--ffbe-red); }
.ffbe-sum-total span { font-size: 18px; font-weight: 900; }
.ffbe-sum-total b { font-size: 22px; font-weight: 900; white-space: nowrap; }

.ffbe-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ffbe-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px dashed var(--ffbe-green); border-radius: 999px; background: #eefaf2; color: #0c7a29; font-size: 13px; font-weight: 700; }
.ffbe-chip .ffbe-ico { font-size: 14px; }
.ffbe-chip__x { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); color: inherit; font-size: 12px; cursor: pointer; }
.ffbe-chip__x:hover { background: var(--ffbe-red); color: #fff; }

/* کد تخفیف */
.ffbe-go-card { padding: 18px; }
.ffbe-coupon__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--ffbe-dark); font-size: 15.5px; font-weight: 800; }
.ffbe-coupon__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--ffbe-red); color: #fff; font-size: 16px; }
.ffbe-coupon__ico .ffbe-ico { stroke-width: 2.4; }
.ffbe-coupon__row { display: flex; align-items: stretch; height: 46px; }
.ffbe-coupon__input { flex: 1; min-width: 0; height: 100% !important; margin: 0; padding: 0 14px !important; border: 1px solid var(--ffbe-in-bd) !important; border-left: 0 !important; border-radius: 0 10px 10px 0 !important; background: #fff !important; color: var(--ffbe-dark); font: inherit; font-size: 14px; box-shadow: none !important; outline: none; }
.ffbe-coupon__input:focus { border-color: var(--ffbe-red) !important; }
.ffbe-coupon__btn { flex: none; padding: 0 26px; border: 0; border-radius: 10px 0 0 10px; background-color: var(--ffbe-red); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; transition: background-color .2s; }
.ffbe-coupon__btn:hover { background-color: var(--ffbe-red-dark); }
.ffbe-coupon__btn.is-loading { opacity: .7; pointer-events: none; }
.ffbe-coupon__msg { margin-top: 8px; font-size: 13px; font-weight: 600; }

.ffbe-go { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; margin-top: 16px; border-radius: 12px; background-color: var(--ffbe-red); color: #fff !important; font-size: 18px; font-weight: 900; box-shadow: 0 14px 26px -16px var(--ffbe-red); transition: background-color .2s, transform .2s; }
.ffbe-go:hover { background-color: var(--ffbe-red-dark); }
.ffbe-go .ffbe-ico { font-size: 24px; stroke-width: 2.2; transition: transform .2s; }
.ffbe-go:hover .ffbe-ico { transform: translateX(-4px); }

/* ویژگی‌ها */
.ffbe-trust--list { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--ffbe-radius); background: var(--ffbe-card); box-shadow: 0 10px 34px -22px rgba(90, 40, 20, .28); }
.ffbe-trust__item { display: flex; align-items: center; gap: 14px; }
.ffbe-trust--list .ffbe-trust__item { padding: 10px 14px; border-radius: 12px; background: #fbf9f8; }
.ffbe-trust__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ffbe-soft); color: var(--ffbe-red); font-size: 22px; }
.ffbe-trust__text { display: flex; flex-direction: column; line-height: 1.7; }
.ffbe-trust__text b { color: var(--ffbe-dark); font-size: 15.5px; font-weight: 800; }
.ffbe-trust__text small { color: var(--ffbe-muted); font-size: 12.5px; }
.ffbe-trust--strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 14px 14px; padding: 16px 12px; border-radius: 14px; background: #fbf5ee; }
.ffbe-trust--strip .ffbe-trust__item { gap: 10px; }
.ffbe-trust--strip .ffbe-trust__ico { width: auto; height: auto; background: transparent; font-size: 30px; }
.ffbe-trust--strip .ffbe-trust__ico .ffbe-ico { stroke-width: 1.6; }
.ffbe-trust--strip .ffbe-trust__text b { font-size: 14.5px; }
.ffbe-trust--strip .ffbe-trust__text small { font-size: 11.5px; }

/* ==================== تسویه حساب ==================== */
.ffbe-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, var(--ffbe-side)); align-items: start; gap: 18px; }
.ffbe-co__main { padding: 28px 30px 24px; }
.ffbe-co__side { position: sticky; top: 20px; }
.ffbe-co-sec + .ffbe-co-sec { margin-top: 26px; }
.ffbe-co-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ffbe-co-sec__ico { display: grid; place-items: center; flex: none; color: var(--ffbe-red); font-size: 28px; }
.ffbe-co-sec__ico .ffbe-ico { stroke-width: 1.7; }
.ffbe-co-sec__ico.is-lg { font-size: 36px; }
.ffbe-co-sec__title { font-size: 19px; font-weight: 900; line-height: 1.5; }
.ffbe-co-sec__title.is-lg { font-size: 22px; }
.ffbe-co-sec__sub { margin: 0; color: var(--ffbe-muted); font-size: 12.5px; line-height: 1.6; }

.ffbe-co-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.ffbe-co-field--address, .ffbe-co-field--notes { grid-column: 1 / -1; }
.ffbe-co-field label { display: block; margin-bottom: 8px; color: var(--ffbe-dark); font-size: 15.5px; font-weight: 800; line-height: 1.5; }
.ffbe-co-field label i { color: var(--ffbe-red); font-style: normal; }
.ffbe-co-input { position: relative; }
.ffbe-co-input input, .ffbe-co-input select, .ffbe-co-input textarea {
	display: block;
	width: 100%;
	height: var(--ffbe-in-h);
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ffbe-in-bd);
	border-radius: 9px;
	background: #fff;
	color: var(--ffbe-dark);
	font: inherit;
	font-size: 14.5px;
	line-height: 1.6;
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.ffbe-co-input input[dir="ltr"] { text-align: right; }
.ffbe-co-input textarea { height: auto; min-height: 62px; padding: 12px 16px; resize: vertical; }
.ffbe-co-input.has-ico input, .ffbe-co-input.has-ico textarea { padding-right: 46px; }
.ffbe-co-input__ico { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: #9aa0a6; font-size: 19px; pointer-events: none; }
.ffbe-co-field--address .ffbe-co-input__ico { top: 22px; transform: none; }
.ffbe-co-field--email .ffbe-co-input.has-ico input { padding-right: 16px; padding-left: 46px; }
.ffbe-co-field--email .ffbe-co-input__ico { right: auto; left: 16px; }
.ffbe-co-input.is-select select { -webkit-appearance: none; appearance: none; padding-left: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; cursor: pointer; }
.ffbe-co-input.is-select select:invalid { color: #8c8c8c; }
.ffbe-co-input .ffbe-city-text:not([hidden]) { margin-top: 8px; }
.ffbe-co-input .ffbe-city-select[hidden] + .ffbe-city-text { margin-top: 0; }
.ffbe-co-input input:focus, .ffbe-co-input select:focus, .ffbe-co-input textarea:focus { border-color: var(--ffbe-red); box-shadow: 0 0 0 3px rgba(227, 17, 39, .1); }
.ffbe-shop ::placeholder { color: #9a9a9a; opacity: 1; }
.ffbe-co-field.has-error input, .ffbe-co-field.has-error select, .ffbe-co-field.has-error textarea { border-color: #d92d20; }
.ffbe-co-err { display: block; color: #d92d20; font-size: 12.5px; font-weight: 600; }
.ffbe-co-err:not(:empty) { margin-top: 5px; }

/* گزینه‌های ارسال و پرداخت */
.ffbe-opts { display: grid; gap: 14px 24px; }
.ffbe-opts--ship { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ffbe-opts--pay { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.ffbe-opts-pkg { margin: 6px 0 8px; font-weight: 800; }
.ffbe-opts-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; border: 1px dashed #e2dcd8; border-radius: 10px; color: var(--ffbe-muted); font-size: 14px; }
.ffbe-opts-empty .ffbe-ico { color: var(--ffbe-red); font-size: 18px; }
.ffbe-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 66px; margin: 0; padding: 10px 16px; border: 1px solid var(--ffbe-in-bd); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.ffbe-opt:hover { border-color: #f1b4ba; }
.ffbe-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ffbe-opt__radio { position: relative; flex: none; width: 22px; height: 22px; border: 1.5px solid #c9ccd0; border-radius: 50%; transition: border-color .2s; }
.ffbe-opt__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ffbe-red); transform: scale(0); transition: transform .2s; }
.ffbe-opt__ico { display: grid; place-items: center; flex: none; color: #3b3b3b; font-size: 30px; }
.ffbe-opt__ico .ffbe-ico { stroke-width: 1.5; }
.ffbe-opt__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.ffbe-opt__text b { color: var(--ffbe-dark); font-size: 15px; font-weight: 800; }
.ffbe-opt__text small { color: var(--ffbe-muted); font-size: 11.5px; }
.ffbe-opt__cost { color: var(--ffbe-red); font-size: 12.5px; font-style: normal; font-weight: 700; }
.ffbe-opt.is-on { border: 1.5px solid var(--ffbe-red); background-color: #fdf5f4; box-shadow: 0 8px 20px -14px var(--ffbe-red); }
.ffbe-opt.is-on .ffbe-opt__radio { border-color: var(--ffbe-red); }
.ffbe-opt.is-on .ffbe-opt__radio::after { transform: scale(1); }
.ffbe-opt.is-on .ffbe-opt__ico { color: var(--ffbe-red); }
.ffbe-opt input:focus-visible ~ .ffbe-opt__radio { box-shadow: 0 0 0 3px rgba(227, 17, 39, .2); }
.ffbe-paybox { margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: #faf8f6; font-size: 14px; }
.ffbe-paybox[hidden] { display: none; }
.ffbe-paybox p:last-child { margin-bottom: 0; }

.ffbe-co-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 22px; padding: 10px 18px; border: 0; border-radius: 9px; background-color: var(--ffbe-red); color: #fff; font-size: 17px; font-weight: 900; cursor: pointer; box-shadow: 0 14px 26px -16px var(--ffbe-red); transition: background-color .2s; }
.ffbe-co-submit:hover { background-color: var(--ffbe-red-dark); }
.ffbe-co-submit .ffbe-ico { font-size: 21px; stroke-width: 2; }
.ffbe-co-submit[disabled] { opacity: .75; cursor: progress; }
.ffbe-co-submit.is-loading::after { content: ""; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: ffbe-spin .7s linear infinite; }
.ffbe-co-terms { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #555; font-size: 13px; font-weight: 500; line-height: 1.8; cursor: pointer; }
.ffbe-co-terms input { position: absolute; opacity: 0; pointer-events: none; }
.ffbe-co-terms__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid #c9ccd0; border-radius: 5px; color: #fff; font-size: 14px; transition: all .2s; }
.ffbe-co-terms__box .ffbe-ico { opacity: 0; stroke-width: 3; }
.ffbe-co-terms input:checked + .ffbe-co-terms__box { border-color: var(--ffbe-red); background: var(--ffbe-red); }
.ffbe-co-terms input:checked + .ffbe-co-terms__box .ffbe-ico { opacity: 1; }
.ffbe-co-terms input:focus-visible + .ffbe-co-terms__box { box-shadow: 0 0 0 3px rgba(227, 17, 39, .2); }
.ffbe-co-terms a { color: var(--ffbe-red) !important; font-weight: 700; }
.ffbe-co-terms.has-error { color: #d92d20; }

/* خلاصه سفارش تسویه */
.ffbe-sum--co .ffbe-sum__body { padding: 4px 20px 6px; }
.ffbe-co-items { display: flex; flex-direction: column; }
.ffbe-co-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ffbe-line); }
.ffbe-co-item .ffbe-it-img { width: 116px; aspect-ratio: 1.28; }
.ffbe-co-item .ffbe-it-info { flex: 1; }
.ffbe-co-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: left; white-space: nowrap; }
.ffbe-co-item__qty { color: var(--ffbe-muted); font-size: 16px; font-weight: 600; }
.ffbe-co-item__price { color: var(--ffbe-red); font-size: 16px; font-weight: 800; }
.ffbe-sum--co .ffbe-sum-total { margin: 10px 0 6px; }
.ffbe-coupon--co { padding: 10px 20px 18px; }
.ffbe-coupon--co .ffbe-coupon__title { justify-content: space-between; }
.ffbe-coupon--co .ffbe-coupon__title span:first-child { order: 0; }
.ffbe-co-endpoint { padding: 26px; }

/* ==================== واکنش‌گرا ==================== */
@media (max-width: 1200px) {
	.ffbe-ct-head, .ffbe-ct-row { grid-template-columns: minmax(0, 1fr) 120px 150px 120px 60px; }
	.ffbe-shop { --ffbe-thumb: 100px; }
	.ffbe-opts--pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.ffbe-cart__grid, .ffbe-co__grid { grid-template-columns: minmax(0, 1fr); }
	.ffbe-cart__side, .ffbe-co__side { position: static; }
	.ffbe-co__head .ffbe-bc { position: static; margin-bottom: 10px; }
	.ffbe-decor--tl { width: 34%; }
	.ffbe-decor--tr { width: 26%; }
	.ffbe-sugg__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ffbe-shop { padding: 22px 12px 40px; --ffbe-thumb: 84px; }
	.ffbe-decor-desktop .ffbe-decor { display: none; }
	.ffbe-shop__ticon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
	.ffbe-shop__sub { font-size: 14px; }
	.ffbe-steps { margin-top: 16px; }
	.ffbe-step__label { font-size: 11.5px; text-align: center; }
	.ffbe-step__dot { width: 28px; height: 28px; font-size: 15px; }
	.ffbe-step + .ffbe-step::before { top: 13px; right: calc(-50% + 18px); left: calc(50% + 18px); }

	.ffbe-ct { padding: 12px; }
	.ffbe-ct-head { display: none; }
	.ffbe-ct-row { grid-template-columns: 1fr auto; grid-template-areas: "prod prod" "qty total" "price del"; row-gap: 10px; padding: 14px 0; }
	.ffbe-ct-row .c-prod { grid-area: prod; gap: 12px; }
	.ffbe-ct-row .c-qty { grid-area: qty; justify-self: start; }
	.ffbe-ct-row .c-total { grid-area: total; justify-self: end; }
	.ffbe-ct-row .c-price { grid-area: price; justify-self: start; font-size: 13.5px; }
	.ffbe-ct-row .c-price::before { content: attr(data-label) ": "; color: var(--ffbe-muted); font-weight: 500; }
	.ffbe-ct-row .c-del { grid-area: del; justify-self: end; }
	.ffbe-ct-del { width: 38px; height: 38px; font-size: 17px; }
	.ffbe-it-name { font-size: 15px; }
	.ffbe-it-meta { font-size: 12.5px; }
	.ffbe-qty { height: 40px; }
	.ffbe-qty__btn { width: 36px; }
	.ffbe-qty__input { width: 46px; font-size: 15px; }
	.ffbe-ct-actions { flex-direction: column; }
	.ffbe-ct-clear, .ffbe-ct-update { justify-content: center; }
	.ffbe-sugg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ffbe-mini__name { font-size: 14px; }
	.ffbe-mini__btn { font-size: 13px; }

	.ffbe-co__main { padding: 20px 14px; }
	.ffbe-co-fields { grid-template-columns: 1fr; gap: 14px; }
	.ffbe-opts--ship, .ffbe-opts--pay { grid-template-columns: 1fr; gap: 10px; }
	.ffbe-co-item .ffbe-it-img { width: 80px; }
	.ffbe-sum__body, .ffbe-sum--co .ffbe-sum__body { padding-inline: 14px; }
	.ffbe-sum-total { padding: 14px; }
	.ffbe-sum-total span { font-size: 15px; }
	.ffbe-sum-total b { font-size: 18px; }
	.ffbe-trust--strip { grid-template-columns: 1fr; margin: 0 10px 10px; }
	.ffbe-coupon__btn { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ffbe-shop * { transition: none !important; animation: none !important; }
}
