/* বাংলা টেক্সটের জন্য "Hind Siliguri" এবং ইংরেজি/নাম্বারের জন্য "Poppins" ফন্ট। */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

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

/* ================= Product Grid ([wvop_products]) ================= */

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

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

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

.wvop-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;
}

.wvop-card-image,
.wvop-cl-image {
	position: relative;
}

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

.wvop-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;
}

.wvop-gallery-count {
	position: absolute;
	bottom: 6px;
	right: 6px;
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 999px;
	line-height: 1.5;
}

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

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

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

.wvop-new-price {
	color: var(--wvop-color-price, var(--wvop-color-brand, #2b6ee0));
	font-weight: 700;
}

.wvop-field { text-align: left; margin-bottom: 6px; font-size: 12px; }
.wvop-field label { display: block; font-weight: 600; margin-bottom: 2px; color: #444; }

/* ---- Option (variant) buttons ---- */

.wvop-variant-row,
.wvop-size-row {
	text-align: left;
	margin-bottom: 6px;
}

.wvop-variant-label,
.wvop-size-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #444;
	margin-bottom: 3px;
}

.wvop-variant-group,
.wvop-size-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wvop-variant-btn,
.wvop-size-btn {
	background: #f7f7f7;
	border: 1px solid #ccc;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	font-family: inherit;
}

.wvop-variant-btn.active,
.wvop-size-btn.active {
	background: var(--wvop-color-option, var(--wvop-color-brand, #2b6ee0));
	border-color: var(--wvop-color-option, var(--wvop-color-brand, #2b6ee0));
	color: var(--wvop-color-button-text, #fff);
	font-weight: 600;
}

/* ---- Quantity stepper ---- */

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

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

.wvop-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;
	margin: 0 !important;
	padding: 0 !important;
}

.wvop-qty-input {
	flex: 1 1 auto !important;
	border: none;
	text-align: center;
	width: 100%;
	min-width: 0 !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	color: #222 !important;
	font-family: inherit !important;
	font-size: inherit;
	-moz-appearance: textfield;
}

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

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

.wvop-qty-off-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wvop-color-qty-off-bg, #2271b1);
	color: var(--wvop-color-qty-off-text, var(--wvop-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;
}

.wvop-card-actions {
	margin-top: auto;
	display: flex;
	gap: 6px;
}

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

.wvop-order-btn:hover { filter: brightness(0.9); }
.wvop-order-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- নোট ব্যাজ (অ্যাডমিন সেট করা, শুধু দেখানোর জন্য) ---- */

.wvop-note-wrap {
	margin: 6px 0;
}

.wvop-note-badge {
	display: block;
	background: var(--wvop-color-note-bg, #fff);
	color: var(--wvop-color-note-text, var(--wvop-color-button, var(--wvop-color-brand, #2b6ee0)));
	border: 1px solid var(--wvop-color-note-text, var(--wvop-color-button, var(--wvop-color-brand, #2b6ee0)));
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

/* ================= Cart Summary Widget ================= */

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

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

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

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

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

.wvop-summary-info { flex: 1; min-width: 0; }
.wvop-summary-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.wvop-summary-meta { font-size: 11px; color: #777; }

.wvop-summary-note {
	font-size: 11px;
	color: #777;
	font-style: italic;
	margin-top: 2px;
	overflow-wrap: break-word;
}

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

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

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

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

.wvop-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) {
	.wvop-summary-row { flex-wrap: wrap; }
	.wvop-summary-subtotal { order: 4; width: 100%; text-align: left; margin-top: 4px; }
}

/* ================= Built-in Checkout Widget ================= */

.wvop-checkout-wrap {
	max-width: 480px;
	margin: 20px auto;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	padding: 16px;
}

.wvop-checkout-heading { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.wvop-checkout-cart { margin-bottom: 14px; border: none; padding: 0; }

.wvop-checkout-message { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
.wvop-msg-success { background: #e8f7ee; color: #1a7f43; border: 1px solid #b6e6c8; }
.wvop-msg-error { background: #fdeaea; color: #b12424; border: 1px solid #f3b8b8; }

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

.wvop-form-row input[type="text"],
.wvop-form-row input[type="tel"],
.wvop-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;
}

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

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

.wvop-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;
}

.wvop-area-option.active {
	border-color: var(--wvop-color-area, var(--wvop-color-brand, #2b6ee0));
	background: #f4f8ff;
}

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

.wvop-order-totals { border-top: 1px solid #eee; margin: 14px 0; padding-top: 10px; }
.wvop-total-line { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: #555; }
.wvop-grand-line { font-size: 15px; font-weight: 700; color: #111; border-top: 1px solid #eee; margin-top: 4px; padding-top: 8px; }

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

.wvop-checkout-submit:hover { filter: brightness(0.9); }
.wvop-checkout-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ================= Checkout Product Checklist ================= */

.wvop-checklist-section {
	margin: 0 auto;
	max-width: 700px;
}

.wvop-checklist-note {
	background: var(--wvop-color-note-bg, #fff8e1);
	color: var(--wvop-color-note-text, var(--wvop-color-button, var(--wvop-color-brand, #2b6ee0)));
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.6;
}

.wvop-checklist-note p {
	margin: 0 0 6px;
}

.wvop-checklist-note p:last-child {
	margin-bottom: 0;
}

.wvop-checklist {
	display: grid;
	grid-template-columns: repeat(var(--wvop-cl-cols-desktop, 2), 1fr);
	gap: 10px;
	margin: 16px auto;
	max-width: 700px;
}

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

.wvop-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;
}

.wvop-cl-row.wvop-cl-selected { border-color: #2e9e4f; background: #f3fbf5; }
.wvop-cl-row.wvop-cl-highlight { box-shadow: 0 0 0 3px rgba(46, 158, 79, 0.35); }

.wvop-cl-checkbox { display: block; margin-bottom: 4px; line-height: 0; }
.wvop-cl-checkbox input { width: 16px; height: 16px; cursor: pointer; margin: 0; }

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

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

.wvop-cl-image .wvop-gallery-count { font-size: 8px; padding: 1px 5px; bottom: 2px; right: 2px; }

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

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

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

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

.wvop-cl-qty .wvop-qty-box { width: 92px !important; min-width: 84px !important; height: 32px !important; display: flex !important; }

.wvop-cl-qty .wvop-qty-box button {
	font-size: 15px !important;
	width: 28px !important;
	min-width: 26px !important;
	flex: 0 0 28px !important;
}

.wvop-cl-qty .wvop-qty-box input {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 30px !important;
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
}

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

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

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

.wvop-cl-variant-row,
.wvop-cl-size-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 4px;
}

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

.wvop-cl-variant-group,
.wvop-cl-size-group { display: flex; flex-wrap: wrap; gap: 4px; }

.wvop-cl-variant-btn,
.wvop-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;
}

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

/* ================= Auto Thank You Page ================= */

.wvop-ty-wrap { max-width: 640px; margin: 30px auto; padding: 0 16px 40px; }

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

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

.wvop-ty-heading { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.wvop-ty-order-no { color: #555; font-size: 14px; margin: 0; }

.wvop-ty-message {
	background: #f4f8ff;
	border: 1px solid #d3e0f3;
	border-left: 4px solid var(--wvop-color-brand, #2b6ee0);
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.wvop-ty-section { background: #fff; border: 1px solid #eaeaea; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.wvop-ty-section h2 { font-size: 15px; margin: 0 0 12px; }

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

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

.wvop-ty-product-info { flex: 1; min-width: 0; }
.wvop-ty-product-name { font-size: 13px; font-weight: 600; }
.wvop-ty-product-meta,
.wvop-ty-product-qty { font-size: 12px; color: #777; }

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

.wvop-ty-totals { border-top: 1px solid #eee; margin-top: 10px; padding-top: 10px; }
.wvop-ty-total-line { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: #555; }
.wvop-ty-grand { font-size: 15px; font-weight: 700; color: #111; border-top: 2px solid #eee; margin-top: 4px; padding-top: 8px; }

.wvop-ty-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wvop-ty-info-table th { text-align: left; color: #777; font-weight: 600; padding: 6px 10px 6px 0; vertical-align: top; width: 120px; }
.wvop-ty-info-table td { padding: 6px 0; }

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

/* ================= Fullscreen Swipeable Image Gallery ================= */

.wvop-zoomable { cursor: zoom-in; }

.wvop-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	animation: wvop-fade-in 0.15s ease;
	touch-action: none;
}

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

.wvop-lightbox-track {
	flex: 1;
	display: flex;
	height: 100%;
	will-change: transform;
}

.wvop-lightbox-slide {
	flex: 0 0 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 20px;
}

.wvop-lightbox-slide img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

.wvop-lightbox-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;
	z-index: 2;
}

.wvop-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wvop-lightbox-prev { left: 14px; }
.wvop-lightbox-next { right: 14px; }

@media (max-width: 600px) {
	.wvop-lightbox-arrow { display: none; }
}

.wvop-lightbox-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 14px 0;
}

.wvop-lightbox-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255,255,255,.4);
}

.wvop-lightbox-dot.active { background: #fff; }

.wvop-lightbox-counter {
	position: absolute;
	top: 20px;
	left: 20px;
	color: #fff;
	font-size: 13px;
	background: rgba(255,255,255,.15);
	padding: 4px 10px;
	border-radius: 999px;
	z-index: 2;
}
