/* =====================================================================
   Supertėvai Quick Cart — pagal Figma
   ===================================================================== */

.stv-qc *,
.stv-qc-overlay,
.stv-qc *::before,
.stv-qc *::after {
	box-sizing: border-box;
}

:root {
	--qc-pink: #EB0055;
	--qc-dark: #0C0016;
	--qc-black: #000000;
	--qc-green: #00B712;
	--qc-green-dark: #008A0E;
	--qc-track: #ECEEF0;
	--qc-blue: #0085E5;
	--qc-border: #E6E6E6;
}

/* ---- Reset: kad temos button/link stiliai neperrašytų krepšelio ---- */

.stv-qc button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: normal;
	cursor: pointer;
	text-transform: none;
}
.stv-qc a {
	text-decoration: none;
	box-shadow: none;
}

/* ---- Overlay + drawer ---------------------------------------------- */

.stv-qc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
	z-index: 100000;
}
.stv-qc-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.stv-qc {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 420px;
	max-width: 100%;
	background: #fff;
	z-index: 100001;
	transform: translateX(100%);
	transition: transform .3s ease;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
	display: flex;
	flex-direction: column;
	font-family: "Wix Madefor Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: -0.02em;
	color: var(--qc-dark);
}
.stv-qc.is-open {
	transform: translateX(0);
}

@media (max-width: 600px) {
	.stv-qc { width: 100%; }
	.stv-qc-overlay { background: transparent; }
}

body.stv-qc-lock {
	overflow: hidden;
}

/* ---- Header -------------------------------------------------------- */

.stv-qc__header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
}
.stv-qc__title {
	font-size: 18px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--qc-black);
}
.stv-qc__close {
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	padding: 6px;
	margin: -6px;
	cursor: pointer;
	line-height: 0;
	border-radius: 99px;
	transition: background .15s ease;
}
.stv-qc__close:hover,
.stv-qc__close:focus {
	background: rgba(0, 0, 0, .06) !important;
}

/* ---- Dinaminis fragmentas (flex stulpelis) ------------------------- */

.stv-qc-fragment {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* ---- Nemokamo pristatymo juosta ------------------------------------ */

.stv-qc__shipping {
	flex: 0 0 auto;
	padding: 0 16px 16px;
}
.stv-qc__shipping-text {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: var(--qc-black);
}
.stv-qc__shipping-text strong {
	font-weight: 600;
}
.stv-qc__progress {
	height: 8px;
	border-radius: 99px;
	background: var(--qc-track);
	overflow: hidden;
}
.stv-qc__progress span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: var(--qc-green);
	transition: width .3s ease;
}

/* ---- Slankiojanti dalis -------------------------------------------- */

.stv-qc__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 0 16px 16px;
}

.stv-qc__items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---- Produkto kortelė ---------------------------------------------- */

.stv-qc__item,
.stv-qc__cross-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.stv-qc__thumb {
	flex: 0 0 88px;
	display: block;
}
.stv-qc__thumb img {
	width: 88px;
	height: 86px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.stv-qc__details {
	flex: 1 1 auto;
	min-width: 0;
}

.stv-qc__name {
	display: block;
	font-size: 12px;
	line-height: 20px;
	font-weight: 400;
	color: var(--qc-dark) !important;
	margin-bottom: 4px;
	text-decoration: none;
}
.stv-qc__name:hover {
	text-decoration: underline;
}

.stv-qc__price-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.stv-qc__price {
	font-size: 18px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--qc-pink);
}
.stv-qc__price .woocommerce-Price-currencySymbol { font-weight: inherit; }

.stv-qc__price-old {
	font-size: 12px;
	line-height: 20px;
	font-weight: 500;
	color: var(--qc-dark);
	text-decoration: line-through;
}

.stv-qc__save {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px 8px;
	border-radius: 99px;
	background: rgba(0, 183, 18, .10);
	color: var(--qc-green-dark);
	font-size: 12px;
	line-height: 20px;
	font-weight: 600;
}
.stv-qc__save-amount { font-weight: inherit; }

/* ---- Kiekio valdiklis ---------------------------------------------- */

