/* বাংলা টেক্সটের জন্য "Hind Siliguri" এবং ইংরেজি/নাম্বারের জন্য "Poppins" ফন্ট।
   একই font-family stack এ দুটো ফন্ট দিলে ব্রাউজার প্রতিটা ক্যারেক্টারের জন্য
   উপযুক্ত ফন্টটি (Poppins এ না থাকলে Hind Siliguri থেকে) স্বয়ংক্রিয়ভাবে বেছে নেয়। */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

.wcmop-grid,
.wcmop-cart-summary {
	font-family: 'Poppins', 'Hind Siliguri', sans-serif;
	color: var(--wcmop-color-text, inherit);
}

.wcmop-grid {
	display: grid;
	grid-template-columns: repeat(var(--wcmop-cols-desktop, 4), 1fr);
	gap: 16px;
	margin: 20px 0;
}

@media (max-width: 1024px) {
	.wcmop-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.wcmop-grid {
		grid-template-columns: repeat(var(--wcmop-mobile-cols, 2), 1fr);
		gap: 10px;
	}
}

.wcmop-card {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
}

.wcmop-card-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.wcmop-no-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	color: #999;
	border-radius: 6px;
	font-size: 12px;
}

.wcmop-card-title {
	font-size: 13px;
	margin: 8px 0 4px;
	line-height: 1.3;
	min-height: 34px;
}

.wcmop-card-price {
	margin-bottom: 8px;
	font-size: 14px;
}

.wcmop-old-price {
	text-decoration: line-through;
	color: #999;
	margin-right: 6px;
	font-size: 12px;
}

