/* The First Aid Shop: product quick view (Back to School page) */
html.fqv-lock, html.fqv-lock body { overflow: hidden !important; }

.fqv {
	--fqv-blue: #04a8e5; --fqv-blue-deep: #0280b0; --fqv-tint: #eaf6fc;
	--fqv-green: #89c01c; --fqv-green-deep: #6f9e12; --fqv-green-tint: #f1f8e4;
	--fqv-ink: #171717; --fqv-text: #4b5257; --fqv-muted: #8a9399; --fqv-line: #dcebf3; --fqv-soft: #f5f9fb;
	position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 24px;
	font-family: 'Montserrat', Helvetica, Arial, sans-serif; color: var(--fqv-text); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.fqv[hidden] { display: none; }
.fqv *, .fqv *::before, .fqv *::after { box-sizing: border-box; }
.fqv p { padding: 0; }
.fqv button { font-family: inherit; text-transform: none; letter-spacing: normal; }
.fqv svg { display: block; flex: none; }

.fqv__backdrop { position: absolute; inset: 0; background: rgba(7, 28, 42, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.fqv__panel {
	position: relative; width: min(1000px, 100%); max-height: min(720px, calc(100vh - 48px)); background: #fff; border-radius: 22px;
	box-shadow: 0 40px 100px -30px rgba(3, 40, 60, .6); display: flex; flex-direction: column; overflow: hidden; outline: none;
	opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .22s ease, transform .22s ease;
}
.fqv.is-open .fqv__backdrop { opacity: 1; }
.fqv.is-open .fqv__panel { opacity: 1; transform: none; }
.fqv__close {
	position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; padding: 0; border-radius: 50%;
	border: 1px solid var(--fqv-line); background: #fff; color: var(--fqv-ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
	transition: border-color .15s, color .15s, transform .15s;
}
.fqv__close svg { width: 18px; height: 18px; }
.fqv__close:hover { border-color: var(--fqv-blue); color: var(--fqv-blue); transform: rotate(90deg); }
.fqv__body { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }

.fqv__grid { display: grid; grid-template-columns: 46% minmax(0, 1fr); min-height: 560px; }

/* Media */
.fqv__media { background: var(--fqv-soft); padding: 28px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid #e6f0f5; min-width: 0; }
.fqv__stage {
	position: relative; flex: 1 1 auto; min-height: 360px; background: #fff; border-radius: 16px; border: 1px solid #e6f0f5;
	display: flex; align-items: center; justify-content: center; padding: 28px; overflow: hidden;
}
.fqv__img { max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: contain; transition: opacity .18s ease; }
.fqv__img.is-swap { opacity: .25; }
.fqv__nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; padding: 0; border-radius: 50%;
	border: 1px solid var(--fqv-line); background: rgba(255, 255, 255, .95); color: var(--fqv-ink); cursor: pointer;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .15s, border-color .15s, color .15s;
}
.fqv__nav svg { width: 18px; height: 18px; }
.fqv__nav--prev { left: 12px; }
.fqv__nav--next { right: 12px; }
.fqv__stage:hover .fqv__nav, .fqv__nav:focus-visible { opacity: 1; }
.fqv__nav:hover { border-color: var(--fqv-blue); color: var(--fqv-blue); }
.fqv__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; scroll-behavior: smooth; }
.fqv__thumb {
	flex: 0 0 60px; height: 60px; padding: 5px; border-radius: 10px; border: 1.5px solid var(--fqv-line); background: #fff; cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.fqv__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fqv__thumb:hover { border-color: #9fd6ef; }
.fqv__thumb.is-on { border-color: var(--fqv-blue); box-shadow: 0 0 0 3px rgba(4, 168, 229, .16); }

/* Details */
.fqv__info { padding: 38px 38px 30px; display: flex; flex-direction: column; min-width: 0; }
.fqv__sku { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fqv-muted); margin: 0 0 8px; min-height: 16px; }
.fqv .fqv__title { font-family: inherit; font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--fqv-ink); margin: 0 52px 14px 0; padding: 0; letter-spacing: -.015em; }
.fqv__pricing { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; }
.fqv__price { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--fqv-blue-deep); letter-spacing: -.02em; }
.fqv__was { font-size: 16px; color: var(--fqv-muted); }
.fqv__was:empty { display: none; }
.fqv__gst { font-size: 12px; font-weight: 600; color: var(--fqv-muted); }
.fqv__stock { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; margin: 0 0 22px; }
.fqv__stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.fqv__stock.is-in { color: var(--fqv-green-deep); }
.fqv__stock.is-out { color: #b42318; }
.fqv__stock.is-back { color: #b26b00; }
.fqv__info > * { flex-shrink: 0; }
.fqv__desc { font-size: 14px; line-height: 1.65; margin: 0 0 8px; padding-top: 18px !important; border-top: 1px solid #e6f0f5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.fqv__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fqv-ink); margin: 0 0 10px; }
.fqv__label span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fqv-text); margin-left: 4px; }

/* Options */
.fqv__opt { margin: 0 0 20px; }
.fqv__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fqv__chip {
	min-height: 42px; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--fqv-line); background: #fff; color: var(--fqv-ink);
	font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.fqv__chip:hover { border-color: #9fd6ef; }
.fqv__chip.is-out { color: #a3abb0; background: #fafcfd; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.fqv__chip.is-on { border-color: var(--fqv-blue); background: var(--fqv-tint); color: var(--fqv-blue-deep); box-shadow: inset 0 0 0 1px var(--fqv-blue); }
.fqv__chip.is-on.is-out { color: #b42318; border-color: #f0b4ad; background: #fdf3f2; box-shadow: none; }
.fqv__select-wrap { position: relative; }
.fqv__select-wrap::after {
	content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--fqv-blue-deep);
	border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none;
}
.fqv__select {
	width: 100%; height: 46px; padding: 0 40px 0 14px; border-radius: 10px; border: 1.5px solid var(--fqv-line); background: #fff; color: var(--fqv-ink);
	font: 600 14px/1 'Montserrat', Helvetica, Arial, sans-serif; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.fqv__select:focus { outline: none; border-color: var(--fqv-blue); }

/* Bulk pricing */
.fqv__tiers { margin: 0 0 22px; }
.fqv__tiers:empty { display: none; }
.fqv__tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.fqv__tier {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 12px 8px 12px; border-radius: 12px;
	border: 1.5px solid var(--fqv-line); background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.fqv__tier:hover { border-color: #9fd6ef; }
.fqv__tier-qty { font-size: 12px; font-weight: 700; color: var(--fqv-text); }
.fqv__tier-price { font-size: 18px; font-weight: 800; color: var(--fqv-ink); line-height: 1.3; }
.fqv__tier-each { font-size: 11px; color: var(--fqv-muted); }
.fqv__tier-save {
	position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: .05em;
	text-transform: uppercase; color: #fff; background: var(--fqv-green); border-radius: 99px; padding: 2px 8px; line-height: 1.5;
}
.fqv__tier.is-on { border-color: var(--fqv-blue); background: var(--fqv-tint); box-shadow: inset 0 0 0 1px var(--fqv-blue); }
.fqv__tier.is-on .fqv__tier-price { color: var(--fqv-blue-deep); }
.fqv__tier-grid:has(.fqv__tier-save) { padding-top: 8px; }
.fqv__hint { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 10px 0 0; color: var(--fqv-text); }
.fqv__hint strong { color: var(--fqv-ink); }
.fqv__hint--best { color: var(--fqv-green-deep); font-weight: 700; }
.fqv__hint svg { width: 16px; height: 16px; }

/* Buy */
.fqv__foot { margin-top: auto; padding-top: 4px; }
.fqv__buy { display: flex; gap: 10px; }
.fqv__qty { display: flex; align-items: stretch; flex: 0 0 auto; height: 54px; border: 1.5px solid var(--fqv-line); border-radius: 12px; overflow: hidden; background: #fff; }
.fqv__qty button { width: 44px; padding: 0; border: 0; background: var(--fqv-soft); color: var(--fqv-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.fqv__qty button svg { width: 16px; height: 16px; }
.fqv__qty button:hover { background: var(--fqv-tint); color: var(--fqv-blue-deep); }
.fqv .fqv__qty input {
	width: 60px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--fqv-ink); box-shadow: none;
	font: 700 17px/1 'Montserrat', Helvetica, Arial, sans-serif; text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.fqv__qty input::-webkit-inner-spin-button, .fqv__qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fqv__qty input:focus { outline: none; background: var(--fqv-tint); }
.fqv__add {
	position: relative; flex: 1 1 auto; min-width: 0; height: 54px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--fqv-blue); color: #fff;
	display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; white-space: nowrap;
	box-shadow: 0 14px 26px -14px rgba(4, 120, 170, .9); transition: background .15s, transform .1s, box-shadow .15s;
}
.fqv__add svg { width: 20px; height: 20px; }
.fqv__add:hover { background: var(--fqv-blue-deep); }
.fqv__add:active { transform: translateY(1px); }
.fqv__total { font-weight: 700; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .45); }
.fqv__total:empty { display: none; }
.fqv__add:disabled { background: #c3ccd1; box-shadow: none; cursor: not-allowed; }
.fqv__add.is-busy { pointer-events: none; }
.fqv__add.is-busy > * { visibility: hidden; }
.fqv__add.is-busy::after {
	content: ''; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: fqv-spin .7s linear infinite;
}
.fqv__add.is-added { background: var(--fqv-green-deep); box-shadow: 0 14px 26px -14px rgba(90, 130, 10, .9); }
@keyframes fqv-spin { to { transform: rotate(360deg); } }

.fqv__msg { margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.fqv__msg:empty { display: none; }
.fqv__msg.is-ok, .fqv__msg.is-err { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 11px 14px; border-radius: 10px; }
.fqv__msg.is-ok { background: var(--fqv-green-tint); color: #4c7208; }
.fqv__msg.is-err { background: #fdecea; color: #b42318; }
.fqv__msg span { display: inline-flex; align-items: center; gap: 6px; }
.fqv__msg svg { width: 16px; height: 16px; }
.fqv__msg a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: inherit; font-weight: 800; text-decoration: none; }
.fqv__msg a:hover { text-decoration: underline; }

.fqv__more { align-self: flex-start; margin: 0 0 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--fqv-blue-deep); text-decoration: none; }
.fqv__more svg { width: 16px; height: 16px; transition: transform .15s; }
.fqv__more:hover { color: var(--fqv-blue); }
.fqv__more:hover svg { transform: translateX(3px); }

/* Loading and errors */
.fqv__sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef4f7 25%, #f8fbfc 40%, #eef4f7 60%); background-size: 300% 100%; animation: fqv-sh 1.2s ease-in-out infinite; }
.fqv__stage.fqv__sk { border: 0; }
@keyframes fqv-sh { from { background-position: 100% 0; } to { background-position: 0 0; } }
.fqv__error { padding: 80px 40px; text-align: center; font-size: 15px; }
.fqv__error .fqv__more { align-self: center; }

.fqv button:focus-visible, .fqv a:focus-visible { outline: 3px solid rgba(4, 168, 229, .45); outline-offset: 2px; }

/* Desktop: image column stays put, details scroll, buy bar pinned to the bottom */
@media (min-width: 761px) {
	.fqv__body { overflow: hidden; display: flex; }
	.fqv__grid { display: flex; flex: 1 1 auto; width: 100%; max-height: min(720px, calc(100vh - 48px)); min-height: min(580px, calc(100vh - 48px)); }
	.fqv__media { flex: 0 0 46%; }
	.fqv__stage { flex: 1 1 0; min-height: 0; }
	.fqv__img { max-height: min(400px, 100%); }
	.fqv__info { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; scrollbar-width: thin; }
	.fqv__foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -38px; padding: 16px 38px 24px; background: #fff; box-shadow: 0 -14px 20px -16px rgba(0, 0, 0, .18); }
	.fqv__grid--loading .fqv__info { padding-bottom: 30px; }
}

/* Phones: bottom sheet with a sticky buy bar */
@media (max-width: 760px) {
	.fqv { padding: 0; align-items: flex-end; }
	.fqv__panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
	.fqv__grid { grid-template-columns: 1fr; min-height: 0; }
	.fqv__media { padding: 16px 16px 12px; border-right: 0; border-bottom: 1px solid #e6f0f5; }
	.fqv__stage { min-height: 230px; padding: 16px; }
	.fqv__img { max-height: 210px; }
	.fqv__nav { opacity: 1; width: 34px; height: 34px; }
	.fqv__thumb { flex-basis: 52px; height: 52px; }
	.fqv__info { padding: 20px 18px 0; }
	.fqv .fqv__title { font-size: 21px; margin-right: 0; }
	.fqv__price { font-size: 26px; }
	.fqv__close { top: 12px; right: 12px; }
	.fqv__foot { position: sticky; bottom: 0; z-index: 3; margin: 0 -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e6f0f5; box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .35); }
	.fqv__msg { margin-top: 10px; }
	.fqv__qty button { width: 38px; }
	.fqv .fqv__qty input { width: 44px; }
	.fqv__add { padding: 0 14px; font-size: 15px; gap: 8px; }
	.fqv__add > svg { display: none; }
	.fqv__more { margin: 0 0 20px; }
	.fqv__grid--loading .fqv__info { min-height: 420px; padding-bottom: 20px; }
}

/* Training-only products */
.fqv__train { margin: -4px 0 14px; padding: 9px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: 13px; line-height: 1.45; }
.fqv__train strong { color: #b45309; }