.stv-qc__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.stv-qc__qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--qc-border);
	border-radius: 99px;
	overflow: hidden;
}
.stv-qc__minus,
.stv-qc__plus {
	flex: 0 0 auto;
	width: 48px !important;
	height: 48px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	color: var(--qc-black) !important;
	line-height: 0;
	transition: background .15s ease;
}
.stv-qc__minus:hover,
.stv-qc__plus:hover {
	background: rgba(0, 0, 0, .06) !important;
}
.stv-qc__minus svg,
.stv-qc__plus svg,
.stv-qc__remove svg {
	display: block;
}
.stv-qc__qty-val {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	font-size: 16px;
	line-height: 1;
	font-weight: 600;
	color: var(--qc-black);
}
.stv-qc__remove {
	margin-left: auto;
	padding: 6px;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--qc-black) !important;
	line-height: 0;
	transition: color .15s ease, transform .15s ease;
}
.stv-qc__remove:hover {
	color: var(--qc-pink) !important;
	transform: scale(1.08);
}

/* ---- "Perka kartu" ------------------------------------------------- */

.stv-qc__cross {
	margin: 16px -16px 0;
	padding: 16px 16px 0;
	border-top: 1px solid var(--qc-track);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.stv-qc__cross-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--qc-black);
}
.stv-qc__cross-item .stv-qc__details {
	align-self: center;
}
.stv-qc__add,
.stv-qc__add:link,
.stv-qc__add:visited {
	flex: 0 0 auto;
	align-self: center;
	border: 1px solid var(--qc-blue) !important;
	background: #fff !important;
	color: var(--qc-blue) !important;
	border-radius: 24px !important;
	padding: 5px 12px !important;
	font-size: 15px !important;
	line-height: 22px !important;
	font-weight: 600 !important;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: none !important;
	transition: background .15s ease, color .15s ease;
}
.stv-qc__add:hover,
.stv-qc__add:focus {
	background: var(--qc-blue) !important;
	color: #fff !important;
}

/* ---- Apačia (suma + mygtukas + logo) ------------------------------- */

.stv-qc__footer {
	flex: 0 0 auto;
	background: #fff;
	padding: 12px 16px 8px;
	border-top: 1px solid var(--qc-track);
}
.stv-qc__footer-row {
	display: flex;
	align-items: center;
	gap: 31px;
}
.stv-qc__sum {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
}
.stv-qc__sum-label {
	font-size: 12px;
	line-height: 20px;
	font-weight: 400;
	color: var(--qc-black);
}
.stv-qc__sum-value {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--qc-dark);
}
.stv-qc__checkout {
	flex: 1 1 auto;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 99px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.stv-qc a.stv-qc__checkout,
.stv-qc a.stv-qc__checkout:link,
.stv-qc a.stv-qc__checkout:visited,
.stv-qc a.stv-qc__checkout:hover,
.stv-qc a.stv-qc__checkout:focus,
.stv-qc a.stv-qc__checkout:active {
	background: var(--qc-pink) !important;
	color: #fff !important;
	font-family: "Wix Madefor Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	text-decoration: none !important;
}
.stv-qc a.stv-qc__checkout:hover {
	filter: brightness(.93);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(235, 0, 85, .35);
}
.stv-qc a.stv-qc__checkout:active {
	transform: translateY(0);
	box-shadow: none;
}

.stv-qc__payments {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin-top: 8px;
}
.stv-qc__pay {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 4px;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
	font-size: 11px;
	font-weight: 600;
	color: var(--qc-dark);
	white-space: nowrap;
	overflow: hidden;
}
.stv-qc__pay img {
	display: block;
	max-width: 100%;
	max-height: 14px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ---- Tuščias / loading --------------------------------------------- */

.stv-qc__empty {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	color: #555;
	font-size: 16px;
}
.stv-qc__item.is-loading,
.stv-qc__add.is-loading {
	opacity: .5;
	pointer-events: none;
}

/* ---- Paslepiam Elementor side-cart panelę + overlay (lieka tik ikona) --- */
/* CSS kraunamas tik adminui, tad paprasti vartotojai mato įprastą Elementor krepšelį. */
.elementor-menu-cart__container {
	display: none !important;
}
