/* Bhashani Sweets — quick view popup (desktop dialog, mobile bottom sheet) */
html.bsq-lock { overflow: hidden; }
.bsq-overlay { position: fixed; inset: 0; z-index: 99990; background: rgba(6, 26, 19, .58); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.bsq-overlay.is-open { opacity: 1; }
.bsq-dialog { position: fixed; z-index: 99991; left: 50%; top: 50%; width: min(980px, calc(100vw - 48px)); max-height: calc(100vh - 64px); overflow: auto; overscroll-behavior: contain;
	background: #FBF7EF; border-radius: 24px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, -46%) scale(.98);
	transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); outline: none; }
.bsq-dialog.is-open { opacity: 1; transform: translate(-50%, -50%); }
.bsq__handle { display: none; }
.bsq-dialog .bsq__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #1E1A16;
	font: 400 26px/1 Montserrat, sans-serif; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); display: grid; place-items: center; padding: 0; }
.bsq-dialog .bsq__close:hover, .bsq-dialog .bsq__close:focus { background: #0B2A20; color: #fff; }
.bsq-loading { min-height: 360px; display: grid; place-content: center; gap: 14px; justify-items: center; font: 600 13px Montserrat, sans-serif; color: #655B50; }
.bsq-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #E7DCC8; border-top-color: #0B2A20; animation: bsq-spin .8s linear infinite; }
@keyframes bsq-spin { to { transform: rotate(360deg); } }
.bsq-error { padding: 60px 30px; text-align: center; font: 600 15px Montserrat, sans-serif; }

.bsq { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 520px; }
.bsq__media { position: relative; background: #0c1a14; border-radius: 24px 0 0 24px; overflow: hidden; }
.bsq__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bsq__media .bs-badge { position: absolute; top: 16px; left: 16px; }
.bsq__body { min-width: 0; padding: 40px 38px 30px; display: flex; flex-direction: column; gap: 10px; }
.bsq__cat { margin: 0; font: 700 11px/1 Montserrat, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #D3191F; }
.bsq__title { margin: 2px 0 0; font: 600 40px/1.04 "Cormorant Garamond", Georgia, serif; color: #1E1A16; letter-spacing: -.01em; padding-right: 40px; }
.bsq__urdu { margin: 0; font: 500 20px/1.9 "Noto Nastaliq Urdu", serif; color: #9C7A32; text-align: left; }
.bsq__desc { margin: 0 0 6px; font: 400 14.5px/1.7 Montserrat, sans-serif; color: #655B50; }
.bsq__price { margin: 4px 0; font: 800 26px/1 Montserrat, sans-serif; color: #1E1A16; }
.bsq__price small { font-size: 13px; font-weight: 600; color: #655B50; }

.bsq__weights { border: 0; margin: 6px 0 4px; padding: 0; }
.bsq__weights legend { padding: 0; margin-bottom: 10px; font: 700 11px/1 Montserrat, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #655B50; }
.bsq__weight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bsq__weight { position: relative; cursor: pointer; }
.bsq__weight input { position: absolute; opacity: 0; pointer-events: none; }
.bsq__weight > span { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border: 1.5px solid #E7DCC8; border-radius: 14px; background: #fff; text-align: center; transition: border-color .2s, background .2s, transform .15s; }
.bsq__weight b { font: 800 15px/1 Montserrat, sans-serif; color: #1E1A16; }
.bsq__weight em { font: 600 12.5px/1 Montserrat, sans-serif; font-style: normal; color: #655B50; }
.bsq__weight:hover > span { border-color: #0B2A20; }
.bsq__weight input:checked + span { background: #0B2A20; border-color: #0B2A20; }
.bsq__weight input:checked + span b { color: #fff; }
.bsq__weight input:checked + span em { color: #E4C886; }
.bsq__weight input:focus-visible + span { outline: 2px solid #D3191F; outline-offset: 2px; }
.bsq__weight.is-out { cursor: not-allowed; opacity: .5; }

.bsq__row { display: flex; gap: 10px; margin-top: 10px; }
.bsq__qty { display: flex; align-items: center; border: 1.5px solid #E7DCC8; border-radius: 999px; background: #fff; flex: none; }
.bsq-dialog .bsq__qty button { width: 44px; height: 52px; border: 0; border-radius: 0; box-shadow: none; background: none; font: 600 20px/1 Montserrat, sans-serif; color: #1E1A16; cursor: pointer; padding: 0; }
.bsq-dialog .bsq__qty button:hover, .bsq-dialog .bsq__qty button:focus { color: #D3191F; background: none; }
.bsq-dialog .bsq__qty input[type=number] { width: 36px; min-height: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; text-align: center; font: 800 16px Montserrat, sans-serif; color: #1E1A16; -moz-appearance: textfield; padding: 0; }
.bsq__qty input::-webkit-outer-spin-button, .bsq__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bsq-dialog .bsq__add { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border: 0; border-radius: 999px; background: #D3191F; color: #fff;
	font: 700 15px/1 Montserrat, sans-serif; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(211, 25, 31, .8); transition: background .2s, transform .15s; padding: 0 22px; }
.bsq-dialog .bsq__add:hover, .bsq-dialog .bsq__add:focus { background: #A80F15; color: #fff; }
.bsq-dialog .bsq__add:active { transform: scale(.98); }
.bsq__add svg { width: 18px; height: 18px; }
.bsq__total { padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .35); font-weight: 800; }
.bsq-dialog .bsq__add.is-loading { opacity: .75; pointer-events: none; }
.bsq-dialog .bsq__add.is-added { background: #0B2A20; }
.bsq__msg { margin: 0; min-height: 1em; font: 600 13px Montserrat, sans-serif; color: #D3191F; }
.bsq__soldout { margin: 8px 0 0; padding: 14px 16px; border-radius: 12px; background: #F3EADB; font: 600 14px Montserrat, sans-serif; color: #1E1A16; }
.bsq__links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.bsq__links a { font: 700 13.5px Montserrat, sans-serif; text-decoration: none; }
.bsq__wa { color: #128C4A; display: inline-flex; align-items: center; gap: 8px; }
.bsq__wa::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.bsq__more { color: #0B2A20; border-bottom: 1.5px solid #C9A04E; padding-bottom: 2px; }
.bsq__more::after { content: " \2192"; }
.bsq__note { margin: auto 0 0; padding-top: 16px; border-top: 1px solid #E7DCC8; display: flex; align-items: center; gap: 10px; font: 500 12.5px/1.5 Montserrat, sans-serif; color: #655B50; }
.bsq__note svg { width: 20px; height: 20px; color: #0B2A20; flex: none; }

@media (max-width: 767px) {
	.bsq-dialog { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
	.bsq-dialog.is-open { transform: translateY(0); }
	.bsq__handle { display: block; position: sticky; top: 0; z-index: 4; height: 0; }
	.bsq__handle::before { content: ""; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
	.bsq-dialog .bsq__close { top: 12px; right: 12px; width: 38px; height: 38px; }
	.bsq { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.bsq__total { padding-left: 8px; }
	.bsq__media { border-radius: 22px 22px 0 0; height: 34vh; min-height: 220px; }
	.bsq__body { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); gap: 8px; }
	.bsq__title { font-size: 30px; padding-right: 0; }
	.bsq__urdu { font-size: 17px; }
	.bsq__desc { font-size: 13.5px; }
	.bsq__weight span { padding: 12px 6px; }
	.bsq__weight b { font-size: 14px; }
	.bsq__row { position: sticky; bottom: 0; background: #FBF7EF; padding: 10px 0 4px; margin-top: 4px; z-index: 2; }
	.bsq-dialog .bsq__add { height: 52px; font-size: 14px; padding: 0 14px; }
	.bsq-dialog .bsq__qty button { width: 38px; }
}
@media (prefers-reduced-motion: reduce) {
	.bsq-overlay, .bsq-dialog { transition: none; }
}