.wcmop-new-price {
	color: var(--wcmop-color-price, var(--wcmop-color-brand, #e02b2b));
	font-weight: 700;
}

.wcmop-field {
	text-align: left;
	margin-bottom: 6px;
	font-size: 12px;
}

.wcmop-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 2px;
	color: #444;
}

.wcmop-size-group {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.wcmop-size-btn {
	background: #f7f7f7;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 6px 2px;
	font-size: 12px;
	cursor: pointer;
	font-family: inherit;
}

.wcmop-size-btn.active {
	background: var(--wcmop-color-size, var(--wcmop-color-brand, #e02b2b));
	border-color: var(--wcmop-color-size, var(--wcmop-color-brand, #e02b2b));
	color: var(--wcmop-color-button-text, #fff);
	font-weight: 600;
}

.wcmop-qty-box {
	display: flex !important;
	align-items: stretch;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	box-sizing: border-box;
	visibility: visible !important;
	opacity: 1 !important;
}

.wcmop-qty-box * {
	box-sizing: border-box;
}

.wcmop-qty-box button {
	width: 30px !important;
	min-width: 26px !important;
	flex: 0 0 30px !important;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 14px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wcmop-qty-input {
	flex: 1 1 auto !important;
	border: none;
	text-align: center;
	width: 100%;
	min-width: 0 !important;
	display: block !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: normal !important;
	background: #fff !important;
	color: #222 !important;
	font-family: inherit !important;
	font-size: inherit;
	visibility: visible !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #222 !important;
	/* নাম্বার ইনপুটের বিল্ট-ইন আপ/ডাউন স্পিনার (অ্যারো) হাইড করা - এটা এক্সট্রা জায়গা
	   দখল করে "+" বাটনটাকে বক্সের বাইরে ঠেলে দিয়ে হাইড করে দিচ্ছিল, তাই এটা বাগের কারণ ছিল। */
	-moz-appearance: textfield;
}

.wcmop-qty-input::-webkit-outer-spin-button,
.wcmop-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

@media (max-width: 360px) {
	.wcmop-qty-box button {
		width: 24px;
		min-width: 22px;
		font-size: 12px;
	}
}

/* কোয়ান্টিটি অপশন সেটিংস থেকে বন্ধ থাকলে - কাস্টম টেক্সট বাটন */
.wcmop-qty-off-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wcmop-color-qty-off-bg, #2271b1);
	color: var(--wcmop-color-qty-off-text, var(--wcmop-color-button-text, #fff));
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.wcmop-order-btn {
	margin-top: auto;
	background: var(--wcmop-color-button, var(--wcmop-color-brand, #e02b2b));
	color: var(--wcmop-color-button-text, #fff);
	border: none;
	padding: 10px 6px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	width: 100%;
}

.wcmop-order-btn:hover {
	filter: brightness(0.88);
}

.wcmop-order-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ================= Cart Summary Widget ([wcmop_cart_summary]) ================= */

.wcmop-cart-summary {
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 10px;
	margin: 16px 0;
	background: #fff;
}

.wcmop-cart-empty {
	text-align: center;
	color: #777;
}

.wcmop-summary-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.wcmop-summary-row:last-of-type {
	border-bottom: none;
}

.wcmop-summary-image img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.wcmop-summary-info {
	flex: 1;
	min-width: 0;
}

.wcmop-summary-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.wcmop-summary-size {
	font-size: 11px;
	color: #777;
}

.wcmop-summary-price {
	font-size: 12px;
	color: var(--wcmop-color-price, var(--wcmop-color-brand, #e02b2b));
	font-weight: 600;
}

.wcmop-summary-qty .wcmop-qty-box {
	width: 90px;
}

.wcmop-summary-subtotal {
	font-size: 13px;
	font-weight: 700;
	min-width: 70px;
	text-align: right;
}

.wcmop-summary-remove {
	background: none;
	border: none;
	color: #a00;
	cursor: pointer;
	font-size: 14px;
	padding: 4px 6px;
}

.wcmop-summary-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	margin-top: 6px;
	border-top: 2px solid #eee;
	font-size: 15px;
}

@media (max-width: 600px) {
	.wcmop-summary-row {
		flex-wrap: wrap;
	}
	.wcmop-summary-subtotal {
		order: 4;
		width: 100%;
		text-align: left;
		margin-top: 4px;
	}
}

/* ================= Built-in Checkout Widget ([wcmop_checkout]) ================= */

.wcmop-checkout-wrap {
	max-width: 480px;
	margin: 20px auto;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	padding: 16px;
	font-family: 'Poppins', 'Hind Siliguri', sans-serif;
	color: var(--wcmop-color-text, inherit);
}

.wcmop-checkout-heading {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
}

.wcmop-checkout-cart {
	margin-bottom: 14px;
	border: none;
	padding: 0;
}

.wcmop-checkout-empty {
	text-align: center;
	color: #777;
	padding: 20px 0;
}

.wcmop-checkout-message {
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 12px;
	font-size: 13px;
}

.wcmop-msg-success {
	background: #e8f7ee;
	color: #1a7f43;
	border: 1px solid #b6e6c8;
}

.wcmop-msg-error {
	background: #fdeaea;
	color: #b12424;
	border: 1px solid #f3b8b8;
}

.wcmop-form-row {
	margin-bottom: 14px;
}

.wcmop-form-row label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 5px;
	color: #333;
}

.wcmop-form-row input[type="text"],
.wcmop-form-row input[type="tel"],
.wcmop-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.wcmop-form-row textarea {
	min-height: 70px;
	resize: vertical;
}

.wcmop-area-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.wcmop-area-option {
	display: flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	margin: 0;
}

.wcmop-area-option.active {
	border-color: var(--wcmop-color-area, var(--wcmop-color-brand, #e02b2b));
	background: #fff5f5;
}

.wcmop-area-option input {
	margin: 0;
}

.wcmop-area-option em {
	font-style: normal;
	color: var(--wcmop-color-area, var(--wcmop-color-brand, #e02b2b));
	font-weight: 600;
}

.wcmop-payment-box {
	border: 1px dashed #ccc;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	background: #fafafa;
}

.wcmop-order-totals {
	border-top: 1px solid #eee;
	padding-top: 10px;
	margin-bottom: 16px;
}

.wcmop-total-line {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 4px 0;
	color: #555;
}

.wcmop-grand-line {
	font-size: 16px;
	font-weight: 700;
	color: #111;
	border-top: 2px solid #eee;
	margin-top: 4px;
	padding-top: 8px;
}

.wcmop-checkout-submit {
	width: 100%;
	background: var(--wcmop-color-button, var(--wcmop-color-brand, #e02b2b));
	color: var(--wcmop-color-button-text, #fff);
	border: none;
	padding: 13px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

.wcmop-checkout-submit:hover {
	filter: brightness(0.88);
}

.wcmop-checkout-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ================= Checkout Product Checklist ([wcmop_checkout_products]) ================= */

.wcmop-checklist {
	display: grid;
	grid-template-columns: repeat(var(--wcmop-cl-cols-desktop, 2), 1fr);
	gap: 10px;
	margin: 16px auto;
	max-width: 700px;
	font-family: 'Poppins', 'Hind Siliguri', sans-serif;
	color: var(--wcmop-color-text, inherit);
}

@media (max-width: 600px) {
	.wcmop-checklist {
		grid-template-columns: repeat(var(--wcmop-mobile-cols, 2), 1fr);
		gap: 8px;
	}
}

.wcmop-cl-row {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 8px 10px;
	transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.wcmop-cl-row.wcmop-cl-selected {
	border-color: #2e9e4f;
	background: #f3fbf5;
}

.wcmop-cl-row.wcmop-cl-highlight {
	box-shadow: 0 0 0 3px rgba(46, 158, 79, 0.35);
}

.wcmop-cl-checkbox {
	display: block;
	margin-bottom: 4px;
	line-height: 0;
}

.wcmop-cl-checkbox input {
	width: 16px;
	height: 16px;
	cursor: pointer;
	margin: 0;
}

.wcmop-cl-body {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.wcmop-cl-image img,
.wcmop-cl-image .wcmop-no-image {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.wcmop-cl-image .wcmop-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	color: #999;
	font-size: 9px;
	text-align: center;
}

.wcmop-cl-info {
	flex: 1;
	min-width: 0;
}

.wcmop-cl-title {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wcmop-cl-qty-price-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.wcmop-cl-qty {
	flex-shrink: 0;
}

.wcmop-cl-qty .wcmop-qty-box {
	width: 92px !important;
	min-width: 84px !important;
	height: 32px !important;
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.wcmop-cl-qty .wcmop-qty-box button,
.wcmop-cl-qty .wcmop-qty-box button.wcmop-cl-qty-plus,
.wcmop-cl-qty .wcmop-qty-box button.wcmop-cl-qty-minus {
	font-size: 15px !important;
	width: 28px !important;
	min-width: 26px !important;
	max-width: none !important;
	flex: 0 0 28px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wcmop-cl-qty .wcmop-qty-box input {
	font-size: 14px !important;
	font-weight: 600 !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: block !important;
	visibility: visible !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 30px !important;
	background: #fff !important;
	color: #222 !important;
	-webkit-text-fill-color: #222 !important;
}

.wcmop-cl-qty .wcmop-qty-off-badge {
	width: auto;
	padding: 3px 8px;
	font-size: 10px;
	border-radius: 999px;
}

@media (max-width: 400px) {
	.wcmop-cl-qty .wcmop-qty-box {
		width: 80px !important;
		min-width: 74px !important;
		height: 30px !important;
	}
	.wcmop-cl-qty .wcmop-qty-box button {
		width: 24px !important;
		min-width: 24px !important;
		flex: 0 0 24px !important;
	}
	.wcmop-cl-qty .wcmop-qty-box input {
		line-height: 28px !important;
	}
}

.wcmop-cl-price {
	font-size: 12px;
	font-weight: 700;
	color: #222;
	white-space: nowrap;
}

.wcmop-cl-size-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.wcmop-cl-size-label {
	font-size: 10.5px;
	font-weight: 600;
	color: #555;
	margin-right: 2px;
}

.wcmop-cl-size-group {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.wcmop-cl-size-btn {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 10px;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.wcmop-cl-size-btn.active {
	border: 2px solid var(--wcmop-color-size, var(--wcmop-color-brand, #e02b2b));
	color: var(--wcmop-color-size, var(--wcmop-color-brand, #e02b2b));
	font-weight: 700;
	padding: 1px 7px;
}

/* ================= Auto Thank You Page (order confirm এর পরে) ================= */

.wcmop-ty-wrap {
	max-width: 640px;
	margin: 30px auto;
	padding: 0 16px 40px;
	font-family: 'Poppins', 'Hind Siliguri', sans-serif;
	color: var(--wcmop-color-text, inherit);
}

.wcmop-ty-header {
	text-align: center;
	padding: 30px 16px;
}

.wcmop-ty-check {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: #1a7f43;
	color: #fff;
	font-size: 28px;
	margin: 0 auto 14px;
}

.wcmop-ty-heading {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
}

.wcmop-ty-order-no {
	color: #555;
	font-size: 14px;
	margin: 0;
}

.wcmop-ty-message {
	background: #fff5f5;
	border: 1px solid #f3d3d3;
	border-left: 4px solid var(--wcmop-color-brand, #e02b2b);
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.wcmop-ty-section {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.wcmop-ty-section h2 {
	font-size: 15px;
	margin: 0 0 12px;
}

.wcmop-ty-product-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.wcmop-ty-product-row:last-child {
	border-bottom: none;
}

.wcmop-ty-product-image img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.wcmop-ty-product-info {
	flex: 1;
	min-width: 0;
}

.wcmop-ty-product-name {
	font-size: 13px;
	font-weight: 600;
}

.wcmop-ty-product-size,
.wcmop-ty-product-qty {
	font-size: 12px;
	color: #777;
}

.wcmop-ty-product-total {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.wcmop-ty-totals {
	border-top: 1px solid #eee;
	margin-top: 10px;
	padding-top: 10px;
}

.wcmop-ty-total-line {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 3px 0;
	color: #555;
}

.wcmop-ty-grand {
	font-size: 15px;
	font-weight: 700;
	color: #111;
	border-top: 2px solid #eee;
	margin-top: 4px;
	padding-top: 8px;
}

.wcmop-ty-info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.wcmop-ty-info-table th {
	text-align: left;
	color: #777;
	font-weight: 600;
	padding: 6px 10px 6px 0;
	vertical-align: top;
	width: 120px;
}

.wcmop-ty-info-table td {
	padding: 6px 0;
}

.wcmop-ty-footer-note {
	text-align: center;
	color: #777;
	font-size: 13px;
	margin-top: 10px;
}

/* ================= Fullscreen Image Preview (সেটিংস থেকে অন করলে) ================= */

.wcmop-zoomable img {
	cursor: zoom-in;
}

.wcmop-fullscreen-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	animation: wcmop-fade-in 0.15s ease;
}

@keyframes wcmop-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.wcmop-fullscreen-overlay img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.wcmop-fullscreen-close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
