/* ==========================================================================
   Core: যৌথ কম্পোনেন্ট — বাটন, কার্ড, সেকশন হেড, খালি অবস্থা, ওভারলে
   যেকোনো মডিউল এগুলো ব্যবহার করতে পারে; মডিউল-নির্দিষ্ট স্টাইল নিজ মডিউলের CSS-এ।
   ========================================================================== */

/* ── বাটন ── */
.arianerptheme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--arianerptheme-radius-sm);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: filter .15s ease, background-color .15s ease;
}

.arianerptheme-btn:hover {
	text-decoration: none;
	filter: brightness(.95);
}

.arianerptheme-btn--primary {
	background: var(--arianerptheme-primary);
	color: var(--arianerptheme-primary-ink);
}

.arianerptheme-btn--whatsapp {
	background: var(--arianerptheme-whatsapp);
	color: #fff;
}

.arianerptheme-btn--ghost {
	background: transparent;
	border-color: var(--arianerptheme-border);
	color: var(--arianerptheme-text);
}

.arianerptheme-btn--block {
	width: 100%;
}

.arianerptheme-btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.arianerptheme-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--arianerptheme-border);
	border-radius: 50%;
	background: var(--arianerptheme-surface);
	color: var(--arianerptheme-text);
	cursor: pointer;
}

/* ── কার্ড ── */
.arianerptheme-card {
	background: var(--arianerptheme-surface);
	border: 1px solid var(--arianerptheme-border);
	border-radius: var(--arianerptheme-radius);
	box-shadow: var(--arianerptheme-shadow);
	overflow: hidden;
}

/* ── সেকশন হেড ── */
.arianerptheme-section--tight {
	padding-block: 24px 8px;
}

.arianerptheme-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.arianerptheme-section__title {
	margin: 0;
	font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
	line-height: 1.3;
}

.arianerptheme-section__link {
	flex: none;
	font-weight: 600;
}

/* ── খালি অবস্থা ── */
.arianerptheme-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--arianerptheme-muted);
}

.arianerptheme-empty__hint {
	font-size: .875rem;
}

/* ── ওভারলে ও স্ক্রল-লক (Core JS-এর ui.createPanel ব্যবহার করে) ──
   সাইডবার, ভবিষ্যতের Side Cart ও Checkout Modal — সবাই এটি ব্যবহার করবে। */
.arianerptheme-lock-scroll,
.arianerptheme-lock-scroll body {
	overflow: hidden;
}

.arianerptheme-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--arianerptheme-z-overlay);
	background: var(--arianerptheme-overlay-bg);
	opacity: 0;
	transition: opacity .25s ease;
}

.arianerptheme-overlay.is-open {
	opacity: 1;
}

/* ── টোস্ট (Core JS-এর ui.toast) ── */
.arianerptheme-toasts {
	position: fixed;
	left: 50%;
	bottom: calc(16px + var(--arianerptheme-bottom-offset) + env(safe-area-inset-bottom, 0px));
	z-index: var(--arianerptheme-z-toast);
	display: grid;
	gap: 8px;
	width: min(92vw, 420px);
	transform: translateX(-50%);
	pointer-events: none;
}

.arianerptheme-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--arianerptheme-radius-sm);
	background: #111827;
	color: #f9fafb;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	font-size: .92rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: auto;
}

.arianerptheme-toast.is-visible {
	opacity: 1;
	transform: none;
}

.arianerptheme-toast--success {
	border-left: 4px solid var(--arianerptheme-success);
}

.arianerptheme-toast--error {
	border-left: 4px solid var(--arianerptheme-danger);
}

.arianerptheme-toast__text {
	flex: 1;
	min-width: 0;
}

.arianerptheme-toast__action {
	flex: none;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* ── Shimmer skeleton (লোড হওয়ার সময়) — যেকোনো মডিউল ব্যবহার করতে পারে ── */
.arianerptheme-skeleton {
	display: block;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--arianerptheme-surface-2) 25%, color-mix(in srgb, var(--arianerptheme-surface-2) 60%, var(--arianerptheme-surface)) 50%, var(--arianerptheme-surface-2) 75%);
	background-size: 200% 100%;
	animation: arianerptheme-shimmer 1.2s linear infinite;
}

.arianerptheme-skeleton--thumb {
	width: 56px;
	height: 56px;
}

.arianerptheme-skeleton--line {
	height: 12px;
	margin: 6px 0;
}

.arianerptheme-skeleton--line.is-short {
	width: 45%;
}

.arianerptheme-skeleton--btn {
	width: 72px;
	height: 34px;
}

@keyframes arianerptheme-shimmer {
	to { background-position: -200% 0; }
}

/* ── স্ক্রিন-রিডারের জন্য লুকানো লেখা ── */
.arianerptheme-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── পরিমাণ (+/−) — Cart, Quick Buy, Checkout সবাই ব্যবহার করে ── */
.arianerptheme-qty {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: 6px;
	border: 1px solid var(--arianerptheme-border);
	border-radius: 999px;
	background: var(--arianerptheme-surface-2);
}

.arianerptheme-qty__btn {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--arianerptheme-text);
	cursor: pointer;
}

.arianerptheme-qty__btn:hover:not(:disabled) {
	background: var(--arianerptheme-surface);
}

.arianerptheme-qty__btn:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.arianerptheme-qty__btn .arianerptheme-icon {
	width: 16px;
	height: 16px;
}

.arianerptheme-qty__input {
	width: 40px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--arianerptheme-text);
	font: inherit;
	font-weight: 700;
	text-align: center;
}

.arianerptheme-qty__input:focus-visible {
	outline-offset: -2px;
}

/* ── অ্যানিমেটেড ✓ (Checkout ও Order Success) ── */
.arianerptheme-checkmark {
	width: 76px;
	height: 76px;
	stroke: var(--arianerptheme-success);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.arianerptheme-checkmark__circle {
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: arianerptheme-check-draw .6s ease forwards;
}

.arianerptheme-checkmark__check {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: arianerptheme-check-draw .35s .5s ease forwards;
}

@keyframes arianerptheme-check-draw {
	to { stroke-dashoffset: 0; }
}

/* ── অফার দাম: অফার দাম ~~আগের দাম~~ −২৩% ── */
.arianerptheme-price__now {
	white-space: nowrap;
}

.arianerptheme-price__was {
	color: var(--arianerptheme-muted);
	font-size: .82em;
	font-weight: 500;
	white-space: nowrap;
	text-decoration-thickness: 1.5px;
}

.arianerptheme-price__off {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--arianerptheme-danger);
	color: #fff;
	font-size: .7em;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: middle;
	white-space: nowrap;
}
