/* FM Easy Product Page */
.fmep, .fmep-accordions, .fmep-sticky { --fmep-radius: 12px; --fmep-border: #e6e6e6; --fmep-muted: #777; --fmep-soft: #f6f6f6; font-family: inherit; }
.fmep { direction: rtl; text-align: right; }
.fmep *, .fmep-sticky * { box-sizing: border-box; }
.fmep [hidden], .fmep-sticky[hidden] { display: none !important; }

.fmep-title { font-size: 26px; line-height: 1.35; margin: 0 0 6px; font-weight: 700; }
.fmep-subtitle { color: var(--fmep-muted); margin: 0 0 10px; }

.fmep-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.fmep-price-now { color: var(--fmep-accent); font-size: 26px; font-weight: 800; }
.fmep-price-old { color: #999; font-size: 17px; }
.fmep-badge { background: var(--fmep-accent); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Countdown */
.fmep-countdown { background: #fff5f5; border: 1px dashed var(--fmep-accent); border-radius: var(--fmep-radius); padding: 12px; margin: 0 0 14px; text-align: center; }
.fmep-countdown-title { font-weight: 700; margin-bottom: 8px; color: var(--fmep-accent); }
.fmep-countdown-boxes { display: flex; justify-content: center; gap: 8px; direction: ltr; flex-direction: row-reverse; }
.fmep-countdown-boxes span { background: var(--fmep-primary); color: var(--fmep-btn-text); border-radius: 8px; min-width: 58px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; }
.fmep-countdown-boxes b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fmep-countdown-boxes small { font-size: 11px; opacity: .85; }

/* Stock */
.fmep-stock { font-size: 14px; margin: 0 0 14px; color: #c62828; }
.fmep-stock-bar { height: 6px; background: #f1f1f1; border-radius: 9px; margin-top: 6px; overflow: hidden; }
.fmep-stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff7043, #e53935); }

.fmep-highlights { list-style: none; margin: 0 0 16px; padding: 0; }
.fmep-highlights li { position: relative; padding: 4px 26px 4px 0; }
.fmep-highlights li::before { content: "✔"; position: absolute; right: 0; color: #2e7d32; font-weight: 700; }
.fmep-excerpt { margin-bottom: 14px; color: #444; }
.fmep-oos { background: var(--fmep-soft); padding: 14px; border-radius: var(--fmep-radius); text-align: center; font-weight: 700; }

/* Attributes */
.fmep-form { margin: 0; }
.fmep-attr, .fmep-bundles, .fmep-qty-wrap { margin-bottom: 16px; }
.fmep-attr-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: block; }
.fmep-attr-label b { font-weight: 400; color: var(--fmep-muted); }
.fmep-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fmep-sw { position: relative; cursor: pointer; margin: 0; }
.fmep-sw input { position: absolute; opacity: 0; pointer-events: none; }
.fmep-pill { display: inline-block; min-width: 54px; text-align: center; padding: 9px 16px; border: 1px solid var(--fmep-border); border-radius: 999px; font-size: 14px; transition: .15s; background: #fff; }
.fmep-sw input:checked + .fmep-pill { background: var(--fmep-primary); color: var(--fmep-btn-text); border-color: var(--fmep-primary); }
.fmep-dot { display: block; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd; box-shadow: inset 0 0 0 3px #fff; transition: .15s; }
.fmep-sw input:checked + .fmep-dot { outline: 2px solid var(--fmep-primary); outline-offset: 2px; }
.fmep-sw img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--fmep-border); display: block; }
.fmep-sw input:checked + img { outline: 2px solid var(--fmep-primary); outline-offset: 2px; }
.fmep-sw.is-disabled { opacity: .35; cursor: not-allowed; }
.fmep-sw.is-disabled .fmep-pill { text-decoration: line-through; }
.fmep-select, .fmep-field input, .fmep-field select, .fmep-field textarea, .fmep-coupon input {
	width: 100%; border: 1px solid var(--fmep-border); border-radius: 10px; padding: 12px 14px; font-size: 15px; background: #fff; color: inherit; font-family: inherit; margin: 0; box-shadow: none; min-height: 48px;
}
.fmep-field input:focus, .fmep-field select:focus, .fmep-field textarea:focus, .fmep-coupon input:focus { outline: none; border-color: var(--fmep-primary); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.fmep-invalid, .fmep-attr.fmep-invalid .fmep-swatches { border-color: #e53935 !important; box-shadow: 0 0 0 3px rgba(229,57,53,.12) !important; border-radius: 10px; }

/* Qty */
.fmep-qty-wrap { display: flex; align-items: center; gap: 14px; }
.fmep-qty-wrap .fmep-attr-label { margin: 0; }
.fmep-qty { display: inline-flex; align-items: center; border: 1px solid var(--fmep-border); border-radius: 999px; overflow: hidden; direction: ltr; }
.fmep-qty button { background: none; border: 0; width: 42px; height: 42px; font-size: 20px; cursor: pointer; color: inherit; padding: 0; }
.fmep-qty input { width: 48px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; background: transparent; padding: 0; height: 42px; }
.fmep-qty input::-webkit-outer-spin-button, .fmep-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Bundles */
.fmep-bundle { display: block; margin: 0 0 10px; cursor: pointer; }
.fmep-bundle input { position: absolute; opacity: 0; pointer-events: none; }
.fmep-bundle-body { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--fmep-border); border-radius: var(--fmep-radius); background: #fff; transition: .15s; }
.fmep-bundle.is-active .fmep-bundle-body, .fmep-bundle input:checked + .fmep-bundle-body { border-color: var(--fmep-primary); background: var(--fmep-soft); }
.fmep-bundle-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #bbb; flex: 0 0 20px; position: relative; }
.fmep-bundle input:checked + .fmep-bundle-body .fmep-bundle-radio { border-color: var(--fmep-primary); }
.fmep-bundle input:checked + .fmep-bundle-body .fmep-bundle-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--fmep-primary); }
.fmep-bundle-text { flex: 1; display: flex; flex-direction: column; }
.fmep-bundle-text small { color: #2e7d32; font-weight: 600; }
.fmep-bundle-price { text-align: left; display: flex; flex-direction: column; }
.fmep-bundle-price b { font-size: 17px; }
.fmep-bundle-price del { color: #999; font-size: 13px; }
.fmep-bundle-badge { position: absolute; top: -10px; left: 14px; background: var(--fmep-accent); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* Fields */
.fmep-fields { border: 1px dashed #cfcfcf; border-radius: var(--fmep-radius); padding: 16px; margin: 0 0 16px; background: #fcfcfc; }
.fmep-fields-title { font-weight: 700; margin-bottom: 12px; font-size: 16px; }
.fmep-field { margin-bottom: 10px; }
.fmep-field:last-child { margin-bottom: 0; }
.fmep-field input[dir=ltr] { text-align: right; }

/* Bumps */
.fmep-bumps { margin-bottom: 16px; display: grid; gap: 10px; }
.fmep-bump { display: flex; align-items: center; gap: 10px; border: 1.5px dashed #f0a500; background: #fffaf0; border-radius: var(--fmep-radius); padding: 10px 12px; cursor: pointer; margin: 0; }
.fmep-bump input { width: 20px; height: 20px; accent-color: var(--fmep-primary); flex: 0 0 auto; margin: 0; }
.fmep-bump img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.fmep-bump-text { display: flex; flex-direction: column; font-size: 14px; }
.fmep-bump-text del { color: #999; margin-right: 6px; font-size: 12px; }

/* Coupon */
.fmep-coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fmep-coupon input { flex: 1; min-width: 0; }
.fmep-coupon-btn { border: 1px solid var(--fmep-primary); background: #fff; color: var(--fmep-primary); border-radius: 10px; padding: 0 20px; font-weight: 700; cursor: pointer; min-height: 48px; }
.fmep-coupon-msg { width: 100%; font-size: 13px; }
.fmep-coupon-msg.ok { color: #2e7d32; }
.fmep-coupon-msg.err { color: #c62828; }

/* Summary */
.fmep-summary { border: 1px solid var(--fmep-border); border-radius: var(--fmep-radius); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.fmep-summary > div { display: flex; justify-content: space-between; padding: 5px 0; }
.fmep-summary .fmep-discount-row { color: #2e7d32; }
.fmep-summary .fmep-total { border-top: 1px solid var(--fmep-border); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 17px; }

/* Free shipping */
.fmep-freeship { margin-bottom: 14px; font-size: 14px; text-align: center; border: 1px solid var(--fmep-border); border-radius: var(--fmep-radius); padding: 10px 12px; }
.fmep-freeship-bar { height: 7px; background: #eee; border-radius: 9px; overflow: hidden; margin-top: 8px; }
.fmep-freeship-bar i { display: block; height: 100%; width: 0; background: var(--fmep-primary); transition: width .3s; }
.fmep-freeship.is-done .fmep-freeship-bar i { background: #2e7d32; }

/* Actions */
.fmep-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: 0 !important; opacity: 0; }
.fmep-form { position: relative; }
.fmep-actions { display: grid; gap: 10px; }
.fmep-buy, .fmep-cart, .fmep-wa, .fmep-sticky-btn {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 12px; font-size: 17px; font-weight: 800; cursor: pointer; text-decoration: none; font-family: inherit; transition: transform .1s, opacity .15s; padding: 0 16px; line-height: 1.2;
}
.fmep-buy, .fmep-sticky-btn { background: var(--fmep-primary); color: var(--fmep-btn-text); border: 0; animation: fmep-pulse 2.2s infinite; }
.fmep-cart { background: #fff; color: var(--fmep-primary); border: 1.5px solid var(--fmep-primary); }
.fmep-wa { background: #25d366; color: #fff !important; border: 0; font-size: 15px; min-height: 48px; }
.fmep-buy:active, .fmep-cart:active, .fmep-sticky-btn:active { transform: scale(.98); }
.fmep-buy:disabled, .fmep-cart:disabled { opacity: .6; cursor: wait; animation: none; }
@keyframes fmep-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,.25); } 50% { box-shadow: 0 0 0 8px rgba(0,0,0,0); } }

.fmep-msg { font-size: 14px; margin: 0 0 10px; }
.fmep-msg:empty { display: none; }
.fmep-msg.err { color: #c62828; background: #ffebee; padding: 10px 12px; border-radius: 10px; }
.fmep-msg.ok { color: #2e7d32; background: #e8f5e9; padding: 10px 12px; border-radius: 10px; }
.fmep-success { background: #e8f5e9; color: #1b5e20; border-radius: var(--fmep-radius); padding: 22px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.7; }

/* Trust */
.fmep-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 18px 0; }
.fmep-trust-item { background: var(--fmep-soft); border-radius: 10px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.fmep-trust-item span { font-size: 22px; }
.fmep-trust-item small { font-size: 12px; color: #444; }

/* Accordions */
.fmep-accordions { direction: rtl; text-align: right; clear: both; margin: 30px 0; border-top: 1px solid var(--fmep-border); }
.fmep-acc { border-bottom: 1px solid var(--fmep-border); }
.fmep-acc summary { list-style: none; cursor: pointer; padding: 16px 4px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.fmep-acc summary::-webkit-details-marker { display: none; }
.fmep-acc summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.fmep-acc[open] summary::after { content: "−"; }
.fmep-acc-body { padding: 0 4px 16px; color: #444; line-height: 1.8; }
.fmep-reviews { clear: both; direction: rtl; }

/* Sticky */
.fmep-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.08); padding: 10px 16px; display: flex; align-items: center; gap: 12px; direction: rtl; animation: fmep-up .25s ease; }
.fmep-sticky-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.fmep-sticky-info img { width: 46px !important; height: 46px !important; object-fit: cover; border-radius: 8px; margin: 0 !important; }
.fmep-sticky-info div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.fmep-sticky-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmep-sticky-info span { color: var(--fmep-accent); font-weight: 700; }
.fmep-sticky-btn { width: auto; min-width: 150px; min-height: 48px; font-size: 16px; }
body.fmep-sticky-on { padding-bottom: 72px; }
@keyframes fmep-up { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 600px) {
	.fmep-title { font-size: 21px; }
	.fmep-price-now { font-size: 23px; }
	.fmep-countdown-boxes span { min-width: 52px; }
	.fmep-sticky-info strong { font-size: 13px; }
	.fmep-sticky-btn { min-width: 120px; font-size: 15px; }
}
