/* معتبرکالا — plugin components (works with any theme; the motabar theme adds the full layout). */
:root {
	--mk-blue: #1466f5;
	--mk-blue-d: #0b3a8c;
	--mk-navy: #0b2545;
	--mk-amber: #ffb020;
	--mk-green: #16a34a;
	--mk-red: #dc2626;
	--mk-line: #e5e7eb;
	--mk-soft: #f3f6fb;
	--mk-text: #1f2937;
	--mk-muted: #6b7280;
	--mk-r: 12px;
}

.mk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mk-ph { background: #fff3c4; color: #7a5200; border: 1px dashed #e0a800; border-radius: 6px; padding: 0 6px; font-size: .9em; }
.mk-ic { flex: 0 0 auto; color: var(--mk-blue); }

/* Buttons */
.mk-btn, .mk-btn-2 {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 46px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--mk-blue); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
	transition: background .15s;
}
.mk-btn:hover { background: var(--mk-blue-d); color: #fff; }
.mk-btn-2 { background: var(--mk-navy); }
.mk-btn-2:hover { background: #000; }
.mk-btn[disabled], .mk-btn.is-busy { opacity: .65; cursor: default; }

/* Product page */
.mk-subtitle { color: var(--mk-muted); font-size: 13px; margin: -4px 0 10px; text-align: left; }
.mk-oos { color: var(--mk-red); font-weight: 700; }
.mk-pbox { list-style: none; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--mk-line); border-radius: var(--mk-r); background: #fff; }
.mk-pbox li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; line-height: 1.7; border-bottom: 1px dashed var(--mk-line); }
.mk-pbox li:last-child { border-bottom: 0; }
.mk-pbox a { color: var(--mk-blue); }

.mk-quick { margin: 14px 0; padding: 14px; border-radius: var(--mk-r); background: var(--mk-soft); border: 1px solid #d9e4f7; }
.mk-quick-t { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mk-navy); }
.mk-quick-d { margin: 6px 0 10px; font-size: 13px; color: var(--mk-muted); line-height: 1.8; }
.mk-quick-row { display: flex; gap: 8px; }
.mk-quick-row input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #c9d3e3; border-radius: 10px; font-size: 16px; background: #fff; text-align: left; }
.mk-quick-row input:focus, .mk-cform input:focus, .mk-cform textarea:focus { outline: 2px solid var(--mk-blue); outline-offset: 0; border-color: var(--mk-blue); }
.mk-quick.is-done { background: #ecfdf3; border-color: #b7ebc9; }
.mk-notify { background: #fff8e6; border-color: #fde2a7; }

.mk-msg { margin-top: 8px; font-size: 14px; line-height: 1.8; min-height: 0; }
.mk-msg:empty { display: none; }
.mk-msg.ok { color: #0f7a35; }
.mk-msg.err { color: var(--mk-red); }

/* Sticky buy bar: mobile product pages only */
.mk-sticky { display: none; }
@media (max-width: 767px) {
	.single-product .mk-sticky {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; inset: auto 0 0 0; z-index: 999; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--mk-line); box-shadow: 0 -4px 16px rgba(11, 37, 69, .08);
	}
	.single-product .mk-sticky .mk-btn { flex: 0 0 46%; }
	.single-product { padding-bottom: 76px; }
}
.mk-sticky-p { display: flex; flex-direction: column; font-weight: 700; color: var(--mk-navy); }
.mk-sticky-p small { font-weight: 400; color: var(--mk-green); font-size: 12px; }
.mk-sticky-p del { display: none; }

/* Checkout */
.mk-co-head { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--mk-r); background: var(--mk-soft); }
.mk-co-sum { font-size: 15px; }
.mk-steps { display: flex; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; counter-reset: s; }
.mk-steps li { flex: 1; position: relative; padding: 6px 4px 6px 4px; font-size: 12px; text-align: center; color: var(--mk-muted); border-top: 3px solid var(--mk-line); counter-increment: s; }
.mk-steps li::before { content: counter(s, persian) ". "; }
.mk-steps li.on { color: var(--mk-blue); border-top-color: var(--mk-blue); font-weight: 700; }
.woocommerce-checkout .mk-phone-row label { font-weight: 700; font-size: 15px; }
.woocommerce-checkout input.mk-phone { height: 52px; font-size: 20px; letter-spacing: 1px; text-align: left; direction: ltr; border: 2px solid var(--mk-blue); border-radius: 10px; padding: 0 12px; }
.woocommerce-checkout input.mk-phone.is-ok { border-color: var(--mk-green); background: #f3fdf6; }
.woocommerce-checkout #place_order { width: 100%; min-height: 54px; font-size: 17px; font-weight: 700; border-radius: 12px; background: var(--mk-green); }
.mk-ship-note { display: block; color: var(--mk-muted); font-size: 12px; font-weight: 400; }

.mk-fsbar-row td { padding: 10px 0 !important; }
.mk-fsbar { position: relative; display: block; padding-bottom: 14px; font-size: 13px; line-height: 1.8; }
.mk-fsbar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; border-radius: 6px; background: var(--mk-line); }
.mk-fsbar i { position: absolute; bottom: 0; right: 0; z-index: 1; height: 8px; border-radius: 6px; background: linear-gradient(270deg, #1f7bff, var(--mk-blue-d)); }
.mk-fsbar.done { color: var(--mk-green); font-weight: 700; }
.mk-fsbar.done i { background: var(--mk-green); }

.mk-ty { margin: 20px 0; padding: 16px; border-radius: var(--mk-r); background: #ecfdf3; border: 1px solid #b7ebc9; }
.mk-ty h3 { margin-top: 0; }

/* Contact / complaint form and info pages */
.mk-cform { display: grid; gap: 12px; max-width: 640px; margin: 16px 0; padding: 16px; border: 1px solid var(--mk-line); border-radius: var(--mk-r); background: #fff; }
.mk-cform-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mk-cform label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.mk-cform label small { font-weight: 400; color: var(--mk-muted); }
.mk-cform input, .mk-cform textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c9d3e3; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.mk-cform input[type=tel], .mk-cform input[dir=ltr] { text-align: left; }
.mk-cform .mk-btn { justify-self: start; }
.mk-contact-list { list-style: none; padding: 0; }
.mk-contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--mk-line); }
.mk-faq details { border: 1px solid var(--mk-line); border-radius: 10px; margin: 8px 0; background: #fff; }
.mk-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.mk-faq details p { margin: 0; padding: 0 14px 12px; line-height: 1.9; }
